MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / update

Method update

examples/commodetto/mini-drag/main.js:128–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 this.update();
127 }
128 update() {
129 render.begin(this.bounds.x, this.bounds.y, this.bounds.w, this.bounds.h);
130 this.draw();
131 render.end();
132 }
133}
134
135let dragger = new Dragger((render.width - button.width) >> 1, (render.height - (button.height >> 1)) >> 1, "Drag Me", button);

Callers 2

onTouchBeganMethod · 0.95
onTouchEndedMethod · 0.95

Calls 3

drawMethod · 0.95
beginMethod · 0.65
endMethod · 0.65

Tested by

no test coverage detected