1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-03-20 10:54:39 +00:00

feat(engine): all figures and transformations ready

This commit is contained in:
2022-11-27 08:23:17 +07:00
parent ae9661f4b1
commit 77b552a310
7 changed files with 262 additions and 69 deletions

View File

@@ -5,12 +5,14 @@ const {
label,
min,
max,
currentValue,
defaultValue,
step = 0.1,
} = defineProps<{
label: string;
min: number;
max: number;
currentValue: number;
defaultValue: number;
step?: number;
}>();
@@ -19,7 +21,7 @@ const emit = defineEmits<{
(event: 'change', value: number): void;
}>();
const value = ref<number>(defaultValue);
const value = ref<number>(currentValue);
const onChange = (event: Event) => {
const { target } = event as HTMLElementEvent<HTMLInputElement>;