import { ScreenBounds } from "../common/screen-bounds"; import { ScreenXY } from "../common/screen-xy"; import { LineSymbol } from "./symbol"; /** * 箭头符号 */ export declare class ArrowSymbol extends LineSymbol { /** * 线宽 */ lineWidth: number; /** * 决定绘制箭头的最小线长 * @remarks 屏幕坐标,单位pixel * 默认 >50pixels will draw arrow */ minLength: number; /** * 箭翼长度 */ arrowLength: number; /** * 箭翼夹角 * @remarks 默认 angle 30 = Math.PI / 6 */ arrowAngle: number; /** * 绘制线 * @param {CanvasRenderingContext2D} ctx - 绘图上下文 * @param {ScreenXY[]} screenXYs - 线对应坐标点的屏幕坐标集合 */ draw(ctx: CanvasRenderingContext2D, screenXYs: ScreenXY[]): void; /** * 获取包络矩形 * @param {ScreenXY[]} screenXYs - 线对应坐标点的屏幕坐标集合 */ getScreenBounds(screenXYs: ScreenXY[]): ScreenBounds; }