UNPKG

@orca-fe/x-map

Version:
17 lines (16 loc) 508 B
import { Point } from '../../defs'; import { AbstractMarker } from '../AbstractLayer'; export interface SvgLineOptions { from: Point; to: Point; style?: Partial<CSSStyleDeclaration>; } export default class SvgLine extends AbstractMarker { dom: SVGPathElement; from: Point; to: Point; constructor(options: SvgLineOptions); setLine: (from: Point, to: Point) => void; setStyle: (style: Partial<CSSStyleDeclaration>) => void; updatePosition: () => void; }