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

    @chestnutlabs/gcode-preview-element — the framework-free <gcode-preview> Web Component adapter (DD-009 D5), a thin shell over @chestnutlabs/gcode-preview-core. Registration is a function (defineGcodePreview) so the . entry stays side-effect-free; import @chestnutlabs/gcode-preview-element/define to auto-register.

    • Register <gcode-preview> (idempotent — safe to call repeatedly and from multiple bundles). Kept as a function (not a module side effect) so the package stays sideEffects: false; import @chestnutlabs/gcode-preview-element/define for auto-registration.

      Parameters

      • tag: string = DEFAULT_TAG

      Returns void