gcode-preview - v3.0.0-alpha.3
    Preparing search index...

    Class State

    Represents the current state of the print job

    Tracks the current position, extrusion state, active tool, and units

    Index

    Constructors

    Properties

    Accessors

    Constructors

    Properties

    e: number

    Current extrusion amount

    tool: number

    Currently active tool

    units: "mm" | "in"

    Current units (millimeters or inches)

    x: number

    Current X position

    y: number

    Current Y position

    z: number

    Current Z position

    Accessors

    • get initial(): State

      Gets a new State instance with default initial values

      Returns State

      New State instance with x=0, y=0, z=0, e=0, tool=0, units='mm'