@fishawack/lab-d3
Advanced tools
Comparing version 4.1.2 to 4.1.3
{ | ||
"name": "@fishawack/lab-d3", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": "Abstract layer built on top of d3", | ||
@@ -14,3 +14,3 @@ "scripts": { | ||
"mail": "npm run mail --prefix node_modules/@fishawack/core/", | ||
"preversion": "rimraf src && mkdir src && babel _Build/js/ --out-dir src/ --ignore \"_Build/js/script.js\",\"_Build/js/archive/**/*.js\",\"_Build/js/generated/**/*.js\",\"_Build/js/libs/archive/**/*.js\",\"_Build/js/libs/*.js\"" | ||
"preversion": "mkdir src && babel _Build/js/ --out-dir src/ --ignore \"_Build/js/script.js\",\"_Build/js/archive/**/*.js\",\"_Build/js/generated/**/*.js\",\"_Build/js/libs/archive/**/*.js\",\"_Build/js/libs/*.js\"" | ||
}, | ||
@@ -32,10 +32,8 @@ "license": "BSD-3-Clause", | ||
"@babel/preset-env": "7.3.1", | ||
"@fishawack/core": "^8.13.1", | ||
"@fishawack/lab-ui": "^12.4.2", | ||
"rimraf": "2.6.3" | ||
"@fishawack/core": "^8.16.1", | ||
"@fishawack/lab-ui": "^12.4.2" | ||
}, | ||
"dependencies": { | ||
"d3": "5.4.0", | ||
"moment": "2.18.1", | ||
"seedrandom": "2.4.4" | ||
"moment": "2.18.1" | ||
}, | ||
@@ -42,0 +40,0 @@ "sideEffects": false, |
@@ -31,7 +31,2 @@ "use strict"; | ||
} | ||
}, | ||
random: { | ||
seed: 0, | ||
call: null, | ||
scale: null | ||
} | ||
@@ -76,8 +71,2 @@ }); | ||
_.width = local.plotWidth[_.pA]; | ||
if (att.random.scale) { | ||
if (!att.random.call) { | ||
att.random.call = Shared.seedRandom(att.random.seed); | ||
} | ||
_[_.pA] += (att.random.call() - 0.5) * (_.width * att.random.scale); | ||
} | ||
_.index = Shared.getPrimaryIndex(element, att.primaryIndex); | ||
@@ -84,0 +73,0 @@ }; |
@@ -5,3 +5,2 @@ "use strict"; | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
import seedrandom from 'seedrandom'; | ||
var d3 = _extends({}, require("d3-selection"), require("d3-array"), require("d3-format")); | ||
@@ -339,5 +338,2 @@ var inited = false; | ||
}, | ||
seedRandom: function seedRandom(seed) { | ||
return seedrandom(seed); | ||
}, | ||
applyThresholds: function applyThresholds(value, node, att, d) { | ||
@@ -344,0 +340,0 @@ var _att$threshold = att.threshold, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
5
560849
5552
- Removedseedrandom@2.4.4
- Removedseedrandom@2.4.4(transitive)