2023-09-05 10:45:05 +02:00
|
|
|
<!--
|
|
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
-->
|
|
|
|
<script lang="ts">
|
2023-09-09 01:00:55 +02:00
|
|
|
import ConfigInput from "../components/ConfigInput.svelte";
|
|
|
|
import RevertButton from "../components/RevertButton.svelte";
|
2023-09-05 10:45:05 +02:00
|
|
|
import WeightsInput from "./WeightsInput.svelte";
|
|
|
|
|
2023-09-30 05:05:35 +02:00
|
|
|
export let value: number[];
|
|
|
|
export let defaultValue: number[];
|
|
|
|
export let defaults: number[];
|
2023-09-05 10:45:05 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<slot />
|
|
|
|
<ConfigInput>
|
2023-09-30 05:05:35 +02:00
|
|
|
<WeightsInput bind:value {defaults} />
|
2023-09-05 10:45:05 +02:00
|
|
|
<RevertButton slot="revert" bind:value {defaultValue} />
|
|
|
|
</ConfigInput>
|