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
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 ggggggggExample
Example