feat: add help view
Some checks failed
Deploy to GitHub Pages / build_site (push) Failing after 1m20s

This commit is contained in:
2024-04-26 15:30:52 +02:00
parent d06b33f508
commit cafe9bff84
16 changed files with 256 additions and 87 deletions

View File

@@ -47,6 +47,7 @@
class:selected={isSelected}
class:out-of-view={!inView}
data-node-id={node.id}
data-node-type={node.type}
bind:this={ref}
>
<NodeHeader {node} />

View File

@@ -51,7 +51,7 @@
});
</script>
<div class="wrapper" data-node-id={node.id}>
<div class="wrapper" data-node-id={node.id} data-node-type={node.type}>
<div class="content">
{node.type.split("/").pop()}
</div>

View File

@@ -73,6 +73,8 @@
<div
class="wrapper"
data-node-type={node.type}
data-node-input={id}
class:disabled={$possibleSocketIds && !$possibleSocketIds.has(socketId)}
>
{#key id && graphId}
@@ -87,12 +89,14 @@
{#if node?.tmp?.type?.inputs?.[id]?.internal !== true}
<div
data-node-socket
class="large target"
on:mousedown={handleMouseDown}
role="button"
tabindex="0"
/>
<div
data-node-socket
class="small target"
on:mousedown={handleMouseDown}
role="button"
@@ -187,6 +191,8 @@
.content.disabled {
opacity: 0.2;
}
.content.disabled > * {
pointer-events: none;
}