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

    Class JobStats

    Statistics accumulated while interpreting a job's G-code

    The command handlers tally into these fields as they execute; the counts reset naturally with each new Job.

    Index

    Constructors

    Properties

    deretractions: number = 0

    Number of deretraction moves (zero-length moves with negative E)

    extrusionDistance: number = 0

    Cumulative newly advanced filament length in millimeters, including E-only purges and primes. Recovery of previously retracted filament is excluded; retracting never subtracts filament already consumed.

    feedrateChanges: number = 0

    Number of bare feedrate changes (F with no movement)

    others: number = 0

    Number of zero-length moves that were neither a retraction nor a feedrate change

    points: number = 0

    For reference, how many points were added to the job

    retractions: number = 0

    Number of retraction moves (zero-length moves with positive E)

    Methods

    • Accounts a signed filament delta without changing rendering classification

      Parameters

      • delta: number

        Filament advanced (positive) or retracted (negative), in millimeters

      Returns void

      Only filament beyond what a previous retraction still owes counts as newly consumed, so a retract/prime pair nets to zero instead of double-counting the primed length.