2D only: preceding "ghost" layers (DD-031 E1). Construction-time; reflected accessor over the attribute.
DD-032: perspective lens in degrees, [10, 120] (default 50; STUDIO_CAMERA_FOV = 32). Reflects the
camera-fov attribute; null removes it and keeps the current lens. Setting the property out of
range throws RangeError (never clamped) and leaves the attribute unchanged. A markup/setAttribute
value that is not a number in range is ignored: the element keeps the last valid lens. Reads return the
effective lens: a valid attribute, else the last valid lens, else null (none set yet).
#268/#275/M6: restore a saved pose (property-only — objects can't be attributes). Pair with the
camerachange event for two-way.
#306/#6: frame the printed 'object' (excl. skirt/prime) or 'all' extrusion.
DD-031 G3: feature roles to hide, as a comma-separated numeric list (hidden-feature-roles="6,7"
for Skirt+Brim). Declarative form of controls.setFeatureRoleVisible; gate on
capabilities.featureRoles. Import FeatureRole from @chestnutlabs/toolpath-core for the values.
#306/2 (DD-020): 'auto' reduces detail while the camera moves.
Resting pixel ratio of the canvas: a number in (0, 4], or 'device' (the display's devicePixelRatio
capped at 2, followed live; the exact lowercase string). Reflects the pixel-ratio attribute; null
removes it and keeps the current ratio. Setting the property to anything else throws RangeError (never
clamped) and leaves the attribute unchanged. A markup/setAttribute value that is not valid is ignored:
the element keeps the last valid ratio. Reads return the effective ratio: a valid attribute, else the
last valid ratio, else null (none set: the renderer's own, 1). A ratio of 2 shades 4x the fragments
of 1. The default capture() size does not change. 3D only.
DD-014 D5 renderer selection (DD-031 E1): reflected property accessor over the renderer
attribute. Construction-time like every adapter — read once at connect; changing it after the
element is connected has no effect (mode switching post-mount is out of scope), it just keeps the
attribute and property in sync so the value is readable/consistent.
Time-based scrub cut in ms of print time (#181).
Default false; only show-retractions="true" shows markers.
Default true; only show-travel="false" hides travel.
#306/#6: build-volume cage, independent of the plate. Default true; show-volume-cage="false" hides it.
DD-016 (#182): default true; only show-wipe="false" hides slicer wipe moves.
#268/#275/M6: preset orientation attribute (top/front/iso/…).
StaticobservedCapture the current view as an image Blob (DD-030 D1). Delegates to controls.capture.
Optionalopts: CaptureOptionsOptionalopts: WireParseOptions
@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/defineto auto-register.