mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-28 06:58:12 +08:00
Fix graph UI links getting tangled when switching document tabs (#1483)
Fix corrupt graph UI
This commit is contained in:
@@ -665,7 +665,7 @@
|
|||||||
<!-- Layers and nodes -->
|
<!-- Layers and nodes -->
|
||||||
<div class="layers-and-nodes" style:transform={`scale(${transform.scale}) translate(${transform.x}px, ${transform.y}px)`} style:transform-origin={`0 0`} bind:this={nodesContainer}>
|
<div class="layers-and-nodes" style:transform={`scale(${transform.scale}) translate(${transform.x}px, ${transform.y}px)`} style:transform-origin={`0 0`} bind:this={nodesContainer}>
|
||||||
<!-- Layers -->
|
<!-- Layers -->
|
||||||
{#each $nodeGraph.nodes.flatMap((node, nodeIndex) => (node.displayName === "Layer" ? [{ node, nodeIndex }] : [])) as { node, nodeIndex } (String(node.id))}
|
{#each $nodeGraph.nodes.flatMap((node, nodeIndex) => (node.displayName === "Layer" ? [{ node, nodeIndex }] : [])) as { node, nodeIndex } (nodeIndex)}
|
||||||
{@const clipPathId = `${Math.random()}`.substring(2)}
|
{@const clipPathId = `${Math.random()}`.substring(2)}
|
||||||
{@const stackDatainput = node.exposedInputs[0]}
|
{@const stackDatainput = node.exposedInputs[0]}
|
||||||
<div
|
<div
|
||||||
@@ -744,7 +744,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
<!-- Nodes -->
|
<!-- Nodes -->
|
||||||
{#each $nodeGraph.nodes.flatMap((node, nodeIndex) => (node.displayName !== "Layer" ? [{ node, nodeIndex }] : [])) as { node, nodeIndex } (String(node.id))}
|
{#each $nodeGraph.nodes.flatMap((node, nodeIndex) => (node.displayName !== "Layer" ? [{ node, nodeIndex }] : [])) as { node, nodeIndex } (nodeIndex)}
|
||||||
{@const exposedInputsOutputs = [...node.exposedInputs, ...node.exposedOutputs]}
|
{@const exposedInputsOutputs = [...node.exposedInputs, ...node.exposedOutputs]}
|
||||||
{@const clipPathId = `${Math.random()}`.substring(2)}
|
{@const clipPathId = `${Math.random()}`.substring(2)}
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user