Commit Graph
7 Commits
Author SHA1 Message Date
Henry Sloan 11725d9abd Change tool option kinds to PascalCase (#292) 2021-07-23 17:47:55 -04:00
Henry Sloan 97f97480a2 Implement tool messaging and shape flipping (#288) 2021-07-22 16:25:42 -04:00
Henry Sloan 5446fa3553 Options bar widgets for tools to control tool behavior (#283)
* Add JSON-backed options widget

* Add initial tool settings messaging to backend

* Add shape side selection with JSON deserialization

* Enforce minimum number of n-gon sides

* Make tool settings JSON errors safer

* Make tool settings JSON errors safer

* Refactor ToolOptions to ToolSettings

* Revert "Refactor ToolOptions to ToolSettings"

This reverts commit 651161fd16.

* Refactor all instances of "settings" to "options"

* Fix names and formatting

* Rearrange ToolOptions data to enforce types
2021-07-21 01:07:48 -04:00
Henry Sloan 546bb16480 Pass layer metadata to tools (#277) 2021-07-16 02:38:46 -04:00
Henry Sloan e7699bbcbd Transform nudge coordinates to viewport space (#264)
* Transform nudge coordinates to viewport space

* Refactor nudge transform for clarity
2021-07-15 02:05:46 -04:00
Henry Sloan 363b9c7ffa Implement fill tool (#254)
* Implement fill tool

* Add fill tool shortcut

* Add getters and setters to styles

* Make fill tool act on the topmost layer clicked

* Refactor fill operation

* Refactor and unify selection tolerance

* Add mark_as_dirty function

* Fix getter names
2021-07-14 03:49:12 -04:00
Henry Sloan 1454be24d3 Implement nudging selected layers with arrow keys (#245)
* Implement nudging selected layers with arrow keys

* Normalize diagonal nudges and add constants

* Replace sqrt(2.0) with a constant

* Remove normalization of diagonal movement
2021-07-11 22:22:26 -04:00