Equation bar
Place a bar (or bracket) symbol to the side of an equation phrase.
Symbols that can be used with bar are:
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: { bar: { symbol: 'bar', side: 'top' }, }, forms: { 1: { bar: ['a', 'bar', 'top'] }, },});figure.elements._eqn.showForm('1'); Copy
// Simplefigure.add({ name: 'eqn', make: 'equation', elements: { bar: { symbol: 'bar', side: 'top' }, }, forms: { 1: { bar: ['a', 'bar', 'top'] }, },});figure.elements._eqn.showForm('1');
// Some different bar examplesfigure.add({ name: 'eqn', make: 'equation', elements: { hBar: { symbol: 'bar', side: 'top' }, vBar: { symbol: 'bar', side: 'right' }, hArrow: { symbol: 'arrow', direction: 'right' }, }, forms: { // Array equation 1: { bar: [['a', 'b'], 'hBar', 'top'] }, // Object definition 2: { bar: { content: ['a', 'b'], symbol: 'hBar', side: 'bottom', }, }, // Additional options for layout 3: { bar: { content: ['a', 'b'], symbol: 'vBar', side: 'right', overhang: 0.1, }, }, // Vector arrow 4: { bar: { content: ['a', 'b'], symbol: 'hArrow', side: 'top', }, }, }, formSeries: ['1', '2', '3', '4']});const eqn = figure.elements._eqn;eqn.onClick = () => eqn.nextForm();eqn.setTouchable();eqn.showForm('1');@interface Copy
// Some different bar examplesfigure.add({ name: 'eqn', make: 'equation', elements: { hBar: { symbol: 'bar', side: 'top' }, vBar: { symbol: 'bar', side: 'right' }, hArrow: { symbol: 'arrow', direction: 'right' }, }, forms: { // Array equation 1: { bar: [['a', 'b'], 'hBar', 'top'] }, // Object definition 2: { bar: { content: ['a', 'b'], symbol: 'hBar', side: 'bottom', }, }, // Additional options for layout 3: { bar: { content: ['a', 'b'], symbol: 'vBar', side: 'right', overhang: 0.1, }, }, // Vector arrow 4: { bar: { content: ['a', 'b'], symbol: 'hArrow', side: 'top', }, }, }, formSeries: ['1', '2', '3', '4']});const eqn = figure.elements._eqn;eqn.onClick = () => eqn.nextForm();eqn.setTouchable();eqn.showForm('1');@interface
Equation bar
Place a bar (or bracket) symbol to the side of an equation phrase.
Symbols that can be used with bar are:
Options can be an object, or an array in the property order below
See
To test examples, append them to the boilerplate
Example
Example