Studio: WIP

This commit is contained in:
Pieter Vander Vennet 2023-08-08 13:52:58 +02:00
parent 6ff2c629f0
commit cb538c2303
33 changed files with 608 additions and 2071 deletions

View file

@ -11,10 +11,14 @@
export let state: EditLayerState
export let path: (string | number)[] = []
console.log("Constructing", path,"with schema", schema)
</script>
{#if schema.type === "array"}
{#if schema.hints.typehint === "tagrendering[]"}
<!-- We cheat a bit here by matching this 'magical' type... -->
<SchemaBasedArray {path} {state} {schema}/>
{:else if schema.type === "array"}
<SchemaBasedArray {path} {state} {schema}/>
{:else if schema.hints.typehint === "tag"}
<RegisteredTagInput {state} {path} {schema}/>