@qrcommunication/gigapdf-lib — SDK API reference - v0.110.3
    Preparing search index...

    Interface VectorPathInfo

    A painted vector path from GigaPdfDoc.vectorPaths: its geometry (segments, bounds) plus the graphics state — fill/stroke RGB (0..=1, null when the paint op doesn't fill/stroke), line width, alpha and dash. Clip-only paths are omitted. The native equivalent of a reader's shape/vector layer.

    interface VectorPathInfo {
        index: number;
        hasBounds: boolean;
        x0: number;
        y0: number;
        x1: number;
        y1: number;
        segments: PathSegment[];
        fill: [number, number, number] | null;
        stroke: [number, number, number] | null;
        strokeWidth: number;
        fillAlpha: number;
        strokeAlpha: number;
        dash: number[];
    }
    Index

    Properties

    index: number

    The path's unified element index — the same value accepted by GigaPdfDoc.setPathStyle / GigaPdfDoc.removeElement / GigaPdfDoc.transformElement. Extract a path here and pass this index to restyle or remove that exact path. Clip-only paths are not reported, so the painted path you see is the one your index targets — not a path-local ordinal.

    hasBounds: boolean

    Whether x0..y1 describe a real box (false for a degenerate path).

    x0: number
    y0: number
    x1: number
    y1: number
    segments: PathSegment[]
    fill: [number, number, number] | null

    Fill colour [r,g,b] in 0..=1, or null when not filled.

    stroke: [number, number, number] | null

    Stroke colour [r,g,b] in 0..=1, or null when not stroked.

    strokeWidth: number

    Line width (w) in user-space units.

    fillAlpha: number

    Non-stroking alpha (/ca), 0..=1.

    strokeAlpha: number

    Stroking alpha (/CA), 0..=1.

    dash: number[]

    Dash pattern (d array); empty for a solid line.