Remove Debug Print Statements

This commit is contained in:
Marty Oehme 2018-07-24 15:41:26 +02:00
parent 46150e3c34
commit e0b1d760de
2 changed files with 0 additions and 6 deletions

View file

@ -15,7 +15,6 @@ var _start = () => html.window.requestAnimationFrame(eventloop);
// This is what ticks every frame of the animation. // This is what ticks every frame of the animation.
void eventloop(currentTime) { void eventloop(currentTime) {
print(currentTime.toString());
ctx.setFillColorRgb(rng.nextInt(255), rng.nextInt(255), rng.nextInt(255)); ctx.setFillColorRgb(rng.nextInt(255), rng.nextInt(255), rng.nextInt(255));
int BRICKSIZE = (el.width ~/ GRIDNUM); int BRICKSIZE = (el.width ~/ GRIDNUM);
int x = rng.nextInt(GRIDNUM) * BRICKSIZE; int x = rng.nextInt(GRIDNUM) * BRICKSIZE;
@ -50,7 +49,6 @@ void _demoSetup() {
_clear(); _clear();
html.querySelector('#basic_start').onClick.listen((e) { html.querySelector('#basic_start').onClick.listen((e) {
print('started');
_stop(); _stop();
_start(); _start();
}); });

View file

@ -47,12 +47,10 @@ void main() {
void appendToDOM(Example example) { void appendToDOM(Example example) {
querySelector(example.query).append(example.canvas); querySelector(example.query).append(example.canvas);
example.canvas.onClick.forEach(activate); example.canvas.onClick.forEach(activate);
print("${example.query} appended to DOM");
} }
void removeFromDOM(Example example) { void removeFromDOM(Example example) {
querySelector(example.query).children.clear(); querySelector(example.query).children.clear();
print("${example.query} removed from DOM");
} }
void resetExample(Example ex) { void resetExample(Example ex) {
@ -87,8 +85,6 @@ void createPlaceholder(Example ex) {
// Draw Text // Draw Text
ctx.fillText(ex.name, c.x - ctx.measureText(ex.name).width / 2, c.y - 50); ctx.fillText(ex.name, c.x - ctx.measureText(ex.name).width / 2, c.y - 50);
print("${ex.query} placeholder created");
} }
void activate(MouseEvent e) { void activate(MouseEvent e) {