referencestring — calling getBounds on a glyph can return a
suggested position, alignment and offset of an annotation with some name. If
this name is defined here, then xPosition, yPosition, xAlign, yAlign
and offset will be overwritten with the glyph's suggestion.
Annotation options object.
An annotation's layout is defined by its position and alignement. For instance, an annotation at the top right of the content:
AAAA AAAA CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCChas a position relative to the content:
xPosition:'right'yPosition:'top'and an alignment relative to the annotation:
xAlign:'left'yAlign:'bottom'In comparison, if
yAlignwere equal to'top', then it would result in:CCCCCCCCAAAA CCCCCCCCAAAA CCCCCCCC CCCCCCCCcontentTypeEquationPhrasexPositionnumber|left|right|center— where number is the percentage width of the content ('center')yPositionnumber|top|bottom|middle|baseline— where number is the percentage height of the content ('top')xAlignnumber|left|right|center— where number is the percentage width of the annotation ('center')yAlignnumber|top|bottom|middle|baseline— where number is the percentage width of the annotation ('bottom')offsetPoint — annotation offset ([0, 0])scalenumber— annotation scale (1)inSizeboolean— (true)fullContentBoundsboolean— (false)referencestring— calling getBounds on a glyph can return a suggested position, alignment and offset of an annotation with some name. If this name is defined here, thenxPosition,yPosition,xAlign,yAlignandoffsetwill be overwritten with the glyph's suggestion.Example
Example