feat: add validation to include_definition macro

This commit is contained in:
2024-04-18 15:40:41 +02:00
parent c33e2642e1
commit e7f43020dc
27 changed files with 466 additions and 147 deletions

View File

@@ -5,7 +5,6 @@
import Select from "$lib/elements/Select.svelte";
import type { NodeInput } from "@nodes/types";
import Slider from "./elements/Slider.svelte";
export let input: NodeInput;
export let value: any;
@@ -13,11 +12,7 @@
</script>
{#if input.type === "float"}
{#if input?.element === "slider"}
<Slider {id} bind:value />
{:else}
<Float {id} bind:value />
{/if}
<Float {id} bind:value />
{:else if input.type === "integer"}
<Integer {id} bind:value />
{:else if input.type === "boolean"}