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 ​
| Property | Type | Description | Defined in |
|---|---|---|---|
filter | string | The filter in effect. | 3d/src/core/shape.ts:134 |
globalCompositeOperation | unknown | The compositing operation in effect. | 3d/src/core/shape.ts:132 |
lineCap | LineCap | The line cap in effect for stroked face edges. | 3d/src/core/shape.ts:144 |
lineDash | number[] | The line dash pattern in effect for stroked face edges. | 3d/src/core/shape.ts:148 |
lineDashOffset | number | The line dash offset in effect for stroked face edges. | 3d/src/core/shape.ts:150 |
lineJoin | LineJoin | The line join in effect for stroked face edges. | 3d/src/core/shape.ts:146 |
miterLimit | number | The miter limit in effect for stroked face edges. | 3d/src/core/shape.ts:152 |
opacity | number | The accumulated alpha: the element's own opacity composited under every ancestor group's. | 3d/src/core/shape.ts:130 |
shadowBlur | number | The shadow blur radius in effect. | 3d/src/core/shape.ts:136 |
shadowColor | string | The shadow color in effect. | 3d/src/core/shape.ts:138 |
shadowOffsetX | number | The horizontal shadow offset in effect. | 3d/src/core/shape.ts:140 |
shadowOffsetY | number | The vertical shadow offset in effect. | 3d/src/core/shape.ts:142 |
transform | Matrix | null | The element's composed 2D world transform, or null when it is the identity. | 3d/src/core/shape.ts:154 |