diff --git a/README.md b/README.md index e29f350..0a57e51 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,10 @@ not conflict with other ChiliPeppr widgets. | ID | com-chilipeppr-widget-3dviewer | | Name | Widget / 3D GCode Viewer | | Description | Visualize your GCode in 3D by simulating your GCode run or seeing where your run is at in 3D while your CNC operation is in action. | -| chilipeppr.load() URL | http://raw.githubusercontent.com/chilipeppr/widget-3dviewer/master/auto-generated-widget.html | -| Edit URL | http://ide.c9.io/chilipeppr/widget-3dviewer | -| Github URL | http://github.com/chilipeppr/widget-3dviewer | -| Test URL | https://preview.c9users.io/chilipeppr/widget-3dviewer/widget.html | +| chilipeppr.load() URL | http://raw.githubusercontent.com/dchote/widget-3dviewer/master/auto-generated-widget.html | +| Edit URL | http://ide.c9.io/undefined/undefined | +| Github URL | http://github.com/dchote/widget-3dviewer | +| Test URL | https://preview.c9users.io/undefined/undefined/widget.html | ## Example Code for chilipeppr.load() Statement @@ -33,7 +33,7 @@ $("body").append('<' + 'div id="myDivWidget3dviewer"><' + '/div>'); chilipeppr.load( "#myDivWidget3dviewer", - "http://raw.githubusercontent.com/chilipeppr/widget-3dviewer/master/auto-generated-widget.html", + "http://raw.githubusercontent.com/dchote/widget-3dviewer/master/auto-generated-widget.html", function() { // Callback after widget loaded into #myDivWidget3dviewer // Now use require.js to get reference to instantiated widget @@ -132,9 +132,9 @@ The table below shows, in order, the methods and properties inside the widget/el - idstring"com-chilipeppr-widget-3dviewer"namestring"Widget / 3D GCode Viewer"descstring"Visualize your GCode in 3D by simulating your GCode run or seeing where your run is at in 3D while your CNC operation is in action."urlstring"http://raw.githubusercontent.com/chilipeppr/widget-3dviewer/master/auto-generated-widget.html"fiddleurlstring"http://ide.c9.io/chilipeppr/widget-3dviewer"githuburlstring"http://github.com/chilipeppr/widget-3dviewer"testurlstring"http://widget-3dviewer-chilipeppr.c9users.io/widget.html"publishobjectPlease see docs above.subscribeobjectPlease see docs above.foreignSubscribeobjectPlease see docs above.foreignPublishobjectPlease see docs above.sceneobjectobjectobjectcameraobjectcontrolsobjecttoolheadobjecttweenobjecttweenHighlightobjecttweenIndexobjecttweenSpeednumbertweenPausedbooleantweenIsPlayingbooleanwantAnimatebooleaninitOptionsobjectinitfunctionfunction (initOptions) setupScenePubSubfunctionfunction () onSignalSceneReloadedFailAttemptsnumberonSignalSceneReloadedfunctionfunction () isInspectSelectbooleaninitInspectfunctionfunction () setupInspectfunctionfunction (evt) unsetupInspectfunctionfunction () toggleInspectfunctionfunction (evt) inspectKeyDownfunctionfunction (evt) inspectKeyUpfunctionfunction (evt) inspectMouseClickfunctionfunction (evt) onInspectGotofunctionfunction (evt) inspectArrowGrpobjectcreateInspectArrowfunctionfunction () inspectCurPosobjectinspectLastObjobjectinspectLastDecorateGroupobjectinspectDlgElobjectinspectMouseMovefunctionfunction (evt) createGlowfunctionfunction (threeObj) createGlowCubeCapsfunctionfunction (threeObj) isJogBtnAttachedbooleanisJogSelectbooleaninitJogfunctionfunction () setupJogfunctionfunction (evt) unsetupJogfunctionfunction () toggleJogfunctionfunction (evt) jogKeyDownfunctionfunction (evt) jogKeyUpfunctionfunction (evt) arrowHelperobjectjogPlaneobjectisJogRaycasterbooleanjogArrowobjectjogArrowCylobjectjogArrowLineobjectjogArrowShadowobjectunsetupJogRaycasterfunctionfunction () setupJogRaycasterfunctionfunction () jogMouseClickfunctionfunction (evt) jogCurPosobjectjogMouseMovefunctionfunction (evt) showShadowbooleansetupCogMenufunctionfunction () onToggleShadowClickfunctionfunction (evt, param) setupFpsMenufunctionfunction () onFpsClickfunctionfunction (evt, param) gridSizenumbersetupGridSizeMenufunctionfunction () onGridSizeClickfunctionfunction (evt, param) setUnitsfunctionfunction (units) requestUnitsfunctionfunction () onUnitsChangedfunctionfunction () request3dObjectfunctionfunction () sceneAddfunctionfunction (obj) sceneRemovefunctionfunction (obj) sceneClearfunctionfunction () btnSetupfunctionfunction () forkSetupfunctionfunction () onPubSubFileLoadedfunctionfunction (txt) errorfunctionfunction (msg) loadFilefunctionfunction (path, callback /* function(contents) */ ) setDetailsfunctionfunction (txt) speedUpfunctionfunction () openGCodeFromPathfunctionfunction (path) openGCodeFromTextfunctionfunction (gcode) lookAtCenterfunctionfunction () isLookAtToolHeadModebooleanlookAtToolHeadfunctionfunction () toCameraCoordsfunctionfunction (position) scaleInViewfunctionfunction () viewExtentsfunctionfunction () stopSampleRunfunctionfunction (evt) pauseSampleRunfunctionfunction () gotoXyzfunctionfunction (data) gotoLinefunctionfunction (data) playNextTweenfunctionfunction (isGotoLine) zheighttestnumberplaySampleRunfunctionfunction (evt) makeTextfunctionfunction (vals) decorateobjectdecorateExtentsfunctionfunction () convertMinsToPrettyDurationfunctionfunction (mins) makeSpritefunctionfunction (scene, rendererType, vals) elementobjectisUnitsMmbooleangetInchesFromMmfunctionfunction (mm) getUnitValfunctionfunction (val) drawAxesToolAndExtentsfunctionfunction () shadowplaneobjectdrawToolheadfunctionfunction () gridobjectgridTurnOfffunctionfunction () gridTurnOnfunctionfunction () drawGridfunctionfunction () drawExtentsLabelsfunctionfunction () axesobjectdrawAxesfunctionfunction () colorBackgroundnumbercreateScenefunctionfunction (element) resizefunctionfunction () mytimeoutobjectrenderFrameCtrnumberfpsCounterIntervalobjectfpsElobjectfpsCounterStartfunctionfunction () fpsCounterOnIntervalfunctionfunction () fpsCounterEndfunctionfunction () setFrameRatefunctionfunction (rate) animEnablebooleananimateDisabledfunctionfunction () animateEnabledfunctionfunction () frameRateDelayMsnumberanimatefunctionfunction () wakeAnimatefunctionfunction (evt) sleepAnimatefunctionfunction () cancelSleepfunctionfunction () isNoSleepModebooleananimNoSleepfunctionfunction () animAllowSleepfunctionfunction () GCodeParserfunctionfunction (handlers)

