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

ngx-lottie

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-lottie - npm Package Compare versions

Comparing version 5.3.2 to 5.4.0

32

bundles/ngx-lottie.umd.js

@@ -844,3 +844,4 @@ (function (global, factory) {

function getObservedEventEmitters(instance, eventsMap) {
return Object.keys(instance)
return (Object.keys(instance)
// `Object.entries` is not supported in IE11.
.map((/**

@@ -871,3 +872,3 @@ * @param {?} key

});
}));
})));
}

@@ -1073,5 +1074,4 @@ var LottieEventsFacade = /** @class */ (function () {

__extends(LottieComponent, _super);
function LottieComponent(renderer, platformId, eventsFacade, animationLoader) {
function LottieComponent(platformId, eventsFacade, animationLoader) {
var _this = _super.call(this, platformId, animationLoader) || this;
_this.renderer = renderer;
_this.eventsFacade = eventsFacade;

@@ -1082,20 +1082,4 @@ _this.container = (/** @type {?} */ (null));

/**
* @param {?} changes
* @return {?}
*/
LottieComponent.prototype.ngOnChanges = /**
* @param {?} changes
* @return {?}
*/
function (changes) {
/** @type {?} */
var containerClass = changes.containerClass;
if (containerClass === undefined || typeof containerClass.currentValue !== 'string') {
return;
}
this.renderer.addClass(this.container.nativeElement, containerClass.currentValue);
};
/**
* @return {?}
*/
LottieComponent.prototype.ngOnInit = /**

@@ -1111,3 +1095,3 @@ * @return {?}

selector: 'ng-lottie',
template: "\n <div #container [style.width]=\"width\" [style.height]=\"height\" [ngStyle]=\"styles\"></div>\n ",
template: "\n <div\n #container\n [style.width]=\"width\"\n [style.height]=\"height\"\n [ngStyle]=\"styles\"\n [ngClass]=\"containerClass\"\n ></div>\n ",
changeDetection: core.ChangeDetectionStrategy.OnPush,

@@ -1119,3 +1103,2 @@ providers: [LottieEventsFacade]

LottieComponent.ctorParameters = function () { return [
{ type: core.Renderer2 },
{ type: String, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] },

@@ -1137,7 +1120,2 @@ { type: LottieEventsFacade, decorators: [{ type: core.Self }] },

*/
LottieComponent.prototype.renderer;
/**
* @type {?}
* @private
*/
LottieComponent.prototype.eventsFacade;

@@ -1144,0 +1122,0 @@ }

2

bundles/ngx-lottie.umd.min.js

@@ -15,3 +15,3 @@ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("@angular/platform-browser")):"function"==typeof define&&define.amd?define("ngx-lottie",["exports","@angular/core","@angular/common","rxjs","rxjs/operators","@angular/platform-browser"],e):e((t=t||self)["ngx-lottie"]={},t.ng.core,t.ng.common,t.rxjs,t.rxjs.operators,t.ng.platformBrowser)}(this,(function(t,e,n,r,o,i){"use strict";

and limitations under the License.
***************************************************************************** */var a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function s(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function c(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(t){return"animation-"+t.split(".json")[0]}function l(){try{var t=navigator.vendor,e=navigator.userAgent;return t.indexOf("Apple")>-1&&-1===e.indexOf("CriOS")&&-1===e.indexOf("FxiOS")}catch(t){return!1}}var d=new e.InjectionToken("IsSafari"),y=new e.InjectionToken("LottieOptions"),f=new e.InjectionToken("AnimationCache"),h=function(){function t(t,e,n,i,a,s){var c,p;this.ngZone=t,this.platformId=e,this.document=n,this.isSafari=i,this.options=a,this.animationCache=s,this.player$=(c=this.options.player,(p=c())instanceof Promise?r.from(p).pipe(o.map((function(t){return t.default||t})),o.catchError((function(t){return console.error('\n Could not retrieve the "lottie-web" player, did you provide\n the "player" property correctly?\n export function playerFactory() {\n return import(\'lottie-web\');\n }\n LottieModule.forRoot({ player: playerFactory })\n '),r.throwError(t)})),o.shareReplay(1)):r.of(p))}return t.prototype.resolveLoaderAndLoadAnimation=function(t,e,r,i,a,s){var c=this;n.isPlatformServer(this.platformId)||this.player$.pipe(o.takeUntil(s)).subscribe((function(n){var o=function(t,e,n){var r=Object.assign({container:e,renderer:"svg",loop:!0,autoplay:!0},t);return null!==n?n.transformOptions(r):r}(t,e,c.animationCache);c.loadAnimation(n,o,r,i,a)}))},t.prototype.loadAnimation=function(t,e,n,r,o){!function(t,e,n){n&&t.setLocationHref(e)}(t,this.document.location.href,this.isSafari);var i=this.ngZone.runOutsideAngular((function(){return t.loadAnimation(e)}));!function(t,e,n){null!==t&&n.addEventListener("config_ready",(function(){t.set(e,n)}))}(this.animationCache,e,i),r.emit(i),n.addEventListeners(o,i)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:e.NgZone},{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:Document,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:Boolean,decorators:[{type:e.Inject,args:[d]}]},{type:void 0,decorators:[{type:e.Inject,args:[y]}]},{type:void 0,decorators:[{type:e.Inject,args:[f]}]}]},t}();var m=function(){function t(t,n){this.platformId=t,this.animationLoader=n,this.options=null,this.containerClass=null,this.styles=null,this.width=null,this.height=null,this.animationCreated=new e.EventEmitter,this.complete=new e.EventEmitter,this.loopComplete=new e.EventEmitter,this.enterFrame=new e.EventEmitter,this.segmentStart=new e.EventEmitter,this.configReady=new e.EventEmitter,this.dataReady=new e.EventEmitter,this.domLoaded=new e.EventEmitter,this.destroy=new e.EventEmitter,this.error=new e.EventEmitter,this.destroy$=new r.Subject}return t.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},t.prototype.setWidthAndHeight=function(){this.width=this.width||"100%",this.height=this.height||"100%"},t.prototype.loadAnimation=function(t,e,r){n.isPlatformServer(this.platformId)||this.animationLoader.resolveLoaderAndLoadAnimation(this.options,t,e,this.animationCreated,r,this.destroy$)},t.decorators=[{type:e.Directive,args:[{selector:"[lottie]"}]}],t.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:h}]},t.propDecorators={options:[{type:e.Input}],containerClass:[{type:e.Input}],styles:[{type:e.Input}],width:[{type:e.Input}],height:[{type:e.Input}],animationCreated:[{type:e.Output}],complete:[{type:e.Output}],loopComplete:[{type:e.Output}],enterFrame:[{type:e.Output}],segmentStart:[{type:e.Output}],configReady:[{type:e.Output}],dataReady:[{type:e.Output}],domLoaded:[{type:e.Output}],destroy:[{type:e.Output}],error:[{type:e.Output}]},t}();var v=function(){function t(){this.cache=new Map}return t.create=function(e){return e.useCache?new t:null},t.prototype.transformOptions=function(t){var e=t.path;return e&&this.cache.has(e)&&(delete t.path,t.animationData=this.cache.get(e)),t},t.prototype.set=function(t,e){if(!function(t){var e=t.animationData;return null!==e&&"object"==typeof e}(t)){var n=e.animationData;this.cache.set(t.path,n)}},t}();var g=function(){function t(t,e){this.ngZone=t,this.platformId=e,this.eventsMap={complete:"complete",loopComplete:"loopComplete",enterFrame:"enterFrame",segmentStart:"segmentStart",configReady:"config_ready",dataReady:"data_ready",domLoaded:"DOMLoaded",destroy:"destroy",error:"error"},this.animationItem=null}return t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.addEventListeners=function(t,e){var n=this;this.animationItem=e,this.ngZone.runOutsideAngular((function(){return n.addEventListenersToObservedEventEmitters(t)}))},t.prototype.dispose=function(){n.isPlatformServer(this.platformId)||null===this.animationItem||(this.animationItem.destroy(),this.animationItem=null)},t.prototype.addEventListenersToObservedEventEmitters=function(t){var n,r,o=function(t,n){return Object.keys(t).map((function(e){return[e,t[e]]})).filter((function(t){var r=p(t,2),o=r[0],i=r[1];return i instanceof e.EventEmitter&&i.observers.length>0&&n.hasOwnProperty(o)})).map((function(t){var e=p(t,2),r=e[0];return{eventEmitter:e[1],name:n[r]}}))}(t,this.eventsMap),i=function(t,e){a.animationItem.addEventListener(t,(function(t){e.emit(t)}))},a=this;try{for(var s=c(o),u=s.next();!u.done;u=s.next()){var l=u.value;i(l.name,l.eventEmitter)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:e.NgZone},{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},t}();var I=function(t){function n(e,n,r,o){var i=t.call(this,e,o)||this;return i.host=n,i.eventsFacade=r,i}return s(n,t),n.prototype.ngOnInit=function(){t.prototype.loadAnimation.call(this,this.host.nativeElement,this.eventsFacade,this)},n.decorators=[{type:e.Directive,args:[{selector:"[lottie]",providers:[g]}]}],n.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:e.ElementRef,decorators:[{type:e.Self}]},{type:g,decorators:[{type:e.Self}]},{type:h}]},n}(m);var O=function(t){function n(e,n,r,o){var i=t.call(this,n,o)||this;return i.renderer=e,i.eventsFacade=r,i.container=null,i}return s(n,t),n.prototype.ngOnChanges=function(t){var e=t.containerClass;void 0!==e&&"string"==typeof e.currentValue&&this.renderer.addClass(this.container.nativeElement,e.currentValue)},n.prototype.ngOnInit=function(){t.prototype.setWidthAndHeight.call(this),t.prototype.loadAnimation.call(this,this.container.nativeElement,this.eventsFacade,this)},n.decorators=[{type:e.Component,args:[{selector:"ng-lottie",template:'\n <div #container [style.width]="width" [style.height]="height" [ngStyle]="styles"></div>\n ',changeDetection:e.ChangeDetectionStrategy.OnPush,providers:[g]}]}],n.ctorParameters=function(){return[{type:e.Renderer2},{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:g,decorators:[{type:e.Self}]},{type:h}]},n.propDecorators={container:[{type:e.ViewChild,args:["container",{static:!0}]}]},n}(m);var E=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[h,{provide:y,useValue:e},{provide:d,useFactory:l},{provide:f,useFactory:v.create,deps:[y]}]}},t.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule],declarations:[m,I,O],exports:[m,I,O]}]}],t}(),w=function(){function t(t){this.transferState=t}return t.prototype.get=function(t){var e=u(t),n=i.makeStateKey(e);return this.transferState.get(n,null)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:i.TransferState}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(i.TransferState))},token:t,providedIn:"root"}),t}();t.BaseDirective=m,t.LottieComponent=O,t.LottieDirective=I,t.LottieModule=E,t.LottieTransferState=w,t.transformAnimationFilenameToKey=u,t.ɵb=d,t.ɵc=y,t.ɵd=f,t.ɵe=l,t.ɵf=h,t.ɵg=v,t.ɵh=g,Object.defineProperty(t,"__esModule",{value:!0})}));
***************************************************************************** */var a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function s(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function c(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(t){return"animation-"+t.split(".json")[0]}function l(){try{var t=navigator.vendor,e=navigator.userAgent;return t.indexOf("Apple")>-1&&-1===e.indexOf("CriOS")&&-1===e.indexOf("FxiOS")}catch(t){return!1}}var d=new e.InjectionToken("IsSafari"),y=new e.InjectionToken("LottieOptions"),f=new e.InjectionToken("AnimationCache"),h=function(){function t(t,e,n,i,a,s){var c,p;this.ngZone=t,this.platformId=e,this.document=n,this.isSafari=i,this.options=a,this.animationCache=s,this.player$=(c=this.options.player,(p=c())instanceof Promise?r.from(p).pipe(o.map((function(t){return t.default||t})),o.catchError((function(t){return console.error('\n Could not retrieve the "lottie-web" player, did you provide\n the "player" property correctly?\n export function playerFactory() {\n return import(\'lottie-web\');\n }\n LottieModule.forRoot({ player: playerFactory })\n '),r.throwError(t)})),o.shareReplay(1)):r.of(p))}return t.prototype.resolveLoaderAndLoadAnimation=function(t,e,r,i,a,s){var c=this;n.isPlatformServer(this.platformId)||this.player$.pipe(o.takeUntil(s)).subscribe((function(n){var o=function(t,e,n){var r=Object.assign({container:e,renderer:"svg",loop:!0,autoplay:!0},t);return null!==n?n.transformOptions(r):r}(t,e,c.animationCache);c.loadAnimation(n,o,r,i,a)}))},t.prototype.loadAnimation=function(t,e,n,r,o){!function(t,e,n){n&&t.setLocationHref(e)}(t,this.document.location.href,this.isSafari);var i=this.ngZone.runOutsideAngular((function(){return t.loadAnimation(e)}));!function(t,e,n){null!==t&&n.addEventListener("config_ready",(function(){t.set(e,n)}))}(this.animationCache,e,i),r.emit(i),n.addEventListeners(o,i)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:e.NgZone},{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:Document,decorators:[{type:e.Inject,args:[n.DOCUMENT]}]},{type:Boolean,decorators:[{type:e.Inject,args:[d]}]},{type:void 0,decorators:[{type:e.Inject,args:[y]}]},{type:void 0,decorators:[{type:e.Inject,args:[f]}]}]},t}();var m=function(){function t(t,n){this.platformId=t,this.animationLoader=n,this.options=null,this.containerClass=null,this.styles=null,this.width=null,this.height=null,this.animationCreated=new e.EventEmitter,this.complete=new e.EventEmitter,this.loopComplete=new e.EventEmitter,this.enterFrame=new e.EventEmitter,this.segmentStart=new e.EventEmitter,this.configReady=new e.EventEmitter,this.dataReady=new e.EventEmitter,this.domLoaded=new e.EventEmitter,this.destroy=new e.EventEmitter,this.error=new e.EventEmitter,this.destroy$=new r.Subject}return t.prototype.ngOnDestroy=function(){this.destroy$.next(),this.destroy$.complete()},t.prototype.setWidthAndHeight=function(){this.width=this.width||"100%",this.height=this.height||"100%"},t.prototype.loadAnimation=function(t,e,r){n.isPlatformServer(this.platformId)||this.animationLoader.resolveLoaderAndLoadAnimation(this.options,t,e,this.animationCreated,r,this.destroy$)},t.decorators=[{type:e.Directive,args:[{selector:"[lottie]"}]}],t.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:h}]},t.propDecorators={options:[{type:e.Input}],containerClass:[{type:e.Input}],styles:[{type:e.Input}],width:[{type:e.Input}],height:[{type:e.Input}],animationCreated:[{type:e.Output}],complete:[{type:e.Output}],loopComplete:[{type:e.Output}],enterFrame:[{type:e.Output}],segmentStart:[{type:e.Output}],configReady:[{type:e.Output}],dataReady:[{type:e.Output}],domLoaded:[{type:e.Output}],destroy:[{type:e.Output}],error:[{type:e.Output}]},t}();var v=function(){function t(){this.cache=new Map}return t.create=function(e){return e.useCache?new t:null},t.prototype.transformOptions=function(t){var e=t.path;return e&&this.cache.has(e)&&(delete t.path,t.animationData=this.cache.get(e)),t},t.prototype.set=function(t,e){if(!function(t){var e=t.animationData;return null!==e&&"object"==typeof e}(t)){var n=e.animationData;this.cache.set(t.path,n)}},t}();var g=function(){function t(t,e){this.ngZone=t,this.platformId=e,this.eventsMap={complete:"complete",loopComplete:"loopComplete",enterFrame:"enterFrame",segmentStart:"segmentStart",configReady:"config_ready",dataReady:"data_ready",domLoaded:"DOMLoaded",destroy:"destroy",error:"error"},this.animationItem=null}return t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.addEventListeners=function(t,e){var n=this;this.animationItem=e,this.ngZone.runOutsideAngular((function(){return n.addEventListenersToObservedEventEmitters(t)}))},t.prototype.dispose=function(){n.isPlatformServer(this.platformId)||null===this.animationItem||(this.animationItem.destroy(),this.animationItem=null)},t.prototype.addEventListenersToObservedEventEmitters=function(t){var n,r,o=function(t,n){return Object.keys(t).map((function(e){return[e,t[e]]})).filter((function(t){var r=p(t,2),o=r[0],i=r[1];return i instanceof e.EventEmitter&&i.observers.length>0&&n.hasOwnProperty(o)})).map((function(t){var e=p(t,2),r=e[0];return{eventEmitter:e[1],name:n[r]}}))}(t,this.eventsMap),i=function(t,e){a.animationItem.addEventListener(t,(function(t){e.emit(t)}))},a=this;try{for(var s=c(o),u=s.next();!u.done;u=s.next()){var l=u.value;i(l.name,l.eventEmitter)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:e.NgZone},{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]}]},t}();var I=function(t){function n(e,n,r,o){var i=t.call(this,e,o)||this;return i.host=n,i.eventsFacade=r,i}return s(n,t),n.prototype.ngOnInit=function(){t.prototype.loadAnimation.call(this,this.host.nativeElement,this.eventsFacade,this)},n.decorators=[{type:e.Directive,args:[{selector:"[lottie]",providers:[g]}]}],n.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:e.ElementRef,decorators:[{type:e.Self}]},{type:g,decorators:[{type:e.Self}]},{type:h}]},n}(m);var O=function(t){function n(e,n,r){var o=t.call(this,e,r)||this;return o.eventsFacade=n,o.container=null,o}return s(n,t),n.prototype.ngOnInit=function(){t.prototype.setWidthAndHeight.call(this),t.prototype.loadAnimation.call(this,this.container.nativeElement,this.eventsFacade,this)},n.decorators=[{type:e.Component,args:[{selector:"ng-lottie",template:'\n <div\n #container\n [style.width]="width"\n [style.height]="height"\n [ngStyle]="styles"\n [ngClass]="containerClass"\n ></div>\n ',changeDetection:e.ChangeDetectionStrategy.OnPush,providers:[g]}]}],n.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:g,decorators:[{type:e.Self}]},{type:h}]},n.propDecorators={container:[{type:e.ViewChild,args:["container",{static:!0}]}]},n}(m);var E=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[h,{provide:y,useValue:e},{provide:d,useFactory:l},{provide:f,useFactory:v.create,deps:[y]}]}},t.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule],declarations:[m,I,O],exports:[m,I,O]}]}],t}(),w=function(){function t(t){this.transferState=t}return t.prototype.get=function(t){var e=u(t),n=i.makeStateKey(e);return this.transferState.get(n,null)},t.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],t.ctorParameters=function(){return[{type:i.TransferState}]},t.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new t(e.ɵɵinject(i.TransferState))},token:t,providedIn:"root"}),t}();t.BaseDirective=m,t.LottieComponent=O,t.LottieDirective=I,t.LottieModule=E,t.LottieTransferState=w,t.transformAnimationFilenameToKey=u,t.ɵb=d,t.ɵc=y,t.ɵd=f,t.ɵe=l,t.ɵf=h,t.ɵg=v,t.ɵh=g,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-lottie.umd.min.js.map

@@ -15,3 +15,4 @@ /**

function getObservedEventEmitters(instance, eventsMap) {
return Object.keys(instance)
return (Object.keys(instance)
// `Object.entries` is not supported in IE11.
.map((/**

@@ -36,3 +37,3 @@ * @param {?} key

name: eventsMap[key]
})));
}))));
}

@@ -150,2 +151,2 @@ export class LottieEventsFacade {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRzLWZhY2FkZS5qcyIsIn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VudEVtaXR0ZXJzKGluc3RhbmNlLCB0aGlzLmV2ZW50c01hcCk7XG5cbiAgICBmb3IgKGNvbnN0IHsgbmFtZSwgZXZlbnRFbWl0dGVyIH0gb2Ygb2JzZXJ2ZWRFbWl0dGVycykge1xuICAgICAgdGhpcy5hbmltYXRpb25JdGVtIS5hZGRFdmVudExpc3RlbmVyKG5hbWUsIChldmVudDogTG90dGllRXZlbnQpID0+IHtcbiAgICAgICAgZXZlbnRFbWl0dGVyLmVtaXQoZXZlbnQpO1xuICAgICAgfSk7XG4gICAgfVxuICB9XG59XG4iXX0=

@@ -6,3 +6,3 @@ /**

*/
import { Component, ChangeDetectionStrategy, Inject, ElementRef, ViewChild, Self, Renderer2, PLATFORM_ID } from '@angular/core';
import { Component, ChangeDetectionStrategy, Inject, ElementRef, ViewChild, Self, PLATFORM_ID } from '@angular/core';
import { BaseDirective } from './base.directive';

