- Replace placeholder with OpenCV.js WASM perspective correction: pick highest-confidence rectangle, compute homography, fold weighted scale corrections from secondary datums, single warpPerspective - All units now mm throughout (no cm conversion) - Simplified datum creation: two buttons (+ Rectangle / + Line) with preset chips, auto-numbered labels (Line 1, Rectangle 2, etc.) - Dimensions default to 0, user must input manually; Next button disabled until all datums have valid dimensions with tooltip hint - Fix image preview (keep object URL alive), fix canvas disappearing on breakpoint switch (single instance + ResizeObserver re-fit) - Mobile responsive: bottom sheet for datum panel, full-width canvas - Spinner on result screen during processing - Stricter ESLint config, updated Prettier to 4-space/no-semicolons Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
35 lines
979 B
Vue
35 lines
979 B
Vue
<script setup lang="ts">
|
|
import type { SelectScrollDownButtonProps } from "reka-ui"
|
|
|
|
import type { HTMLAttributes } from "vue"
|
|
import { reactiveOmit } from "@vueuse/core"
|
|
import { ChevronDownIcon } from "lucide-vue-next"
|
|
import { SelectScrollDownButton, useForwardProps } from "reka-ui"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
const props = defineProps<
|
|
SelectScrollDownButtonProps & { class?: HTMLAttributes["class"] }
|
|
>()
|
|
|
|
const delegatedProps = reactiveOmit(props, "class")
|
|
|
|
const forwardedProps = useForwardProps(delegatedProps)
|
|
</script>
|
|
|
|
<template>
|
|
<SelectScrollDownButton
|
|
data-slot="select-scroll-down-button"
|
|
v-bind="forwardedProps"
|
|
:class="
|
|
cn(
|
|
'bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*=size-])]:size-4',
|
|
props.class,
|
|
)
|
|
"
|
|
>
|
|
<slot>
|
|
<ChevronDownIcon />
|
|
</slot>
|
|
</SelectScrollDownButton>
|
|
</template>
|