WebCAD-Lib-TS API 文档 - v1.0.0
    Preparing search index...

    Interface ShapePath

    Shape路径(渲染结果)

    interface ShapePath {
        commands: PathCommand[];
        start: ShapePoint2D;
        end: ShapePoint2D;
        addMoveTo(point: ShapePoint2D): void;
        addLineTo(point: ShapePoint2D): void;
        addArc(
            center: ShapePoint2D,
            radius: number,
            startAngle: number,
            endAngle: number,
            counterClockwise?: boolean,
        ): void;
    }
    Index

    Properties

    commands: PathCommand[] = []
    start: ShapePoint2D = ...
    end: ShapePoint2D = ...

    Methods

    • Parameters

      • center: ShapePoint2D
      • radius: number
      • startAngle: number
      • endAngle: number
      • counterClockwise: boolean = false

      Returns void