How to use the spectacle.Plotly function in spectacle

To help you get started, we’ve selected a few spectacle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github FormidableLabs / spectacle-editor-viewer / src / components / viewer.js View on Github external
import React, { PropTypes } from 'react';
import * as Core from 'spectacle';
import sanitizeHtml from 'sanitize-html';
import theme from '../theme';

import Syntax from './syntax';
import migrate from '../migrations';
import { passAllowedSpectacleElements, sanitizeUri } from '../util/sanitize';

const { Spectacle, Deck, Slide, Appear } = Core;

Core.Plotly = ({src, style, height, width, scrolling, frameBorder, name}) => (

spectacle

ReactJS Powered Presentation Framework

MIT
Latest version published 9 months ago

Package Health Score

73 / 100
Full package analysis