Skip to content

Commit db76f02

Browse files
committed
put events.js & queue.js in lib/ rename plotly_util --> svg_text_utils
1 parent 03fd865 commit db76f02

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed
File renamed without changes.

src/queue.js renamed to src/lib/queue.js

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

3-
var Plotly = require('./plotly');
3+
var Plotly = require('../plotly');
44

55
/**
66
* Copy arg array *without* removing `undefined` values from objects.

src/lib/plotly_util.js renamed to src/lib/svg_text_utils.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
'use strict';
22

3-
/* global MathJax:false, Promise:false */
3+
/* global MathJax:false */
44

5-
var Plotly = require('../plotly'),
6-
d3 = require('d3');
5+
var Plotly = require('../plotly');
6+
var d3 = require('d3');
77

88
var util = module.exports = {};
99

1010
// Append SVG
11-
/////////////////////////////
1211

1312
d3.selection.prototype.appendSVG = function(_svgString) {
1413
var skeleton = '<svg xmlns="http://www.w3.org/2000/svg" ' +
@@ -28,7 +27,6 @@ d3.selection.prototype.appendSVG = function(_svgString) {
2827
};
2928

3029
// Text utilities
31-
/////////////////////////////
3230

3331
util.html_entity_decode = function(s) {
3432
var hiddenDiv = d3.select('body').append('div').style({display: 'none'}).html('');
@@ -46,7 +44,6 @@ util.xml_entity_encode = function(str){
4644
};
4745

4846
// text converter
49-
/////////////////////////////
5047

5148
function getSize(_selection, _dimension){
5249
return _selection.node().getBoundingClientRect()[_dimension];
@@ -171,7 +168,6 @@ util.convertToTspans = function(_context, _callback){
171168

172169

173170
// MathJax
174-
/////////////////////////////
175171

176172
function cleanEscapesForTex(s) {
177173
return s.replace(/(<|&lt;|&#60;)/g, '\\lt ')
@@ -357,7 +353,6 @@ function alignHTMLWith(_base, container, options){
357353
}
358354

359355
// Editable title
360-
/////////////////////////////
361356

362357
util.makeEditable = function(context, _delegate, options){
363358
if(!options) options = {};

0 commit comments

Comments
 (0)