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

dom-flip

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-flip - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

16

dist/element.d.ts

@@ -80,2 +80,18 @@ declare global {

/**
* Updates cached child position data.
*
* If the element is hidden using `display: none` it will pickup incorrect children
* positional data which will lead to artifacts on the first visible change after
* the element was unhidden again.
*
* This can be prevented by re-collecting the positional data once every time the
* element is unhidden. This needs to be done manually, however, because the element
* cannot detect that itself.
*
* Caution: While the process itself will be run during animation frame timing, doing
* this too often could still degrade performance, as the element needs to access the
* computed style values of every child.
*/
refresh(): void;
/**
* Animates the transition of the elements that have moved.

@@ -82,0 +98,0 @@ */

@@ -163,2 +163,20 @@ /**

/**
* Updates cached child position data.
*
* If the element is hidden using `display: none` it will pickup incorrect children
* positional data which will lead to artifacts on the first visible change after
* the element was unhidden again.
*
* This can be prevented by re-collecting the positional data once every time the
* element is unhidden. This needs to be done manually, however, because the element
* cannot detect that itself.
*
* Caution: While the process itself will be run during animation frame timing, doing
* this too often could still degrade performance, as the element needs to access the
* computed style values of every child.
*/
refresh() {
batchCallback(() => this._childData = this._collectChildData());
}
/**
* Animates the transition of the elements that have moved.

@@ -165,0 +183,0 @@ */

2

package.json
{
"name": "dom-flip",
"version": "0.4.0",
"version": "0.4.1",
"description": "Smooth position animation for web components",

@@ -5,0 +5,0 @@ "main": "dist/dom-flip.js",

@@ -235,2 +235,21 @@ declare global {

/**
* Updates cached child position data.
*
* If the element is hidden using `display: none` it will pickup incorrect children
* positional data which will lead to artifacts on the first visible change after
* the element was unhidden again.
*
* This can be prevented by re-collecting the positional data once every time the
* element is unhidden. This needs to be done manually, however, because the element
* cannot detect that itself.
*
* Caution: While the process itself will be run during animation frame timing, doing
* this too often could still degrade performance, as the element needs to access the
* computed style values of every child.
*/
refresh() {
batchCallback(() => this._childData = this._collectChildData());
}
/**
* Animates the transition of the elements that have moved.

@@ -237,0 +256,0 @@ */

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