onclick-example.js

total 0
used 0
limit 0
/* files: head ../point_src/pointpen.js ../point_src/pointdraw.js ../point_src/compass.js ../point_src/point.js stage mouse --- */ class MainStage extends Stage { // canvas = document.getElementById('playspace'); canvas = 'playspace' mounted(){ this.point = new Point(100, 100, 20) // this.events.wake() } onClick(ev) { this.point.copy(Point.from(ev)) } draw(ctx){ this.clear(ctx) this.point.pen.fill(ctx, '#880000') } } stage = MainStage.go(/*{ loop: true }*/)
Run
Meta Data
imports ()
files ('head', '../point_src/pointpen.js', '../point_src/pointdraw.js', '../point_src/compass.js', '../point_src/point.js', 'stage', 'mouse')
unused_keys ('title',)
unknown_keys ()
filepath_exists True
path onclick-example.js
filepath onclick-example.js
clean_files ('../point_src/core/head.js', '../point_src/pointpen.js', '../point_src/pointdraw.js', '../point_src/compass.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/events.js', '../point_src/automouse.js')
markdown {'html': '', 'content': 'files:\n head\n ../point_src/pointpen.js\n ../point_src/pointdraw.js\n ../point_src/compass.js\n ../point_src/point.js\n stage\n mouse\n---'}