Equation strike-through
Overlay a strike symbol on an equation phrase.
Use with EQN_Strike 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', elements: { x: { symbol: 'strike', color: [0.6, 0.6, 0.6, 1] }, }, forms: { 1: [{ strike: ['a', 'x']}, ' ', 'b'], },});figure.elements._eqn.showForm('1'); Copy
// Simplefigure.add({ name: 'eqn', make: 'equation', elements: { x: { symbol: 'strike', color: [0.6, 0.6, 0.6, 1] }, }, forms: { 1: [{ strike: ['a', 'x']}, ' ', 'b'], },});figure.elements._eqn.showForm('1');
// Some different strike examplesfigure.add({ name: 'eqn', make: 'equation', elements: { s1: { symbol: 'strike', color: [0.6, 0.6, 0.6, 1] }, s2: { symbol: 'strike', style: 'forward', color: [0.6, 0.6, 0.6, 1] }, }, forms: { // Array definition 1: [{ strike: ['a', 's1']}, ' ', 'b'], // Object definition 2: { strike: { content: ['a', '_ + ', 'b'], symbol: 's1', }, }, // Additional options to make strike overhang more 3: { strike: { content: ['a', 'b'], symbol: 's1', topSpace: 0.2, rightSpace: 0.2, leftSpace: 0.2, bottomSpace: 0.2, }, }, // Forward strike 4: { strike: [['a', '_ +', 'b'], 's2'] }, }, formSeries: ['1', '2', '3', '4']});const eqn = figure.elements._eqn;eqn.onClick = () => eqn.nextForm();eqn.setTouchable();eqn.showForm('1');@interface Copy
// Some different strike examplesfigure.add({ name: 'eqn', make: 'equation', elements: { s1: { symbol: 'strike', color: [0.6, 0.6, 0.6, 1] }, s2: { symbol: 'strike', style: 'forward', color: [0.6, 0.6, 0.6, 1] }, }, forms: { // Array definition 1: [{ strike: ['a', 's1']}, ' ', 'b'], // Object definition 2: { strike: { content: ['a', '_ + ', 'b'], symbol: 's1', }, }, // Additional options to make strike overhang more 3: { strike: { content: ['a', 'b'], symbol: 's1', topSpace: 0.2, rightSpace: 0.2, leftSpace: 0.2, bottomSpace: 0.2, }, }, // Forward strike 4: { strike: [['a', '_ +', 'b'], 's2'] }, }, formSeries: ['1', '2', '3', '4']});const eqn = figure.elements._eqn;eqn.onClick = () => eqn.nextForm();eqn.setTouchable();eqn.showForm('1');@interface
Equation strike-through
Overlay a strike symbol on an equation phrase.
Use with EQN_Strike 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