import { Event } from './Event'; import { MapsEvent } from './Map'; import { AMap } from './AMap'; import { LngLatLike } from './other'; export class Polyline extends Event { constructor(opts: PolylineOptions) hide(): void show(): void getExtData(): any getOptions(): PolylineOptions getPath(): AMap.LngLat[] | AMap.LngLat[][] setExtData(extData: any): void setHeight(height: number): void destroy(): void getBounds(): AMap.Bounds setPath(path?: LngLatLike[] | LngLatLike[][]): any moveWithPos(dx: any, dy: any): void getLength(isTerrain?: boolean): any getEndDistance(): void generateBuffer(gl: any): void setOptions(optsArg: PolylineOptions): void contains(point: LngLatLike): boolean getPolylineHeight(): any } interface PolylineOptions { path?: AMap.LngLat[] | AMap.LngLat[][] zIndex?: number bubble?: boolean cursor?: string strokeColor?: string strokeOpacity?: number strokeWeight?: number isOutline?: boolean borderWeight?: number outlineColor?: string draggable?: boolean height?: number extData?: any strokeStyle?: 'solid' | 'dashed' strokeDasharray?: number[] lineJoin?: 'miter' | 'round' | 'bevel' lineCap?: 'butt' | 'round' | 'square' geodesic?: boolean showDir?: boolean } // region Event type PolylineEventType = | 'hide' | 'show' | 'click' | 'dblclick' | 'rightclick' | 'mousedown' | 'mouseup' | 'mouseover' | 'mouseout' | 'touchstart' | 'touchmove' | 'touchend' type PolylineEvent = Record // endregion