Encompass glyph options object.
A glyph can encompass (surround or overlay) an equation phrase (content). The glyph can also be annotated.
gggggggggggggg gggCCCCCCCCggg gggCCCCCCCCggg gggCCCCCCCCggg gggCCCCCCCCggg gggggggggggggg
symbol
string
annotation
annotations
space
number
0
topSpace
rightSpace
bottomSpace
leftSpace
// surrounding content with a box glyphfigure.add({ make: 'equation', elements: { box: { symbol: 'box', lineWidth: 0.005 }, }, forms: { form1: { annotate: { content: 'a', glyphs: { encompass: { symbol: 'box', space: 0.1, // e.g. only, this will be overwritten by next props topSpace: 0.1, rightSpace: 0.1, bottomSpace: 0.1, leftSpace: 0.1, }, }, }, }, },});@interface Copy
// surrounding content with a box glyphfigure.add({ make: 'equation', elements: { box: { symbol: 'box', lineWidth: 0.005 }, }, forms: { form1: { annotate: { content: 'a', glyphs: { encompass: { symbol: 'box', space: 0.1, // e.g. only, this will be overwritten by next props topSpace: 0.1, rightSpace: 0.1, bottomSpace: 0.1, leftSpace: 0.1, }, }, }, }, },});@interface
Encompass glyph options object.
A glyph can encompass (surround or overlay) an equation phrase (content). The glyph can also be annotated.
gggggggggggggg gggCCCCCCCCggg gggCCCCCCCCggg gggCCCCCCCCggg gggCCCCCCCCggg ggggggggggggggsymbolstringannotationEQN_Annotation — use for one annotation only instead of propertyannotationsannotationsEQN_Annotation[] — use for one or more annotationsspacenumber— default space the glyph should extend beyond the top, right, left and bottom sides of the content (0)topSpacenumber— space the glyph extends beyond the content toprightSpacenumber— space the glyph extends beyond the content rightbottomSpacenumber— space the glyph extends beyond the content bottomleftSpacenumber— space the glyph extends beyond the content leftExample