figure.add({
name: 'eqn',
make: 'equation',
elements: { equals: ' = ' },
forms: {
form1: 'a',
form2: ['a', 'equals', 'b'],
form3: [{
frac: {
numerator: 'a',
symbol: 'vinculum',
denominator: 'c',
},
}, 'equals', 'b'],
form4: { frac: ['a', 'vinculum', 'c'] },
},
});
figure.getElement('eqn').animations.new()
.goToForm({ target: 'form2', animate: 'move', delay: 1 })
.goToForm({ target: 'form3', animate: 'move', delay: 1 })
.goToForm({ target: 'form4', animate: 'move', delay: 1 })
.start();
An equation phrase is used to define an equation form and can be any of the below:
string(which represents the unique identifier of an equation element){ frac:EQN_Fraction}{ strike:EQN_Strike}{ box:EQN_Box}{ tBox:EQN_TouchBox}{ root:EQN_Root}{ brac:EQN_Bracket}{ sub:EQN_Subscript}{ sup:EQN_Superscript}{ supSub:EQN_SuperscriptSubscript}{ topBar:EQN_Bar}{ bottomBar:EQN_Bar}{ annotate:EQN_Annotate}{ topComment:EQN_Comment}{ bottomComment:EQN_Comment}{ pad:EQN_Pad}{ bar:EQN_Bar}{ scale:EQN_Scale}{ container:EQN_Container}{ offset:EQN_Offset}{ matrix:EQN_Matrix `}{ lines:{@link EQN_Lines}}{ int:{@link EQN_Integral}}{ sumOf:{@link EQN_SumOf}}{ prodOf:{@link EQN_ProdOf}}{ topStrike:{@link EQN_StrikeComment}}{ bottomStrike:{@link EQN_StrikeComment}}Array<TypeEquationPhrase>