diff --git a/src/App.svelte b/src/App.svelte index 95b9d09..2ac9ccf 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -6,6 +6,7 @@ import Filter from "./Filter.svelte"; import FilterPicker from "./FilterPicker.svelte"; import Graph from "./Graph.svelte"; + import GraphOld from "./GraphOld.svelte"; import { FFmpeg } from "@ffmpeg/ffmpeg"; import { fetchFile, toBlobURL } from "@ffmpeg/util"; import { dndzone } from "svelte-dnd-action"; @@ -195,8 +196,12 @@
- +
+ + + + diff --git a/src/Graph_old.svelte b/src/Graph_old.svelte deleted file mode 100644 index 5c16521..0000000 --- a/src/Graph_old.svelte +++ /dev/null @@ -1,201 +0,0 @@ - - - - {#each $inputs as inp, index} - -
-
- {inp.name} -
- -
-
- -
v
-
- -
a
-
-
-
- {/each} - - {#each $filters as f, index} - -
-
- {f.name} -
- -
-
- {#each countCons(f).in as inp, index} - -
{inp}
-
- {/each} -
-
- {#each countCons(f).out as out} - -
{out}
-
- {/each} -
-
- {/each} - - -
-
- {$output} -
- -
-
- -
v
-
- -
a
-
-
-
- -
- -
- {#each edges as e} -

- {e[0]} =======> {e[1]} -

- {/each} -
- - diff --git a/src/app.css b/src/app.css index f485d16..236873e 100644 --- a/src/app.css +++ b/src/app.css @@ -104,3 +104,7 @@ input[type="range"]::-moz-range-thumb { input[type="range"]:focus::-moz-range-thumb { } +.svelte-flow__node { + border-radius: 0px !important; + border: 1px solid var(--b1) !important; +} diff --git a/src/nodes/Node.svelte b/src/nodes/Node.svelte index bdee8b1..b4de612 100644 --- a/src/nodes/Node.svelte +++ b/src/nodes/Node.svelte @@ -4,14 +4,14 @@ export let data = { name: "", inputs: [], outputs: [], onChange: () => {} }; -
+
{data.name}
{#each data.inputs as inp, index} - + {/each} {#each data.outputs as out, index} - + {/each} @@ -21,3 +21,8 @@ +