Add custom SVG cursors and update cursor handling
- Introduced new SVG cursor assets: cross, default, export, move, open, pen, and pointing. - Implemented SCSS styles for cursor usage in the scene container, defining specific cursors for different modes (draw, pointer, pen, measure, hand). - Enhanced cursor functionality by adding a utility function to handle canvas cursor changes based on user actions, mapping specific actions to corresponding cursor styles.
This commit is contained in:
4
app/src/assets/cursors/default.svg
Normal file
4
app/src/assets/cursors/default.svg
Normal file
@@ -0,0 +1,4 @@
|
||||
<svg width="12" height="17" viewBox="0 0 12 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M0 16.8284L4.5 11.5L11.4142 11.4142L0 0V16.8284Z" fill="white"/>
|
||||
<path d="M1 14.4141V2.41406L9 10.4141L4 10.5L1 14.4141Z" fill="black"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 249 B |
Reference in New Issue
Block a user