dartfmt
This commit is contained in:
parent
223f831196
commit
6ba0ca55cb
6 changed files with 43 additions and 15 deletions
|
|
@ -20,7 +20,7 @@ class SimulationComponent implements OnInit {
|
|||
html.CanvasElement canvas = html.CanvasElement()..id = "simulation";
|
||||
html.querySelector("#simulation")..append(canvas);
|
||||
canvas.width = 500;
|
||||
canvas.height= 500;
|
||||
canvas.height = 500;
|
||||
|
||||
canvas.context2D.setFillColorRgb(200, 0, 0);
|
||||
canvas.context2D.fillRect(0, 0, canvas.width, canvas.height);
|
||||
|
|
@ -28,7 +28,7 @@ class SimulationComponent implements OnInit {
|
|||
canvas.context2D.fillText('''
|
||||
If you see this\n
|
||||
the app is broken :(
|
||||
''', canvas.width/2-50, canvas.height/2);
|
||||
''', canvas.width / 2 - 50, canvas.height / 2);
|
||||
engineService.create(canvas);
|
||||
|
||||
html.window.animationFrame.then(animFrame);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue