import type { HeadEnd, NormalizedOutline, Outline, TailEnd } from 'modern-idoc'; import type { Vector2Like } from 'modern-path2d'; import { Element2DFill } from './Element2DFill'; export declare class Element2DOutline extends Element2DFill implements NormalizedOutline { color?: NormalizedOutline['color']; width?: NormalizedOutline['width']; style: NormalizedOutline['style']; lineCap: NormalizedOutline['lineCap']; lineJoin: NormalizedOutline['lineJoin']; headEnd?: HeadEnd; tailEnd?: TailEnd; /** * 描边流动效果速度(周期/秒,符号=方向,0/undefined=关闭)。运行时 UI 态 * (internal:不进 toJSON / setProperties,不会被序列化或协同同步),供 * hover/激活时给连线加「能量流动」效果。 */ flow?: number; /** * 描边宽度的运行时倍率(internal,不序列化)。hover 加粗等纯 UI 反馈用, * 不改动文档里的 width;1/undefined = 不加粗。 */ widthBoost?: number; setProperties(properties?: Outline): this; protected _updateProperty(key: string, value: any, oldValue: any): void; isValid(): boolean; /** 惰性解析 `@token` 语义色(描边色可为 `@border-color` 等,随主题变化,绘制时解析)。 */ protected _resolveThemeColor(value: T): T | string; draw(): void; protected _drawLineEnds(): void; protected _fillEnd(tip: Vector2Like, anchor: Vector2Like, end: HeadEnd | TailEnd, strokeWidth: number, color: string): void; }