figureone
    Preparing search index...

    Equation bracket

    Surround an equation phrase with brackets.

    Symbols that can be used with bracket 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({
    make: 'equation',
    elements: {
    lb: { symbol: 'bracket', side: 'left' },
    rb: { symbol: 'bracket', side: 'right' },
    },
    forms: {
    1: ['a', { brac: ['lb', ['b', '_ + ', 'c'], 'rb'] }],
    },
    });
    // Some different bracket examples
    figure.add({
    name: 'eqn',
    make: 'equation',
    elements: {
    lb: { symbol: 'bracket', side: 'left' },
    rb: { symbol: 'bracket', side: 'right' },
    lsb: { symbol: 'squareBracket', side: 'left' },
    rsb: { symbol: 'squareBracket', side: 'right' },
    leftBrace: { }
    },
    forms: {
    // Array definition
    1: ['a', { brac: ['lb', ['b', '_ + ', 'c'], 'rb'] }],
    // Object definition
    2: ['a', {
    brac: {
    left: 'lb',
    content: { frac: ['b', 'vinculum', 'c'] },
    right: 'rb',
    },
    }],
    // Square brackets
    3: ['a', { brac: ['lsb', ['b', '_ + ', 'c'], 'rsb'] }],
    },
    formSeries: ['1', '2', '3']
    });
    const eqn = figure.elements._eqn;
    eqn.onClick = () => eqn.nextForm();
    eqn.setTouchable();
    @interface