Adesh Gupta
912e6f61a9
Fix regression with inability to drag segments using the Path tool's segment mode ( #2850 )
...
Fix segment dragging
2025-07-10 08:51:25 +00:00
Adesh Gupta
ce605acf3a
Make the Path tool's segment drag molding work with linear segments ( #2838 )
...
Fix path tool molding
2025-07-06 04:20:06 -07:00
Adesh Gupta
8b0a27939e
Clean up the Path tool's FSM to move segment molding state into the dragging state ( #2835 )
...
Cleanup molding segments state
2025-07-06 00:39:47 -07:00
Adesh Gupta and Keavon Chambers
49db963ce1
Improve Path tool layer selection behavior using double-click instead of single-click ( #2794 )
...
* Improve path tool layer selection behaviour
* Fix layer selection behaviour
* Fix layer double click selection behaviour
* Code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-07-05 14:17:30 -07:00
Adesh Gupta and Keavon Chambers
391ed34a30
Add segment editing mode to the Path tool ( #2712 )
...
* Segment select mode upto dragging
* Lasso select for segment editing
* Formatting
* Compatibility with point selection mode
* Add delete segment support and drawing from inside of shape
* Add GRS support for selected segments
* Cleanup and add dynamic hints
* Fix double click behaviour and overlays
* Format code
* Fix merge
* Fix Lint
* Fix formatting
* Fix lasso bug
* Code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-06-29 23:19:54 -07:00
Adesh Gupta
579bedd9ff
Fix editor crash when anchor sliding, followup to #2682 ( #2726 )
...
Fix editor crash due to unwrap
2025-06-19 19:11:13 -07:00
Adesh Gupta and Keavon Chambers
f3720bf6f2
Add Pen tool support for starting and ending segment drawing on existing path edges for vector meshes ( #2692 )
...
* Start on segment
* Path tool ending on segment
* Overlays for feature
* Fixed merge build
* Fix overlays
* Code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-06-19 19:01:07 -07:00
Adesh Gupta and Keavon Chambers
781271782c
Add anchor sliding along adjacent segments in the Path tool ( #2682 )
...
* Improved comments
* Add point sliding with approximate t value
* Add similarity calculation
* Numerical approach to fit the curve
* Reliable point sliding for cubic segments
* Fix formatting and clean comments
* Fix cubic with one handle logic
* Cancel on right click and escape
* Two parameter optimization
* Esc/ Right click cancellation
* Code review
* Fix dynamic hints
* Revert selected_points_counts and fix comments
* Code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-06-19 18:59:22 -07:00
Adesh Gupta and Keavon Chambers
f72263f4f8
Add molding segments to the Path tool ( #2660 )
...
* Moulding of cubic bezier
* Implemented falloff with interpolation
* remove conflict
* Move falloff to consts
* Spelling
* Refine falloff param and bug fix
* Code review
* Add colinear disable modes to molding degment feat
* Clean comments and unused code
* Code refactor
* Fix error
* Change colinear toggle behaviour
* Code review
* Remove KeyC feat + Fix overlay
* Dynamic hints in path tool
* Revamp molding logic
* Code review
* Remove unused Bezier algorithms (maybe useful for future reference)
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-06-19 18:55:57 -07:00
Adesh Gupta and Keavon Chambers
33a31b4f17
Fix the Path tool's segment insertion line overlay having hysteresis with distance away from the cursor ( #2677 )
...
* Fix hysteresis in segment insertion
* Update editor/src/messages/tool/common_functionality/shape_editor.rs
* Update editor/src/messages/tool/common_functionality/shape_editor.rs
* Fix insert point overlay
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-06-19 18:53:14 -07:00
Adesh Gupta and Keavon Chambers
b564579362
Make the Path tool only allow selecting points that are visible ( #2668 )
...
* Fix only visible points selection in point selection
* Fix comments
* Remove bug from box selection and lasso
* Code review
* Fix comment
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-05-28 02:24:23 -07:00
Adesh Gupta
3496e22f55
Fix box selection bug in the Path tool where document and viewport space got mixed up ( #2671 )
...
* Fix box selection bug
* Fix all layers selected on paste
2025-05-25 16:33:49 -07:00
Adesh Gupta and Keavon Chambers
da38f672ae
Insert point on segment by clicking once (no more sliding) and Alt+click to delete a segment ( #2495 )
...
* segment overlay change
* Segment split and delete
* Cleanup
* graceful handling of edge cases
* Moved constants to conts.rs and tuned the threshold
* Remove going into another state
* Insert point mode cleanup
* Linting fix
* Code review
* Added hints
* Added field for delete segment
* Change controls and fix too far logic
* Fixes
* Code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-04-30 01:03:24 +00:00
Adesh Gupta and Keavon Chambers
ab39f3f837
Add Path tool support for Alt-dragging an anchor to pull out a fresh equidistant handle pair ( #2496 )
...
* Added initial logic for dragging
* Alt drag stop makes opposite handle back to its position
* Implement new requested behaviour
* Fix sharp point bug
* Apply suggestions from code review
* Add hints
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-04-17 06:05:45 +00:00
Adesh Gupta and Keavon Chambers
550ffc3f7f
Fix box selection erroneously including zero-length handles; fix GRS failing on sharp points ( #2550 )
...
* Fixed box selection selecting zero length handles
* Fix GRS for sharp points
* Apply suggestions from code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-04-13 01:21:36 +00:00
Adesh Gupta and Keavon Chambers
8b0f16e74c
Make GRS rotation (R) angle overlay label show values between -360° and 360° ( #2473 )
...
* Fixes issues
* Revert changes
* Viewing angle using R
* Revert other fix so it can be its own PR
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-04-09 06:15:31 +00:00
Adesh Gupta and Keavon Chambers
4275eaf5bf
Add Path tool support for dragging along an axis when Shift is held ( #2449 )
...
* Initial logic for snapping
* Solved switching of axes
* Solved conflict
* Fixed autopanning issue
* Autopanning issue
* cleared comments
* Code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-03-18 07:57:48 +00:00
Adesh Gupta and Keavon Chambers
3a7d1938b6
Make Ctrl+D duplication interleave each layer like Alt+drag duplication already does ( #2328 )
...
Fixed order of layers on Ctrl D
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-02-28 23:44:13 -08:00
Adesh Gupta and Keavon Chambers
b6cdcba9e8
Fix duplicates not all being selected after Ctrl+D ( #2324 )
...
Fixed selecting all duplicates on Ctrl+D
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-02-27 22:29:26 -08:00
Adesh Gupta and Keavon Chambers
cf2a071fb9
Make the Pen tool extend an endpoint by starting with a colinear, equidistant handle ( #2295 )
...
* Fixed Pen extension having collienar handles
* Reformat a little
* handles being colinear for GRS
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-02-20 13:42:10 +00:00
Adesh Gupta and Keavon Chambers
4fe3462af5
Fixed minor issues related to frontier selection visibility in the Pen/Path tools ( #2291 )
...
* Fixed issues
* Get back selection when abort
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-02-15 01:23:48 -08:00
Adesh Gupta and Keavon Chambers
20a5f71bda
Add Pen and Path tool modes to avoid showing all handles ( #2264 )
...
* Path tool only show frontier overlays
* Implemented all modes for pen and path tool
* Fixed formatting issue
* Changes in selection behaviour of handles
* Selection toggle only on drag not click
* Changed comment
* Code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-02-12 01:30:15 -08:00
Adesh Gupta and Keavon Chambers
12cd0c33a3
Fix copied/duplicated selected layers getting misordered ( #2257 )
...
* fixed duplicates ordering issues on alt drag
* Maintain order while copying
* Code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-02-05 06:59:11 +00:00
Adesh Gupta and Keavon Chambers
133d872a9f
Fix Path tool issue where the selected points could be dragged from afar within the layer interior ( #2260 )
...
Fixed point drag from inside shape
Co-authored-by: Keavon Chambers <keavon@keavon.com >
2025-02-04 11:32:56 +00:00