figureone
    Preparing search index...

    Equation superscript

    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',
    forms: {
    1: { sup: ['e', 'x'] },
    },
    });
    figure.elements._eqn.showForm('1');
    // Examples of superscript animations
    figure.add({
    name: 'eqn',
    make: 'equation',
    forms: {
    // Object form
    1: {
    sup: {
    content: 'e',
    superscript: 'x',
    },
    },
    // Array form
    2: [{ sup: ['e', 'x'] }, ' ', { sup: ['e_1', 'y'] }],
    3: { sup: ['e', ['x', ' ', '+', ' ', 'y']] },
    },
    formSeries: ['1', '2', '3'],
    });
    const eqn = figure.elements._eqn;
    eqn.onClick = () => eqn.nextForm();
    eqn.setTouchable();
    eqn.showForm('1');
    @interface