@fleet-frontend/mower-maps
Version:
a mower maps in google maps
61 lines • 2.21 kB
TypeScript
import React from 'react';
import { PathData } from '../../types/path';
import { AntennaConfig, DragState } from '../../types/renderer';
import { UnitsType } from '../../types/utils';
import { RealTimePartitionType } from '../../types/realTime';
import { SvgMapView } from '../SvgMapView';
import { RobotStatus } from '@/types';
export interface SvgMapComponentRef {
getSvgMapView: () => SvgMapView | null;
getSvgElement: () => SVGSVGElement | null;
updatePathData: (pathData: PathData, mowPartitionData?: RealTimePartitionType) => void;
updateMowPartitionData: (mowPartitionData?: RealTimePartitionType) => void;
updatePathDataByMowingPosition: (position: {
x: number;
y: number;
vehicleState?: RobotStatus;
}) => void;
setTransform: (transform: {
x?: number;
y?: number;
rotation?: number;
}) => void;
resetToDefaultTransform: () => void;
getCurrentDragState: () => DragState;
setMowerPositionVisible: (visible: boolean) => void;
getBoundaryLabelsManager: () => unknown;
getChargingPileManager: () => unknown;
getAntennaManager: () => unknown;
getMowerPositionManager: () => unknown;
setBorderLayerHighlight: (mowPartitionData?: RealTimePartitionType) => void;
resetBorderLayerHighlight: () => void;
}
interface SvgMapComponentProps {
editMap: boolean;
rotate: number;
layout: Record<string, unknown>;
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;
onTransformChange?: (transform: {
x: number;
y: number;
rotate: number;
}) => void;
}
declare const SvgMapComponent: React.ForwardRefExoticComponent<SvgMapComponentProps & React.RefAttributes<SvgMapComponentRef>>;
export default SvgMapComponent;
//# sourceMappingURL=index.d.ts.map