mfish33
a6c91204d6
Event broadcasting system ( #692 )
...
* broadcast system implemented but not everywhere
* unused types
* code review with keavon
* - optional signal mappings
- tool.rs simplification
* Cleanup
* reduced code duplication in `tool.rs`
* ran cargo fmt
* code review changes
* fix merge error
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-07-03 08:06:27 -06:00
0HyperCube
020f700c92
Image and text bug fixes ( #685 )
...
* Image and text bugfixes
* Mark only the required layer types as dirty
* Fix doctest
* Disable selection if empty
* Cleanup naming
* Simplify cache deleting on export
* Minor css style change
* Nit
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-06-30 02:18:01 +01:00
mfish33
a26a0ddfcf
Implement viewport culling ( #667 )
...
* culling is working
* fixed tests
* Ready for review
* cleanup
* code review
* Fix import
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-06-10 14:38:42 -07:00
0HyperCube
8923b68e30
Refactor font loading from per-document to the portfolio ( #659 )
...
* Cleanup default font loading
* Refactor fonts
* Fix menulist mouse navigation
* Format
* Formatting
* Move default font into consts.rs
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-05-27 00:27:33 +01:00
mfish33
e01f0081a9
Add properties panel entries for artboards ( #572 )
...
* Artboards can have properties
* fix crash when renaming artboards
* moved target document to utility types
* moved import and added test for file version information
* fixed missing import
* fix error from merging
* - typed properties message handler data
- removed name from WidgetRow
* clippy warnings
* artboards have seperate properties section
* - color input can be forced to have selection
- crop tool shows on switch
- select tool shows on switch
* variable renamed
* change to use PropType<boolean> instead of PropType<Boolean>
* Add an artboard icon
* Add the "Delete Artboard" hint
* fix unselect glitch
* even better
* Remove the Transform properties group
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-04-20 18:42:32 -07:00
0HyperCube
93dffb8741
Gradient Tool ( #546 )
...
* Refactor to support fill enum & svg defs
* Init tool
* Fix advertise
* Gradient tool click and drag
* Overlays
* Drag overlays
* Cleanup
* Fix transform on elongated shapes
* Snap rotate
* Snapping
* Add hints
* Rename to solid
* Code review changes
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-02-14 23:07:11 +00:00
0HyperCube
011f32395e
Allow deleting artboards ( #533 )
2022-02-10 20:03:14 +00:00
0HyperCube
45edeb2a2b
Implement the Crop Tool for artboard resizing ( #519 )
...
* Extract transformation cage to a seperate file
* Hook up tool
* Implement resize
* Draw artboards
* centre and constrain
* Bounding box is rotated
* Fix transform handle positions for artboard
* Drag layers
* Snapping
* Fix imports
* Cleanup
* Remove allocation from bounding_boxes
* Round artboard size and position
* Hints
* Fix rotated transform cage
* Code review changes
* Hints changes
Co-authored-by: Dennis <dennis@kobert.dev>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-02-09 23:22:23 +00:00
Keavon Chambers
3038d72226
Fix sorting of message enum variants
2022-01-16 13:21:05 -08:00
Keavon Chambers
56599db753
Tweak whitespace around `use` statements and other lint fixes
2022-01-15 12:55:51 -08:00
Keavon Chambers
f48d4e1884
Massively reorganize and clean up the whole Rust codebase ( #478 )
...
* Massively reorganize and clean up the whole Rust codebase
* Additional changes during code review
2022-01-14 14:58:08 -08:00
Keavon Chambers
011c2be26d
Sort messages and message handlers
2022-01-12 16:17:40 -08:00
Keavon Chambers
6c639270ae
Standardize FrontendMessage message names
2022-01-12 14:16:13 -08:00
mfish33
9d2718006f
Fix bounds with artboards for zoom-to-fit and scrollbar scaling ( #473 )
...
* - document load keeps postition
- zoom to fit
- scrollbars use artboard dimensions
* - review comments
- svg export uses all artboard bounds
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-01-09 15:52:55 -08:00
mfish33
439418896a
Implement artboards and document version enforcement ( #466 )
...
* - graphite document artboard implementation
- autosave document load hitch fix
- Autosave will delete saved files when graphite document version changes
* formating
* - top left 0,0
- fixed hitch on first document
- vue calls first render
* Revert
* Merge branch 'master' into artboards
* Small bug fixes and code review tweaks
Co-authored-by: Oliver Davies <oliver@psyfer.io>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2022-01-08 07:50:08 -08:00