2615d86934
Add PTZ support for flipping the canvas ( #2394 )
...
* feat: flip canvas
* move canvas_flipped from NavigationMessageHandler to PTZ
* fix artboard overlay flip
* Code review
* Improvements
---------
Co-authored-by: hypercube <0hypercube@gmail.com >
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-05-18 06:16:00 +00:00
Sidharth-Singh10
2fc4896d01
Add tests for the Freehand tool ( #2599 )
...
* Add tests for freehand tool
* add test: line weight affects stroke width
* refactor
2025-04-30 19:53:59 +00:00
Sidharth-Singh10 and Keavon Chambers
0c3cae2ba5
Add Spline tool tests for drawing within a transformed artboard ( #2575 )
...
* Add Spline tool tests for drawing within a transformed artboard
* Refactor spline tool test to use click_tool and add draw_spline helper method
* refactor asserting point positions
* Fix decimal fomat
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-04-25 14:01:48 +00:00
Sidharth-Singh10
6196dbff95
Add Gradient tool test for select and delete removes a stop ( #2571 )
...
* Add Gradient tool test for select and delete removes a stop
* refactor fills and double click into functions
* refactor
2025-04-19 16:00:59 -07:00
Sidharth-Singh10
73d12bcb82
Add tests for Spline tool to support continuing a previously drawn spline ( #2591 )
...
* Add tests for Spline tool to support continuing a previously drawn spline
* refactor
2025-04-18 22:24:35 +00:00
Sidharth-Singh10
9acc23d0cc
Add Gradient tool test for dragging the stop rearranges the ordering ( #2565 )
2025-04-16 13:38:26 +00:00
Sidharth-Singh10
98558c74f4
Add Gradient tool test for dragging an endpoint setting the correct point in the viewport ( #2564 )
...
* Add Gradient tool test for dragging an endpoint sets the correct point in the viewport
* add canvas_zoom and transformset to verify correct viewport-space behavior
2025-04-14 19:25:07 +00:00
Sidharth-Singh10 and James Lindsay
e4d998a400
Add test for double clicking to insert a gradient stop ( #2527 )
...
gradient tool test: Double click to insert a gradient stop
Co-authored-by: James Lindsay <78500760+0HyperCube@users.noreply.github.com >
2025-04-11 14:26:07 +00:00
Sidharth-Singh10 and Keavon Chambers
b38d725d98
Add input hints to interactions in the node graph ( #2415 )
...
* node_graph: add hints in status bar
* allow in-progress interactions
* Fix node graph hints not restoring after panning operation
* Code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-04-09 05:50:48 +00:00
Sidharth-Singh10 and Keavon Chambers
3c1ec45188
Add option to adjust viewport zoom rate in the preferences dialog ( #2420 )
...
* zoom rate preference
* Add generic range mapping functions for improved reusability
* cleanup
* Map zoom slider's default value of 50 to the original zoom rate (0.005)
* use . instead of .0 for whole-number floats
* Refactor zoom rate mapping to use a fixed reference point and adjustable curve steepness
* Code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-04-08 07:51:46 +00:00
Sidharth-Singh10 and Keavon Chambers
3c425d9a71
Fix Gradient tool always re-selecting its end point after any click/drag ( #2472 )
...
fix gradient tool incorrectly selecting end point on pointer up
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-04-06 15:14:19 -07:00
Sidharth-Singh10 and Keavon Chambers
e44c460cf8
Implement initial infrastructure for the Spline tool to join itself with other splines and paths ( #2269 )
...
* merge 2 spline layers
* merge path layers with spline_tool
* merge path and spline path with spline_tool
* handle line layers
* Code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-02-13 02:43:00 -08:00
Sidharth-Singh10 and Keavon Chambers
b60af758a9
Make joining path endpoints across layers work to merge the two layers ( #2245 )
...
* move merge_layers function to graph_modification_utils
* merge_layer before segment insertion
* Tidying up
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-02-05 07:25:54 +00:00
Sidharth-Singh10 and Keavon Chambers
f462963a36
Add joining of path endpoints with Ctrl+J in the Path tool ( #2227 )
...
* feat(path-tool): ctrlJ to join endpoints
* Code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-01-31 05:43:44 +00:00
Sidharth-Singh10 and Keavon Chambers
3048466e86
Remove errant line following cursor in snap overlays during constrained line drawing ( #2206 )
...
* fix(line-tool): disable snap overlays during constrained drawing
* Update editor/src/messages/tool/tool_messages/line_tool.rs
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-01-24 14:10:01 -08:00
Sidharth-Singh10 and Keavon Chambers
f225756655
Fix text layer getting deselected after clicking out of Text tool interactive editing ( #2144 )
...
* properties panel remains active when user edits text layer
* Keep text layers selected after editing
* Update editor/src/messages/portfolio/document/document_message_handler.rs
* Delete Empty Text Layer on Escape or Right Click
* Fix: delete empty text layer on right click
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2024-12-31 14:28:56 -08:00
Sidharth-Singh10
3b503ccde2
Bezier-rs: Make rectangle constructor produce linear segments ( #2109 )
...
* fix(bezier-rs): new_rect constructor create linear segments
* refactor
2024-11-18 21:10:08 +00:00