pairs-and-siblings.js

total 0
used 0
limit 0
/* files: head stage pointlist point mouse dragging ../point_src/extras.js ../point_src/math.js ../point_src/point-content.js ../point_src/events.js ../point_src/functions/clamp.js ../point_src/dragging.js ../point_src/setunset.js ../point_src/stroke.js ../point_src/split.js ../point_src/curve-extras.js ../point_src/protractor.js ../point_src/relative.js ../point_src/automouse.js */ class MainStage extends Stage { // canvas = document.getElementById('playspace'); canvas = 'playspace' mounted(){ this.pointA = this.center.copy().update({ radius: 100}) this.pointB = this.center.copy().update({radius: 100}) this.pointA.x -= 150 this.pointB.x += 150 this.pointsA = this.pointA.split(20).pairs(0) this.pointsB = this.pointB.split(10).siblings(0) // this.points = this.point.split(4).pairs() this.dragging.add(this.pointA, this.pointB, this.pointsA, this.pointsB) this.pointsA.forEach( pl => this.dragging.add(...pl)) this.pointsB.forEach( pl => this.dragging.add(...pl)) } draw(ctx){ this.clear(ctx) this.pointA.pen.indicator(ctx) this.pointB.pen.indicator(ctx) this.pointsA.forEach(pl=>{ pl.pen.indicators(ctx) pl.pen.line(ctx) }); this.pointsB.forEach(pl=>{ pl.pen.indicators(ctx) pl.pen.line(ctx) }) // this.points.pen.indicators(ctx) } } stage = MainStage.go()
Run
Meta Data
imports ()
files ('head', 'stage', 'pointlist', 'point', 'mouse', 'dragging', '../point_src/extras.js', '../point_src/math.js', '../point_src/point-content.js', '../point_src/events.js', '../point_src/functions/clamp.js', '../point_src/dragging.js', '../point_src/setunset.js', '../point_src/stroke.js', '../point_src/split.js', '../point_src/curve-extras.js', '../point_src/protractor.js', '../point_src/relative.js', '../point_src/automouse.js')
unused_keys ('title',)
unknown_keys ()
filepath_exists True
path pairs-and-siblings.js
filepath pairs-and-siblings.js
clean_files ('../point_src/core/head.js', '../point_src/stage-resize.js', '../point_src/functions/resolve.js', '../point_src/stage.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/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/events.js', '../point_src/automouse.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/extras.js', '../point_src/math.js', '../point_src/setunset.js', '../point_src/stroke.js', '../point_src/split.js', '../point_src/curve-extras.js', '../point_src/relative.js')
markdown {'html': '', 'content': 'files:\n head\n stage\n pointlist\n point\n mouse\n dragging\n ../point_src/extras.js\n ../point_src/math.js\n ../point_src/point-content.js\n ../point_src/events.js\n ../point_src/functions/clamp.js\n ../point_src/dragging.js\n ../point_src/setunset.js\n ../point_src/stroke.js\n ../point_src/split.js\n ../point_src/curve-extras.js\n ../point_src/protractor.js\n ../point_src/relative.js\n ../point_src/automouse.js'}