Skip to content

Commit bc1c5c8

Browse files
committed
🔪 arraytools dep (sorry @bpostlethwaite)
- and replace it by Lib.extendFlat({}, /* */)
1 parent e4971ef commit bc1c5c8

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"dependencies": {
5656
"3d-view": "^2.0.0",
5757
"alpha-shape": "^1.0.0",
58-
"arraytools": "^1.0.0",
5958
"color-rgba": "^1.0.4",
6059
"convex-hull": "^1.0.3",
6160
"country-regex": "^1.1.0",

src/plots/gl3d/layout/convert.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@
99

1010
'use strict';
1111

12-
var arrtools = require('arraytools');
12+
var Lib = require('../../../lib');
1313
var convertHTMLToUnicode = require('../../../lib/html2unicode');
1414
var str2RgbaArray = require('../../../lib/str2rgbarray');
1515

16-
var arrayCopy1D = arrtools.copy1D;
17-
1816
var AXES_NAMES = ['xaxis', 'yaxis', 'zaxis'];
1917

2018
function AxesOptions() {
@@ -64,9 +62,9 @@ function AxesOptions() {
6462
[0.8, 0.8, 0.8, 0.5] ];
6563

6664
// some default values are stored for applying model transforms
67-
this._defaultTickPad = arrayCopy1D(this.tickPad);
68-
this._defaultLabelPad = arrayCopy1D(this.labelPad);
69-
this._defaultLineTickLength = arrayCopy1D(this.lineTickLength);
65+
this._defaultTickPad = Lib.extendFlat([], this.tickPad);
66+
this._defaultLabelPad = Lib.extendFlat([], this.labelPad);
67+
this._defaultLineTickLength = Lib.extendFlat([], this.lineTickLength);
7068
}
7169

7270
var proto = AxesOptions.prototype;

0 commit comments

Comments
 (0)