Equation subscript
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: { sub: ['x', '_2'] }, },});figure.elements._eqn.showForm('1'); Copy
//Simplefigure.add({ name: 'eqn', make: 'equation', forms: { 1: { sub: ['x', '_2'] }, },});figure.elements._eqn.showForm('1');
// Example showing different subscript optionsfigure.add({ name: 'eqn', make: 'equation', forms: { // Object form 1: { sub: { content: 'x', subscript: 'b', }, }, // Array form 2: [{ sub: ['x', 'b'] }, ' ', { sub: ['y', 'd'] }], 3: { sub: ['x', ['b', ' ', '+', ' ', 'd']] }, // Subscript offset to adjust layout to keep animation smooth 4: { sub: { content: 'x', subscript: { frac: [['b', ' ', '+', ' ', 'd'], 'vinculum', '_2'] }, offset: [-0.025, -0.02], }, }, }, formSeries: ['1', '2', '3', '4'],});const eqn = figure.elements._eqn;eqn.onClick = () => eqn.nextForm();eqn.setTouchable();eqn.showForm('1');@interface Copy
// Example showing different subscript optionsfigure.add({ name: 'eqn', make: 'equation', forms: { // Object form 1: { sub: { content: 'x', subscript: 'b', }, }, // Array form 2: [{ sub: ['x', 'b'] }, ' ', { sub: ['y', 'd'] }], 3: { sub: ['x', ['b', ' ', '+', ' ', 'd']] }, // Subscript offset to adjust layout to keep animation smooth 4: { sub: { content: 'x', subscript: { frac: [['b', ' ', '+', ' ', 'd'], 'vinculum', '_2'] }, offset: [-0.025, -0.02], }, }, }, formSeries: ['1', '2', '3', '4'],});const eqn = figure.elements._eqn;eqn.onClick = () => eqn.nextForm();eqn.setTouchable();eqn.showForm('1');@interface
Equation subscript
Options can be an object, or an array in the property order below
See
To test examples, append them to the boilerplate
Example
Example