G-code Preview — API Reference
    Preparing search index...
    interface ParseOptions {
        extruderFollowsPositioning?: boolean;
        limits?: Partial<ParseLimits>;
        minLayerThreshold?: number;
        onCommand?: (event: CommandEvent) => void;
        onComment?: (text: string, srcByte: number) => void;
        parserVersion?: string;
        sourceId?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    extruderFollowsPositioning?: boolean

    Firmware hint (DD-010 D2): does G90/G91 also set the extruder mode? Marlin/Klipper — true; RepRapFirmware treats E independently — false. Default false (RRF/unknown-conservative). Only consulted while no M82/M83 has latched the E-mode; supplied by the dialect layer / caller that has confidently classified the firmware. The byte-exact engine never sniffs firmware itself.

    limits?: Partial<ParseLimits>
    minLayerThreshold?: number

    Layer-detection tolerance (inherited default 0.05).

    onCommand?: (event: CommandEvent) => void
    onComment?: (text: string, srcByte: number) => void

    DD-005 §4.3 read-only hooks: observe comments/commands during the parse. Inert when unset (one branch per line); they cannot alter lexing, dispatch, or machine state — the golden-gated semantics are untouched.

    parserVersion?: string
    sourceId?: string