@@ -13,3 +13,2 @@ import { AnimationLoader } from './animation-loader';

/**
* @param {?} renderer
* @param {?} platformId

@@ -19,5 +18,4 @@ * @param {?} eventsFacade

*/
constructor(renderer, platformId, eventsFacade, animationLoader) {
constructor(platformId, eventsFacade, animationLoader) {
super(platformId, animationLoader);
this.renderer = renderer;
this.eventsFacade = eventsFacade;

@@ -27,16 +25,4 @@ this.container = (/** @type {?} */ (null));

/**
* @param {?} changes
* @return {?}
*/
ngOnChanges(changes) {
/** @type {?} */
const containerClass = changes.containerClass;
if (containerClass === undefined || typeof containerClass.currentValue !== 'string') {
return;
}
this.renderer.addClass(this.container.nativeElement, containerClass.currentValue);
}
/**
* @return {?}
*/
ngOnInit() {

@@ -51,3 +37,9 @@ super.setWidthAndHeight();

template: `
<div #container [style.width]="width" [style.height]="height" [ngStyle]="styles"></div>
<div
#container
[style.width]="width"
[style.height]="height"
[ngStyle]="styles"
[ngClass]="containerClass"
></div>
`,

@@ -60,3 +52,2 @@ changeDetection: ChangeDetectionStrategy.OnPush,

LottieComponent.ctorParameters = () => [
{ type: Renderer2 },
{ type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] },

@@ -76,9 +67,4 @@ { type: LottieEventsFacade, decorators: [{ type: Self }] },

*/
LottieComponent.prototype.renderer;
/**
* @type {?}
* @private
*/
LottieComponent.prototype.eventsFacade;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG90dGllLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJzcmMvbG90dGllLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsdUJBQXVCLEVBRXZCLE1BQU0sRUFDTixVQUFVLEVBQ1YsU0FBUyxFQUNULElBQUksRUFHSixTQUFTLEVBQ1QsV0FBVyxFQUNaLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNqRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDckQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFVckQsTUFBTSxPQUFPLGVBQWdCLFNBQVEsYUFBYTs7Ozs7OztJQUdoRCxZQUNVLFFBQW1CLEVBQ04sVUFBa0IsRUFDdkIsWUFBZ0MsRUFDaEQsZUFBZ0M7UUFFaEMsS0FBSyxDQUFDLFVBQVUsRUFBRSxlQUFlLENBQUMsQ0FBQztRQUwzQixhQUFRLEdBQVIsUUFBUSxDQUFXO1FBRVgsaUJBQVksR0FBWixZQUFZLENBQW9CO1FBTFIsY0FBUyxHQUE0QixtQkFBQSxJQUFJLEVBQUMsQ0FBQztJQVNyRixDQUFDOzs7OztJQUVELFdBQVcsQ0FBQyxPQUFzQjs7Y0FDMUIsY0FBYyxHQUFHLE9BQU8sQ0FBQyxjQUFjO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cnVjdG9yKFxuICAgIEBJbmplY3QoUExBVEZPUk1fSUQpIHBsYXRmb3JtSWQ6IHN0cmluZyxcbiAgICBAU2VsZigpIHByaXZhdGUgZXZlbnRzRmFjYWRlOiBMb3R0aWVFdmVudHNGYWNhZGUsXG4gICAgYW5pbWF0aW9uTG9hZGVyOiBBbmltYXRpb25Mb2FkZXJcbiAgKSB7XG4gICAgc3VwZXIocGxhdGZvcm1JZCwgYW5pbWF0aW9uTG9hZGVyKTtcbiAgfVxuXG4gIG5nT25Jbml0KCk6IHZvaWQge1xuICAgIHN1cGVyLnNldFdpZHRoQW5kSGVpZ2h0KCk7XG4gICAgc3VwZXIubG9hZEFuaW1hdGlvbih0aGlzLmNvbnRhaW5lci5uYXRpdmVFbGVtZW50LCB0aGlzLmV2ZW50c0ZhY2FkZSwgdGhpcyk7XG4gIH1cbn1cbiJdfQ==

@@ -16,3 +16,4 @@ /**

function getObservedEventEmitters(instance, eventsMap) {
return Object.keys(instance)
return (Object.keys(instance)
// `Object.entries` is not supported in IE11.
.map((/**

@@ -43,3 +44,3 @@ * @param {?} key

});
}));
})));
}

@@ -188,2 +189,2 @@ var LottieEventsFacade = /** @class */ (function () {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRzLWZhY2FkZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJzcmMvZXZlbnRzLWZhY2FkZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxPQUFPLEVBQWEsVUFBVSxFQUFFLE1BQU0sRUFBRSxNQUFNLEVBQUUsWUFBWSxFQUFFLFdBQVcsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNqRyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7Ozs7OztBQVFuRCxTQUFTLHdCQUF3QixDQUFDLFFBQXVCLEVB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W9uSXRlbSA9IG51bGw7XG4gIH1cblxuICBwcml2YXRlIGFkZEV2ZW50TGlzdGVuZXJzVG9PYnNlcnZlZEV2ZW50RW1pdHRlcnMoaW5zdGFuY2U6IEJhc2VEaXJlY3RpdmUpOiB2b2lkIHtcbiAgICBjb25zdCBvYnNlcnZlZEVtaXR0ZXJzID0gZ2V0T2JzZXJ2ZWRFdmVudEVtaXR0ZXJzKGluc3RhbmNlLCB0aGlzLmV2ZW50c01hcCk7XG5cbiAgICBmb3IgKGNvbnN0IHsgbmFtZSwgZXZlbnRFbWl0dGVyIH0gb2Ygb2JzZXJ2ZWRFbWl0dGVycykge1xuICAgICAgdGhpcy5hbmltYXRpb25JdGVtIS5hZGRFdmVudExpc3RlbmVyKG5hbWUsIChldmVudDogTG90dGllRXZlbnQpID0+IHtcbiAgICAgICAgZXZlbnRFbWl0dGVyLmVtaXQoZXZlbnQpO1xuICAgICAgfSk7XG4gICAgfVxuICB9XG59XG4iXX0=

@@ -7,3 +7,3 @@ /**

import { __extends } from "tslib";
import { Component, ChangeDetectionStrategy, Inject, ElementRef, ViewChild, Self, Renderer2, PLATFORM_ID } from '@angular/core';
import { Component, ChangeDetectionStrategy, Inject, ElementRef, ViewChild, Self, PLATFORM_ID } from '@angular/core';
import { BaseDirective } from './base.directive';

@@ -14,5 +14,4 @@ import { AnimationLoader } from './animation-loader';

__extends(LottieComponent, _super);
function LottieComponent(renderer, platformId, eventsFacade, animationLoader) {
function LottieComponent(platformId, eventsFacade, animationLoader) {
var _this = _super.call(this, platformId, animationLoader) || this;
_this.renderer = renderer;
_this.eventsFacade = eventsFacade;

@@ -23,20 +22,4 @@ _this.container = (/** @type {?} */ (null));

/**
* @param {?} changes
* @return {?}
*/
LottieComponent.prototype.ngOnChanges = /**
* @param {?} changes
* @return {?}
*/
function (changes) {
/** @type {?} */
var containerClass = changes.containerClass;
if (containerClass === undefined || typeof containerClass.currentValue !== 'string') {
return;
}
this.renderer.addClass(this.container.nativeElement, containerClass.currentValue);
};
/**
* @return {?}
*/
LottieComponent.prototype.ngOnInit = /**

@@ -52,3 +35,3 @@ * @return {?}

selector: 'ng-lottie',
template: "\n <div #container [style.width]=\"width\" [style.height]=\"height\" [ngStyle]=\"styles\"></div>\n ",
template: "\n <div\n #container\n [style.width]=\"width\"\n [style.height]=\"height\"\n [ngStyle]=\"styles\"\n [ngClass]=\"containerClass\"\n ></div>\n ",
changeDetection: ChangeDetectionStrategy.OnPush,

@@ -60,3 +43,2 @@ providers: [LottieEventsFacade]

LottieComponent.ctorParameters = function () { return [
{ type: Renderer2 },
{ type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] },

@@ -79,9 +61,4 @@ { type: LottieEventsFacade, decorators: [{ type: Self }] },

*/
LottieComponent.prototype.renderer;
/**
* @type {?}
* @private
*/
LottieComponent.prototype.eventsFacade;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG90dGllLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJzcmMvbG90dGllLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULHVCQUF1QixFQUV2QixNQUFNLEVBQ04sVUFBVSxFQUNWLFNBQVMsRUFDVCxJQUFJLEVBR0osU0FBUyxFQUNULFdBQVcsRUFDWixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDakQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRXJEO0lBUXFDLG1DQUFhO0lBR2hELHlCQUNVLFFBQW1CLEVBQ04sVUFBa0IsRUFDdkIsWUFBZ0Ms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lxuICAgICAgW25nU3R5bGVdPVwic3R5bGVzXCJcbiAgICAgIFtuZ0NsYXNzXT1cImNvbnRhaW5lckNsYXNzXCJcbiAgICA+PC9kaXY+XG4gIGAsXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLFxuICBwcm92aWRlcnM6IFtMb3R0aWVFdmVudHNGYWNhZGVdXG59KVxuZXhwb3J0IGNsYXNzIExvdHRpZUNvbXBvbmVudCBleHRlbmRzIEJhc2VEaXJlY3RpdmUgaW1wbGVtZW50cyBPbkluaXQge1xuICBAVmlld0NoaWxkKCdjb250YWluZXInLCB7IHN0YXRpYzogdHJ1ZSB9KSBjb250YWluZXI6IEVsZW1lbnRSZWY8SFRNTEVsZW1lbnQ+ID0gbnVsbCE7XG5cbiAgY29uc3RydWN0b3IoXG4gICAgQEluamVjdChQTEFURk9STV9JRCkgcGxhdGZvcm1JZDogc3RyaW5nLFxuICAgIEBTZWxmKCkgcHJpdmF0ZSBldmVudHNGYWNhZGU6IExvdHRpZUV2ZW50c0ZhY2FkZSxcbiAgICBhbmltYXRpb25Mb2FkZXI6IEFuaW1hdGlvbkxvYWRlclxuICApIHtcbiAgICBzdXBlcihwbGF0Zm9ybUlkLCBhbmltYXRpb25Mb2FkZXIpO1xuICB9XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7XG4gICAgc3VwZXIuc2V0V2lkdGhBbmRIZWlnaHQoKTtcbiAgICBzdXBlci5sb2FkQW5pbWF0aW9uKHRoaXMuY29udGFpbmVyLm5hdGl2ZUVsZW1lbnQsIHRoaXMuZXZlbnRzRmFjYWRlLCB0aGlzKTtcbiAgfVxufVxuIl19

@@ -1,2 +0,2 @@

import { InjectionToken, Injectable, NgZone, Inject, PLATFORM_ID, EventEmitter, Directive, Input, Output, ElementRef, Self, Component, ChangeDetectionStrategy, Renderer2, ViewChild, NgModule, ɵɵdefineInjectable, ɵɵinject } from '@angular/core';
import { InjectionToken, Injectable, NgZone, Inject, PLATFORM_ID, EventEmitter, Directive, Input, Output, ElementRef, Self, Component, ChangeDetectionStrategy, ViewChild, NgModule, ɵɵdefineInjectable, ɵɵinject } from '@angular/core';
import { isPlatformServer, DOCUMENT, CommonModule } from '@angular/common';

@@ -617,3 +617,4 @@ import { from, throwError, of, Subject } from 'rxjs';

function getObservedEventEmitters(instance, eventsMap) {
return Object.keys(instance)
return (Object.keys(instance)
// `Object.entries` is not supported in IE11.
.map((/**

@@ -638,3 +639,3 @@ * @param {?} key

name: eventsMap[key]
})));
}))));
}

@@ -810,3 +811,2 @@ class LottieEventsFacade {

/**
* @param {?} renderer
* @param {?} platformId

@@ -816,5 +816,4 @@ * @param {?} eventsFacade

*/
constructor(renderer, platformId, eventsFacade, animationLoader) {
constructor(platformId, eventsFacade, animationLoader) {
super(platformId, animationLoader);
this.renderer = renderer;
this.eventsFacade = eventsFacade;

@@ -824,16 +823,4 @@ this.container = (/** @type {?} */ (null));

/**
* @param {?} changes
* @return {?}
*/
ngOnChanges(changes) {
/** @type {?} */
const containerClass = changes.containerClass;
if (containerClass === undefined || typeof containerClass.currentValue !== 'string') {
return;
}
this.renderer.addClass(this.container.nativeElement, containerClass.currentValue);
}
/**
* @return {?}
*/
ngOnInit() {

@@ -848,3 +835,9 @@ super.setWidthAndHeight();

template: `
<div #container [style.width]="width" [style.height]="height" [ngStyle]="styles"></div>
<div
#container
[style.width]="width"
[style.height]="height"
[ngStyle]="styles"
[ngClass]="containerClass"
></div>
`,

@@ -857,3 +850,2 @@ changeDetection: ChangeDetectionStrategy.OnPush,

LottieComponent.ctorParameters = () => [
{ type: Renderer2 },
{ type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] },

@@ -873,7 +865,2 @@ { type: LottieEventsFacade, decorators: [{ type: Self }] },

*/
LottieComponent.prototype.renderer;
/**
* @type {?}
* @private
*/
LottieComponent.prototype.eventsFacade;

@@ -880,0 +867,0 @@ }

@@ -1,2 +0,2 @@

import { InjectionToken, Injectable, NgZone, Inject, PLATFORM_ID, EventEmitter, Directive, Input, Output, ElementRef, Self, Component, ChangeDetectionStrategy, Renderer2, ViewChild, NgModule, ɵɵdefineInjectable, ɵɵinject } from '@angular/core';
import { InjectionToken, Injectable, NgZone, Inject, PLATFORM_ID, EventEmitter, Directive, Input, Output, ElementRef, Self, Component, ChangeDetectionStrategy, ViewChild, NgModule, ɵɵdefineInjectable, ɵɵinject } from '@angular/core';
import { isPlatformServer, DOCUMENT, CommonModule } from '@angular/common';

@@ -648,3 +648,4 @@ import { from, throwError, of, Subject } from 'rxjs';

function getObservedEventEmitters(instance, eventsMap) {
return Object.keys(instance)
return (Object.keys(instance)
// `Object.entries` is not supported in IE11.
.map((/**

@@ -675,3 +676,3 @@ * @param {?} key

});
}));
})));
}

@@ -877,5 +878,4 @@ var LottieEventsFacade = /** @class */ (function () {

__extends(LottieComponent, _super);
function LottieComponent(renderer, platformId, eventsFacade, animationLoader) {
function LottieComponent(platformId, eventsFacade, animationLoader) {
var _this = _super.call(this, platformId, animationLoader) || this;
_this.renderer = renderer;
_this.eventsFacade = eventsFacade;

@@ -886,20 +886,4 @@ _this.container = (/** @type {?} */ (null));

/**
* @param {?} changes
* @return {?}
*/
LottieComponent.prototype.ngOnChanges = /**
* @param {?} changes
* @return {?}
*/
function (changes) {
/** @type {?} */
var containerClass = changes.containerClass;
if (containerClass === undefined || typeof containerClass.currentValue !== 'string') {
return;
}
this.renderer.addClass(this.container.nativeElement, containerClass.currentValue);
};
/**
* @return {?}
*/
LottieComponent.prototype.ngOnInit = /**

@@ -915,3 +899,3 @@ * @return {?}

selector: 'ng-lottie',
template: "\n <div #container [style.width]=\"width\" [style.height]=\"height\" [ngStyle]=\"styles\"></div>\n ",
template: "\n <div\n #container\n [style.width]=\"width\"\n [style.height]=\"height\"\n [ngStyle]=\"styles\"\n [ngClass]=\"containerClass\"\n ></div>\n ",
changeDetection: ChangeDetectionStrategy.OnPush,

@@ -923,3 +907,2 @@ providers: [LottieEventsFacade]

LottieComponent.ctorParameters = function () { return [
{ type: Renderer2 },
{ type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] },

@@ -941,7 +924,2 @@ { type: LottieEventsFacade, decorators: [{ type: Self }] },

*/
LottieComponent.prototype.renderer;
/**
* @type {?}
* @private
*/
LottieComponent.prototype.eventsFacade;

@@ -948,0 +926,0 @@ }

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"ɵa":{"__symbolic":"interface"},"ɵb":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":99,"character":29},"arguments":["IsSafari"]},"ɵc":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":100,"character":34},"arguments":["LottieOptions"]},"ɵd":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":101,"character":35},"arguments":["AnimationCache"]},"ɵe":{"__symbolic":"function"},"LottieModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":12,"character":12}],"declarations":[{"__symbolic":"reference","name":"BaseDirective"},{"__symbolic":"reference","name":"LottieDirective"},{"__symbolic":"reference","name":"LottieComponent"}],"exports":[{"__symbolic":"reference","name":"BaseDirective"},{"__symbolic":"reference","name":"LottieDirective"},{"__symbolic":"reference","name":"LottieComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["options"],"value":{"ngModule":{"__symbolic":"reference","name":"LottieModule"},"providers":[{"__symbolic":"reference","name":"ɵf"},{"provide":{"__symbolic":"reference","name":"ɵc"},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbolic":"reference","name":"ɵb"},"useFactory":{"__symbolic":"reference","name":"ɵe"}},{"provide":{"__symbolic":"reference","name":"ɵd"},"useFactory":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵg"},"member":"create"},"deps":[{"__symbolic":"reference","name":"ɵc"}]}]}}}},"BaseDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":27,"character":1},"arguments":[{"selector":"[lottie]"}]}],"members":{"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"containerClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"styles":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"animationCreated":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"complete":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":47,"character":3}}]}],"loopComplete":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":52,"character":3}}]}],"enterFrame":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":57,"character":3}}]}],"segmentStart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":62,"character":3}}]}],"configReady":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":68,"character":3}}]}],"dataReady":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":74,"character":3}}]}],"domLoaded":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":80,"character":3}}]}],"destroy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":86,"character":3}}]}],"error":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":92,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":97,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":97,"character":12}]}],null],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ɵf"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"setWidthAndHeight":[{"__symbolic":"method"}],"loadAnimation":[{"__symbolic":"method"}]}},"LottieDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"BaseDirective"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":6,"character":1},"arguments":[{"selector":"[lottie]","providers":[{"__symbolic":"reference","name":"ɵh"}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":12,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":12,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":13,"character":5}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":14,"character":5}}],null],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":13,"character":37,"context":{"typeName":"HTMLElement"},"module":"./src/lottie.directive"}]},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵf"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"LottieComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"BaseDirective"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":18,"character":1},"arguments":[{"selector":"ng-lottie","template":"\n <div #container [style.width]=\"width\" [style.height]=\"height\" [ngStyle]=\"styles\"></div>\n ","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":23,"character":19},"member":"OnPush"},"providers":[{"__symbolic":"reference","name":"ɵh"}]}]}],"members":{"container":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":27,"character":3},"arguments":["container",{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":31,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":31,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":32,"character":5}}],null],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":30,"character":22},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵf"}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}]}},"LottieTransferState":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"TransferState","line":8,"character":37}]}],"get":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"BMEnterFrameEvent":{"__symbolic":"interface"},"BMCompleteLoopEvent":{"__symbolic":"interface"},"BMCompleteEvent":{"__symbolic":"interface"},"BMSegmentStartEvent":{"__symbolic":"interface"},"BMDestroyEvent":{"__symbolic":"interface"},"BMRenderFrameErrorEvent":{"__symbolic":"interface"},"BMConfigErrorEvent":{"__symbolic":"interface"},"AnimationOptions":{"__symbolic":"interface"},"AnimationFilename":{"__symbolic":"interface"},"transformAnimationFilenameToKey":{"__symbolic":"function","parameters":["animation"],"value":{"__symbolic":"binop","operator":"+","left":"animation-","right":{"__symbolic":"index","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"animation"},"member":"split"},"arguments":[".json"]},"index":0}}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":30,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":36,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":36,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":37,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":37,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":38,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":39,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵc"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":40,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵd"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":35,"character":20},{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Could not resolve type","line":37,"character":40,"context":{"typeName":"Document"},"module":"./src/animation-loader"},{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵg"}]}],"resolveLoaderAndLoadAnimation":[{"__symbolic":"method"}],"loadAnimation":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","members":{"transformOptions":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}]}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":24,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":43,"character":39},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":43,"character":46}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":43,"character":30},{"__symbolic":"reference","name":"string"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"addEventListeners":[{"__symbolic":"method"}],"dispose":[{"__symbolic":"method"}],"addEventListenersToObservedEventEmitters":[{"__symbolic":"method"}]}}},"origins":{"ɵa":"./src/symbols","ɵb":"./src/symbols","ɵc":"./src/symbols","ɵd":"./src/symbols","ɵe":"./src/utils","LottieModule":"./src/lottie.module","BaseDirective":"./src/base.directive","LottieDirective":"./src/lottie.directive","LottieComponent":"./src/lottie.component","LottieTransferState":"./src/transfer-state","BMEnterFrameEvent":"./src/symbols","BMCompleteLoopEvent":"./src/symbols","BMCompleteEvent":"./src/symbols","BMSegmentStartEvent":"./src/symbols","BMDestroyEvent":"./src/symbols","BMRenderFrameErrorEvent":"./src/symbols","BMConfigErrorEvent":"./src/symbols","AnimationOptions":"./src/symbols","AnimationFilename":"./src/symbols","transformAnimationFilenameToKey":"./src/utils","ɵf":"./src/animation-loader","ɵg":"./src/animation-cache","ɵh":"./src/events-facade"},"importAs":"ngx-lottie"}
{"__symbolic":"module","version":4,"metadata":{"ɵa":{"__symbolic":"interface"},"ɵb":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":99,"character":29},"arguments":["IsSafari"]},"ɵc":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":100,"character":34},"arguments":["LottieOptions"]},"ɵd":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":101,"character":35},"arguments":["AnimationCache"]},"ɵe":{"__symbolic":"function"},"LottieModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":12,"character":12}],"declarations":[{"__symbolic":"reference","name":"BaseDirective"},{"__symbolic":"reference","name":"LottieDirective"},{"__symbolic":"reference","name":"LottieComponent"}],"exports":[{"__symbolic":"reference","name":"BaseDirective"},{"__symbolic":"reference","name":"LottieDirective"},{"__symbolic":"reference","name":"LottieComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["options"],"value":{"ngModule":{"__symbolic":"reference","name":"LottieModule"},"providers":[{"__symbolic":"reference","name":"ɵf"},{"provide":{"__symbolic":"reference","name":"ɵc"},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbolic":"reference","name":"ɵb"},"useFactory":{"__symbolic":"reference","name":"ɵe"}},{"provide":{"__symbolic":"reference","name":"ɵd"},"useFactory":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵg"},"member":"create"},"deps":[{"__symbolic":"reference","name":"ɵc"}]}]}}}},"BaseDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":27,"character":1},"arguments":[{"selector":"[lottie]"}]}],"members":{"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"containerClass":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":31,"character":3}}]}],"styles":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":33,"character":3}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"height":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":37,"character":3}}]}],"animationCreated":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":42,"character":3}}]}],"complete":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":47,"character":3}}]}],"loopComplete":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":52,"character":3}}]}],"enterFrame":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":57,"character":3}}]}],"segmentStart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":62,"character":3}}]}],"configReady":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":68,"character":3}}]}],"dataReady":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":74,"character":3}}]}],"domLoaded":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":80,"character":3}}]}],"destroy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":86,"character":3}}]}],"error":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":92,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":97,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":97,"character":12}]}],null],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ɵf"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"setWidthAndHeight":[{"__symbolic":"method"}],"loadAnimation":[{"__symbolic":"method"}]}},"LottieDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"BaseDirective"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":6,"character":1},"arguments":[{"selector":"[lottie]","providers":[{"__symbolic":"reference","name":"ɵh"}]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":12,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":12,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":13,"character":5}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":14,"character":5}}],null],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":13,"character":37,"context":{"typeName":"HTMLElement"},"module":"./src/lottie.directive"}]},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵf"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"LottieComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"BaseDirective"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":15,"character":1},"arguments":[{"selector":"ng-lottie","template":"\n <div\n #container\n [style.width]=\"width\"\n [style.height]=\"height\"\n [ngStyle]=\"styles\"\n [ngClass]=\"containerClass\"\n ></div>\n ","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":26,"character":19},"member":"OnPush"},"providers":[{"__symbolic":"reference","name":"ɵh"}]}]}],"members":{"container":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":30,"character":3},"arguments":["container",{"static":true}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":33,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":33,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Self","line":34,"character":5}}],null],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵf"}]}],"ngOnInit":[{"__symbolic":"method"}]}},"LottieTransferState":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"TransferState","line":8,"character":37}]}],"get":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"BMEnterFrameEvent":{"__symbolic":"interface"},"BMCompleteLoopEvent":{"__symbolic":"interface"},"BMCompleteEvent":{"__symbolic":"interface"},"BMSegmentStartEvent":{"__symbolic":"interface"},"BMDestroyEvent":{"__symbolic":"interface"},"BMRenderFrameErrorEvent":{"__symbolic":"interface"},"BMConfigErrorEvent":{"__symbolic":"interface"},"AnimationOptions":{"__symbolic":"interface"},"AnimationFilename":{"__symbolic":"interface"},"transformAnimationFilenameToKey":{"__symbolic":"function","parameters":["animation"],"value":{"__symbolic":"binop","operator":"+","left":"animation-","right":{"__symbolic":"index","expression":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"animation"},"member":"split"},"arguments":[".json"]},"index":0}}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":30,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":36,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":36,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":37,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":37,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":38,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":39,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵc"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":40,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵd"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":35,"character":20},{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Could not resolve type","line":37,"character":40,"context":{"typeName":"Document"},"module":"./src/animation-loader"},{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵg"}]}],"resolveLoaderAndLoadAnimation":[{"__symbolic":"method"}],"loadAnimation":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","members":{"transformOptions":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}]}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":27,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":46,"character":39},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":46,"character":46}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":46,"character":30},{"__symbolic":"reference","name":"string"}]}],"ngOnDestroy":[{"__symbolic":"method"}],"addEventListeners":[{"__symbolic":"method"}],"dispose":[{"__symbolic":"method"}],"addEventListenersToObservedEventEmitters":[{"__symbolic":"method"}]}}},"origins":{"ɵa":"./src/symbols","ɵb":"./src/symbols","ɵc":"./src/symbols","ɵd":"./src/symbols","ɵe":"./src/utils","LottieModule":"./src/lottie.module","BaseDirective":"./src/base.directive","LottieDirective":"./src/lottie.directive","LottieComponent":"./src/lottie.component","LottieTransferState":"./src/transfer-state","BMEnterFrameEvent":"./src/symbols","BMCompleteLoopEvent":"./src/symbols","BMCompleteEvent":"./src/symbols","BMSegmentStartEvent":"./src/symbols","BMDestroyEvent":"./src/symbols","BMRenderFrameErrorEvent":"./src/symbols","BMConfigErrorEvent":"./src/symbols","AnimationOptions":"./src/symbols","AnimationFilename":"./src/symbols","transformAnimationFilenameToKey":"./src/utils","ɵf":"./src/animation-loader","ɵg":"./src/animation-cache","ɵh":"./src/events-facade"},"importAs":"ngx-lottie"}
{
"$schema": "../node_modules/ng-packagr/ng-package.schema.json",
"name": "ngx-lottie",
"version": "5.3.2",
"version": "5.4.0",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

@@ -6,3 +6,3 @@ <h1 align="center">

<div align="center">
<strong>A minimal customizable performance-stable Angular component for rendering After Effects animations. Compatible with Angular 8+ and Ivy renderer.</strong>
<strong>A minimal customizable performance-stable Angular component for rendering After Effects animations. Compatible with Angular 9+.</strong>
</div>

@@ -55,3 +55,3 @@

height="500px"
containerClass="moving-box"
containerClass="moving-box another-class"
[styles]="styles"

@@ -84,3 +84,3 @@ [options]="options"

First, import the `LottieModule` into `AppModule`:
First, import the `LottieModule` into the `AppModule`:

@@ -93,3 +93,3 @@ ```typescript

// Note we need a separate function as it's required
// by the AOT compiler
// by the AOT compiler.
export function playerFactory() {

@@ -100,3 +100,3 @@ return player;

@NgModule({
imports: [LottieModule.forRoot({ player: playerFactory })]
imports: [LottieModule.forRoot({ player: playerFactory })],
})

@@ -106,3 +106,3 @@ export class AppModule {}

The `lottie-web` library can be loaded on demand using dynamic import. Given the following code:
The `lottie-web` library can be loaded on demand using dynamic import. Webpack will load this library only when your animation gets rendered for the first time. Given the following code:

@@ -118,3 +118,3 @@ ```ts

@NgModule({
imports: [LottieModule.forRoot({ player: playerFactory })]
imports: [LottieModule.forRoot({ player: playerFactory })],
})

@@ -135,7 +135,7 @@ export class AppModule {}

<ng-lottie [options]="options" (animationCreated)="animationCreated($event)"></ng-lottie>
`
`,
})
export class AppComponent {
options: AnimationOptions = {
path: '/assets/animation.json'
path: '/assets/animation.json',
};

@@ -160,7 +160,7 @@

<main lottie [options]="options" (animationCreated)="animationCreated($event)"></main>
`
`,
})
export class AppComponent {
options: AnimationOptions = {
path: '/assets/animation.json'
path: '/assets/animation.json',
};

@@ -178,3 +178,3 @@

`lottie-web` will load your JSON file every time when animation is being created. When importing `LottieModule` into the root module you can provide the `useCache` option:
`lottie-web` will load your JSON file every time when animation is created. When importing the `LottieModule` into the root module you can provide the `useCache` option:

@@ -193,5 +193,5 @@ ```ts

player: playerFactory,
useCache: true
})
]
useCache: true,
}),
],
})

@@ -220,7 +220,7 @@ export class AppModule {}

></ng-lottie>
`
`,
})
export class AppComponent {
options: AnimationOptions = {
path: '/assets/animation.json'
path: '/assets/animation.json',
};

@@ -230,3 +230,3 @@

maxWidth: '500px',
margin: '0 auto'
margin: '0 auto',
};

@@ -240,3 +240,3 @@ }

- `styles?: Partial<CSSStyleDeclaration>` custom styles object. Bound to `[ngStyle]`
- `containerClass?: string` custom container class. Bound to element
- `containerClass?: string` custom container class(es). Bound to `[ngClass]`.

@@ -264,5 +264,5 @@ The `lottie` directive supports only `options` binding.

Also `AnimationItem` events are listened outside of the Angular zone. Thus you shouldn't worry that Lottie's events will cause the `ApplicationRef` to invoke tick every ms.
`AnimationItem` events are listened outside of the Angular zone. You shouldn't worry that animation events will cause change detection every ms.
**Note!** All `AnimationItem` methods must be invoked outside of the Angular zone. Given the following code:
**But be careful!** Always wrap any calls to `AnimationItem` methods in `runOutsideAngular`. See the below code:

@@ -281,7 +281,7 @@ ```ts

<button (click)="play()">Play</button>
`
`,
})
export class AppComponent {
options: AnimationOptions = {
path: '/assets/animation.json'
path: '/assets/animation.json',
};

@@ -298,7 +298,7 @@

stop(): void {
this.ngZone.runOutsideAngular(() => this.animatiomItem.stop());
this.ngZone.runOutsideAngular(() => this.animationItem.stop());
}
play(): void {
this.ngZone.runOutsideAngular(() => this.animatiomItem.play());
this.ngZone.runOutsideAngular(() => this.animationItem.play());
}

@@ -310,4 +310,2 @@ }

