Documentation / @ripl/3d / BezierSurfaceOptions
Interface: BezierSurfaceOptions ​
Defined in: 3d/src/elements/bezier-surface.ts:49
Options for constructing a BezierSurface.
Extends ​
Properties ​
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
class? | OneOrMore<string> | One or more CSS-like class names used for querying and selection. | Shape3DOptions.class | core/src/core/element.ts:238 |
data? | unknown | Arbitrary user data bound to the element, typically the datum backing a data-driven visual. | Shape3DOptions.data | core/src/core/element.ts:240 |
direction? | Direction | Directionality used when rendering text. | Shape3DOptions.direction | core/src/context/types.ts:229 |
fill? | string | Fill style (CSS color, gradient, or pattern) used to paint filled regions. | Shape3DOptions.fill | core/src/context/types.ts:225 |
filter? | string | CSS filter string applied to subsequent drawing operations (e.g. blur(4px)). | Shape3DOptions.filter | core/src/context/types.ts:227 |
font? | string | CSS font shorthand used when rendering text. | Shape3DOptions.font | core/src/context/types.ts:231 |
fontKerning? | FontKerning | Whether font kerning is applied when rendering text. | Shape3DOptions.fontKerning | core/src/context/types.ts:233 |
globalCompositeOperation? | unknown | Compositing operation controlling how new drawing is blended with existing content. | Shape3DOptions.globalCompositeOperation | core/src/context/types.ts:237 |
id? | string | Optional stable id; a unique type:uniqueId id is generated when omitted. | Shape3DOptions.id | core/src/core/element.ts:236 |
interpolators? | ElementInterpolators<BezierSurfaceState> | Interpolator overrides for individual state properties, layered over the defaults the element type declares. See ElementInterpolators. | Shape3DOptions.interpolators | core/src/core/element.ts:244 |
lineCap? | LineCap | Cap style drawn at the endpoints of stroked lines. | Shape3DOptions.lineCap | core/src/context/types.ts:239 |
lineDash? | number[] | Dash pattern as alternating stroke and gap lengths; empty for a solid line. | Shape3DOptions.lineDash | core/src/context/types.ts:241 |
lineDashOffset? | number | Distance into the line dash pattern at which dashing begins. | Shape3DOptions.lineDashOffset | core/src/context/types.ts:243 |
lineJoin? | LineJoin | Join style drawn where two stroked segments meet. | Shape3DOptions.lineJoin | core/src/context/types.ts:245 |
lineWidth? | number | Width, in pixels, of stroked lines. | Shape3DOptions.lineWidth | core/src/context/types.ts:247 |
material? | Material | How the surface responds to light. When omitted, the element shades from its fill alone. | Shape3DState.material | 3d/src/core/shape.ts:228 |
miterLimit? | number | Miter length limit ratio applied to miter line joins. | Shape3DOptions.miterLimit | core/src/context/types.ts:249 |
opacity? | number | Global alpha applied to everything drawn, from 0 to 1. | Shape3DOptions.opacity | core/src/context/types.ts:235 |
patches | BezierPatch[] | The patches to tessellate. Held by reference and never copied. | - | 3d/src/elements/bezier-surface.ts:51 |
pointerEvents? | ElementPointerEvents | Which parts of the element respond to pointer hit testing. Defaults to all. | Shape3DOptions.pointerEvents | core/src/core/element.ts:242 |
revision? | number | A counter bumped whenever the patch list is replaced, invalidating the cached geometry. | BezierSurfaceState.revision | 3d/src/elements/bezier-surface.ts:45 |
rotation? | Rotation | Rotation applied to the element's transform, as radians or a deg/rad string. | Shape3DOptions.rotation | core/src/context/types.ts:275 |
rotationX? | number | The rotation around the X axis, in radians. | Shape3DState.rotationX | 3d/src/core/shape.ts:216 |
rotationY? | number | The rotation around the Y axis, in radians. | Shape3DState.rotationY | 3d/src/core/shape.ts:218 |
rotationZ? | number | The rotation around the Z axis, in radians. | Shape3DState.rotationZ | 3d/src/core/shape.ts:220 |
scale? | number | A uniform scale, applied to all three axes. Overridden by any per-axis scale also given. | Shape3DOptions.scale | 3d/src/core/shape.ts:234 |
scaleX? | number | The scale along the X axis. | Shape3DState.scaleX | 3d/src/core/shape.ts:222 |
scaleY? | number | The scale along the Y axis. | Shape3DState.scaleY | 3d/src/core/shape.ts:224 |
scaleZ? | number | The scale along the Z axis. | Shape3DState.scaleZ | 3d/src/core/shape.ts:226 |
segments? | number | The number of subdivisions along each parameter of every patch. | BezierSurfaceState.segments | 3d/src/elements/bezier-surface.ts:43 |
shadowBlur? | number | Gaussian blur radius applied to drawn shadows. | Shape3DOptions.shadowBlur | core/src/context/types.ts:251 |
shadowColor? | string | Color of drawn shadows. | Shape3DOptions.shadowColor | core/src/context/types.ts:253 |
shadowOffsetX? | number | Horizontal offset, in pixels, of drawn shadows. | Shape3DOptions.shadowOffsetX | core/src/context/types.ts:255 |
shadowOffsetY? | number | Vertical offset, in pixels, of drawn shadows. | Shape3DOptions.shadowOffsetY | core/src/context/types.ts:257 |
stroke? | string | Stroke style (CSS color, gradient, or pattern) used to paint outlines. | Shape3DOptions.stroke | core/src/context/types.ts:259 |
textAlign? | TextAlignment | Horizontal alignment of text relative to the drawing position. | Shape3DOptions.textAlign | core/src/context/types.ts:261 |
textBaseline? | TextBaseline | Vertical baseline used when positioning text. | Shape3DOptions.textBaseline | core/src/context/types.ts:263 |
transformOriginX? | TransformOrigin | Horizontal origin about which rotation and scaling are applied. | Shape3DOptions.transformOriginX | core/src/context/types.ts:277 |
transformOriginY? | TransformOrigin | Vertical origin about which rotation and scaling are applied. | Shape3DOptions.transformOriginY | core/src/context/types.ts:279 |
transformScaleX? | number | Horizontal scale factor applied to the element's transform. | Shape3DOptions.transformScaleX | core/src/context/types.ts:271 |
transformScaleY? | number | Vertical scale factor applied to the element's transform. | Shape3DOptions.transformScaleY | core/src/context/types.ts:273 |
translateX? | number | Horizontal translation, in pixels, applied to the element's transform. | Shape3DOptions.translateX | core/src/context/types.ts:267 |
translateY? | number | Vertical translation, in pixels, applied to the element's transform. | Shape3DOptions.translateY | core/src/context/types.ts:269 |
x? | number | The X position of the shape's origin in world space. | Shape3DState.x | 3d/src/core/shape.ts:210 |
y? | number | The Y position of the shape's origin in world space. | Shape3DState.y | 3d/src/core/shape.ts:212 |
z? | number | The Z position of the shape's origin in world space. | Shape3DState.z | 3d/src/core/shape.ts:214 |