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 CCCCCCCC
has a position relative to the content:
xPosition
'right'
yPosition
'top'
and an alignment relative to the annotation:
xAlign
'left'
yAlign
'bottom'
In comparison, if yAlign were equal to 'top', then it would result in:
CCCCCCCCAAAA CCCCCCCCAAAA CCCCCCCC CCCCCCCC
figure.add({ make: 'equation', forms: { form1: { annotate: { content: 'a', annotation: { content: 'b', xPosition: 'left', yPosition: 'top', xAlign: 'right', yAlign: 'bottom', scale: 0.5, }, }, }, },}); Copy
figure.add({ make: 'equation', forms: { form1: { annotate: { content: 'a', annotation: { content: 'b', xPosition: 'left', yPosition: 'top', xAlign: 'right', yAlign: 'bottom', scale: 0.5, }, }, }, },});
figure.add({ make: 'equation', forms: { form1: { annotate: { content: 'a', annotations: [ { content: 'b', xPosition: 'left', yPosition: 'bottom', xAlign: 'right', yAlign: 'top', scale: 0.5, }, { content: 'c', offset: [0, 0.05], scale: 0.5, }, ], }, }, },});@interface Copy
figure.add({ make: 'equation', forms: { form1: { annotate: { content: 'a', annotations: [ { content: 'b', xPosition: 'left', yPosition: 'bottom', xAlign: 'right', yAlign: 'top', scale: 0.5, }, { content: 'c', offset: [0, 0.05], scale: 0.5, }, ], }, }, },});@interface
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 CCCCCCCCExample
Example