rmapi-js
    Preparing search index...

    Interface RmLine

    a single stroke (called a "line") within a layer

    brushType and color are kept as raw integers because both are overloaded across firmware versions (there are two pen-code families, and the color field is reinterpreted as a palette index when colored annotations are enabled), so the right meaning can only be resolved with the source firmware in mind.

    interface RmLine {
        brushBaseSize: number;
        brushType: number;
        color: number;
        padding?: number;
        points: RmPoint[];
        unknown?: number;
    }
    Index

    Properties

    brushBaseSize: number

    the base brush size

    brushType: number

    the raw brush/pen type code

    color: number

    the raw color code

    padding?: number

    a per-stroke padding field, typically 0

    points: RmPoint[]

    the sampled points making up the stroke, in order

    unknown?: number

    [unknown] a per-stroke field only present in version 5