-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start working on SynchrotronNode custom node
- Loading branch information
1 parent
b1c1c9e
commit db22226
Showing
2 changed files
with
69 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script lang="ts"> | ||
import { Handle, Position, type NodeProps } from '@xyflow/svelte'; | ||
import type { Writable } from 'svelte/store'; | ||
import type { components } from '../types/api'; | ||
type $$Props = NodeProps; | ||
export let data: Writable<components['schemas']['Node']> | ||
$$restProps; | ||
</script> | ||
|
||
<div class="colorpicker"> | ||
{#each $data.inputs as input} | ||
<Handle id={input.port_name} type="target" position={Position.Left} /> | ||
{/each} | ||
<div> | ||
<strong>{$data.type}</strong> {$data.name} | ||
</div> | ||
{#each $data.outputs as output} | ||
<Handle id={output.port_name} type="source" position={Position.Right} /> | ||
{/each} | ||
</div> |