mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
add io mask rotation snapping (#4214)
This commit is contained in:
parent
47c1094195
commit
1f3d03f7f8
1 changed files with 3 additions and 0 deletions
|
@ -106,6 +106,9 @@ function initCanvas(): fabric.Canvas {
|
|||
fabric.Object.prototype.cornerStyle = "circle";
|
||||
fabric.Object.prototype.cornerStrokeColor = "#000000";
|
||||
fabric.Object.prototype.padding = 8;
|
||||
// snap rotation around 0 by +-3deg
|
||||
fabric.Object.prototype.snapAngle = 360;
|
||||
fabric.Object.prototype.snapThreshold = 3;
|
||||
// disable rotation when selecting
|
||||
canvas.on("selection:created", () => {
|
||||
const g = canvas.getActiveObject();
|
||||
|
|
Loading…
Reference in a new issue