widget-examples.js

total 0
used 0
limit 0
/* files: head point stage dragging pointlist mouse stroke fps ../point_src/functions/signedNorm.js ../theatre/objects/vectorpoint.js ../theatre/objects/spinplotter.js --- */ addWidget('multi', { fields: { alpha: { value: 0 } , beta: { value: 0 } , charlie: { value: 0 } } }) addButton('button', { label: "Toggle Run" , onclick(){ stage.buttonToggle = !stage.buttonToggle }}) addSliderControlSet({ alpha: { value: 1 } , beta: { value: 22 } , charlie: { value: 15 } }) addSliderControl('Slider', {}) class MainStage extends Stage { // canvas = document.getElementById('playspace'); canvas = 'playspace' mounted(){ this.buttonToggle = true setInterval(()=>{ if(this.buttonToggle) { this.updateMultiWidget() } }, 500) } updateMultiWidget() { updateWidgetValues('multi', { alpha: random.int(0, 1000).toFixed(2) , beta: random.int(0, 1000) , charlie: random.float(-1, 1).toFixed(3) }) } draw(ctx){ this.clear(ctx) this.fps.print(ctx) } } stage = MainStage.go()
Run
Meta Data
imports ()
files ('head', 'point', 'stage', 'dragging', 'pointlist', 'mouse', 'stroke', 'fps', '../point_src/functions/signedNorm.js', '../theatre/objects/vectorpoint.js', '../theatre/objects/spinplotter.js')
unused_keys ('title',)
unknown_keys ()
filepath_exists True
path widget-examples.js
filepath widget-examples.js
clean_files ('../point_src/core/head.js', '../point_src/pointpen.js', '../point_src/compass.js', '../point_src/center.js', '../point_src/point-content.js', '../point_src/pointdraw.js', '../point_src/relative-xy.js', '../point_src/pointcast.js', '../point_src/point.js', '../point_src/stage-resize.js', '../point_src/functions/resolve.js', '../point_src/stage.js', '../point_src/functions/clamp.js', '../point_src/distances.js', '../point_src/protractor.js', '../point_src/text/beta.js', '../point_src/dragging.js', '../point_src/pointlistdraw.js', '../point_src/pointlistgradient.js', '../point_src/pointlistshape.js', '../point_src/pointlistgenerator.js', '../point_src/unpack.js', '../point_src/pointlist.js', '../point_src/pointlistpen.js', '../point_src/events.js', '../point_src/automouse.js', '../point_src/setunset.js', '../point_src/stroke.js', '../point_src/stage-clock.js', '../point_src/text/alpha.js', '../point_src/smooth-number.js', '../point_src/text/fps.js', '../point_src/functions/signedNorm.js', '../point_src/../point_src/random.js', '../point_src/../point_src/./windings.js', '../point_src/../point_src/tethers.js', '../theatre/objects/vectorpoint.js', '../theatre/objects/spinplotter.js')
markdown {'html': '', 'content': 'files:\n head\n point\n stage\n dragging\n pointlist\n mouse\n stroke\n fps\n ../point_src/functions/signedNorm.js\n ../theatre/objects/vectorpoint.js\n ../theatre/objects/spinplotter.js\n---'}