> ⚠️ **Warning**: This works only if Ivy is NOT enabled! Ivy doesn't work with SSR right now and probably will be supported in Angular 10.
By default, `lottie` will load your `json` file with animation data every time you create an animation. You may have some problems with the connection, so there may be some delay or even timeout. It's worth loading animation data only once and cache it on the client side, so every time you create an animation — the animation data will be retrieved from cache.

@@ -340,7 +338,7 @@

folder: 'dist/assets',
animations: ['data.json']
}
})
animations: ['data.json'],
},
}),
],
bootstrap: [AppComponent]
bootstrap: [AppComponent],
})

@@ -380,7 +378,7 @@ export class AppServerModule {}

<ng-lottie [options]="options"></ng-lottie>
`
`,
})
export class AppComponent {
options: AnimationOptions = {
animationData: this.lottieTransferState.get('data.json')
animationData: this.lottieTransferState.get('data.json'),
};

@@ -387,0 +385,0 @@

@@ -1,12 +0,10 @@

import { OnInit, ElementRef, OnChanges, SimpleChanges, Renderer2 } from '@angular/core';
import { OnInit, ElementRef } from '@angular/core';
import { BaseDirective } from './base.directive';
import { AnimationLoader } from './animation-loader';
import { LottieEventsFacade } from './events-facade';
export declare class LottieComponent extends BaseDirective implements OnChanges, OnInit {
private renderer;
export declare class LottieComponent extends BaseDirective implements OnInit {
private eventsFacade;
container: ElementRef<HTMLElement>;
constructor(renderer: Renderer2, platformId: string, eventsFacade: LottieEventsFacade, animationLoader: AnimationLoader);
ngOnChanges(changes: SimpleChanges): void;
constructor(platformId: string, eventsFacade: LottieEventsFacade, animationLoader: AnimationLoader);
ngOnInit(): void;
}

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

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