File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
shelly/plotlyjs/static/plotlyjs/src Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ module.exports = {
13
13
// no interactivity, for export or image generation
14
14
staticPlot : false ,
15
15
16
- // we're in the workspace, so need toolbar etc
17
- // TODO describe functionality instead?
18
- workspace : false ,
19
-
20
16
// we can edit titles, move annotations, etc
21
17
editable : false ,
22
18
Original file line number Diff line number Diff line change @@ -271,7 +271,6 @@ function setPlotContext(gd, config) {
271
271
272
272
//staticPlot forces a bunch of others:
273
273
if ( context . staticPlot ) {
274
- context . workspace = false ;
275
274
context . editable = false ;
276
275
context . autosizable = false ;
277
276
context . scrollZoom = false ;
Original file line number Diff line number Diff line change @@ -76,6 +76,10 @@ exports.d3 = require('d3');
76
76
// override defaultConfig
77
77
exports . defaultConfig . showSources = require ( './addons/show_sources' ) ;
78
78
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
+
79
83
// custom styling injected via envify/uglifyify
80
84
if ( process . env . PLOTLY_CUSTOM_STYLE === "open-office-2015" ) {
81
85
require ( './styles/open_office_2015' ) ( ) ;
You can’t perform that action at this time.
0 commit comments