Documentation / @ripl/charts / RibbonState
Interface: RibbonState ​
Defined in: charts/src/elements/ribbon.ts:19
State interface for a ribbon shape connecting two arc segments via quadratic curves.
Extends ​
Properties ​
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
cx | number | Center x of the arc the ribbon spans, in pixels. | - | charts/src/elements/ribbon.ts:21 |
cy | number | Center y of the arc the ribbon spans, in pixels. | - | charts/src/elements/ribbon.ts:23 |
direction? | Direction | Directionality used when rendering text. | BaseElementState.direction | core/src/context/types.ts:229 |
fill? | string | Fill style (CSS color, gradient, or pattern) used to paint filled regions. | BaseElementState.fill | core/src/context/types.ts:225 |
filter? | string | CSS filter string applied to subsequent drawing operations (e.g. blur(4px)). | BaseElementState.filter | core/src/context/types.ts:227 |
font? | string | CSS font shorthand used when rendering text. | BaseElementState.font | core/src/context/types.ts:231 |
fontKerning? | FontKerning | Whether font kerning is applied when rendering text. | BaseElementState.fontKerning | core/src/context/types.ts:233 |
globalCompositeOperation? | unknown | Compositing operation controlling how new drawing is blended with existing content. | BaseElementState.globalCompositeOperation | core/src/context/types.ts:237 |
lineCap? | LineCap | Cap style drawn at the endpoints of stroked lines. | BaseElementState.lineCap | core/src/context/types.ts:239 |
lineDash? | number[] | Dash pattern as alternating stroke and gap lengths; empty for a solid line. | BaseElementState.lineDash | core/src/context/types.ts:241 |
lineDashOffset? | number | Distance into the line dash pattern at which dashing begins. | BaseElementState.lineDashOffset | core/src/context/types.ts:243 |
lineJoin? | LineJoin | Join style drawn where two stroked segments meet. | BaseElementState.lineJoin | core/src/context/types.ts:245 |
lineWidth? | number | Width, in pixels, of stroked lines. | BaseElementState.lineWidth | core/src/context/types.ts:247 |
miterLimit? | number | Miter length limit ratio applied to miter line joins. | BaseElementState.miterLimit | core/src/context/types.ts:249 |
opacity? | number | Global alpha applied to everything drawn, from 0 to 1. | BaseElementState.opacity | core/src/context/types.ts:235 |
radius | number | Radius of the arc endpoints, in pixels. | - | charts/src/elements/ribbon.ts:25 |
rotation? | Rotation | Rotation applied to the element's transform, as radians or a deg/rad string. | BaseElementState.rotation | core/src/context/types.ts:275 |
shadowBlur? | number | Gaussian blur radius applied to drawn shadows. | BaseElementState.shadowBlur | core/src/context/types.ts:251 |
shadowColor? | string | Color of drawn shadows. | BaseElementState.shadowColor | core/src/context/types.ts:253 |
shadowOffsetX? | number | Horizontal offset, in pixels, of drawn shadows. | BaseElementState.shadowOffsetX | core/src/context/types.ts:255 |
shadowOffsetY? | number | Vertical offset, in pixels, of drawn shadows. | BaseElementState.shadowOffsetY | core/src/context/types.ts:257 |
sourceEnd | number | End angle of the source arc, in radians. | - | charts/src/elements/ribbon.ts:29 |
sourceStart | number | Start angle of the source arc, in radians. | - | charts/src/elements/ribbon.ts:27 |
stroke? | string | Stroke style (CSS color, gradient, or pattern) used to paint outlines. | BaseElementState.stroke | core/src/context/types.ts:259 |
targetEnd | number | End angle of the target arc, in radians. | - | charts/src/elements/ribbon.ts:33 |
targetStart | number | Start angle of the target arc, in radians. | - | charts/src/elements/ribbon.ts:31 |
textAlign? | TextAlignment | Horizontal alignment of text relative to the drawing position. | BaseElementState.textAlign | core/src/context/types.ts:261 |
textBaseline? | TextBaseline | Vertical baseline used when positioning text. | BaseElementState.textBaseline | core/src/context/types.ts:263 |
transformOriginX? | TransformOrigin | Horizontal origin about which rotation and scaling are applied. | BaseElementState.transformOriginX | core/src/context/types.ts:277 |
transformOriginY? | TransformOrigin | Vertical origin about which rotation and scaling are applied. | BaseElementState.transformOriginY | core/src/context/types.ts:279 |
transformScaleX? | number | Horizontal scale factor applied to the element's transform. | BaseElementState.transformScaleX | core/src/context/types.ts:271 |
transformScaleY? | number | Vertical scale factor applied to the element's transform. | BaseElementState.transformScaleY | core/src/context/types.ts:273 |
translateX? | number | Horizontal translation, in pixels, applied to the element's transform. | BaseElementState.translateX | core/src/context/types.ts:267 |
translateY? | number | Vertical translation, in pixels, applied to the element's transform. | BaseElementState.translateY | core/src/context/types.ts:269 |
zIndex? | number | Stacking order used to sort elements during rendering; higher values draw on top. | BaseElementState.zIndex | core/src/context/types.ts:265 |