Skip to content

Interface: SubplotViewportOptions ​

Experimental

A non-cartesian subplot's own viewport (M6: 3D scenes; GEO2: map projections; ADR-004), from TracePlotContext.subplotViewport / ComponentDrawContext.subplotViewport.

Properties ​

PropertyModifierTypeDescription
background?readonlyRGBA | nullExperimental Painted under the subplot (sRGB 0–1); null or unset for none.
kind?readonly"2d" | "3d"Experimental '3d' (the default) has a perspective or orthographic camera and a depth buffer. '2d' is a pixel-space viewport like a cartesian subplot's (ADR-008): world units are CSS px from the rect's bottom-left corner, y up. Fixed by the first call for a key.
projection?readonly"orthographic" | "perspective"Experimental 3D only. Default 'perspective'; a change swaps the camera (Viewport.setProjection).
rectreadonlyReadonly<ViewportRect>Experimental Rect in container px (top-left origin); the viewport clips to it.

Released under the MIT License.