Skip to content

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 ​

PropertyTypeDescriptionInherited fromDefined in
cxnumberCenter x of the arc the ribbon spans, in pixels.-charts/src/elements/ribbon.ts:21
cynumberCenter y of the arc the ribbon spans, in pixels.-charts/src/elements/ribbon.ts:23
direction?DirectionDirectionality used when rendering text.BaseElementState.directioncore/src/context/types.ts:229
fill?stringFill style (CSS color, gradient, or pattern) used to paint filled regions.BaseElementState.fillcore/src/context/types.ts:225
filter?stringCSS filter string applied to subsequent drawing operations (e.g. blur(4px)).BaseElementState.filtercore/src/context/types.ts:227
font?stringCSS font shorthand used when rendering text.BaseElementState.fontcore/src/context/types.ts:231
fontKerning?FontKerningWhether font kerning is applied when rendering text.BaseElementState.fontKerningcore/src/context/types.ts:233
globalCompositeOperation?unknownCompositing operation controlling how new drawing is blended with existing content.BaseElementState.globalCompositeOperationcore/src/context/types.ts:237
lineCap?LineCapCap style drawn at the endpoints of stroked lines.BaseElementState.lineCapcore/src/context/types.ts:239
lineDash?number[]Dash pattern as alternating stroke and gap lengths; empty for a solid line.BaseElementState.lineDashcore/src/context/types.ts:241
lineDashOffset?numberDistance into the line dash pattern at which dashing begins.BaseElementState.lineDashOffsetcore/src/context/types.ts:243
lineJoin?LineJoinJoin style drawn where two stroked segments meet.BaseElementState.lineJoincore/src/context/types.ts:245
lineWidth?numberWidth, in pixels, of stroked lines.BaseElementState.lineWidthcore/src/context/types.ts:247
miterLimit?numberMiter length limit ratio applied to miter line joins.BaseElementState.miterLimitcore/src/context/types.ts:249
opacity?numberGlobal alpha applied to everything drawn, from 0 to 1.BaseElementState.opacitycore/src/context/types.ts:235
radiusnumberRadius of the arc endpoints, in pixels.-charts/src/elements/ribbon.ts:25
rotation?RotationRotation applied to the element's transform, as radians or a deg/rad string.BaseElementState.rotationcore/src/context/types.ts:275
shadowBlur?numberGaussian blur radius applied to drawn shadows.BaseElementState.shadowBlurcore/src/context/types.ts:251
shadowColor?stringColor of drawn shadows.BaseElementState.shadowColorcore/src/context/types.ts:253
shadowOffsetX?numberHorizontal offset, in pixels, of drawn shadows.BaseElementState.shadowOffsetXcore/src/context/types.ts:255
shadowOffsetY?numberVertical offset, in pixels, of drawn shadows.BaseElementState.shadowOffsetYcore/src/context/types.ts:257
sourceEndnumberEnd angle of the source arc, in radians.-charts/src/elements/ribbon.ts:29
sourceStartnumberStart angle of the source arc, in radians.-charts/src/elements/ribbon.ts:27
stroke?stringStroke style (CSS color, gradient, or pattern) used to paint outlines.BaseElementState.strokecore/src/context/types.ts:259
targetEndnumberEnd angle of the target arc, in radians.-charts/src/elements/ribbon.ts:33
targetStartnumberStart angle of the target arc, in radians.-charts/src/elements/ribbon.ts:31
textAlign?TextAlignmentHorizontal alignment of text relative to the drawing position.BaseElementState.textAligncore/src/context/types.ts:261
textBaseline?TextBaselineVertical baseline used when positioning text.BaseElementState.textBaselinecore/src/context/types.ts:263
transformOriginX?TransformOriginHorizontal origin about which rotation and scaling are applied.BaseElementState.transformOriginXcore/src/context/types.ts:277
transformOriginY?TransformOriginVertical origin about which rotation and scaling are applied.BaseElementState.transformOriginYcore/src/context/types.ts:279
transformScaleX?numberHorizontal scale factor applied to the element's transform.BaseElementState.transformScaleXcore/src/context/types.ts:271
transformScaleY?numberVertical scale factor applied to the element's transform.BaseElementState.transformScaleYcore/src/context/types.ts:273
translateX?numberHorizontal translation, in pixels, applied to the element's transform.BaseElementState.translateXcore/src/context/types.ts:267
translateY?numberVertical translation, in pixels, applied to the element's transform.BaseElementState.translateYcore/src/context/types.ts:269
zIndex?numberStacking order used to sort elements during rendering; higher values draw on top.BaseElementState.zIndexcore/src/context/types.ts:265