Skip to content

Commit 935be96

Browse files
committed
Revert "Revert "inline d3.round in drawing/symbol_defs.js""
This reverts commit d7fd65c.
1 parent d7fd65c commit 935be96

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/drawing/symbol_defs.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
'use strict';
22

33
var parseSvgPath = require('parse-svg-path');
4-
var round = require('@plotly/d3').round;
4+
var round = // require('@plotly/d3').round;
5+
function(x, n) {
6+
return n ? Math.round(x * (n = Math.pow(10, n))) / n : Math.round(x);
7+
};
58

69
/** Marker symbol definitions
710
* users can specify markers either by number or name

0 commit comments

Comments
 (0)