interface PathObjectUtilsType {
    getLineCap: (utils: GraphicObjectUtils) => Promise<FPD_LineCap>;
    getLineJoin: (utils: GraphicObjectUtils) => Promise<FPD_LineJoin>;
    getLineWidth: (utils: GraphicObjectUtils) => Promise<number>;
    getMiterLimit: (utils: GraphicObjectUtils) => Promise<number>;
    options?: Options;
    setLineCap: (
        utils: GraphicObjectUtils,
        cap: FPD_LineCap,
    ) => Promise<boolean>;
    setLineJoin: (
        pathObjectUtils: GraphicObjectUtils,
        join: FPD_LineJoin,
    ) => Promise<boolean>;
    setLineWidth: (
        utils: GraphicObjectUtils,
        lineWidth: number,
    ) => Promise<boolean>;
    setMiterLimit: (
        utils: GraphicObjectUtils,
        miterLimit: number,
    ) => Promise<boolean>;
}

Implemented by

Properties

getLineCap: (utils: GraphicObjectUtils) => Promise<FPD_LineCap>

Get the line cap of the current path object.

Type declaration

getLineJoin: (utils: GraphicObjectUtils) => Promise<FPD_LineJoin>

Get the line join of the current path object.

Type declaration

getLineWidth: (utils: GraphicObjectUtils) => Promise<number>

Get the line width of the current path object.

Type declaration

    • (utils: GraphicObjectUtils): Promise<number>
    • Parameters

      Returns Promise<number>

      A promise that resolves to the line width.

getMiterLimit: (utils: GraphicObjectUtils) => Promise<number>

Get the miter limit of the current path object.

Type declaration

    • (utils: GraphicObjectUtils): Promise<number>
    • Parameters

      Returns Promise<number>

      A promise that resolves to the miter limit.

options?: Options
setLineCap: (utils: GraphicObjectUtils, cap: FPD_LineCap) => Promise<boolean>

Set the line cap of the current path object.

Type declaration

setLineJoin: (
    pathObjectUtils: GraphicObjectUtils,
    join: FPD_LineJoin,
) => Promise<boolean>

Set the line join of the current path object.

Type declaration

setLineWidth: (utils: GraphicObjectUtils, lineWidth: number) => Promise<boolean>

Set the line width of the current path object.

Type declaration

    • (utils: GraphicObjectUtils, lineWidth: number): Promise<boolean>
    • Parameters

      • utils: GraphicObjectUtils

        The graphic object utils instance.

      • lineWidth: number

        The line width to set.

      Returns Promise<boolean>

      A promise that resolves to true if successful, false otherwise.

setMiterLimit: (
    utils: GraphicObjectUtils,
    miterLimit: number,
) => Promise<boolean>

Set the miter limit of the current path object.

Type declaration

    • (utils: GraphicObjectUtils, miterLimit: number): Promise<boolean>
    • Parameters

      • utils: GraphicObjectUtils

        The graphic object utils instance.

      • miterLimit: number

        The miter limit to set.

      Returns Promise<boolean>

      A promise that resolves to true if successful, false otherwise.