UNPKG

@fleet-frontend/mower-maps

Version:

a mower maps in google maps

50 lines 2.18 kB
import { SvgMapView } from '../SvgMapView'; import { UnitsType } from '../../types/utils'; import { BoundaryLabelsManager } from '../BoundaryLabelsManager'; import { ChargingPileManager } from '../ChargingPileManager'; import { PathData } from '../../types/path'; import { DragState, AntennaConfig } from '../../types/renderer'; import { RealTimePartitionType } from '../../types/realTime'; interface UseSvgMapViewProps { mapData: unknown; pathData: PathData; modelType?: string; unitType?: UnitsType; language?: string; mapConfig?: Record<string, unknown>; antennaConfig?: AntennaConfig[]; mowPartitionData?: RealTimePartitionType | null; defaultTransform?: { x?: number; y?: number; rotation?: number; }; onMapLoad?: (elementCount: number) => void; onPathLoad?: (elementCount: number) => void; hasEdger?: boolean; setBorderLayerHighlight?: (partitionIds: string[]) => void; } interface UseSvgMapViewReturn { svgMapView: SvgMapView | null; svgElement: SVGSVGElement | null; boundaryLabelsManager: BoundaryLabelsManager | null; chargingPileManager: ChargingPileManager | null; mowerPositionManager: null; initializeSvgMapView: (container: HTMLElement) => void; loadMapData: () => void; loadPathData: (pathData: PathData, mowPartitionData?: RealTimePartitionType) => void; updatePathData: (pathData: PathData, mowPartitionData?: RealTimePartitionType) => void; updateMowPartitionData: (mowPartitionData?: RealTimePartitionType) => void; setTransform: (transform: { x?: number; y?: number; rotation?: number; }) => void; resetToDefaultTransform: () => void; getCurrentDragState: () => DragState; setMowerPositionVisible: (visible: boolean) => void; getSvgMapView: () => SvgMapView | null; } export declare const useSvgMapView: ({ mapData, pathData, unitType: _unitType, language: _language, mapConfig, antennaConfig: _antennaConfig, mowPartitionData, defaultTransform, onMapLoad, onPathLoad, hasEdger: _hasEdger, }: UseSvgMapViewProps) => UseSvgMapViewReturn; export {}; //# sourceMappingURL=useSvgMapView.d.ts.map