mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-13 17:08:20 +00:00
fix: update field spec types
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
<script lang="ts">
|
||||
import type { FieldSpec, Offset, OffsetSpec } from "$lib/registry-schema";
|
||||
import type { Offset, OffsetSpec } from "$lib/registry-schema";
|
||||
import Control from "./Control.svelte";
|
||||
|
||||
interface Props {
|
||||
label: string;
|
||||
value: unknown;
|
||||
spec: FieldSpec;
|
||||
spec: OffsetSpec;
|
||||
onchange?: (value: Offset) => void;
|
||||
}
|
||||
let { label, value, spec, onchange }: Props = $props();
|
||||
|
||||
const sp = $derived(spec as OffsetSpec);
|
||||
const sp = $derived(spec);
|
||||
const current = $derived.by(() => {
|
||||
const v = value as Partial<Offset> | undefined;
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user