opsCanvas

@thisotherthing/ops-segment-text

drawSvgSegmentText

// Draws Segmented Text, based on svg with segments It takes a callback, that then handles the svg drawing

Parameters
draw
(

// svg string to draw

svg:string

// x position for drawing the svg string

x:number

// y position for drawing the svg string

y:number

// width for drawing the svg string

width:number

// height for drawing the svg string

height:number
) => void
text
string
x
number
y
number
options?
lineHeight?:number
segments?:number
textAlign?:"left""center""right"
textBaseline?:"top""middle""bottom"
Return
void