Commit Graph

13 Commits

Author SHA1 Message Date
Igor Zinken
b47ba5bcd0 Allow drawing operations on scaled layers (#29)
Allow drawing operations on scaled layers
2023-04-16 10:58:09 +02:00
Igor Zinken
d2b581d2ee Active selections now support multiple non-overlapping shapes
* Renamed Selection data structure. Multiple select begins to work
* Saving and loading of multiple selection shapes implemented
* Renamed Document selection properties to avoid confusion
* Renamed and distributed functions between selection and shape utilities
* Fixes to selection toolbox
* Fixed issue with copying across multiple selections
* Final cleanups
2023-03-31 22:10:41 +02:00
Igor Zinken
ee6dd0b556 Migrated all unit tests to TypeScript 2023-03-23 21:24:56 +01:00
Igor Zinken
1f74f36eed Migrate build from Webpack to Vite 2023-03-19 11:49:18 +01:00
Igor Zinken
e57bc163ac Improve performance by moving transform effects from pre-cache to live rendering
* Selection outline is now rendered by interaction pane, not individual layer sprites
* Updated to zCanvas 4.3.1 to fix issue with bounding box detection on rotated content
* Refactored rectangles to always use left and top
* Layer scaling, rotating and mirroring is now a fast, synchronous operation
* Snapshots are now always of rendered layer content
2022-02-13 09:37:45 +01:00
Igor Zinken
f875a1fc92 Invisible layers are excluded from alignment list 2021-09-13 20:39:32 +02:00
Igor Zinken
1c66d77123 Implemented guidelines and snap functionality 2021-09-11 19:48:08 +02:00
Igor Zinken
60b87f6626 Separated math utility into area specific functions. Decluttered LayerSprite selection logic 2021-01-10 22:16:45 +01:00
Igor Zinken
e307f6374b Fixed issue where rotated content on Safari would sometimes not render 2021-01-10 15:15:11 +01:00
Igor Zinken
6363a6b753 Selections can now be moved using keyboard arrows 2021-01-03 11:21:48 +01:00
Igor Zinken
f78ac52655 Added free-form selections 2020-12-23 12:58:05 +01:00
Igor Zinken
c291f1731f Made max zoom scale consistent with the maximum supported canvas size in megapixels, regardless of screen resolution or source image size 2020-12-19 14:21:36 +01:00
Igor Zinken
5c6b203f9c Made zooming consistent with ideal document scale for window size. Added keyboard shortcut for zoom 2020-12-19 12:47:33 +01:00