Skip to content

Commit 8bbdfa8

Browse files
committed
rm 'workspace' config arg from plotlyjs,
add it to streambed plotlyjs
1 parent 82fc3ca commit 8bbdfa8

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

shelly/plotlyjs/static/plotlyjs/src/config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ module.exports = {
1313
// no interactivity, for export or image generation
1414
staticPlot: false,
1515

16-
// we're in the workspace, so need toolbar etc
17-
// TODO describe functionality instead?
18-
workspace: false,
19-
2016
// we can edit titles, move annotations, etc
2117
editable: false,
2218

shelly/plotlyjs/static/plotlyjs/src/graph_obj.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ function setPlotContext(gd, config) {
271271

272272
//staticPlot forces a bunch of others:
273273
if(context.staticPlot) {
274-
context.workspace = false;
275274
context.editable = false;
276275
context.autosizable = false;
277276
context.scrollZoom = false;

shelly/plotlyjs/static/plotlyjs/src/plotly.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ exports.d3 = require('d3');
7676
// override defaultConfig
7777
exports.defaultConfig.showSources = require('./addons/show_sources');
7878

79+
// add 'workspace' config argument, which is used in workspace code
80+
// to determine whether a graphDiv is in the workspace.
81+
exports.defaultConfig.workspace = false;
82+
7983
// custom styling injected via envify/uglifyify
8084
if(process.env.PLOTLY_CUSTOM_STYLE === "open-office-2015") {
8185
require('./styles/open_office_2015')();

0 commit comments

Comments
 (0)