Skip to content

Commit 5518bef

Browse files
committed
bow to the 🐄
1 parent 0fe718d commit 5518bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/colorbar/draw.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'use strict';
1111

1212
var d3 = require('d3');
13-
var tc = require('tinycolor2');
13+
var tinycolor = require('tinycolor2');
1414

1515
var Plotly = require('../../plotly');
1616
var Plots = require('../../plots/plots');
@@ -362,7 +362,7 @@ module.exports = function draw(gd, id) {
362362
// Tinycolor can't handle exponents and
363363
// at this scale, removing it makes no difference.
364364
var colorString = fillcolormap(d).replace('e-', ''),
365-
opaqueColor = tc(colorString).toHexString();
365+
opaqueColor = tinycolor(colorString).toHexString();
366366

367367
// Colorbar cannot currently support opacities so we
368368
// use an opaque fill even when alpha channels present

0 commit comments

Comments
 (0)