Parses a string of gcode instructions, and invokes handlers for + idstring"com-chilipeppr-widget-3dviewer"namestring"Widget / 3D GCode Viewer"descstring"Visualize your GCode in 3D by simulating your GCode run or seeing where your run is at in 3D while your CNC operation is in action."urlstring"http://raw.githubusercontent.com/dchote/widget-3dviewer/master/auto-generated-widget.html"fiddleurlstring"http://ide.c9.io/undefined/undefined"githuburlstring"http://github.com/dchote/widget-3dviewer"testurlstring"http://undefined-undefined.c9users.io/widget.html"publishobjectPlease see docs above.subscribeobjectPlease see docs above.foreignSubscribeobjectPlease see docs above.foreignPublishobjectPlease see docs above.initOptionsobjectonSignalSceneReloadedFailAttemptsnumberdomElementobjectsceneobjectobjectobjectcameraobjectcontrolsobjecttoolheadobjectdecorateobjectshadowplaneobjectgridobjectaxesobjectelementobjectparsedLinesobjectlineObjectsobjectsceneCenterobjectsceneBoundariesobjectisUnitsMmbooleananimationLatencyTimerobjectanimationLatencyDelaynumberanimationLatencyDelayDefaultnumberinspectLatencyTimerobjectinspectLatencyDelaynumberjogLatencyTimerobjectjogLatencyDelaynumbermoveAnimatebooleangotoAnimatebooleantweenAnimatebooleaninspectAnimatebooleanfpsCalculationTimerobjectrenderFrameCountnumbertweenobjecttweenHighlightobjecttweenIndexobjecttweenSpeednumbertweenPausedbooleantweenIsPlayingbooleanzheighttestnumbertextFontbooleanisInspectSelectbooleaninspectArrowGrpobjectinspectCurPosobjectinspectLastObjobjectinspectLastDecorateGroupobjectinspectDlgElobjectisJogBtnAttachedbooleanisJogSelectbooleanarrowHelperobjectjogPlaneobjectisJogRaycasterbooleanjogArrowobjectjogArrowCylobjectjogArrowLineobjectjogArrowShadowobjectjogCurPosobjectcolorBackgroundnumbercolorG0numbercolorG1numbercolorG2numbercolorArcnumbercolorActivenumbercolorCompletednumbercolorGhostednumberlineWidthnumberdisableAnimationbooleandisableAAbooleanshowShadowbooleangridSizenumberisLookAtToolHeadModebooleaninitfunctionfunction (initOptions) setupScenePubSubfunctionfunction () onSignalSceneReloadedfunctionfunction () initInspectfunctionfunction () setupInspectfunctionfunction (evt) unsetupInspectfunctionfunction () toggleInspectfunctionfunction (evt) inspectKeyDownfunctionfunction (evt) inspectKeyUpfunctionfunction (evt) inspectMouseClickfunctionfunction (evt) onInspectGotofunctionfunction (evt) createInspectArrowfunctionfunction () inspectMouseMovefunctionfunction (evt) createGlowfunctionfunction (threeObj) createGlowCubeCapsfunctionfunction (threeObj) initJogfunctionfunction () setupJogfunctionfunction (evt) unsetupJogfunctionfunction () toggleJogfunctionfunction (evt) jogKeyDownfunctionfunction (evt) jogKeyUpfunctionfunction (evt) unsetupJogRaycasterfunctionfunction () setupJogRaycasterfunctionfunction () jogMouseClickfunctionfunction (evt) jogMouseMovefunctionfunction (evt) setupCogMenufunctionfunction () setCogMenuStatefunctionfunction () onToggleAAClickfunctionfunction (evt, param) onToggleShadowClickfunctionfunction (evt, param) onToggleAnimationClickfunctionfunction (evt, param) setupGridSizeMenufunctionfunction () onGridSizeClickfunctionfunction (evt, param) setUnitsfunctionfunction (units) requestUnitsfunctionfunction () onUnitsChangedfunctionfunction () request3dObjectfunctionfunction () sceneAddfunctionfunction (obj) sceneRemovefunctionfunction (obj) sceneClearfunctionfunction () btnSetupfunctionfunction () forkSetupfunctionfunction () onPubSubFileLoadedfunctionfunction (txt) errorfunctionfunction (msg) loadFilefunctionfunction (path, callback /* function(contents) */ ) setDetailsfunctionfunction (txt) speedUpfunctionfunction () openGCodeFromPathfunctionfunction (path) openGCodeFromTextfunctionfunction (gcode) lookAtCenterfunctionfunction () lookAtToolHeadfunctionfunction () toCameraCoordsfunctionfunction (position) scaleInViewfunctionfunction () viewExtentsfunctionfunction () stopSampleRunfunctionfunction (evt) pauseSampleRunfunctionfunction () gotoXyzfunctionfunction (data) gotoLinefunctionfunction (data) playNextTweenfunctionfunction (isGotoLine) playSampleRunfunctionfunction (evt) downloadFontfunctionfunction () makeTextfunctionfunction (vals) decorateExtentsfunctionfunction () convertMinsToPrettyDurationfunctionfunction (mins) makeSpritefunctionfunction (scene, rendererType, vals) getInchesFromMmfunctionfunction (mm) getUnitValfunctionfunction (val) drawAxesToolAndExtentsfunctionfunction () drawToolheadfunctionfunction () gridTurnOfffunctionfunction () gridTurnOnfunctionfunction () drawGridfunctionfunction () drawExtentsLabelsfunctionfunction () drawAxesfunctionfunction () createScenefunctionfunction (element) resizefunctionfunction () wakeAnimatefunctionfunction () animatefunctionfunction () GCodeParserfunctionfunction (handlers, modecmdhandlers)

Parses a string of gcode instructions, and invokes handlers for each type of command.

Special handler: -'default': Called if no other handler matches.colorG0numbercolorG1numbercolorG2numbercreateObjectFromGCodefunctionfunction (gcode, indxMax) convertLineGeometryToBufferGeometryfunctionfunction (lineGeometry, color) +'default': Called if no other handler matches.createObjectFromGCodefunctionfunction (gcode, indxMax) convertLineGeometryToBufferGeometryfunctionfunction (lineGeometry, color) diff --git a/auto-generated-widget.html b/auto-generated-widget.html index 8788638..f14b873 100644 --- a/auto-generated-widget.html +++ b/auto-generated-widget.html @@ -10,11 +10,15 @@ + ChiliPeppr's dependency system works as it's based on require.js. -->