You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 21, 2026. It is now read-only.
// rectangularconstrectSelectionTool=layer.tools.get("RectangularSelectionTool");constselection=rectSelectionTool.createSelection({from: number;
to: number;
width: number;
height: number;});// roundedconstcircularSelectionTool=layer.tools.get("RoundedSelectionTool");constselection=circularSelectionTool.createSelection({from: number;
to: number;
radius?: number;});// add polygonal selection??// inverse selectionselection.inverse();selection.copy();// copy the selection config which can be used in other layers laterselection.deselect();// deselect?// register selection to the canvasselection.make();// we can now do different stuff with this selection such as copying pixels inside the selection/eraser, etc...
Rough design plan
Perhaps, Path2D API would be helpful for this?