rednode API - v0.80.1
    Preparing search index...

    Interface PinStyle

    How a pin looks (#43). Every field is optional; a pin starts from the HUD style, then from the style world.pinStyle set for all of this package's pins, then its own.

    interface PinStyle {
        color?: string;
        font?: string;
        minScreenSize?: number;
        pinHeight?: number;
        scale?: "screen" | "world" | "fit";
        textSize?: number;
        titleSize?: number;
    }
    Index
    color?: string

    The label's border and title, the post and the edge arrow, as #rrggbb. The HUD's cyan by default.

    font?: string

    The label's font family, such as "Rajdhani" (the default) or "Segoe UI".

    minScreenSize?: number

    For "fit": the smallest it gets, from 0.1 to 1 of its full size. Default 0.45.

    pinHeight?: number

    The post's height in metres; the label sits on top of it. Default 3.

    scale?: "screen" | "world" | "fit"

    How the pin's size follows distance, and what a wall between does:

    • "fit" (default): full size up to 15 m, then shrinks with distance down to minScreenSize, and stays. Behind a wall it is still drawn, dimmed.
    • "world": a real size, shrinking with distance, too small to see from far away. Hidden behind a wall.
    • "screen": the same size on screen at any distance, seen through walls.
    textSize?: number

    The text line's size in pixels at full size, 8 to 36. Default 14; the distance is a pixel smaller.

    titleSize?: number

    The title's size in pixels at full size, 10 to 48. Default 18.