UNPKG

@fleet-frontend/mower-maps

Version:

a mower maps in google maps

39 lines 1.36 kB
import React from 'react'; import { MowerPositionConfig, RealTimeData } from '@/types/renderer'; import { MapData, RobotStatus } from '@/types'; interface PositionProps { editMap: boolean; mowerPositionData: MowerPositionConfig | null | undefined; viewBox?: { x: number; y: number; width: number; height: number; } | null; modelType?: string; hasEdger?: boolean; mapData?: MapData; mapConfig?: Record<string, unknown>; realTimeData?: RealTimeData[]; onMowingPositionChange?: (positionData: { x: number; y: number; vehicleState?: RobotStatus; }) => void; } export interface MowerPositionRef { updatePositionDirectly: (positionConfig: MowerPositionConfig) => void; updatePositionWithAnimation: (positionConfig: MowerPositionConfig, animationTime?: number) => void; updatePosition: (positionConfig: MowerPositionConfig, animationTime?: number) => void; updatePositionByLastPosition: (positionConfig: MowerPositionConfig) => void; getCurrentPosition: () => { x: number; y: number; theta: number; } | null; getElement: () => HTMLDivElement | null; } declare const MowerPosition: React.NamedExoticComponent<PositionProps>; export default MowerPosition; export type { PositionProps }; //# sourceMappingURL=index.d.ts.map