0SlowPoke0
2e4fb95dea
Add Path tool support for G/R/S rotation and scaling with a single selected handle ( #2180 )
...
* grab_scale_path and backspace for pen
* minor improvements and fixes
* code-review changes
* Avoid more nesting, and other code cleanup
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2025-01-15 08:37:02 +00:00
Keavon Chambers
9ad6c31483
Remove blob URL dead code and clean up more frontend code ( #2199 )
2025-01-14 13:08:47 -08:00
Keavon Chambers
07601a5c6c
Improve snapping with better snap target names, tooltips, cleaner overlay labels, code cleanup
2025-01-09 19:03:14 -08:00
Keavon Chambers
9eb544df74
Rename "options/top bar" terminology to "control bar" and update comments
2025-01-07 17:33:45 -08:00
Nitish Choudhary
66357540bb
Add max width/height to text layers and draggable text boxes to the Text tool ( #2118 )
...
* Make progress in text tool
* Add line_width to gcore and gstd
* minor fix
* Dragging sets line_width correctly
* Get draw overlay to work
* Typo fix
* Make progress in text tool
* Add line_width to gcore and gstd
* minor fix
* Dragging sets line_width correctly
* Get draw overlay to work
* Typo fix
* Improve text bounding box
* Add toggle for editing line width
* Take absolute value of drag
* Fix optional properties
* Code review
* Attempt to add box height and abort with keys
* Attempt to add key modifiers and snap manager
* Use resize for improved dragging
* Refactor typesetting configuration into a struct
* Fix missing px unit in frontend
* Remove lines on rendered text
* Fix backwards compatibility
* Refactor lenient slection as an associate function in tool data
* Add dashed quad to text nodes
* Use correct names for max height and width
* Additional renames and reorder
* ReResolve conflict
* Code review and improvements
---------
Co-authored-by: hypercube <0hypercube@gmail.com>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-12-31 20:50:47 -08:00
Dennis Kobert
1639a2afba
Parse doc comments on node parameters ( #2163 )
...
Parse doc comments from node arguments
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-12-28 12:15:49 +00:00
Keavon Chambers
b81f48385a
Fix several bugged vector-related nodes
2024-12-26 16:36:45 -08:00
Jacin Yan
3423c8ec13
New node: Math ( #2121 )
...
* 2115 IP
* Initial implementation of Expression node
* Register Expression Node
* Add Expression DocumentNode Definition
* DocumentNodeImplementation::Expresssion in guess_type_from_node
* Move expression.rs to graphene-core
* WIP: Investigating 'exposed' & 'value_source' params for Expression property
* Node graph render debug IP
* Single input can change node properties; complex debug IP
* Fix epsilon in test
* Handle invalid expressions in expression_node by returning 0.0
* Run cargo fmt
* Set the default expression to "1 + 1"
* Hardcode the A and B inputs at Keavon's request
* Rename and clean up UX
* Move into ops.rs
---------
Co-authored-by: hypercube <0hypercube@gmail.com>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-12-17 07:08:14 +00:00
Gulshan1-3
79b4f4df7b
Add dot product node ( #2126 )
...
* dot product node
* dot product node
* cross product node
* formatting n deleted comments
* name changed
* name changed
* cross product removed
* Minor code style changes
---------
Co-authored-by: hypercube <0hypercube@gmail.com>
2024-12-16 20:17:51 +00:00
Paul Fornage
287ef26f64
Fix SVG viewBox
capitalization in renderer ( #2131 )
...
fix `viewBox` capitalization
2024-12-12 20:42:41 +00:00
James Lindsay
fc0cf604df
Update some dependencies ( #2134 )
...
* Update some dependencies
* Update to action v2
* Fix for v2
2024-12-12 18:28:49 +00:00
James Lindsay
99ac7238fc
Fix bitmap bounding box ( #2122 )
2024-12-04 21:28:40 +00:00
James Lindsay
e3bb11ec1b
Fix clippy lints ( #2119 )
2024-11-29 22:58:49 +00:00
Keavon Chambers
d649052255
Upgrade and document the math operation nodes
2024-11-09 23:23:25 -08:00
Keavon Chambers
de366f9514
Add Brush tool warning; move font list loading to document creation time
2024-11-09 12:27:09 -08:00
Keavon Chambers
457619794b
Improve nudging when tilted and add Artboard tool nudge resizing; disable menu bar entries when no layer is selected ( #2098 )
...
* Make nudging follow a tilted viewport
* Add artboard nudge resizing
2024-11-08 16:16:20 -08:00
James Lindsay
320d030c08
Fix the spline node algorithm to be continuous across start/end points ( #2092 )
...
* Simplify spline node implementation using stroke_bezier_paths
* Improve closed splines
* Code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-11-07 00:46:45 -08:00
James Lindsay
c3b526a46f
Fix Bevel node crash with zero-length segments ( #2096 )
...
Fix bevel with zero length segment
2024-11-07 00:08:09 -08:00
Dennis Kobert
35f7cfac80
Parse description from node doc comments ( #2089 )
...
* Parse description from node doc comments
* Add node description tooltips
* Code review
---------
Co-authored-by: Adam G <adamgerhant@gmail.com>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-11-03 14:57:20 -08:00
Keavon Chambers
7d86bf4abf
New node: Jitter Points
2024-11-02 16:37:27 -07:00
Keavon Chambers
4c9ab2d50b
New nodes: "Clamp", "To U32", and "To U64" ( #2087 )
...
* New nodes: "Clamp", "To U32", and "To U64"
* Add name
2024-11-02 03:20:02 -07:00
Keavon Chambers
3f17e83e80
Improve Sample Points, Scatter Points, and Splines from Points to include segments and work with subpaths ( #2085 )
2024-11-01 12:44:05 -07:00
Daragh
018e9839f8
Add Path tool support for the Tab key swapping to dragging the opposite handle ( #2058 )
...
* feat: tab alternates between handles
* fix: handle hints, remove anchor to handle switch
Added specific handle hints,
Can no longer switch to handle if just anchor is selected
typo fix
* fix: no longer deselect on esc/rclick
* feat: hides cursor when switching
A pointerlock implementation would be ideal in the future to keep the screen from panning,
* fix: tidy up dynamic tool hints
switch colinear to V
* fix: can no longer hide cursor if anchor selected
remove debug statement
* fix: clippy
* Solve some issues and remap V to C to toggle colinear
* Cleanup + change equidistant key from Shift to Alt
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-10-30 02:48:20 -07:00
adamgerhant
ff8fec6eca
Allow the Path tool to edit an upstream path even if there's a type conversion midway ( #2055 )
...
Remove type check when iterating upstream
Convert to doc comment
2024-10-26 18:39:48 +00:00
James Lindsay
5aa6716910
Add a node insertion button and layer renaming from the Properties panel ( #2072 )
...
* Add node button
* Improve css a bit
* Add layer renaming to the Properties panel and move New Layer to that, plus add unpinning to properties sections
* Add tooltip
* Re-add layer itself in listing
* Final code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-10-25 23:58:34 -07:00
Mohamed Osama
3c839ffd2b
Clean up old usages of NodeId(generate_uuid())
by replacing it with NodeId::new()
( #2009 )
...
Replace all `NodeId(generate_uuid())` with `NodeId::new()`
2024-10-25 19:43:46 -07:00
James Lindsay
dae6b2f239
New node: Bevel ( #2067 )
...
* Bevel node
* Fix clippy lints
* Prevent negative values
* Rename flipped() -> reversed()
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-10-25 19:25:41 -07:00
James Lindsay
7fc0a593c8
Fix gradient render transforms with Vello ( #2059 )
...
Fix vello gradient transform
2024-10-26 00:12:24 +00:00
adamgerhant
fd20d51e85
Fix various crashes and bugs ( #2075 )
...
* Fix offset brush tool
* Fixes
2024-10-25 16:54:37 -07:00
Dennis Kobert
3e0178a032
Add switch node and fix log to console node ( #2064 )
...
* Add switch node and fix log to console node
* Formatting
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-10-25 16:30:02 -07:00
adamgerhant
6b1356fe13
Allow multiple top output wires to come from layers ( #2049 )
...
* Allow multiple outputs from layer
* Stable Ids for Flatten Vector Elements
* Clippy
2024-10-25 22:32:31 +00:00
Keavon Chambers
a395fbf063
Fix/suppress new Clippy warnings introduced in Rust 1.82
2024-10-25 11:14:51 -07:00
James Lindsay
c3a3c4c907
Allow the Fill and Stroke nodes to work on groups ( #2046 )
...
* Add the apply style trait for generalised application of styles
* Fix Clippy warn
* Use existing trait
* Remove unnecessary lifetimes
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-10-16 16:06:53 -07:00
adamgerhant
e09f5ecaec
Make Copy to Points and (Circular) Repeat and nodes output group data, and add flattening nodes ( #2011 )
...
* Output group from repeat, add flatten vector elements
* Fix tests
* Fix demo artwork
* Output group from copy to points, add repeat for graphic groups, fix editor freeze on render fail
* Restore painted dreams
* WIP: Fix demo artwork
* Fix demo artwork, add ungroup node
* Incorrect scaling
* fix test
* Fix demo art
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-10-14 12:39:28 -07:00
James Lindsay
d6f46f73da
Factor in artboard clipping to the click target x-ray function ( #2028 )
...
* Add clipping to the click xray function
* Clip area rays as well
* Code review nits
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-10-12 23:38:17 +00:00
James Lindsay
3b0e9587eb
Update Wasm dependencies to fix WebGPU spec change crash in Firefox with Vello ( #2027 )
...
* Update wasm deps
* Bump wasm-bindgen and fix the depricated methods
2024-10-12 14:28:39 -07:00
Keavon Chambers
f7d83d2632
New node: Offset Path ( #2030 )
...
* New node: Offset Path
* Fix CI
2024-10-11 14:50:54 -07:00
Dennis Kobert
bb8560e5ad
Fix faulty contravariance checking ( #2025 )
...
* Fix faulty contravariance checking
* Fix documented soundness issue in type resolution
2024-10-07 12:35:27 -07:00
Keavon Chambers
fa6b5f298a
New demo artwork: "Changing Seasons"
2024-10-04 16:31:22 -07:00
Dennis Kobert
b26dfbcd7c
Always close subpaths before applying boolean ops ( #2014 )
...
* Always close subpaths before applying boolean ops
* Roundtrip boolean path through svg string
* Reverse closing path segment
* Sort result of boolean ops
* Make face visiting order deterministic
* Remove debugging code
* Remove unused post processing
* Clippy lint
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-10-03 11:20:04 -07:00
Dennis Kobert
d2f791cfb3
Make Upload Texture node resolution-aware ( #2018 )
...
* Make UploadTextureNode resolution aware
* Add TextureFrame implementations for MonitorNode
* Add TextureFrame implementation to TransformNode
2024-10-03 10:32:34 -07:00
Keavon Chambers
2d86fb24ab
Add line height and character spacing to the Text node ( #2016 )
2024-10-01 12:28:27 -07:00
Keavon Chambers
904cf09c79
Add drag-and-drop and copy-paste file importing/opening throughout the UI ( #2012 )
...
* Add file importing by dragging and dropping throughout the UI
* Disable comment-profiling-changes.yaml
* Fix CI
2024-09-28 00:19:43 -07:00
adamgerhant
20470b566b
Fix many regressions introduced mostly in #1946 ( #1986 )
...
* Fix text tool
* Implement buffering to fix freehand tool
* Fix tools
* Fix clippy lints
* Small fixes
* Move vector modify back to Monitor nodes
* Code review
* Fix abort
* Fix svg import
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-09-26 15:37:03 -07:00
Keavon Chambers
c738b4a1f9
Replace terminology "primary" with "call argument" and "parameter" with "secondary input"
2024-09-25 20:05:00 -07:00
Dennis Kobert
f8c7ada572
Add manually-runnable benchmarks for runtime profiling ( #2005 )
...
* Split benches into two files
* Implement executor update bench
* Restructure benchmarks
* Unify usages of wrap network in scope
* Remove unused imports
* Fix oom bug
* Remove bounding box impl
2024-09-25 10:52:41 +02:00
nznznz42
c5454af48b
New node: Dehaze ( #1882 )
...
* feat: Implemented Dehaze Node
* Update Cargo.toml
* Remove unecessary image conversions
* Code review
* Further fixes
---------
Co-authored-by: Dennis Kobert <dennis@kobert.dev>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-09-24 20:44:48 -07:00
Dennis Kobert
8a1089938e
Path Bool library code cleanup ( #2000 )
...
* Remove log statements
* Add feature gates to functions in path.rs
* Fix infinite parsing loop and add new test
* License tweaks
* Remove trailing zero in whole number floats
* Flatten visual-tests directory
* Code review
* Clean up printlines
* Add error handling to path parsing
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-09-23 12:16:31 +02:00
Keavon Chambers
3ddc052538
Improve type compatibility and clean up new node macro usages ( #2002 )
...
* Improve type compatibility
* More
2024-09-22 01:44:18 -07:00
Dennis Kobert
cd4124a596
Improve node macro and add more diagnostics ( #1999 )
...
* Improve node macro ergonomics
* Fix type error in stub import
* Fix wasm nodes
* Code review
---------
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2024-09-21 19:57:45 +00:00