@esm-bundle/angular__animations
Advanced tools
Comparing version
@@ -1,4 +0,4 @@ | ||
/* esm-bundle - @angular/animations@13.3.0 - Ivy - es format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/* esm-bundle - @angular/animations@13.3.1 - Ivy - es format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/** | ||
* @license Angular v13.3.0 | ||
* @license Angular v13.3.1 | ||
* (c) 2010-2022 Google LLC. https://angular.io/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations@13.3.0 - Ivy - es format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/* esm-bundle - @angular/animations@13.3.1 - Ivy - es format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
class t{}class s{}const n="*";function i(t,s){return{type:7,name:t,definitions:s,options:{}}}function o(t,s=null){return{type:4,styles:s,timings:t}}function e(t,s=null){return{type:3,steps:t,options:s}}function r(t,s=null){return{type:2,steps:t,options:s}}function h(t){return{type:6,styles:t,offset:null}}function a(t,s,n){return{type:0,name:t,styles:s,options:n}}function l(t){return{type:5,steps:t}}function _(t,s,n=null){return{type:1,expr:t,animation:s,options:n}}function y(t,s=null){return{type:8,animation:t,options:s}}function p(t=null){return{type:9,options:t}}function u(t,s=null){return{type:10,animation:t,options:s}}function c(t,s,n=null){return{type:11,selector:t,animation:s,options:n}}function f(t,s){return{type:12,timings:t,animation:s}}function d(t){Promise.resolve(null).then(t)}class F{constructor(t=0,s=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+s}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){d((()=>this._onFinish()))}_onStart(){this._onStartFns.forEach((t=>t())),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}}class D{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let s=0,n=0,i=0;const o=this.players.length;0==o?d((()=>this._onFinish())):this.players.forEach((t=>{t.onDone((()=>{++s==o&&this._onFinish()})),t.onDestroy((()=>{++n==o&&this._onDestroy()})),t.onStart((()=>{++i==o&&this._onStart()}))})),this.totalTime=this.players.reduce(((t,s)=>Math.max(t,s.totalTime)),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}init(){this.players.forEach((t=>t.init()))}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((t=>t())),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((t=>t.play()))}pause(){this.players.forEach((t=>t.pause()))}restart(){this.players.forEach((t=>t.restart()))}finish(){this._onFinish(),this.players.forEach((t=>t.finish()))}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((t=>t.destroy())),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this.players.forEach((t=>t.reset())),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const s=t*this.totalTime;this.players.forEach((t=>{const n=t.totalTime?Math.min(1,s/t.totalTime):1;t.setPosition(n)}))}getPosition(){const t=this.players.reduce(((t,s)=>null===t||s.totalTime>t.totalTime?s:t),null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach((t=>{t.beforeDestroy&&t.beforeDestroy()}))}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}}const m="!";export{n as AUTO_STYLE,t as AnimationBuilder,s as AnimationFactory,F as NoopAnimationPlayer,o as animate,p as animateChild,y as animation,e as group,l as keyframes,c as query,r as sequence,f as stagger,a as state,h as style,_ as transition,i as trigger,u as useAnimation,D as ɵAnimationGroupPlayer,m as ɵPRE_STYLE}; | ||
//# sourceMappingURL=angular-animations.min.js.map |
@@ -1,4 +0,4 @@ | ||
/* esm-bundle - @angular/animations@13.3.0 - Ivy - es format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/* esm-bundle - @angular/animations@13.3.1 - Ivy - es format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/** | ||
* @license Angular v13.3.0 | ||
* @license Angular v13.3.1 | ||
* (c) 2010-2022 Google LLC. https://angular.io/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations@13.3.0 - Ivy - es format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/* esm-bundle - @angular/animations@13.3.1 - Ivy - es format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
class t{}class s{}const n="*";function i(t,s){return{type:7,name:t,definitions:s,options:{}}}function o(t,s=null){return{type:4,styles:s,timings:t}}function e(t,s=null){return{type:3,steps:t,options:s}}function r(t,s=null){return{type:2,steps:t,options:s}}function h(t){return{type:6,styles:t,offset:null}}function a(t,s,n){return{type:0,name:t,styles:s,options:n}}function l(t){return{type:5,steps:t}}function _(t,s,n=null){return{type:1,expr:t,animation:s,options:n}}function y(t,s=null){return{type:8,animation:t,options:s}}function p(t=null){return{type:9,options:t}}function u(t,s=null){return{type:10,animation:t,options:s}}function c(t,s,n=null){return{type:11,selector:t,animation:s,options:n}}function f(t,s){return{type:12,timings:t,animation:s}}function d(t){Promise.resolve(null).then(t)}class F{constructor(t=0,s=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+s}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){d((()=>this._onFinish()))}_onStart(){this._onStartFns.forEach((t=>t())),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}}class D{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let s=0,n=0,i=0;const o=this.players.length;0==o?d((()=>this._onFinish())):this.players.forEach((t=>{t.onDone((()=>{++s==o&&this._onFinish()})),t.onDestroy((()=>{++n==o&&this._onDestroy()})),t.onStart((()=>{++i==o&&this._onStart()}))})),this.totalTime=this.players.reduce(((t,s)=>Math.max(t,s.totalTime)),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}init(){this.players.forEach((t=>t.init()))}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((t=>t())),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((t=>t.play()))}pause(){this.players.forEach((t=>t.pause()))}restart(){this.players.forEach((t=>t.restart()))}finish(){this._onFinish(),this.players.forEach((t=>t.finish()))}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((t=>t.destroy())),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this.players.forEach((t=>t.reset())),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const s=t*this.totalTime;this.players.forEach((t=>{const n=t.totalTime?Math.min(1,s/t.totalTime):1;t.setPosition(n)}))}getPosition(){const t=this.players.reduce(((t,s)=>null===t||s.totalTime>t.totalTime?s:t),null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach((t=>{t.beforeDestroy&&t.beforeDestroy()}))}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}}const m="!";export{n as AUTO_STYLE,t as AnimationBuilder,s as AnimationFactory,F as NoopAnimationPlayer,o as animate,p as animateChild,y as animation,e as group,l as keyframes,c as query,r as sequence,f as stagger,a as state,h as style,_ as transition,i as trigger,u as useAnimation,D as ɵAnimationGroupPlayer,m as ɵPRE_STYLE}; | ||
//# sourceMappingURL=angular-animations.min.js.map |
{ | ||
"name": "@esm-bundle/angular__animations", | ||
"version": "13.3.0", | ||
"version": "13.3.1", | ||
"description": "ESM and SystemJS versions of @angular/animations", | ||
@@ -11,2 +11,7 @@ "type": "module", | ||
"default": "./es2020/ivy/angular-animations.js" | ||
}, | ||
"./browser": { | ||
"es2015": "./es2015/ivy/angular-browser.js", | ||
"es2020": "./es2020/ivy/angular-browser.js", | ||
"default": "./es2020/ivy/angular-browser.js" | ||
} | ||
@@ -45,8 +50,7 @@ }, | ||
"devDependencies": { | ||
"@angular/animations": "13.3.0", | ||
"@angular/compiler": "13.3.0", | ||
"@angular/compiler-cli": "13.3.0", | ||
"@angular/core": "13.3.0", | ||
"@angular/animations": "13.3.1", | ||
"@angular/compiler": "13.3.1", | ||
"@angular/compiler-cli": "13.3.1", | ||
"@angular/core": "13.3.1", | ||
"@rollup/plugin-babel": "5.3.1", | ||
"chai": "4.3.4", | ||
"concurrently": "7.0.0", | ||
@@ -56,4 +60,3 @@ "husky": "7.0.4", | ||
"karma-firefox-launcher": "2.1.2", | ||
"karma-jasmine": "4.0.1", | ||
"mocha": "9.2.2", | ||
"karma-jasmine": "4.0.2", | ||
"pinst": "3.0.0", | ||
@@ -60,0 +63,0 @@ "prettier": "2.6.1", |
@@ -37,2 +37,24 @@ # angular-animations | ||
### @angular/animations/browser | ||
#### ES2015 | ||
https://cdn.jsdelivr.net/npm/@esm-bundle/angular__animations/system/es2015/ivy/angular-browser.js | ||
https://cdn.jsdelivr.net/npm/@esm-bundle/angular__animations/system/es2015/ivy/angular-browser.min.js | ||
https://unpkg.com/@esm-bundle/angular__animations/system/es2015/ivy/angular-browser.js | ||
https://unpkg.com/@esm-bundle/angular__animations/system/es2015/ivy/angular-browser.min.js | ||
#### ES2020 | ||
https://cdn.jsdelivr.net/npm/@esm-bundle/angular__animations/system/es2020/ivy/angular-browser.js | ||
https://cdn.jsdelivr.net/npm/@esm-bundle/angular__animations/system/es2020/ivy/angular-browser.min.js | ||
https://unpkg.com/@esm-bundle/angular__animations/system/es2020/ivy/angular-browser.js | ||
https://unpkg.com/@esm-bundle/angular__animations/system/es2020/ivy/angular-browser.min.js | ||
## Specific Version | ||
@@ -39,0 +61,0 @@ |
@@ -1,2 +0,2 @@ | ||
/* esm-bundle - @angular/animations@13.3.0 - Ivy - system format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/* esm-bundle - @angular/animations@13.3.1 - Ivy - system format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
System.register([], (function (exports) { | ||
@@ -24,3 +24,3 @@ 'use strict'; | ||
/** | ||
* @license Angular v13.3.0 | ||
* @license Angular v13.3.1 | ||
* (c) 2010-2022 Google LLC. https://angular.io/ | ||
@@ -27,0 +27,0 @@ * License: MIT |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations@13.3.0 - Ivy - system format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/* esm-bundle - @angular/animations@13.3.1 - Ivy - system format - es2015 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
System.register([],(function(t){"use strict";return{execute:function(){t({animate:function(t,s=null){return{type:4,styles:s,timings:t}},animateChild:function(t=null){return{type:9,options:t}},animation:function(t,s=null){return{type:8,animation:t,options:s}},group:function(t,s=null){return{type:3,steps:t,options:s}},keyframes:function(t){return{type:5,steps:t}},query:function(t,s,n=null){return{type:11,selector:t,animation:s,options:n}},sequence:function(t,s=null){return{type:2,steps:t,options:s}},stagger:function(t,s){return{type:12,timings:t,animation:s}},state:function(t,s,n){return{type:0,name:t,styles:s,options:n}},style:function(t){return{type:6,styles:t,offset:null}},transition:function(t,s,n=null){return{type:1,expr:t,animation:s,options:n}},trigger:function(t,s){return{type:7,name:t,definitions:s,options:{}}},useAnimation:function(t,s=null){return{type:10,animation:t,options:s}}});t("AnimationBuilder",class{});t("AnimationFactory",class{});t("AUTO_STYLE","*");function s(t){Promise.resolve(null).then(t)}t("NoopAnimationPlayer",class{constructor(t=0,s=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+s}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){s((()=>this._onFinish()))}_onStart(){this._onStartFns.forEach((t=>t())),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}});t("ɵAnimationGroupPlayer",class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let n=0,i=0,o=0;const e=this.players.length;0==e?s((()=>this._onFinish())):this.players.forEach((t=>{t.onDone((()=>{++n==e&&this._onFinish()})),t.onDestroy((()=>{++i==e&&this._onDestroy()})),t.onStart((()=>{++o==e&&this._onStart()}))})),this.totalTime=this.players.reduce(((t,s)=>Math.max(t,s.totalTime)),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}init(){this.players.forEach((t=>t.init()))}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((t=>t())),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((t=>t.play()))}pause(){this.players.forEach((t=>t.pause()))}restart(){this.players.forEach((t=>t.restart()))}finish(){this._onFinish(),this.players.forEach((t=>t.finish()))}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((t=>t.destroy())),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this.players.forEach((t=>t.reset())),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const s=t*this.totalTime;this.players.forEach((t=>{const n=t.totalTime?Math.min(1,s/t.totalTime):1;t.setPosition(n)}))}getPosition(){const t=this.players.reduce(((t,s)=>null===t||s.totalTime>t.totalTime?s:t),null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach((t=>{t.beforeDestroy&&t.beforeDestroy()}))}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}});t("ɵPRE_STYLE","!")}}})); | ||
//# sourceMappingURL=angular-animations.min.js.map |
@@ -1,2 +0,2 @@ | ||
/* esm-bundle - @angular/animations@13.3.0 - Ivy - system format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/* esm-bundle - @angular/animations@13.3.1 - Ivy - system format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
System.register([], (function (exports) { | ||
@@ -24,3 +24,3 @@ 'use strict'; | ||
/** | ||
* @license Angular v13.3.0 | ||
* @license Angular v13.3.1 | ||
* (c) 2010-2022 Google LLC. https://angular.io/ | ||
@@ -27,0 +27,0 @@ * License: MIT |
@@ -1,3 +0,3 @@ | ||
/* esm-bundle - @angular/animations@13.3.0 - Ivy - system format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
/* esm-bundle - @angular/animations@13.3.1 - Ivy - system format - es2020 - Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license */ | ||
System.register([],(function(t){"use strict";return{execute:function(){t({animate:function(t,s=null){return{type:4,styles:s,timings:t}},animateChild:function(t=null){return{type:9,options:t}},animation:function(t,s=null){return{type:8,animation:t,options:s}},group:function(t,s=null){return{type:3,steps:t,options:s}},keyframes:function(t){return{type:5,steps:t}},query:function(t,s,n=null){return{type:11,selector:t,animation:s,options:n}},sequence:function(t,s=null){return{type:2,steps:t,options:s}},stagger:function(t,s){return{type:12,timings:t,animation:s}},state:function(t,s,n){return{type:0,name:t,styles:s,options:n}},style:function(t){return{type:6,styles:t,offset:null}},transition:function(t,s,n=null){return{type:1,expr:t,animation:s,options:n}},trigger:function(t,s){return{type:7,name:t,definitions:s,options:{}}},useAnimation:function(t,s=null){return{type:10,animation:t,options:s}}});t("AnimationBuilder",class{});t("AnimationFactory",class{});t("AUTO_STYLE","*");function s(t){Promise.resolve(null).then(t)}t("NoopAnimationPlayer",class{constructor(t=0,s=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+s}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){s((()=>this._onFinish()))}_onStart(){this._onStartFns.forEach((t=>t())),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}});t("ɵAnimationGroupPlayer",class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let n=0,i=0,o=0;const e=this.players.length;0==e?s((()=>this._onFinish())):this.players.forEach((t=>{t.onDone((()=>{++n==e&&this._onFinish()})),t.onDestroy((()=>{++i==e&&this._onDestroy()})),t.onStart((()=>{++o==e&&this._onStart()}))})),this.totalTime=this.players.reduce(((t,s)=>Math.max(t,s.totalTime)),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach((t=>t())),this._onDoneFns=[])}init(){this.players.forEach((t=>t.init()))}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((t=>t())),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((t=>t.play()))}pause(){this.players.forEach((t=>t.pause()))}restart(){this.players.forEach((t=>t.restart()))}finish(){this._onFinish(),this.players.forEach((t=>t.finish()))}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((t=>t.destroy())),this._onDestroyFns.forEach((t=>t())),this._onDestroyFns=[])}reset(){this.players.forEach((t=>t.reset())),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const s=t*this.totalTime;this.players.forEach((t=>{const n=t.totalTime?Math.min(1,s/t.totalTime):1;t.setPosition(n)}))}getPosition(){const t=this.players.reduce(((t,s)=>null===t||s.totalTime>t.totalTime?s:t),null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach((t=>{t.beforeDestroy&&t.beforeDestroy()}))}triggerCallback(t){const s="start"==t?this._onStartFns:this._onDoneFns;s.forEach((t=>t())),s.length=0}});t("ɵPRE_STYLE","!")}}})); | ||
//# sourceMappingURL=angular-animations.min.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3106194
467.25%19
-9.52%35
84.21%23648
359.18%80
37.93%1
Infinity%