mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 03:28:12 +08:00
Add visibility and delete buttons to node sections in the Properties panel
This commit is contained in:
@@ -556,8 +556,8 @@
|
||||
return selected.includes(node) || intersetNodeAABB(boxSelect, nodeIndex);
|
||||
}
|
||||
|
||||
function toggleLayerVisibility(id: bigint) {
|
||||
editor.handle.toggleLayerVisibility(id);
|
||||
function toggleNodeVisibility(id: bigint) {
|
||||
editor.handle.toggleNodeVisibility(id);
|
||||
}
|
||||
|
||||
function toggleLayerDisplay(displayAsLayer: boolean) {
|
||||
@@ -956,7 +956,7 @@
|
||||
</div>
|
||||
<IconButton
|
||||
class={"visibility"}
|
||||
action={(e) => (toggleLayerVisibility(node.id), e?.stopPropagation())}
|
||||
action={(e) => (toggleNodeVisibility(node.id), e?.stopPropagation())}
|
||||
size={24}
|
||||
icon={node.visible ? "EyeVisible" : "EyeHidden"}
|
||||
tooltip={node.visible ? "Visible" : "Hidden"}
|
||||
|
||||
Reference in New Issue
Block a user