Draw the active layer over its preceding "ghost" layers (DD-014 D2, #213). Ghosts are the
adjacentLayers layers immediately below the active one, drawn first (underneath) and dimmed to
ghostOpacity; the active layer is drawn last at full opacity. All layers share ONE fit, so
they overlay correctly in printer XY. adjacentLayers: 0 draws the active layer only (the floor).
@chestnutlabs/gcode-renderer-2d — low-resource Canvas 2D layer renderer (DD-014 / E8).
An opt-in current/adjacent-layer 2D view over the existing
ToolpathIR, for low-GPU, low-memory, or WebGL-blocked devices (old mobile, embedded printer UIs, locked-down browsers). One parse, one IR, a second lightweight view — no second parser path, nothree, no framework. Per-segment color is single-sourced with the 3D renderer via@chestnutlabs/gcode-colors.Re-exports the color model so 2D consumers get
ColorMode/RGBfrom one import.