-
-
Notifications
You must be signed in to change notification settings - Fork 973
Fix click targets (in, e.g., the boolean node) by resolving footprints from render output #1946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
77174d8 to
58d8003
Compare
e7561c2 to
3ee33ee
Compare
e806f17 to
c5f132c
Compare
35a0aa1 to
6ddbde6
Compare
editor/src/messages/portfolio/document/document_message_handler.rs
Outdated
Show resolved
Hide resolved
6ddbde6 to
46f50f8
Compare
46f50f8 to
c44246a
Compare
Performance Benchmark Resultscompile_demo_art::compile_group::iai_compile_to_proto with_setup_0:load_from_name(isometric-fountain) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_1:load_from_name(painted-dreams) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_2:load_from_name(procedural-string-lights) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_3:load_from_name(red-dress) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_4:load_from_name(valley-of-spires) Detailed metrics |
Performance Benchmark Resultscompile_demo_art::compile_group::iai_compile_to_proto with_setup_0:load_from_name(isometric-fountain) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_1:load_from_name(painted-dreams) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_2:load_from_name(procedural-string-lights) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_3:load_from_name(red-dress) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_4:load_from_name(valley-of-spires) Detailed metrics |
fbb79fd to
f801171
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay!
Performance Benchmark Resultscompile_demo_art::compile_group::iai_compile_to_proto with_setup_0:load_from_name(isometric-fountain) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_1:load_from_name(painted-dreams) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_2:load_from_name(procedural-string-lights) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_3:load_from_name(red-dress) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_4:load_from_name(valley-of-spires) Detailed metrics |
34617ee to
1d6cbeb
Compare
Performance Benchmark Resultscompile_demo_art::compile_group::iai_compile_to_proto with_setup_0:load_from_name(isometric-fountain) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_1:load_from_name(painted-dreams) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_2:load_from_name(procedural-string-lights) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_3:load_from_name(red-dress) Detailed metricscompile_demo_art::compile_group::iai_compile_to_proto with_setup_4:load_from_name(valley-of-spires) Detailed metrics |
Found Clippy warningsClippy Warnings/Errors |
* 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 <[email protected]>
Closes #1889
The editor requires the footprint (call arguments) for each layer on every frame in order to draw overlays and transform click targets. This is currently done by saving the call arguments in Monitor nodes, but these are skipped when they are cached. This causes click targets to be desynced since the transform from layer space to viewport space is not updated when panning. To solve this, footprint are resolved from the RenderOutput by iterating though the final Graphic Group to add all footprints for each layer to a hashmap.
This method is fundamentally broken with the current rendering method for boolean operations and any node which converts a graphic group to another type. It will be necessary to have a non destructive method of representing vector data as a graphic group + some instruction to convert it to vector data. For example, the boolean operation would create a new spread sheet where the first row is the input spread sheet and the boolean operation.
TODO: Fix graph update when duplicating node
Click targets for folders should include all nested click targets
Add cache nodes to artwork