Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0981630

Browse files
committed
use lib directly in build/plotcss.js
1 parent fb9c5f4 commit 0981630

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build/plotcss.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var Plotly = require('../src/plotly');
3+
var Lib = require('../src/lib');
44
var rules = {
55
"X,X div": "font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;",
66
"X input,X button": "font-family:'Open Sans', verdana, arial, sans-serif;",
@@ -58,5 +58,5 @@ for(var selector in rules) {
5858
var fullSelector = selector.replace(/^,/,' ,')
5959
.replace(/X/g, '.js-plotly-plot .plotly')
6060
.replace(/Y/g, '.plotly-notifier');
61-
Plotly.Lib.addStyleRule(fullSelector, rules[selector]);
61+
Lib.addStyleRule(fullSelector, rules[selector]);
6262
}

tasks/util/pull_css.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ module.exports = function pullCSS(data, pathOut) {
3838
var outStr = [
3939
'\'use strict\';',
4040
'',
41-
'var Plotly = require(\'../src/plotly\');',
41+
'var Lib = require(\'../src/lib\');',
4242
'var rules = ' + rulesStr + ';',
4343
'',
4444
'for(var selector in rules) {',
4545
' var fullSelector = selector.replace(/^,/,\' ,\')',
4646
' .replace(/X/g, \'.js-plotly-plot .plotly\')',
4747
' .replace(/Y/g, \'.plotly-notifier\');',
48-
' Plotly.Lib.addStyleRule(fullSelector, rules[selector]);',
48+
' Lib.addStyleRule(fullSelector, rules[selector]);',
4949
'}',
5050
''
5151
].join('\n');

0 commit comments

Comments
 (0)