figureone
    Preparing search index...

    Interface EQN_SuperscriptSubscript

    Equation superscript and subscript

    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',
    forms: {
    1: { supSub: ['x', 'b', 'a'] },
    },
    });
    // Example showing different super-sub script options
    figure.add({
    name: 'eqn',
    make: 'equation',
    forms: {
    // Object form
    1: {
    supSub: {
    content: 'x',
    superscript: 'b',
    subscript: 'a',
    },
    },
    // Array form
    2: [{ supSub: ['x', 'b', 'a'] }, ' ', { supSub: ['x_1', 'c', 'a_1'] }],
    3: { supSub: ['x', ['b', ' ', '+', ' ', 'c'], 'a'] },
    },
    formSeries: ['1', '2', '3'],
    });
    const eqn = figure.elements._eqn;
    eqn.onClick = () => eqn.nextForm();
    eqn.setTouchable();
    @interface