import type { SnapStrategy } from '@primeui/chart-core'; import type { CartesianLayoutData, ChartText, AnimatedPropertyStoreLike, BandScale, CanvasCompositorLike, AnyFeatureProps, BoxArea, ChartTheme, DatasetRegistration, DecimationAlgorithm, FeatureType, FrameDataLabelConfig, HoverConfig, LinearScale, MarkerOverlayEntry, SvgDataLabelContext, ScatterHitTestResult, ScatterProps, ScatterRenderData, ZoomState } from '@primeui/chart-types'; import type { ComputedRef, Ref, ShallowRef, VNode } from 'vue'; export type ChartScatterProps = ScatterProps; export interface UseScatterRendererOptions { chartArea: ComputedRef; renderer: 'svg' | 'canvas'; canvasEl: Ref | ShallowRef; datasets: ComputedRef>; datasetVisibility: ComputedRef>; hover: ComputedRef<{ datasetId: string | null; index: number | null; }>; hoverConfig: ComputedRef; chartId: string; width: ComputedRef; height: ComputedRef; valueXScales: ComputedRef | undefined>; categoryScale?: ComputedRef; valueScales: ComputedRef | undefined>; firstCategoryAxisId: ComputedRef; firstValueAxisId: ComputedRef; scatterStackBasesMap: ComputedRef | undefined>; layoutData: ComputedRef; compositor?: CanvasCompositorLike; decimationConfig?: ComputedRef<{ algorithm?: DecimationAlgorithm; samples?: number; threshold?: number; } | undefined>; zoomState?: ComputedRef; orientation?: ComputedRef<'vertical' | 'horizontal'>; labelConfig?: ComputedRef; features: ComputedRef>; dir: Ref<'ltr' | 'rtl'>; theme: ComputedRef>; text: ComputedRef; numberFormat: ComputedRef; locale: Ref; } export interface UseScatterRendererResult { groupRef: Ref; hitTest: (x: number, y: number) => ScatterHitTestResult | null; findNearest: (x: number, y: number, snap?: SnapStrategy) => ScatterHitTestResult | null; boostActive: ComputedRef; scatterLayouts: Map; markerOverlays: Ref; renderVersion: Ref; getSvgDataLabelContexts: () => SvgDataLabelContext[]; applyPropertyAnimations: (store: AnimatedPropertyStoreLike) => void; renderFrameCycle: () => void; syncWithAnimatedScale: (categoryScale: BandScale, valueScales?: Map, valueXScales?: Map) => void; }