Code cleanup after migrating node graph interaction to the backend (#1790)

* Cleanup transforms and click targets

* Improve click target caching

* Fix click target bugs

* Add auto panning

* update_modified_click_targets

* Code review

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
adamgerhant 2024-06-20 23:11:41 -07:00 committed by GitHub
parent 6fd5b76430
commit 84ac2e274e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 332 additions and 495 deletions

View file

@ -507,7 +507,7 @@
size={24}
icon={node.visible ? "EyeVisible" : "EyeHidden"}
action={() => {
/*Button is purely visual, clicking is handled in NodeGraphMessage::PointerDown*/
/* Button is purely visual, clicking is handled in NodeGraphMessage::PointerDown */
}}
tooltip={node.visible ? "Visible" : "Hidden"}
/>
@ -658,7 +658,8 @@
</div>
</div>
<!-- Box select widget -->
<!-- Box selection widget -->
<!-- TODO: Make its initial corner stay put (in graph space) when panning around -->
{#if $nodeGraph.box}
<div
class="box-selection"