@zambezi/d3-utils
Advanced tools
Comparing version 3.2.0 to 3.3.0-skip-when-hidden.0
@@ -339,2 +339,14 @@ (function (global, factory) { | ||
function skipWhenHidden(component) { | ||
return function run(s) { | ||
s.each(runEach); | ||
}; | ||
function runEach() { | ||
if (!this.offsetParent) return; | ||
d3Selection.select(this).call(component); | ||
} | ||
} | ||
function throttle$1(component) { | ||
@@ -390,2 +402,3 @@ var wait = arguments.length <= 1 || arguments[1] === undefined ? 150 : arguments[1]; | ||
exports.selectionChanged = selectionChanged; | ||
exports.skipWhenHidden = skipWhenHidden; | ||
exports.throttle = throttle$1; | ||
@@ -392,0 +405,0 @@ exports.throttleToAnimationFrame = throttleToAnimationFrame; |
{ | ||
"name": "@zambezi/d3-utils", | ||
"version": "3.2.0", | ||
"version": "3.3.0-skip-when-hidden.0", | ||
"description": "Common utility functions to use with d3", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -17,3 +17,4 @@ export { appendFromTemplate } from './append-from-template' | ||
export { selectionChanged } from './selection-changed' | ||
export { skipWhenHidden } from './skip-when-hidden' | ||
export { throttle } from './throttle' | ||
export { throttleToAnimationFrame } from './throttle-to-animation-frame' |
@@ -22,2 +22,3 @@ Summary | ||
- [resize](man/resize.md) | ||
- [skip when hidden](man/skip-when-hidden.md) | ||
@@ -24,0 +25,0 @@ - Formatters |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
62392
52
639
1