Comparing version 0.2.3 to 0.2.4
@@ -71,3 +71,3 @@ /** | ||
* | ||
* Defaults to `transitioning`. | ||
* Defaults to `dom-flip-transitioning`. | ||
* | ||
@@ -74,0 +74,0 @@ * @type String |
/** | ||
* The regex used to parse the transform matrix string. | ||
*/ | ||
const transformRegex = /matrix\((-?\d*\.?\d+),\s*0,\s*0,\s*(-?\d*\.?\d+),\s*0,\s*0\)/; | ||
/** | ||
* Generates a CSS `translate`-rule compatible string that does a 2D transform. | ||
@@ -25,2 +21,6 @@ * | ||
/** | ||
* The regex used to parse the transform matrix string. | ||
*/ | ||
const transformRegex = /matrix\((-?\d*\.?\d+),\s*0,\s*0,\s*(-?\d*\.?\d+),\s*0,\s*0\)/; | ||
/** | ||
* `dom-flip` | ||
@@ -96,7 +96,7 @@ * | ||
* | ||
* Defaults to `transitioning`. | ||
* Defaults to `dom-flip-transitioning`. | ||
* | ||
* @type String | ||
*/ | ||
this.transitionClassName = 'transitioning'; | ||
this.transitionClassName = 'dom-flip-transitioning'; | ||
/** | ||
@@ -103,0 +103,0 @@ * Whether a dom change event handler is enqueued for the current animation frame. |
/** | ||
* All used attribute names. | ||
*/ | ||
const enum AttributeNames { | ||
Active = 'active', | ||
AttrName = 'attr-name', | ||
DelayMs = 'delay-ms', | ||
DurationMs = 'duration-ms', | ||
Easing = 'easing', | ||
TransitionClassName = 'transition-class-name', | ||
} | ||
/** | ||
* Child metadata. | ||
@@ -18,19 +30,2 @@ */ | ||
/** | ||
* All used attribute names. | ||
*/ | ||
const enum AttributeNames { | ||
Active = 'active', | ||
AttrName = 'attr-name', | ||
DelayMs = 'delay-ms', | ||
DurationMs = 'duration-ms', | ||
Easing = 'easing', | ||
TransitionClassName = 'transition-class-name', | ||
} | ||
/** | ||
* The regex used to parse the transform matrix string. | ||
*/ | ||
const transformRegex = /matrix\((-?\d*\.?\d+),\s*0,\s*0,\s*(-?\d*\.?\d+),\s*0,\s*0\)/; | ||
/** | ||
* Generates a CSS `translate`-rule compatible string that does a 2D transform. | ||
@@ -59,2 +54,7 @@ * | ||
/** | ||
* The regex used to parse the transform matrix string. | ||
*/ | ||
const transformRegex = /matrix\((-?\d*\.?\d+),\s*0,\s*0,\s*(-?\d*\.?\d+),\s*0,\s*0\)/; | ||
/** | ||
* `dom-flip` | ||
@@ -144,7 +144,7 @@ * | ||
* | ||
* Defaults to `transitioning`. | ||
* Defaults to `dom-flip-transitioning`. | ||
* | ||
* @type String | ||
*/ | ||
transitionClassName: string = 'transitioning'; | ||
transitionClassName: string = 'dom-flip-transitioning'; | ||
@@ -274,3 +274,3 @@ /** | ||
const bbox = this.getBoundingClientRect(); | ||
const map = new Map(); | ||
const map = new Map<string, [HTMLElement, ChildData]>(); | ||
@@ -277,0 +277,0 @@ for (const el of this._slot.assignedNodes()) { |
{ | ||
"name": "dom-flip", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Smooth position animation for web components", | ||
@@ -5,0 +5,0 @@ "main": "dist/dom-flip.js", |
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
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
45098