Skip to content

Commit 897e309

Browse files
committed
Merge branch 'master' into custom-modebar
2 parents de960ab + 0dff67a commit 897e309

File tree

16 files changed

+60
-68
lines changed

16 files changed

+60
-68
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"3d-view": "^2.0.0",
4242
"alpha-shape": "^1.0.0",
4343
"arraytools": "^1.0.0",
44-
"browserify": "^12.0.1",
4544
"convex-hull": "^1.0.3",
4645
"d3": "3.5.6",
4746
"delaunay-triangulate": "^1.1.6",
@@ -73,14 +72,13 @@
7372
"robust-orientation": "^1.1.3",
7473
"sane-topojson": "^1.2.0",
7574
"superscript-text": "^1.0.0",
76-
"through2": "^2.0.0",
7775
"tinycolor2": "1.1.2",
7876
"topojson": "^1.6.19",
79-
"uglify-js": "^2.5.0",
8077
"xml2js": "^0.4.15"
8178
},
8279
"devDependencies": {
8380
"brfs": "^1.4.1",
81+
"browserify": "^12.0.1",
8482
"browserify-transform-tools": "^1.5.0",
8583
"ecstatic": "^1.2.0",
8684
"jasmine-core": "^2.3.4",
@@ -93,6 +91,8 @@
9391
"karma-jasmine": "^0.3.6",
9492
"open": "0.0.5",
9593
"prettysize": "0.0.3",
96-
"watchify": "^3.6.0"
94+
"through2": "^2.0.0",
95+
"watchify": "^3.6.0",
96+
"uglify-js": "^2.5.0"
9797
}
9898
}

src/assets/geo_assets.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@
99

1010
var saneTopojson = require('sane-topojson');
1111

12+
// export the version found in the package.json
13+
exports.version = require('../../package.json').version;
14+
1215
exports.topojson = saneTopojson;

src/components/drawing/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,11 @@ var TEXTOFFSETSIGN = {start:1, end:-1, middle:0, bottom:1, top:-1},
296296
LINEEXPAND = 1.3;
297297
drawing.textPointStyle = function(s, trace) {
298298
s.each(function(d){
299-
var p = d3.select(this);
300-
if(!d.tx && !trace.text) {
299+
var p = d3.select(this),
300+
text = d.tx || trace.text;
301+
if(!text || Array.isArray(text)) {
302+
// isArray test handles the case of (intentionally) missing
303+
// or empty text within a text array
301304
p.remove();
302305
return;
303306
}
@@ -320,7 +323,7 @@ drawing.textPointStyle = function(s, trace) {
320323
fontSize,
321324
d.tc || trace.textfont.color)
322325
.attr('text-anchor',h)
323-
.text(d.tx || trace.text)
326+
.text(text)
324327
.call(Plotly.util.convertToTspans);
325328
var pgroup = d3.select(this.parentNode),
326329
tspans = p.selectAll('tspan.line'),

src/fonts/ploticon/_ploticon.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,5 @@
3939
.ploticon-3d_rotate:before { content: '\e80c'; } /* '' */
4040
.ploticon-camera:before { content: '\e80d'; } /* '' */
4141
.ploticon-movie:before { content: '\e80e'; } /* '' */
42-
.ploticon-disk:before { content: '\e80f'; } /* '' */
42+
.ploticon-question:before { content: '\e80f'; } /* '' */
43+
.ploticon-disk:before { content: '\e810'; } /* '' */

src/fonts/ploticon/config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,6 +1468,12 @@
14681468
"code": 59394,
14691469
"src": "fontawesome"
14701470
},
1471+
{
1472+
"uid": "17ebadd1e3f274ff0205601eef7b9cc4",
1473+
"css": "question",
1474+
"code": 59407,
1475+
"src": "fontawesome"
1476+
},
14711477
{
14721478
"uid": "d7271d490b71df4311e32cdacae8b331",
14731479
"css": "home",
@@ -1479,6 +1485,12 @@
14791485
"css": "undo",
14801486
"code": 59392,
14811487
"src": "fontawesome"
1488+
},
1489+
{
1490+
"uid": "f4445feb55521283572ee88bc304f928",
1491+
"css": "disk",
1492+
"code": 59408,
1493+
"src": "fontawesome"
14821494
}
14831495
]
14841496
}

src/fonts/ploticon/ploticon.eot

224 Bytes
Binary file not shown.

src/fonts/ploticon/ploticon.svg

Lines changed: 5 additions & 4 deletions
Loading

src/fonts/ploticon/ploticon.ttf

224 Bytes
Binary file not shown.

src/fonts/ploticon/ploticon.woff

176 Bytes
Binary file not shown.

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616

1717
var Plotly = require('./plotly');
1818

19+
// export the version found in the package.json
20+
exports.version = require('../package.json').version;
21+
1922
// plot api
2023
exports.plot = Plotly.plot;
2124
exports.newPlot = Plotly.newPlot;

0 commit comments

Comments
 (0)