import { NonConstructiable } from '../foundation'; import { Point, Rect } from '../math'; export type Directive = [string, ...number[]]; export declare class Path extends NonConstructiable { /** * 解析 SVG 路径 */ static parse(str: string): Directive[]; /** * 转换所有相对指令到绝对指令 */ static simplify(path: Directive[]): Directive[]; static calculateBounds(path: Directive[]): Rect; private static _testContext; private static get testContext(); static isPointInStroke(path: Path2D, point: Point, strokeWidth?: number): boolean; }