Commit 6421e0cf authored by Christian Winter's avatar Christian Winter

use num0 to zoom to selection. prepared to use F to fill selection

parent f3d54834
......@@ -287,6 +287,10 @@ class Utilities {
return Vector2.distance(p, center) <= radius;
}
static fill(points) {
}
static makeCircle(center, radius, segments) {
}
......
......@@ -58,6 +58,8 @@
this.ArrowUp = 38;
this.ArrowDown = 40;
this.Insert = 45;
this.Num0 = 96;
this.Num1 = 97;
this.Num2 = 98;
......
......@@ -103,7 +103,11 @@
Exporter.renderPNG();
break;
case Key.F: // F // TODO improve. Camera.zoom to selection / Camera.zoom fit / etc ...
case Key.NumComma:
Utilities.fill(Selection.getAllSelectedPoints());
break;
case Key.Num0:
case Key.Insert: // if numpad is disabled
let size = Preferences.artBounds.size;
let x = canvas.width / size.x;
let y = canvas.height / size.y;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment