@fleet-frontend/mower-maps
Version:
a mower maps in google maps
49 lines • 1.92 kB
TypeScript
import { DataType } from '@/processor/unified';
import { CheckDoodleErrorType, CheckObstaclePointErrorType, MapConfig, MapData, Point } from '@/types';
import { EditMapInfo, MobileEditMode } from '@/context/mapEdit';
import { DoodleItem } from './components/AddEntry/components/DoodleModal';
export interface SvgEditMapRef {
adjustSvgSize: (layout: Record<string, number>) => void;
getSvgElement: () => SVGSVGElement | null;
getContainerElement: () => HTMLElement | null;
updateEditMapInfo?: (editMapInfo: EditMapInfo) => void;
resetEditMapInfo?: () => void;
getEditMapInfo?: () => EditMapInfo;
addCreateObstaclePoint?: () => {
isValid?: boolean;
reason?: string;
code?: CheckObstaclePointErrorType;
};
undoCreateObstaclePoint?: () => void;
getCreateObstaclePoints?: () => Point[];
getCreateObstaclePointCount?: () => number;
clearCreateObstaclePoints?: () => void;
enterVisionOffEditMode?: (mode: MobileEditMode) => void;
addVisionOffPoint?: () => void;
hasHistory?: () => {
hasRedo: boolean;
hasUndo: boolean;
};
redo?: () => void;
undo?: () => void;
clearHistory?: () => void;
addHistory?: (history: any) => void;
addDoodle?: (doodle: DoodleItem) => void;
checkDoodle?: () => {
isValid: boolean;
reason?: string;
code?: CheckDoodleErrorType;
};
addElement?: (type: DataType, item: DoodleItem) => void;
saveElement?: (type: DataType, item: DoodleItem) => void;
}
interface SvgEditMapProps {
editMap: boolean;
mapJson: MapData;
layout?: Record<string, number>;
mapConfig?: MapConfig;
onEditInfoMapChange?: (editMapInfo: EditMapInfo) => void;
}
declare const SvgEditMap: import("react").ForwardRefExoticComponent<SvgEditMapProps & import("react").RefAttributes<SvgEditMapRef>>;
export default SvgEditMap;
//# sourceMappingURL=index.d.ts.map