Top/Bottom glyph options object.
A glyph can be to the top or bottom of an equation phrase (content). The glyph can also be annotated.
gggggggg gggggggg CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCC gggggggg gggggggg
symbol
string
annotation
annotations
space
number
0
overhang
width
leftSpace
rightSpace
xOffset
annotationsOverContent
boolean
true
figure.add({ make: 'equation', elements: { rarrow: { symbol: 'arrow', direction: 'right' }, larrow: { symbol: 'arrow', direction: 'left' }, }, forms: { form1: { annotate: { content: 'a', glyphs: { top: { symbol: 'rarrow', space: 0.05, overhang: 0.1, }, bottom: { symbol: 'larrow', space: 0.05, overhang: 0.02, }, }, }, }, },}); Copy
figure.add({ make: 'equation', elements: { rarrow: { symbol: 'arrow', direction: 'right' }, larrow: { symbol: 'arrow', direction: 'left' }, }, forms: { form1: { annotate: { content: 'a', glyphs: { top: { symbol: 'rarrow', space: 0.05, overhang: 0.1, }, bottom: { symbol: 'larrow', space: 0.05, overhang: 0.02, }, }, }, }, },});
figure.add({ make: 'equation', elements: { brace: { symbol: 'brace', side: 'top' }, }, forms: { form1: { annotate: { content: ['2_1', 'x_1'], glyphs: { bottom: { symbol: 'brace', space: 0.05, overhang: 0.2, annotations: [ { content: '2_2', xPosition: 'left', yPosition: 'bottom', xAlign: 'center', yAlign: 'baseline', offset: [0, -0.2], }, { content: 'x_2', xPosition: 'right', yPosition: 'bottom', xAlign: 'center', yAlign: 'baseline', offset: [0, -0.2], }, ], }, }, }, }, },});@interface Copy
figure.add({ make: 'equation', elements: { brace: { symbol: 'brace', side: 'top' }, }, forms: { form1: { annotate: { content: ['2_1', 'x_1'], glyphs: { bottom: { symbol: 'brace', space: 0.05, overhang: 0.2, annotations: [ { content: '2_2', xPosition: 'left', yPosition: 'bottom', xAlign: 'center', yAlign: 'baseline', offset: [0, -0.2], }, { content: 'x_2', xPosition: 'right', yPosition: 'bottom', xAlign: 'center', yAlign: 'baseline', offset: [0, -0.2], }, ], }, }, }, }, },});@interface
Top/Bottom glyph options object.
A glyph can be to the top or bottom of an equation phrase (content). The glyph can also be annotated.
gggggggg gggggggg CCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCC gggggggg ggggggggsymbolstringannotationEQN_Annotation — use for one annotation only instead of propertyannotationsannotationsEQN_Annotation[] — use for one or more annotationsspacenumber— vertical space between glyph and content (0)overhangnumber— amount glyph extends above content top and below content bottom (0)widthnumber— force width of glyphleftSpacenumber— amount glyph extends beyond content leftrightSpacenumber— amount glyph extends beyond content rightxOffsetnumber— offset glyph in x (0)annotationsOverContentboolean—truemeans only glyph is separated from content byspaceand not annotations (false`)Example
Example