figureone
    Preparing search index...

    Equation bar

    Place a bar (or bracket) symbol to the side of an equation phrase.

    Symbols that can be used with bar are:

    • EQN_BarSymbol
    • EQN_ArrowSymbol
    • EQN_BraceSymbol
    • EQN_BracketSymbol
    • EQN_SquareBracketSymbol
    • EQN_AngleBracketSymbol

    Options can be an object, or an array in the property order below

    To test examples, append them to the boilerplate

    // Simple
    figure.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 examples
    figure.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