'use strict'; var main = require('./plot_api'); exports._doPlot = main._doPlot; exports.newPlot = main.newPlot; exports.restyle = main.restyle; exports.relayout = main.relayout; exports.redraw = main.redraw; exports.update = main.update; exports._guiRestyle = main._guiRestyle; exports._guiRelayout = main._guiRelayout; exports._guiUpdate = main._guiUpdate; exports._storeDirectGUIEdit = main._storeDirectGUIEdit; exports.react = main.react; exports.extendTraces = main.extendTraces; exports.prependTraces = main.prependTraces; exports.addTraces = main.addTraces; exports.deleteTraces = main.deleteTraces; exports.moveTraces = main.moveTraces; exports.purge = main.purge; exports.addFrames = main.addFrames; exports.deleteFrames = main.deleteFrames; exports.animate = main.animate; exports.setPlotConfig = main.setPlotConfig; var getGraphDiv = require('../lib/dom').getGraphDiv; var eraseActiveShape = require('../components/shapes/draw').eraseActiveShape; exports.deleteActiveShape = function(gd) { return eraseActiveShape(getGraphDiv(gd)); }; exports.toImage = require('./to_image'); exports.validate = require('./validate'); exports.downloadImage = require('../snapshot/download'); var templateApi = require('./template_api'); exports.makeTemplate = templateApi.makeTemplate; exports.validateTemplate = templateApi.validateTemplate;