Equation integral
Place an integral (with optional limits) before an equation phrase
Use with a EQN_IntegralSymbol symbol.
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: { int: ['int', 'x dx', 'a', 'b'] }, },});figure.elements._eqn.showForm('1'); Copy
// Simplefigure.add({ name: 'eqn', make: 'equation', forms: { 1: { int: ['int', 'x dx', 'a', 'b'] }, },});figure.elements._eqn.showForm('1');
// Example showing different integral optionsfigure.add({ name: 'eqn', make: 'equation', elements: { i: { symbol: 'int' }, // ic: { symbol: 'int', num: 1, type: 'line' }, }, formDefaults: { alignment: { fixTo: 'x' } }, forms: { // Root object form 1: { int: { symbol: 'i', content: ['x', ' ', 'dx'], from: 'a', to: 'b', }, }, // Root array form 2: { int: ['i', ['x', ' ', '+', ' ', '_1', ' ', 'dx'], 'a', 'b'] }, // Indefinite tripple integral 3: { int: ['i', ['x', ' ', '+', ' ', '_1', ' ', 'dx']] }, // Custom spacing 4: { int: { symbol: 'i', content: ['x', ' ', '+', ' ', '_1', ' ', 'dx'], to: 'b', from: { frac: ['a', 'vinculum', 'd + 2'] }, topSpace: 0.2, bottomSpace: 0.2, limitsAroundContent: false, }, }, }, formSeries: ['1', '2', '3', '4'],});const eqn = figure.elements._eqn;eqn.onClick = () => eqn.nextForm();eqn.setTouchable();eqn.showForm('1');@interface Copy
// Example showing different integral optionsfigure.add({ name: 'eqn', make: 'equation', elements: { i: { symbol: 'int' }, // ic: { symbol: 'int', num: 1, type: 'line' }, }, formDefaults: { alignment: { fixTo: 'x' } }, forms: { // Root object form 1: { int: { symbol: 'i', content: ['x', ' ', 'dx'], from: 'a', to: 'b', }, }, // Root array form 2: { int: ['i', ['x', ' ', '+', ' ', '_1', ' ', 'dx'], 'a', 'b'] }, // Indefinite tripple integral 3: { int: ['i', ['x', ' ', '+', ' ', '_1', ' ', 'dx']] }, // Custom spacing 4: { int: { symbol: 'i', content: ['x', ' ', '+', ' ', '_1', ' ', 'dx'], to: 'b', from: { frac: ['a', 'vinculum', 'd + 2'] }, topSpace: 0.2, bottomSpace: 0.2, limitsAroundContent: false, }, }, }, formSeries: ['1', '2', '3', '4'],});const eqn = figure.elements._eqn;eqn.onClick = () => eqn.nextForm();eqn.setTouchable();eqn.showForm('1');@interface
Equation integral
Place an integral (with optional limits) before an equation phrase
Use with a EQN_IntegralSymbol symbol.
Options can be an object, or an array in the property order below.
See
To test examples, append them to the boilerplate
Example
Example