Graphite/frontend
asyncth 0515cc4eca Set the mouse cursor in the canvas based on the current tool and its state (#480)
* Add FrontendMouseCursor and DisplayMouseCursor

* Add update_cursor method to the Fsm trait and implement it for all tools

* Rename DisplayMouseCursor to UpdateMouseCursor

* Add 'To CSS Cursor Property' transform decorator and change the mouse cursor in the canvas based on the current tool and its state

* Implement update_cursor for Navigate tool properly

* Keep the cursor when dragging outside of the canvas

* Change the mouse cursor to 'zoom-in' when LMB dragging on canvas with Navigate tool

* Rename FrontendMouseCursor to MouseCursorIcon

* Rename 'event' to 'e' and replace v-on with @

* Change the definition of the MouseCursorIcon type in TS

* Replace switch with dictionary look-up

* Move the definition of MouseCursorIcon closer to where it's used
2022-01-16 12:57:03 +05:00
..
assets Implement input hints based on the active tool state (#388) 2021-12-24 01:46:03 -08:00
public Rework wasm initialization and reduce global state (#379) 2021-12-20 07:37:19 +01:00
src Set the mouse cursor in the canvas based on the current tool and its state (#480) 2022-01-16 12:57:03 +05:00
wasm Tweak whitespace around `use` statements and other lint fixes 2022-01-15 12:55:51 -08:00
.eslintrc.js Major frontend code cleanup (#452) 2022-01-02 06:00:02 -08:00
.gitignore Auto-generate third-party license notices (#370) 2021-09-06 06:57:35 -07:00
package-lock.json Upgrade node packages (#413) 2021-12-20 13:09:24 -08:00
package.json Add `npm start` script alias for `npm run serve` 2022-01-12 06:14:32 -08:00
tsconfig.json Add the Help > About Graphite dialog with build info 2021-12-16 02:31:41 -08:00
vue-svg-loader.js Replace vue-svg-loader dependency with simple JS file (fixes a security alert) (#389) 2021-11-01 00:14:31 -07:00
vue.config.js Remove Charcoal references from the code for now 2022-01-12 03:56:28 -08:00