0HyperCube
c54774c4c3
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 15:22:23 -08:00
0HyperCube
0a1717cf77
Transformation cage ( #502 )
...
* Render corners and edges of selection box
* Refactor
* Add drag detection
* Implement the transform handles
* Implement rotation by dragging <40px from bounds
* Refine clustered handle behaviour
* Add cursors
* Add snap angle
* Fix MMB drag whilst in select tool
* Convert calculate_pivot into a seperate function
* rename start_vec to start_offset
* Fix typo
* Remove Undo transaction on <10px mouse move
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2022-02-04 16:46:44 +00:00
mfish33
23b9ce34b9
Layout system implementation and applied to tool options bar ( #499 )
...
* initial layout system with tool options
* cargo fmt
* cargo fmt again
* document bar defined on the backend
* cargo fmt
* removed RC<RefCell>
* cargo fmt
* - fix increment behavior
- removed hashmap from layout message handler
- removed no op message from layoutMessage
* cargo fmt
* only send documentBar when zoom or rotation is updated
* ctrl-0 changes zoom properly
* Code review changes
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2022-01-30 17:53:37 -08:00
0HyperCube
1a4ab0733b
Add cursors and hints to global viewport navigation ( #487 )
...
* Add global nav cursors
* Update hints on global navigation
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2022-01-16 11:46:41 -08:00
Keavon Chambers
ab0a55f6ce
Tweak whitespace around use statements and other lint fixes
2022-01-15 12:55:51 -08:00
Keavon Chambers
b3cf1a42bd
Modify all message enum data to use named struct values, not tuples ( #479 )
...
* Massively reorganize and clean up the whole Rust codebase
* Modify all message enum data to use named struct values, not tuples
2022-01-14 20:54:38 -08:00
Keavon Chambers
40d5960571
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