Equation sum of
Place an equation phrase in a sum of operation with the symbol EQN_SumSymbol.
Options can be an object, or an array in the property order below
To test examples, append them to the boilerplate
// Simplefigure.add({ name: 'eqn', make: 'equation', forms: { 1: { sumOf: ['sum', 'x', 'b', 'a'] }, },});figure.elements._eqn.showForm('1'); Copy
// Simplefigure.add({ name: 'eqn', make: 'equation', forms: { 1: { sumOf: ['sum', 'x', 'b', 'a'] }, },});figure.elements._eqn.showForm('1');
// Example showing different optionsfigure.add({ name: 'eqn', make: 'equation', elements: { s: { symbol: 'sum', draw: 'dynamic' }, inf: '\u221e', }, forms: { // Object form 1: { sumOf: { symbol: 's', content: [{ sup: ['x', 'n'] }], from: ['n_1', ' ', '=', ' ', '_0'], to: '_10', }, }, // Array form 2: { sumOf: ['s', [{ sup: ['x', 'm'] }], 'm_1', null]}, // Styling with options 3: { sumOf: { symbol: 's', content: { frac: [['x', ' ', '+', ' ', 'm'], 'vinculum', 'a'] }, from: ['m_1', ' ', '=', ' ', '_0'], to: 'inf', fromScale: 0.8, toScale: 0.8, }, }, }, formSeries: ['1', '2', '3'],});const eqn = figure.elements._eqn;eqn.onClick = () => eqn.nextForm();eqn.setTouchable();eqn.showForm('1');@interface Copy
// Example showing different optionsfigure.add({ name: 'eqn', make: 'equation', elements: { s: { symbol: 'sum', draw: 'dynamic' }, inf: '\u221e', }, forms: { // Object form 1: { sumOf: { symbol: 's', content: [{ sup: ['x', 'n'] }], from: ['n_1', ' ', '=', ' ', '_0'], to: '_10', }, }, // Array form 2: { sumOf: ['s', [{ sup: ['x', 'm'] }], 'm_1', null]}, // Styling with options 3: { sumOf: { symbol: 's', content: { frac: [['x', ' ', '+', ' ', 'm'], 'vinculum', 'a'] }, from: ['m_1', ' ', '=', ' ', '_0'], to: 'inf', fromScale: 0.8, toScale: 0.8, }, }, }, formSeries: ['1', '2', '3'],});const eqn = figure.elements._eqn;eqn.onClick = () => eqn.nextForm();eqn.setTouchable();eqn.showForm('1');@interface
Equation sum of
Place an equation phrase in a sum of operation with the symbol EQN_SumSymbol.
Options can be an object, or an array in the property order below
See
To test examples, append them to the boilerplate
Example
Example