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

    Class SlicerMetadataParserAbstract

    Abstract base class for slicer-specific metadata parsers

    Hierarchy (View Summary)

    Index
    identificationPatterns: RegExp[]

    Patterns that identify this slicer in gcode comments

    slicerName: string

    The name of the slicer this parser handles

    • Checks if this parser can handle the given gcode based on comments

      Parameters

      • commentCommands: GCodeCommand[]

        Array of gcode commands with comments

      • maxLines: number = 200

        How many of those commands to sample before giving up

      Returns boolean

      True if this parser can handle the gcode

    • Resolves the slicer name to report for the given gcode.

      Parameters

      • commentCommands: GCodeCommand[]

        Array of gcode commands with comments

      Returns string

      The slicer name

      Parsers that handle a family of slicers sharing one comment dialect override this to report the specific generator named in the header.