plotly.js 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +3 -3
- package/dist/README.md +19 -19
- package/dist/plotly-basic.js +2 -2
- package/dist/plotly-basic.min.js +2 -2
- package/dist/plotly-cartesian.js +2 -2
- package/dist/plotly-cartesian.min.js +2 -2
- package/dist/plotly-finance.js +2 -2
- package/dist/plotly-finance.min.js +2 -2
- package/dist/plotly-geo-assets.js +2 -2
- package/dist/plotly-geo.js +2 -2
- package/dist/plotly-geo.min.js +2 -2
- package/dist/plotly-gl2d.js +8 -23
- package/dist/plotly-gl2d.min.js +2 -2
- package/dist/plotly-gl3d.js +2 -2
- package/dist/plotly-gl3d.min.js +2 -2
- package/dist/plotly-mapbox.js +2 -2
- package/dist/plotly-mapbox.min.js +2 -2
- package/dist/plotly-strict.js +8 -23
- package/dist/plotly-strict.min.js +2 -2
- package/dist/plotly-with-meta.js +8 -23
- package/dist/plotly.js +8 -23
- package/dist/plotly.min.js +2 -2
- package/package.json +2 -1
- package/src/version.js +1 -1
package/dist/plotly-strict.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* plotly.js (strict) v2.6.
|
|
2
|
+
* plotly.js (strict) v2.6.2
|
|
3
3
|
* Copyright 2012-2021, Plotly, Inc.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Licensed under the MIT license
|
|
@@ -88403,8 +88403,7 @@ var parseUnit = _dereq_('parse-unit')
|
|
|
88403
88403
|
|
|
88404
88404
|
module.exports = toPX
|
|
88405
88405
|
|
|
88406
|
-
var PIXELS_PER_INCH =
|
|
88407
|
-
|
|
88406
|
+
var PIXELS_PER_INCH = 96
|
|
88408
88407
|
|
|
88409
88408
|
function getPropertyInPX(element, prop) {
|
|
88410
88409
|
var parts = parseUnit(getComputedStyle(element).getPropertyValue(prop))
|
|
@@ -88414,22 +88413,19 @@ function getPropertyInPX(element, prop) {
|
|
|
88414
88413
|
//This brutal hack is needed
|
|
88415
88414
|
function getSizeBrutal(unit, element) {
|
|
88416
88415
|
var testDIV = document.createElement('div')
|
|
88417
|
-
testDIV.style['
|
|
88416
|
+
testDIV.style['font-size'] = '128' + unit
|
|
88418
88417
|
element.appendChild(testDIV)
|
|
88419
|
-
var size = getPropertyInPX(testDIV, '
|
|
88418
|
+
var size = getPropertyInPX(testDIV, 'font-size') / 128
|
|
88420
88419
|
element.removeChild(testDIV)
|
|
88421
88420
|
return size
|
|
88422
88421
|
}
|
|
88423
88422
|
|
|
88424
88423
|
function toPX(str, element) {
|
|
88425
|
-
if (!str) return null
|
|
88426
|
-
|
|
88427
88424
|
element = element || document.body
|
|
88428
|
-
str = (str
|
|
88425
|
+
str = (str || 'px').trim().toLowerCase()
|
|
88429
88426
|
if(element === window || element === document) {
|
|
88430
|
-
element = document.body
|
|
88427
|
+
element = document.body
|
|
88431
88428
|
}
|
|
88432
|
-
|
|
88433
88429
|
switch(str) {
|
|
88434
88430
|
case '%': //Ambiguous, not sure if we should use width or height
|
|
88435
88431
|
return element.clientHeight / 100.0
|
|
@@ -88458,20 +88454,9 @@ function toPX(str, element) {
|
|
|
88458
88454
|
return PIXELS_PER_INCH / 72
|
|
88459
88455
|
case 'pc':
|
|
88460
88456
|
return PIXELS_PER_INCH / 6
|
|
88461
|
-
case 'px':
|
|
88462
|
-
return 1
|
|
88463
|
-
}
|
|
88464
|
-
|
|
88465
|
-
// detect number of units
|
|
88466
|
-
var parts = parseUnit(str)
|
|
88467
|
-
if (!isNaN(parts[0]) && parts[1]) {
|
|
88468
|
-
var px = toPX(parts[1], element)
|
|
88469
|
-
return typeof px === 'number' ? parts[0] * px : null
|
|
88470
88457
|
}
|
|
88471
|
-
|
|
88472
|
-
return null
|
|
88458
|
+
return 1
|
|
88473
88459
|
}
|
|
88474
|
-
|
|
88475
88460
|
},{"parse-unit":147}],197:[function(_dereq_,module,exports){
|
|
88476
88461
|
// https://github.com/topojson/topojson-client v3.1.0 Copyright 2019 Mike Bostock
|
|
88477
88462
|
(function (global, factory) {
|
|
@@ -207711,7 +207696,7 @@ function getSortFunc(opts, d2c) {
|
|
|
207711
207696
|
'use strict';
|
|
207712
207697
|
|
|
207713
207698
|
// package version injected by `npm run preprocess`
|
|
207714
|
-
exports.version = '2.6.
|
|
207699
|
+
exports.version = '2.6.2';
|
|
207715
207700
|
|
|
207716
207701
|
},{}],933:[function(_dereq_,module,exports){
|
|
207717
207702
|
(function (global){(function (){
|