rmapi-js
    Preparing search index...

    Class Stroke

    a stroke of a page, read from the buffer that showed it as its fields are asked for

    One erased by a later step of the same changes has nothing but its slot.

    Index
    • get colorRgba(): number | undefined

      the color as 0xAARRGGBB, if it has one

      Returns number | undefined

    • get erased(): boolean

      whether a later step of the same changes erased it

      Returns boolean

    • get pointCount(): number

      how many points it has

      Returns number

    • get slot(): bigint

      the number that names it while the page is held

      Returns bigint

    • get startingLength(): number

      the length at which it starts

      Returns number

    • get thicknessScale(): number

      its width, scaled

      Returns number

    • the points as the page stores them, POINT_FIELDS numbers each: x, y, speed, width, direction, pressure, as NewStroke.points takes them; packed points keep speed and width in quarters, and direction and pressure out of 255

      Returns Float32Array