@fleet-frontend/mower-maps
Version:
a mower maps in google maps
67 lines • 1.68 kB
TypeScript
import { SvgMapView } from './SvgMapView';
import { DrawElement } from './layers/types';
import { BaseConfig } from '../types/renderer';
/**
* 充电桩管理器
* 专门处理充电桩元素的创建、定位和管理
*/
export declare class ChargingPileManager {
private svgView;
private chargingPileElements;
private container;
private overlayDiv;
private pileElements;
private static readonly Z_INDEX;
private originalRotation;
private rotation;
constructor(svgView: SvgMapView);
/**
* 初始化容器
*/
private initializeContainer;
/**
* 设置叠加层div引用(用于坐标转换)
*/
setOverlayDiv(overlayDiv: HTMLElement): void;
/**
* 添加单个充电桩元素
*/
addElement(element: DrawElement<BaseConfig>): HTMLElement | null;
/**
* 添加充电桩动画
*/
private addChargingPileAnimation;
/**
* 添加所有充电桩元素
*/
addAllElements(elements: DrawElement<BaseConfig>[]): void;
/**
* 获取容器元素
*/
getElement(): HTMLElement | null;
/**
* 更新位置
*/
updatePositions(): void;
/**
* 使用预计算数据更新位置
*/
updatePositionsWithPrecomputedData(): void;
/**
* 使用预计算数据进行坐标转换
*/
private convertMapCoordinateToPixelWithPrecomputedData;
/**
* 清空所有充电桩
*/
clear(): void;
/**
* 销毁管理器
*/
destroy(): void;
/**
* 设置充电桩旋转角度
*/
setRotation(rotation: number): void;
}
//# sourceMappingURL=ChargingPileManager.d.ts.map