Skip to content

Documentation / @ripl/3d / ProjectedFaceState3D

Interface: ProjectedFaceState3D ​

Defined in: 3d/src/core/shape.ts:128

The 2D drawing state resolved for an element at the moment its faces were projected.

A CPU-rendered face is buffered and painted at the end of the frame, long after the element's own restore() has unwound everything it applied, so the state has to travel with the face.

Properties ​

PropertyTypeDescriptionDefined in
filterstringThe filter in effect.3d/src/core/shape.ts:134
globalCompositeOperationunknownThe compositing operation in effect.3d/src/core/shape.ts:132
lineCapLineCapThe line cap in effect for stroked face edges.3d/src/core/shape.ts:144
lineDashnumber[]The line dash pattern in effect for stroked face edges.3d/src/core/shape.ts:148
lineDashOffsetnumberThe line dash offset in effect for stroked face edges.3d/src/core/shape.ts:150
lineJoinLineJoinThe line join in effect for stroked face edges.3d/src/core/shape.ts:146
miterLimitnumberThe miter limit in effect for stroked face edges.3d/src/core/shape.ts:152
opacitynumberThe accumulated alpha: the element's own opacity composited under every ancestor group's.3d/src/core/shape.ts:130
shadowBlurnumberThe shadow blur radius in effect.3d/src/core/shape.ts:136
shadowColorstringThe shadow color in effect.3d/src/core/shape.ts:138
shadowOffsetXnumberThe horizontal shadow offset in effect.3d/src/core/shape.ts:140
shadowOffsetYnumberThe vertical shadow offset in effect.3d/src/core/shape.ts:142
transformMatrix | nullThe element's composed 2D world transform, or null when it is the identity.3d/src/core/shape.ts:154