Left/Right glyph options object.
A glyph can be to the left or right of an equation phrase (content). The glyph can also be annotated.
ggg CCCCCCCC ggg ggg CCCCCCCC ggg ggg CCCCCCCC ggg ggg CCCCCCCC ggg
symbol
string
annotation
annotations
space
number
0
overhang
topSpace
bottomSpace
minContentHeight
minContentDescent
minContentAscent
descent
height
yOffset
annotationsOverContent
boolean
true
figure.add({ make: 'equation', elements: { rb: { symbol: 'angleBracket', side: 'right', width: 0.1 }, }, forms: { form1: { annotate: { content: 'a', glyphs: { right: { symbol: 'rb', space: 0.05, overhang: 0.1, }, }, }, }, },}); Copy
figure.add({ make: 'equation', elements: { rb: { symbol: 'angleBracket', side: 'right', width: 0.1 }, }, forms: { form1: { annotate: { content: 'a', glyphs: { right: { symbol: 'rb', space: 0.05, overhang: 0.1, }, }, }, }, },});
figure.add({ make: 'equation', elements: { arrow: { symbol: 'arrow', direction: 'down' }, }, forms: { form1: { annotate: { content: 'a', glyphs: { left: { symbol: 'arrow', space: 0.05, overhang: 0.1, annotations: [ { content: 'b', xPosition: 'center', yPosition: 'top', xAlign: 'center', yAlign: 'bottom', scale: 0.7, offset: [0, 0.05], }, { content: 'n', xPosition: 'center', yPosition: 'bottom', xAlign: 'center', yAlign: 'top', scale: 0.7, offset: [0, -0.05], }, ], }, }, }, }, },}); Copy
figure.add({ make: 'equation', elements: { arrow: { symbol: 'arrow', direction: 'down' }, }, forms: { form1: { annotate: { content: 'a', glyphs: { left: { symbol: 'arrow', space: 0.05, overhang: 0.1, annotations: [ { content: 'b', xPosition: 'center', yPosition: 'top', xAlign: 'center', yAlign: 'bottom', scale: 0.7, offset: [0, 0.05], }, { content: 'n', xPosition: 'center', yPosition: 'bottom', xAlign: 'center', yAlign: 'top', scale: 0.7, offset: [0, -0.05], }, ], }, }, }, }, },});
figure.add({ make: 'equation', elements: { brace: { symbol: 'brace', side: 'right', width: 0.05 }, }, forms: { form1: { annotate: { content: 'c', glyphs: { left: { symbol: 'brace', space: 0.05, overhang: 0.2, annotations: [ { content: 'a', xPosition: 'left', yPosition: 'top', xAlign: 'right', yAlign: 'middle', offset: [-0.05, 0], }, { content: 'b', xPosition: 'left', yPosition: 'bottom', xAlign: 'right', yAlign: 'middle', offset: [-0.05, 0], }, ], }, }, }, }, },});@interface Copy
figure.add({ make: 'equation', elements: { brace: { symbol: 'brace', side: 'right', width: 0.05 }, }, forms: { form1: { annotate: { content: 'c', glyphs: { left: { symbol: 'brace', space: 0.05, overhang: 0.2, annotations: [ { content: 'a', xPosition: 'left', yPosition: 'top', xAlign: 'right', yAlign: 'middle', offset: [-0.05, 0], }, { content: 'b', xPosition: 'left', yPosition: 'bottom', xAlign: 'right', yAlign: 'middle', offset: [-0.05, 0], }, ], }, }, }, }, },});@interface
Left/Right glyph options object.
A glyph can be to the left or right of an equation phrase (content). The glyph can also be annotated.
ggg CCCCCCCC ggg ggg CCCCCCCC ggg ggg CCCCCCCC ggg ggg CCCCCCCC gggsymbolstringannotationEQN_Annotation — use for one annotation only instead of propertyannotationsannotationsEQN_Annotation[] — use for one or more annotationsspacenumber— horizontal space between glyph and content (0)overhangnumber— amount glyph extends above content top and below content bottom (0)topSpacenumber— amount glyph extends above content top (overridsoverhang)bottomSpacenumber— amount glyph extends below content bottom (overridsoverhang)minContentHeightnumber— force min content height for auto glyph scalingminContentDescentnumber— force min content descent for auto glyph scalingminContentAscentnumber— force min content ascent for auto scalingdescentnumber— force descent of glyphheightnumber— force height of glyph (overridesoverhang,topSpace,bottomSpace)yOffsetnumber— offset glyph in y (0)annotationsOverContentboolean—truemeans only glyph is separated from content byspaceand not annotations (false`)Example
Example
Example