Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zambezi/d3-utils

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zambezi/d3-utils - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0-skip-when-hidden.0

man/skip-when-hidden.md

13

dist/d3-utils.js

@@ -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;

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc