G-code Preview — API Reference
    Preparing search index...

    Module @chestnutlabs/gcode-dialects

    @chestnutlabs/gcode-dialects

    Slicer/firmware dialect adapters for the Chestnut Labs G-code Preview stack (design: DD-005). Dialect adapters annotate a parse — features, object boundaries, bed geometry, thumbnails, multi-tool metadata — and are forbidden from changing geometry (a geometry-invariance gate enforces it).

    Supported dialects: PrusaSlicer, OrcaSlicer/Bambu Studio, Cura, Klipper, Marlin, RepRap-flavor — see the evidence-dated compatibility matrix.

    Every annotation is capability-tagged (known | inferred | approximated | unavailable); consumers render what is known and disclose what is not.

    This package is bundled into the parser's default batteries worker — most applications never import it directly. Import it to build a custom worker with a chosen adapter subset, or to register your own adapter against the annotator contract.

    Part of Chestnut Labs G-code Preview · MIT

    Classes

    BufferedAnnotationSink
    ThumbnailCollector

    Interfaces

    AnnotationSink
    CommandEvent
    DetectInput
    DialectAdapter
    DialectRun
    DialectRunInput
    DialectRunnerFactory
    DialectRunResult
    RangeMarker

    Type Aliases

    MachineClass
    ValidationTier

    Functions

    applyMarkerRanges
    bedFromPoints
    createDialectRunner
    cura
    decodeBase64
    grblLaser
    grblMill
    ideaMaker
    klipper
    linuxCnc
    marlin
    orcaBambu
    parseAreaPoints
    parseKeyValue
    prusaSlicer
    repRap
    segAtOrAfterByte
    simplify3d