ngx-lottie
Advanced tools
Comparing version 5.4.0 to 6.0.0-beta.0
@@ -206,112 +206,2 @@ (function (global, factory) { | ||
* @fileoverview added by tsickle | ||
* Generated from: src/utils.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @param {?} animation | ||
* @return {?} | ||
*/ | ||
function transformAnimationFilenameToKey(animation) { | ||
return "animation-" + animation.split('.json')[0]; | ||
} | ||
/** | ||
* @param {?} player | ||
* @param {?} href | ||
* @param {?} isSafari | ||
* @return {?} | ||
*/ | ||
function setPlayerLocationHref(player, href, isSafari) { | ||
// This is a fix for the mask on Safari/iOS | ||
// https://github.com/airbnb/lottie-web/issues/1198 | ||
if (isSafari) { | ||
((/** @type {?} */ (((/** @type {?} */ (player)))))).setLocationHref(href); | ||
} | ||
} | ||
/** | ||
* @param {?} options | ||
* @param {?} container | ||
* @param {?} animationCache | ||
* @return {?} | ||
*/ | ||
function mergeOptionsWithDefault(options, container, animationCache) { | ||
/** @type {?} */ | ||
var merged = Object.assign({ | ||
container: container, | ||
renderer: 'svg', | ||
loop: true, | ||
autoplay: true | ||
}, options); | ||
if (animationCache !== null) { | ||
return animationCache.transformOptions(merged); | ||
} | ||
return merged; | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
function isSafariFactory() { | ||
// This `try-catch` block will also handle server-side rendering | ||
// as `navigator` is not accessable there | ||
try { | ||
var vendor = navigator.vendor, userAgent = navigator.userAgent; | ||
return (vendor.indexOf('Apple') > -1 && | ||
userAgent.indexOf('CriOS') === -1 && | ||
userAgent.indexOf('FxiOS') === -1); | ||
} | ||
catch (_a) { | ||
return false; | ||
} | ||
} | ||
/** | ||
* @param {?} options | ||
* @return {?} | ||
*/ | ||
function isAnimationConfigWithData(options) { | ||
/** @type {?} */ | ||
var animationData = ((/** @type {?} */ (options))).animationData; | ||
return animationData !== null && typeof animationData === 'object'; | ||
} | ||
/** | ||
* @param {?} animationCache | ||
* @param {?} options | ||
* @param {?} animationItem | ||
* @return {?} | ||
*/ | ||
function awaitConfigAndCache(animationCache, options, animationItem) { | ||
if (animationCache === null) { | ||
return; | ||
} | ||
animationItem.addEventListener('config_ready', (/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
animationCache.set(options, animationItem); | ||
})); | ||
} | ||
/** | ||
* @param {?} player | ||
* @return {?} | ||
*/ | ||
function streamifyPlayerOrLoader(player) { | ||
/** @type {?} */ | ||
var playerOrLoader = player(); | ||
if (playerOrLoader instanceof Promise) { | ||
return rxjs.from(playerOrLoader).pipe(operators.map((/** | ||
* @param {?} module | ||
* @return {?} | ||
*/ | ||
function (module) { return module.default || module; })), operators.catchError((/** | ||
* @param {?} error | ||
* @return {?} | ||
*/ | ||
function (error) { | ||
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 "); | ||
return rxjs.throwError(error); | ||
})), operators.shareReplay(1)); | ||
} | ||
return rxjs.of(playerOrLoader); | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: src/symbols.ts | ||
@@ -413,4 +303,2 @@ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
/** @type {?} */ | ||
var IS_SAFARI = new core.InjectionToken('IsSafari'); | ||
/** @type {?} */ | ||
var LOTTIE_OPTIONS = new core.InjectionToken('LottieOptions'); | ||
@@ -422,14 +310,90 @@ /** @type {?} */ | ||
* @fileoverview added by tsickle | ||
* Generated from: src/utils.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @param {?} animation | ||
* @return {?} | ||
*/ | ||
function transformAnimationFilenameToKey(animation) { | ||
return "animation-" + animation.split('.json')[0]; | ||
} | ||
/** | ||
* @param {?} options | ||
* @param {?} container | ||
* @param {?} animationCache | ||
* @return {?} | ||
*/ | ||
function mergeOptionsWithDefault(options, container, animationCache) { | ||
/** @type {?} */ | ||
var merged = Object.assign({ | ||
container: container, | ||
renderer: 'svg', | ||
loop: true, | ||
autoplay: true, | ||
}, options); | ||
if (animationCache !== null) { | ||
return animationCache.transformOptions(merged); | ||
} | ||
return merged; | ||
} | ||
/** | ||
* @param {?} options | ||
* @return {?} | ||
*/ | ||
function isAnimationConfigWithData(options) { | ||
/** @type {?} */ | ||
var animationData = ((/** @type {?} */ (options))).animationData; | ||
return animationData !== null && typeof animationData === 'object'; | ||
} | ||
/** | ||
* @param {?} animationCache | ||
* @param {?} options | ||
* @param {?} animationItem | ||
* @return {?} | ||
*/ | ||
function awaitConfigAndCache(animationCache, options, animationItem) { | ||
if (animationCache === null) { | ||
return; | ||
} | ||
animationItem.addEventListener('config_ready', (/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
animationCache.set(options, animationItem); | ||
})); | ||
} | ||
/** | ||
* @param {?} player | ||
* @return {?} | ||
*/ | ||
function streamifyPlayerOrLoader(player) { | ||
/** @type {?} */ | ||
var playerOrLoader = player(); | ||
if (playerOrLoader instanceof Promise) { | ||
return rxjs.from(playerOrLoader).pipe(operators.map((/** | ||
* @param {?} module | ||
* @return {?} | ||
*/ | ||
function (module) { return module.default || module; })), operators.catchError((/** | ||
* @param {?} error | ||
* @return {?} | ||
*/ | ||
function (error) { | ||
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 "); | ||
return rxjs.throwError(error); | ||
})), operators.shareReplay(1)); | ||
} | ||
return rxjs.of(playerOrLoader); | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: src/animation-loader.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
// This has to be dynamic as `Document` interface is not | ||
// accepted by the ngc compiler | ||
// @dynamic | ||
var AnimationLoader = /** @class */ (function () { | ||
function AnimationLoader(ngZone, platformId, document, isSafari, options, animationCache) { | ||
function AnimationLoader(ngZone, platformId, options, animationCache) { | ||
this.ngZone = ngZone; | ||
this.platformId = platformId; | ||
this.document = document; | ||
this.isSafari = isSafari; | ||
this.options = options; | ||
@@ -491,3 +455,2 @@ this.animationCache = animationCache; | ||
function (player, options, eventsFacade, animationCreated, instance) { | ||
setPlayerLocationHref(player, this.document.location.href, this.isSafari); | ||
/** @type {?} */ | ||
@@ -510,4 +473,2 @@ var animationItem = this.ngZone.runOutsideAngular((/** | ||
{ type: String, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] }, | ||
{ type: Document, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] }, | ||
{ type: Boolean, decorators: [{ type: core.Inject, args: [IS_SAFARI,] }] }, | ||
{ type: undefined, decorators: [{ type: core.Inject, args: [LOTTIE_OPTIONS,] }] }, | ||
@@ -538,12 +499,2 @@ { type: undefined, decorators: [{ type: core.Inject, args: [ANIMATION_CACHE,] }] } | ||
*/ | ||
AnimationLoader.prototype.document; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
AnimationLoader.prototype.isSafari; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
AnimationLoader.prototype.options; | ||
@@ -1146,14 +1097,10 @@ /** | ||
provide: LOTTIE_OPTIONS, | ||
useValue: options | ||
useValue: options, | ||
}, | ||
{ | ||
provide: IS_SAFARI, | ||
useFactory: isSafariFactory | ||
}, | ||
{ | ||
provide: ANIMATION_CACHE, | ||
useFactory: AnimationCache.create, | ||
deps: [LOTTIE_OPTIONS] | ||
} | ||
] | ||
deps: [LOTTIE_OPTIONS], | ||
}, | ||
], | ||
}; | ||
@@ -1165,3 +1112,3 @@ }; | ||
declarations: [BaseDirective, LottieDirective, LottieComponent], | ||
exports: [BaseDirective, LottieDirective, LottieComponent] | ||
exports: [BaseDirective, LottieDirective, LottieComponent], | ||
},] } | ||
@@ -1222,9 +1169,7 @@ ]; | ||
exports.transformAnimationFilenameToKey = transformAnimationFilenameToKey; | ||
exports.ɵb = IS_SAFARI; | ||
exports.ɵc = LOTTIE_OPTIONS; | ||
exports.ɵd = ANIMATION_CACHE; | ||
exports.ɵe = isSafariFactory; | ||
exports.ɵf = AnimationLoader; | ||
exports.ɵg = AnimationCache; | ||
exports.ɵh = LottieEventsFacade; | ||
exports.ɵb = LOTTIE_OPTIONS; | ||
exports.ɵc = ANIMATION_CACHE; | ||
exports.ɵd = AnimationLoader; | ||
exports.ɵe = AnimationCache; | ||
exports.ɵf = LottieEventsFacade; | ||
@@ -1231,0 +1176,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
@@ -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){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})})); | ||
***************************************************************************** */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}var u=new e.InjectionToken("LottieOptions"),l=new e.InjectionToken("AnimationCache");function d(t){return"animation-"+t.split(".json")[0]}var y=function(){function t(t,e,n,i){var a,s;this.ngZone=t,this.platformId=e,this.options=n,this.animationCache=i,this.player$=(a=this.options.player,(s=a())instanceof Promise?r.from(s).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(s))}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){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:void 0,decorators:[{type:e.Inject,args:[u]}]},{type:void 0,decorators:[{type:e.Inject,args:[l]}]}]},t}();var f=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:y}]},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 h=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 m=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 v=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:[m]}]}],n.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:e.ElementRef,decorators:[{type:e.Self}]},{type:m,decorators:[{type:e.Self}]},{type:y}]},n}(f);var g=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:[m]}]}],n.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[e.PLATFORM_ID]}]},{type:m,decorators:[{type:e.Self}]},{type:y}]},n.propDecorators={container:[{type:e.ViewChild,args:["container",{static:!0}]}]},n}(f);var E=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[y,{provide:u,useValue:e},{provide:l,useFactory:h.create,deps:[u]}]}},t.decorators=[{type:e.NgModule,args:[{imports:[n.CommonModule],declarations:[f,v,g],exports:[f,v,g]}]}],t}(),I=function(){function t(t){this.transferState=t}return t.prototype.get=function(t){var e=d(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=f,t.LottieComponent=g,t.LottieDirective=v,t.LottieModule=E,t.LottieTransferState=I,t.transformAnimationFilenameToKey=d,t.ɵb=u,t.ɵc=l,t.ɵd=y,t.ɵe=h,t.ɵf=m,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ngx-lottie.umd.min.js.map |
@@ -10,7 +10,6 @@ /** | ||
export { LottieModule, BaseDirective, LottieDirective, LottieComponent, LottieTransferState, transformAnimationFilenameToKey } from './index'; | ||
export { AnimationCache as ɵg } from './src/animation-cache'; | ||
export { AnimationLoader as ɵf } from './src/animation-loader'; | ||
export { LottieEventsFacade as ɵh } from './src/events-facade'; | ||
export { ANIMATION_CACHE as ɵd, IS_SAFARI as ɵb, LOTTIE_OPTIONS as ɵc } from './src/symbols'; | ||
export { isSafariFactory as ɵe } from './src/utils'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib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0aW9ucyBhcyDJtWF9IGZyb20gJy4vc3JjL3N5bWJvbHMnO1xuZXhwb3J0IHtpc1NhZmFyaUZhY3RvcnkgYXMgybVlfSBmcm9tICcuL3NyYy91dGlscyc7Il19 | ||
export { AnimationCache as ɵe } from './src/animation-cache'; | ||
export { AnimationLoader as ɵd } from './src/animation-loader'; | ||
export { LottieEventsFacade as ɵf } from './src/events-facade'; | ||
export { ANIMATION_CACHE as ɵc, LOTTIE_OPTIONS as ɵb } from './src/symbols'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWxvdHRpZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJuZ3gtbG90dGllLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBSUEsb0lBQWMsU0FBUyxDQUFDO0FBRXhCLE9BQU8sRUFBQyxjQUFjLElBQUksRUFBRSxFQUFDLE1BQU0sdUJBQXVCLENBQUM7QUFDM0QsT0FBTyxFQUFDLGVBQWUsSUFBSSxFQUFFLEVBQUMsTUFBTSx3QkFBd0IsQ0FBQztBQUM3RCxPQUFPLEVBQUMsa0JBQWtCLElBQUksRUFBRSxFQUFDLE1BQU0scUJBQXFCLENBQUM7QUFDN0QsT0FBTyxFQUFDLGVBQWUsSUFBSSxFQUFFLEVBQUMsY0FBYyxJQUFJLEVBQUUsRUFBcUIsTUFBTSxlQUFlLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuXG5leHBvcnQge0FuaW1hdGlvbkNhY2hlIGFzIMm1ZX0gZnJvbSAnLi9zcmMvYW5pbWF0aW9uLWNhY2hlJztcbmV4cG9ydCB7QW5pbWF0aW9uTG9hZGVyIGFzIMm1ZH0gZnJvbSAnLi9zcmMvYW5pbWF0aW9uLWxvYWRlcic7XG5leHBvcnQge0xvdHRpZUV2ZW50c0ZhY2FkZSBhcyDJtWZ9IGZyb20gJy4vc3JjL2V2ZW50cy1mYWNhZGUnO1xuZXhwb3J0IHtBTklNQVRJT05fQ0FDSEUgYXMgybVjLExPVFRJRV9PUFRJT05TIGFzIMm1YixMb3R0aWVPcHRpb25zIGFzIMm1YX0gZnJvbSAnLi9zcmMvc3ltYm9scyc7Il19 |
@@ -7,9 +7,6 @@ /** | ||
import { Injectable, NgZone, Inject, PLATFORM_ID } from '@angular/core'; | ||
import { isPlatformServer, DOCUMENT } from '@angular/common'; | ||
import { isPlatformServer } from '@angular/common'; | ||
import { takeUntil } from 'rxjs/operators'; | ||
import { IS_SAFARI, LOTTIE_OPTIONS, ANIMATION_CACHE } from './symbols'; | ||
import { awaitConfigAndCache, setPlayerLocationHref, mergeOptionsWithDefault, streamifyPlayerOrLoader } from './utils'; | ||
// This has to be dynamic as `Document` interface is not | ||
// accepted by the ngc compiler | ||
// @dynamic | ||
import { LOTTIE_OPTIONS, ANIMATION_CACHE, } from './symbols'; | ||
import { awaitConfigAndCache, mergeOptionsWithDefault, streamifyPlayerOrLoader } from './utils'; | ||
export class AnimationLoader { | ||
@@ -19,12 +16,8 @@ /** | ||
* @param {?} platformId | ||
* @param {?} document | ||
* @param {?} isSafari | ||
* @param {?} options | ||
* @param {?} animationCache | ||
*/ | ||
constructor(ngZone, platformId, document, isSafari, options, animationCache) { | ||
constructor(ngZone, platformId, options, animationCache) { | ||
this.ngZone = ngZone; | ||
this.platformId = platformId; | ||
this.document = document; | ||
this.isSafari = isSafari; | ||
this.options = options; | ||
@@ -67,3 +60,2 @@ this.animationCache = animationCache; | ||
loadAnimation(player, options, eventsFacade, animationCreated, instance) { | ||
setPlayerLocationHref(player, this.document.location.href, this.isSafari); | ||
/** @type {?} */ | ||
@@ -87,4 +79,2 @@ const animationItem = this.ngZone.runOutsideAngular((/** | ||
{ type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, | ||
{ type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, | ||
{ type: Boolean, decorators: [{ type: Inject, args: [IS_SAFARI,] }] }, | ||
{ type: undefined, decorators: [{ type: Inject, args: [LOTTIE_OPTIONS,] }] }, | ||
@@ -113,12 +103,2 @@ { type: undefined, decorators: [{ type: Inject, args: [ANIMATION_CACHE,] }] } | ||
*/ | ||
AnimationLoader.prototype.document; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
AnimationLoader.prototype.isSafari; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
AnimationLoader.prototype.options; | ||
@@ -131,2 +111,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5pbWF0aW9uLWxvYWRlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJzcmMvYW5pbWF0aW9uLWxvYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sRUFBZ0IsV0FBVyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3RGLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxRQUFRLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUc3RCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFM0MsT0FBTyxFQU9MLFNBQVMsRUFDVCxjQUFjLEVBQ2QsZUFBZSxFQUNoQixNQUFNLFdBQVcsQ0FBQztBQUNuQixPQUFPLEVBQ0wsbUJBQW1CLEVBQ25CLHFCQUFxQixFQUNyQix1QkFBdUIsRUFDdkIsdUJBQXVCLEVBQ3hCLE1BQU0sU0FBUyxDQUFDOzs7O0FBU2pCLE1BQU0sT0FBTyxlQUF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dChhbmltYXRpb25JdGVtKTtcbiAgICBldmVudHNGYWNhZGUuYWRkRXZlbnRMaXN0ZW5lcnMoaW5zdGFuY2UsIGFuaW1hdGlvbkl0ZW0pO1xuICB9XG59XG4iXX0= |
@@ -8,3 +8,2 @@ /** | ||
import { CommonModule } from '@angular/common'; | ||
import { isSafariFactory } from './utils'; | ||
import { BaseDirective } from './base.directive'; | ||
@@ -15,3 +14,3 @@ import { AnimationCache } from './animation-cache'; | ||
import { LottieComponent } from './lottie.component'; | ||
import { LOTTIE_OPTIONS, IS_SAFARI, ANIMATION_CACHE } from './symbols'; | ||
import { LOTTIE_OPTIONS, ANIMATION_CACHE } from './symbols'; | ||
export class LottieModule { | ||
@@ -29,14 +28,10 @@ /** | ||
provide: LOTTIE_OPTIONS, | ||
useValue: options | ||
useValue: options, | ||
}, | ||
{ | ||
provide: IS_SAFARI, | ||
useFactory: isSafariFactory | ||
}, | ||
{ | ||
provide: ANIMATION_CACHE, | ||
useFactory: AnimationCache.create, | ||
deps: [LOTTIE_OPTIONS] | ||
} | ||
] | ||
deps: [LOTTIE_OPTIONS], | ||
}, | ||
], | ||
}; | ||
@@ -49,5 +44,5 @@ } | ||
declarations: [BaseDirective, LottieDirective, LottieComponent], | ||
exports: [BaseDirective, LottieDirective, LottieComponent] | ||
exports: [BaseDirective, LottieDirective, LottieComponent], | ||
},] } | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG90dGllLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJzcmMvbG90dGllLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQXVCLE1BQU0sZUFBZSxDQUFDO0FBQzlELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUUvQyxPQUFPLEVB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vbnM6IExvdHRpZU9wdGlvbnMpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPExvdHRpZU1vZHVsZT4ge1xuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogTG90dGllTW9kdWxlLFxuICAgICAgcHJvdmlkZXJzOiBbXG4gICAgICAgIEFuaW1hdGlvbkxvYWRlcixcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IExPVFRJRV9PUFRJT05TLFxuICAgICAgICAgIHVzZVZhbHVlOiBvcHRpb25zXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBJU19TQUZBUkksXG4gICAgICAgICAgdXNlRmFjdG9yeTogaXNTYWZhcmlGYWN0b3J5XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBBTklNQVRJT05fQ0FDSEUsXG4gICAgICAgICAgdXNlRmFjdG9yeTogQW5pbWF0aW9uQ2FjaGUuY3JlYXRlLFxuICAgICAgICAgIGRlcHM6IFtMT1RUSUVfT1BUSU9OU11cbiAgICAgICAgfVxuICAgICAgXVxuICAgIH07XG4gIH1cbn1cbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG90dGllLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJzcmMvbG90dGllLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQXVCLE1BQU0sZUFBZSxDQUFDO0FBQzlELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUUvQyxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDakQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ25ELE9B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gICAgICAgIHByb3ZpZGU6IEFOSU1BVElPTl9DQUNIRSxcbiAgICAgICAgICB1c2VGYWN0b3J5OiBBbmltYXRpb25DYWNoZS5jcmVhdGUsXG4gICAgICAgICAgZGVwczogW0xPVFRJRV9PUFRJT05TXSxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgfTtcbiAgfVxufVxuIl19 |
@@ -100,7 +100,5 @@ /** | ||
/** @type {?} */ | ||
export const IS_SAFARI = new InjectionToken('IsSafari'); | ||
/** @type {?} */ | ||
export const LOTTIE_OPTIONS = new InjectionToken('LottieOptions'); | ||
/** @type {?} */ | ||
export const ANIMATION_CACHE = new InjectionToken('AnimationCache'); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ltYm9scy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJzcmMvc3ltYm9scy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7QUFJL0MsdUNBS0M7OztJQUpDLHdDQUFvQjs7SUFDcEIscUNBQWlCOztJQUNqQixzQ0FBa0I7O0lBQ2xCLGlDQUFtQjs7Ozs7QUFHckIseUNBS0M7OztJQUpDLG1DQUFxQjs7SUFDckIsbUNBQWE7O0lBQ2Isd0NBQWtCOztJQUNsQix3Q0FBa0I7Ozs7O0FBR3BCLHFDQUdDOzs7SUFGQywrQkFBaUI7O0lBQ2pCLG1DQUFpQjs7Ozs7QUFHbkIseUNBSUM7OztJQUhDLG1DQUFxQjs7SUFDckIseUNBQW1COztJQUNuQiwwQ0FBb0I7Ozs7O0FBR3RCLG9DQUdDOzs7SUFGQyxnQ0FBc0I7O0lBQ3RCLDhCQUFnQjs7Ozs7QUFHbEIsNkNBSUM7OztJQUhDLHVDQUF5Qjs7SUFDekIsOENBQW1COztJQUNuQiw4Q0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kgPT4gUHJvbWlzZTx0eXBlb2YgaW1wb3J0KCdsb3R0aWUtd2ViJyk+O1xuXG5leHBvcnQgdHlwZSBMb3R0aWVQbGF5ZXJGYWN0b3J5T3JMb2FkZXIgPSBMb3R0aWVQbGF5ZXJGYWN0b3J5IHwgTG90dGllTG9hZGVyO1xuXG5leHBvcnQgaW50ZXJmYWNlIExvdHRpZU9wdGlvbnMge1xuICBwbGF5ZXI6IExvdHRpZVBsYXllckZhY3RvcnlPckxvYWRlcjtcbiAgdXNlQ2FjaGU/OiBib29sZWFuO1xufVxuXG5leHBvcnQgdHlwZSBBbmltYXRpb25Db25maWdXaXRoRGF0YSA9IGltcG9ydCgnbG90dGllLXdlYicpLkFuaW1hdGlvbkNvbmZpZ1dpdGhEYXRhO1xuZXhwb3J0IHR5cGUgQW5pbWF0aW9uQ29uZmlnV2l0aFBhdGggPSBpbXBvcnQoJ2xvdHRpZS13ZWInKS5BbmltYXRpb25Db25maWdXaXRoUGF0aDtcbmV4cG9ydCB0eXBlIEFuaW1hdGlvbk9wdGlvbnMgPSBQYXJ0aWFsPEFuaW1hdGlvbkNvbmZpZ1dpdGhEYXRhPiB8IFBhcnRpYWw8QW5pbWF0aW9uQ29uZmlnV2l0aFBhdGg+O1xuXG5leHBvcnQgY29uc3QgTE9UVElFX09QVElPTlMgPSBuZXcgSW5qZWN0aW9uVG9rZW48TG90dGllT3B0aW9ucz4oJ0xvdHRpZU9wdGlvbnMnKTtcbmV4cG9ydCBjb25zdCBBTklNQVRJT05fQ0FDSEUgPSBuZXcgSW5qZWN0aW9uVG9rZW48QW5pbWF0aW9uQ2FjaGUgfCBudWxsPignQW5pbWF0aW9uQ2FjaGUnKTtcbiJdfQ== |
@@ -16,15 +16,2 @@ /** | ||
/** | ||
* @param {?} player | ||
* @param {?} href | ||
* @param {?} isSafari | ||
* @return {?} | ||
*/ | ||
export function setPlayerLocationHref(player, href, isSafari) { | ||
// This is a fix for the mask on Safari/iOS | ||
// https://github.com/airbnb/lottie-web/issues/1198 | ||
if (isSafari) { | ||
((/** @type {?} */ (((/** @type {?} */ (player)))))).setLocationHref(href); | ||
} | ||
} | ||
/** | ||
* @param {?} options | ||
@@ -41,3 +28,3 @@ * @param {?} container | ||
loop: true, | ||
autoplay: true | ||
autoplay: true, | ||
}, options); | ||
@@ -50,18 +37,2 @@ if (animationCache !== null) { | ||
/** | ||
* @return {?} | ||
*/ | ||
export function isSafariFactory() { | ||
// This `try-catch` block will also handle server-side rendering | ||
// as `navigator` is not accessable there | ||
try { | ||
const { vendor, userAgent } = navigator; | ||
return (vendor.indexOf('Apple') > -1 && | ||
userAgent.indexOf('CriOS') === -1 && | ||
userAgent.indexOf('FxiOS') === -1); | ||
} | ||
catch (_a) { | ||
return false; | ||
} | ||
} | ||
/** | ||
* @param {?} options | ||
@@ -122,2 +93,2 @@ * @return {?} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9uZ3gtbG90dGllLyIsInNvdXJjZXMiOlsic3JjL3V0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsT0FBTyxFQUFFLElBQUksRUFBRSxVQUFVLEVBQUUsRUFBRSxFQUFjLE1BQU0sTUFBTSxDQUFDO0FBQ3hELE9BQU8sRUFBRSxHQUFHLEVBQUUsVUFBVSxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDOzs7OztBQWE5RCxNQUFNLFVBQVUsK0JBQStCLENBQUMsU0FBNEI7SUFDMUUsT0FBTyxhQUFhLFNBQVMsQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQztBQUNwRCxDQUFDOzs7Ozs7O0FBRUQsTUFBTSxVQUFVLHFCQUFxQixDQUFDLE1BQW9CLEVBQUUsSUFBWSxFQUFFLFFBQWlCO0lBQ3pG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19yZWFkeScsICgpID0+IHtcbiAgICBhbmltYXRpb25DYWNoZS5zZXQob3B0aW9ucywgYW5pbWF0aW9uSXRlbSk7XG4gIH0pO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gc3RyZWFtaWZ5UGxheWVyT3JMb2FkZXIoXG4gIHBsYXllcjogTG90dGllUGxheWVyRmFjdG9yeU9yTG9hZGVyXG4pOiBPYnNlcnZhYmxlPExvdHRpZVBsYXllcj4ge1xuICBjb25zdCBwbGF5ZXJPckxvYWRlciA9IHBsYXllcigpO1xuXG4gIGlmIChwbGF5ZXJPckxvYWRlciBpbnN0YW5jZW9mIFByb21pc2UpIHtcbiAgICByZXR1cm4gZnJvbShwbGF5ZXJPckxvYWRlcikucGlwZShcbiAgICAgIG1hcChtb2R1bGUgPT4gbW9kdWxlLmRlZmF1bHQgfHwgbW9kdWxlKSxcbiAgICAgIGNhdGNoRXJyb3IoZXJyb3IgPT4ge1xuICAgICAgICBjb25zb2xlLmVycm9yKGBcbiAgICAgICAgICBDb3VsZCBub3QgcmV0cmlldmUgdGhlIFwibG90dGllLXdlYlwiIHBsYXllciwgZGlkIHlvdSBwcm92aWRlXG4gICAgICAgICAgdGhlIFwicGxheWVyXCIgcHJvcGVydHkgY29ycmVjdGx5P1xuICAgICAgICAgIGV4cG9ydCBmdW5jdGlvbiBwbGF5ZXJGYWN0b3J5KCkge1xuICAgICAgICAgICAgcmV0dXJuIGltcG9ydCgnbG90dGllLXdlYicpO1xuICAgICAgICAgIH1cbiAgICAgICAgICBMb3R0aWVNb2R1bGUuZm9yUm9vdCh7IHBsYXllcjogcGxheWVyRmFjdG9yeSB9KVxuICAgICAgICBgKTtcbiAgICAgICAgcmV0dXJuIHRocm93RXJyb3IoZXJyb3IpO1xuICAgICAgfSksXG4gICAgICBzaGFyZVJlcGxheSgxKVxuICAgICk7XG4gIH1cblxuICByZXR1cm4gb2YocGxheWVyT3JMb2FkZXIpO1xufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,e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GFuaW1hdGlvbkl0ZW0pO1xuICB9KTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHN0cmVhbWlmeVBsYXllck9yTG9hZGVyKFxuICBwbGF5ZXI6IExvdHRpZVBsYXllckZhY3RvcnlPckxvYWRlcixcbik6IE9ic2VydmFibGU8TG90dGllUGxheWVyPiB7XG4gIGNvbnN0IHBsYXllck9yTG9hZGVyID0gcGxheWVyKCk7XG5cbiAgaWYgKHBsYXllck9yTG9hZGVyIGluc3RhbmNlb2YgUHJvbWlzZSkge1xuICAgIHJldHVybiBmcm9tKHBsYXllck9yTG9hZGVyKS5waXBlKFxuICAgICAgbWFwKG1vZHVsZSA9PiBtb2R1bGUuZGVmYXVsdCB8fCBtb2R1bGUpLFxuICAgICAgY2F0Y2hFcnJvcihlcnJvciA9PiB7XG4gICAgICAgIGNvbnNvbGUuZXJyb3IoYFxuICAgICAgICAgIENvdWxkIG5vdCByZXRyaWV2ZSB0aGUgXCJsb3R0aWUtd2ViXCIgcGxheWVyLCBkaWQgeW91IHByb3ZpZGVcbiAgICAgICAgICB0aGUgXCJwbGF5ZXJcIiBwcm9wZXJ0eSBjb3JyZWN0bHk/XG4gICAgICAgICAgZXhwb3J0IGZ1bmN0aW9uIHBsYXllckZhY3RvcnkoKSB7XG4gICAgICAgICAgICByZXR1cm4gaW1wb3J0KCdsb3R0aWUtd2ViJyk7XG4gICAgICAgICAgfVxuICAgICAgICAgIExvdHRpZU1vZHVsZS5mb3JSb290KHsgcGxheWVyOiBwbGF5ZXJGYWN0b3J5IH0pXG4gICAgICAgIGApO1xuICAgICAgICByZXR1cm4gdGhyb3dFcnJvcihlcnJvcik7XG4gICAgICB9KSxcbiAgICAgIHNoYXJlUmVwbGF5KDEpLFxuICAgICk7XG4gIH1cblxuICByZXR1cm4gb2YocGxheWVyT3JMb2FkZXIpO1xufVxuIl19 |
@@ -10,7 +10,6 @@ /** | ||
export { LottieModule, BaseDirective, LottieDirective, LottieComponent, LottieTransferState, transformAnimationFilenameToKey } from './index'; | ||
export { AnimationCache as ɵg } from './src/animation-cache'; | ||
export { AnimationLoader as ɵf } from './src/animation-loader'; | ||
export { LottieEventsFacade as ɵh } from './src/events-facade'; | ||
export { ANIMATION_CACHE as ɵd, IS_SAFARI as ɵb, LOTTIE_OPTIONS as ɵc } from './src/symbols'; | ||
export { isSafariFactory as ɵe } from './src/utils'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWxvdHRpZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJuZ3gtbG90dGllLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBSUEsb0lBQWMsU0FBUyxDQUFDO0FBRXhCLE9BQU8sRUFBQyxjQUFjLElBQUksRUFBRSxFQUFDLE1BQU0sdUJBQXVCLENBQUM7QUFDM0QsT0FBTyxFQUFDLGVBQWUsSUFBSSxFQUFFLEVBQUMsTUFBTSx3QkFBd0IsQ0FBQztBQUM3RCxPQUFPLEVBQUMsa0JBQWtCLElBQUksRUFBRSxFQUFDLE1BQU0scUJBQXFCLENBQUM7QUFDN0QsT0FBTyxFQUFDLGVBQWUsSUFBSSxFQUFFLEVBQUMsU0FBUyxJQUFJLEVBQUUsRUFBQyxjQUFjLElBQUksRUFBRSxFQUFxQixNQUFNLGVBQWUsQ0FBQztBQUM3RyxPQUFPLEVBQUMsZUFBZSxJQUFJLEVBQUUsRUFBQyxNQUFNLGFBQWEsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG5cbmV4cG9ydCB7QW5pbWF0aW9uQ2FjaGUgYXMgybVnfSBmcm9tICcuL3NyYy9hbmltYXRpb24tY2FjaGUnO1xuZXhwb3J0IHtBbmltYXRpb25Mb2FkZXIgYXMgybVmfSBmcm9tICcuL3NyYy9hbmltYXRpb24tbG9hZGVyJztcbmV4cG9ydCB7TG90dGllRXZlbnRzRmFjYWRlIGFzIMm1aH0gZnJvbSAnLi9zcmMvZXZlbnRzLWZhY2FkZSc7XG5leHBvcnQge0FOSU1BVElPTl9DQUNIRSBhcyDJtWQsSVNfU0FGQVJJIGFzIMm1YixMT1RUSUVfT1BUSU9OUyBhcyDJtWMsTG90dGllT3B0aW9ucyBhcyDJtWF9IGZyb20gJy4vc3JjL3N5bWJvbHMnO1xuZXhwb3J0IHtpc1NhZmFyaUZhY3RvcnkgYXMgybVlfSBmcm9tICcuL3NyYy91dGlscyc7Il19 | ||
export { AnimationCache as ɵe } from './src/animation-cache'; | ||
export { AnimationLoader as ɵd } from './src/animation-loader'; | ||
export { LottieEventsFacade as ɵf } from './src/events-facade'; | ||
export { ANIMATION_CACHE as ɵc, LOTTIE_OPTIONS as ɵb } from './src/symbols'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWxvdHRpZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJuZ3gtbG90dGllLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBSUEsb0lBQWMsU0FBUyxDQUFDO0FBRXhCLE9BQU8sRUFBQyxjQUFjLElBQUksRUFBRSxFQUFDLE1BQU0sdUJBQXVCLENBQUM7QUFDM0QsT0FBTyxFQUFDLGVBQWUsSUFBSSxFQUFFLEVBQUMsTUFBTSx3QkFBd0IsQ0FBQztBQUM3RCxPQUFPLEVBQUMsa0JBQWtCLElBQUksRUFBRSxFQUFDLE1BQU0scUJBQXFCLENBQUM7QUFDN0QsT0FBTyxFQUFDLGVBQWUsSUFBSSxFQUFFLEVBQUMsY0FBYyxJQUFJLEVBQUUsRUFBcUIsTUFBTSxlQUFlLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuXG5leHBvcnQge0FuaW1hdGlvbkNhY2hlIGFzIMm1ZX0gZnJvbSAnLi9zcmMvYW5pbWF0aW9uLWNhY2hlJztcbmV4cG9ydCB7QW5pbWF0aW9uTG9hZGVyIGFzIMm1ZH0gZnJvbSAnLi9zcmMvYW5pbWF0aW9uLWxvYWRlcic7XG5leHBvcnQge0xvdHRpZUV2ZW50c0ZhY2FkZSBhcyDJtWZ9IGZyb20gJy4vc3JjL2V2ZW50cy1mYWNhZGUnO1xuZXhwb3J0IHtBTklNQVRJT05fQ0FDSEUgYXMgybVjLExPVFRJRV9PUFRJT05TIGFzIMm1YixMb3R0aWVPcHRpb25zIGFzIMm1YX0gZnJvbSAnLi9zcmMvc3ltYm9scyc7Il19 |
@@ -7,15 +7,10 @@ /** | ||
import { Injectable, NgZone, Inject, PLATFORM_ID } from '@angular/core'; | ||
import { isPlatformServer, DOCUMENT } from '@angular/common'; | ||
import { isPlatformServer } from '@angular/common'; | ||
import { takeUntil } from 'rxjs/operators'; | ||
import { IS_SAFARI, LOTTIE_OPTIONS, ANIMATION_CACHE } from './symbols'; | ||
import { awaitConfigAndCache, setPlayerLocationHref, mergeOptionsWithDefault, streamifyPlayerOrLoader } from './utils'; | ||
// This has to be dynamic as `Document` interface is not | ||
// accepted by the ngc compiler | ||
// @dynamic | ||
import { LOTTIE_OPTIONS, ANIMATION_CACHE, } from './symbols'; | ||
import { awaitConfigAndCache, mergeOptionsWithDefault, streamifyPlayerOrLoader } from './utils'; | ||
var AnimationLoader = /** @class */ (function () { | ||
function AnimationLoader(ngZone, platformId, document, isSafari, options, animationCache) { | ||
function AnimationLoader(ngZone, platformId, options, animationCache) { | ||
this.ngZone = ngZone; | ||
this.platformId = platformId; | ||
this.document = document; | ||
this.isSafari = isSafari; | ||
this.options = options; | ||
@@ -77,3 +72,2 @@ this.animationCache = animationCache; | ||
function (player, options, eventsFacade, animationCreated, instance) { | ||
setPlayerLocationHref(player, this.document.location.href, this.isSafari); | ||
/** @type {?} */ | ||
@@ -96,4 +90,2 @@ var animationItem = this.ngZone.runOutsideAngular((/** | ||
{ type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, | ||
{ type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, | ||
{ type: Boolean, decorators: [{ type: Inject, args: [IS_SAFARI,] }] }, | ||
{ type: undefined, decorators: [{ type: Inject, args: [LOTTIE_OPTIONS,] }] }, | ||
@@ -125,12 +117,2 @@ { type: undefined, decorators: [{ type: Inject, args: [ANIMATION_CACHE,] }] } | ||
*/ | ||
AnimationLoader.prototype.document; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
AnimationLoader.prototype.isSafari; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
AnimationLoader.prototype.options; | ||
@@ -143,2 +125,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5pbWF0aW9uLWxvYWRlci5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJzcmMvYW5pbWF0aW9uLWxvYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFFLE1BQU0sRUFBZ0IsV0FBVyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3RGLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxRQUFRLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUc3RCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFM0MsT0FBTyxFQU9MLFNBQVMsRUFDVCxjQUFjLEVBQ2QsZUFB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+LFxuICAgIGluc3RhbmNlOiBCYXNlRGlyZWN0aXZlLFxuICApOiB2b2lkIHtcbiAgICBjb25zdCBhbmltYXRpb25JdGVtID0gdGhpcy5uZ1pvbmUucnVuT3V0c2lkZUFuZ3VsYXIoKCkgPT4gcGxheWVyLmxvYWRBbmltYXRpb24ob3B0aW9ucykpO1xuICAgIGF3YWl0Q29uZmlnQW5kQ2FjaGUodGhpcy5hbmltYXRpb25DYWNoZSwgb3B0aW9ucywgYW5pbWF0aW9uSXRlbSk7XG4gICAgLy8gRGlzcGF0Y2ggYGFuaW1hdGlvbkNyZWF0ZWRgIGV2ZW50IGFmdGVyIGFuaW1hdGlvbiBpcyBsb2FkZWQgc3VjY2Vzc2Z1bGx5XG4gICAgYW5pbWF0aW9uQ3JlYXRlZC5lbWl0KGFuaW1hdGlvbkl0ZW0pO1xuICAgIGV2ZW50c0ZhY2FkZS5hZGRFdmVudExpc3RlbmVycyhpbnN0YW5jZSwgYW5pbWF0aW9uSXRlbSk7XG4gIH1cbn1cbiJdfQ== |
@@ -8,3 +8,2 @@ /** | ||
import { CommonModule } from '@angular/common'; | ||
import { isSafariFactory } from './utils'; | ||
import { BaseDirective } from './base.directive'; | ||
@@ -15,3 +14,3 @@ import { AnimationCache } from './animation-cache'; | ||
import { LottieComponent } from './lottie.component'; | ||
import { LOTTIE_OPTIONS, IS_SAFARI, ANIMATION_CACHE } from './symbols'; | ||
import { LOTTIE_OPTIONS, ANIMATION_CACHE } from './symbols'; | ||
var LottieModule = /** @class */ (function () { | ||
@@ -35,14 +34,10 @@ function LottieModule() { | ||
provide: LOTTIE_OPTIONS, | ||
useValue: options | ||
useValue: options, | ||
}, | ||
{ | ||
provide: IS_SAFARI, | ||
useFactory: isSafariFactory | ||
}, | ||
{ | ||
provide: ANIMATION_CACHE, | ||
useFactory: AnimationCache.create, | ||
deps: [LOTTIE_OPTIONS] | ||
} | ||
] | ||
deps: [LOTTIE_OPTIONS], | ||
}, | ||
], | ||
}; | ||
@@ -54,3 +49,3 @@ }; | ||
declarations: [BaseDirective, LottieDirective, LottieComponent], | ||
exports: [BaseDirective, LottieDirective, LottieComponent] | ||
exports: [BaseDirective, LottieDirective, LottieComponent], | ||
},] } | ||
@@ -61,2 +56,2 @@ ]; | ||
export { LottieModule }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG90dGllLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cmNlcyI6WyJzcmMvbG90dGllLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQXVCLE1BQU0sZUFBZSxDQUFDO0FBQzlELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUUvQyxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQzFDLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNqRCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDbkQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDckQsT0FBTyxFQUFpQixjQUFjLEVBQUUsU0FBUyxFQUFFLGVBQWUsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUV0RjtJQUFBO0lBMkJBLENBQUM7Ozs7O0lBckJRLG9CQUFPOzs7O0lBQWQsVUFBZSxPQUFzQjtRQUNuQyxPQUFPO1lBQ0wsUUFBUSxFQUFFLFlBQVk7WUFDdEIsU0FBUyxFQUFFO2dCQUNULGVBQWU7Z0JBQ2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cnRzOiBbQ29tbW9uTW9kdWxlXSxcbiAgZGVjbGFyYXRpb25zOiBbQmFzZURpcmVjdGl2ZSwgTG90dGllRGlyZWN0aXZlLCBMb3R0aWVDb21wb25lbnRdLFxuICBleHBvcnRzOiBbQmFzZURpcmVjdGl2ZSwgTG90dGllRGlyZWN0aXZlLCBMb3R0aWVDb21wb25lbnRdLFxufSlcbmV4cG9ydCBjbGFzcyBMb3R0aWVNb2R1bGUge1xuICBzdGF0aWMgZm9yUm9vdChvcHRpb25zOiBMb3R0aWVPcHRpb25zKTogTW9kdWxlV2l0aFByb3ZpZGVyczxMb3R0aWVNb2R1bGU+IHtcbiAgICByZXR1cm4ge1xuICAgICAgbmdNb2R1bGU6IExvdHRpZU1vZHVsZSxcbiAgICAgIHByb3ZpZGVyczogW1xuICAgICAgICBBbmltYXRpb25Mb2FkZXIsXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBMT1RUSUVfT1BUSU9OUyxcbiAgICAgICAgICB1c2VWYWx1ZTogb3B0aW9ucyxcbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIHByb3ZpZGU6IEFOSU1BVElPTl9DQUNIRSxcbiAgICAgICAgICB1c2VGYWN0b3J5OiBBbmltYXRpb25DYWNoZS5jcmVhdGUsXG4gICAgICAgICAgZGVwczogW0xPVFRJRV9PUFRJT05TXSxcbiAgICAgICAgfSxcbiAgICAgIF0sXG4gICAgfTtcbiAgfVxufVxuIl19 |
@@ -100,7 +100,5 @@ /** | ||
/** @type {?} */ | ||
export var IS_SAFARI = new InjectionToken('IsSafari'); | ||
/** @type {?} */ | ||
export var LOTTIE_OPTIONS = new InjectionToken('LottieOptions'); | ||
/** @type {?} */ | ||
export var ANIMATION_CACHE = new InjectionToken('AnimationCache'); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3ltYm9scy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1sb3R0aWUvIiwic291cm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J2xvdHRpZS13ZWInKS5BbmltYXRpb25Db25maWdXaXRoUGF0aDtcbmV4cG9ydCB0eXBlIEFuaW1hdGlvbk9wdGlvbnMgPSBQYXJ0aWFsPEFuaW1hdGlvbkNvbmZpZ1dpdGhEYXRhPiB8IFBhcnRpYWw8QW5pbWF0aW9uQ29uZmlnV2l0aFBhdGg+O1xuXG5leHBvcnQgY29uc3QgTE9UVElFX09QVElPTlMgPSBuZXcgSW5qZWN0aW9uVG9rZW48TG90dGllT3B0aW9ucz4oJ0xvdHRpZU9wdGlvbnMnKTtcbmV4cG9ydCBjb25zdCBBTklNQVRJT05fQ0FDSEUgPSBuZXcgSW5qZWN0aW9uVG9rZW48QW5pbWF0aW9uQ2FjaGUgfCBudWxsPignQW5pbWF0aW9uQ2FjaGUnKTtcbiJdfQ== |
@@ -16,15 +16,2 @@ /** | ||
/** | ||
* @param {?} player | ||
* @param {?} href | ||
* @param {?} isSafari | ||
* @return {?} | ||
*/ | ||
export function setPlayerLocationHref(player, href, isSafari) { | ||
// This is a fix for the mask on Safari/iOS | ||
// https://github.com/airbnb/lottie-web/issues/1198 | ||
if (isSafari) { | ||
((/** @type {?} */ (((/** @type {?} */ (player)))))).setLocationHref(href); | ||
} | ||
} | ||
/** | ||
* @param {?} options | ||
@@ -41,3 +28,3 @@ * @param {?} container | ||
loop: true, | ||
autoplay: true | ||
autoplay: true, | ||
}, options); | ||
@@ -50,18 +37,2 @@ if (animationCache !== null) { | ||
/** | ||
* @return {?} | ||
*/ | ||
export function isSafariFactory() { | ||
// This `try-catch` block will also handle server-side rendering | ||
// as `navigator` is not accessable there | ||
try { | ||
var vendor = navigator.vendor, userAgent = navigator.userAgent; | ||
return (vendor.indexOf('Apple') > -1 && | ||
userAgent.indexOf('CriOS') === -1 && | ||
userAgent.indexOf('FxiOS') === -1); | ||
} | ||
catch (_a) { | ||
return false; | ||
} | ||
} | ||
/** | ||
* @param {?} options | ||
@@ -115,2 +86,2 @@ * @return {?} | ||
} | ||
//#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XRyaWV2ZSB0aGUgXCJsb3R0aWUtd2ViXCIgcGxheWVyLCBkaWQgeW91IHByb3ZpZGVcbiAgICAgICAgICB0aGUgXCJwbGF5ZXJcIiBwcm9wZXJ0eSBjb3JyZWN0bHk/XG4gICAgICAgICAgZXhwb3J0IGZ1bmN0aW9uIHBsYXllckZhY3RvcnkoKSB7XG4gICAgICAgICAgICByZXR1cm4gaW1wb3J0KCdsb3R0aWUtd2ViJyk7XG4gICAgICAgICAgfVxuICAgICAgICAgIExvdHRpZU1vZHVsZS5mb3JSb290KHsgcGxheWVyOiBwbGF5ZXJGYWN0b3J5IH0pXG4gICAgICAgIGApO1xuICAgICAgICByZXR1cm4gdGhyb3dFcnJvcihlcnJvcik7XG4gICAgICB9KSxcbiAgICAgIHNoYXJlUmVwbGF5KDEpLFxuICAgICk7XG4gIH1cblxuICByZXR1cm4gb2YocGxheWVyT3JMb2FkZXIpO1xufVxuIl19 |
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'; | ||
import { isPlatformServer, CommonModule } from '@angular/common'; | ||
import { from, throwError, of, Subject } from 'rxjs'; | ||
@@ -9,119 +9,2 @@ import { map, catchError, shareReplay, takeUntil } from 'rxjs/operators'; | ||
* @fileoverview added by tsickle | ||
* Generated from: src/utils.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @param {?} animation | ||
* @return {?} | ||
*/ | ||
function transformAnimationFilenameToKey(animation) { | ||
return `animation-${animation.split('.json')[0]}`; | ||
} | ||
/** | ||
* @param {?} player | ||
* @param {?} href | ||
* @param {?} isSafari | ||
* @return {?} | ||
*/ | ||
function setPlayerLocationHref(player, href, isSafari) { | ||
// This is a fix for the mask on Safari/iOS | ||
// https://github.com/airbnb/lottie-web/issues/1198 | ||
if (isSafari) { | ||
((/** @type {?} */ (((/** @type {?} */ (player)))))).setLocationHref(href); | ||
} | ||
} | ||
/** | ||
* @param {?} options | ||
* @param {?} container | ||
* @param {?} animationCache | ||
* @return {?} | ||
*/ | ||
function mergeOptionsWithDefault(options, container, animationCache) { | ||
/** @type {?} */ | ||
const merged = Object.assign({ | ||
container, | ||
renderer: 'svg', | ||
loop: true, | ||
autoplay: true | ||
}, options); | ||
if (animationCache !== null) { | ||
return animationCache.transformOptions(merged); | ||
} | ||
return merged; | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
function isSafariFactory() { | ||
// This `try-catch` block will also handle server-side rendering | ||
// as `navigator` is not accessable there | ||
try { | ||
const { vendor, userAgent } = navigator; | ||
return (vendor.indexOf('Apple') > -1 && | ||
userAgent.indexOf('CriOS') === -1 && | ||
userAgent.indexOf('FxiOS') === -1); | ||
} | ||
catch (_a) { | ||
return false; | ||
} | ||
} | ||
/** | ||
* @param {?} options | ||
* @return {?} | ||
*/ | ||
function isAnimationConfigWithData(options) { | ||
/** @type {?} */ | ||
const animationData = ((/** @type {?} */ (options))).animationData; | ||
return animationData !== null && typeof animationData === 'object'; | ||
} | ||
/** | ||
* @param {?} animationCache | ||
* @param {?} options | ||
* @param {?} animationItem | ||
* @return {?} | ||
*/ | ||
function awaitConfigAndCache(animationCache, options, animationItem) { | ||
if (animationCache === null) { | ||
return; | ||
} | ||
animationItem.addEventListener('config_ready', (/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
animationCache.set(options, animationItem); | ||
})); | ||
} | ||
/** | ||
* @param {?} player | ||
* @return {?} | ||
*/ | ||
function streamifyPlayerOrLoader(player) { | ||
/** @type {?} */ | ||
const playerOrLoader = player(); | ||
if (playerOrLoader instanceof Promise) { | ||
return from(playerOrLoader).pipe(map((/** | ||
* @param {?} module | ||
* @return {?} | ||
*/ | ||
module => module.default || module)), catchError((/** | ||
* @param {?} error | ||
* @return {?} | ||
*/ | ||
error => { | ||
console.error(` | ||
Could not retrieve the "lottie-web" player, did you provide | ||
the "player" property correctly? | ||
export function playerFactory() { | ||
return import('lottie-web'); | ||
} | ||
LottieModule.forRoot({ player: playerFactory }) | ||
`); | ||
return throwError(error); | ||
})), shareReplay(1)); | ||
} | ||
return of(playerOrLoader); | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: src/symbols.ts | ||
@@ -223,4 +106,2 @@ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
/** @type {?} */ | ||
const IS_SAFARI = new InjectionToken('IsSafari'); | ||
/** @type {?} */ | ||
const LOTTIE_OPTIONS = new InjectionToken('LottieOptions'); | ||
@@ -232,8 +113,93 @@ /** @type {?} */ | ||
* @fileoverview added by tsickle | ||
* Generated from: src/utils.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @param {?} animation | ||
* @return {?} | ||
*/ | ||
function transformAnimationFilenameToKey(animation) { | ||
return `animation-${animation.split('.json')[0]}`; | ||
} | ||
/** | ||
* @param {?} options | ||
* @param {?} container | ||
* @param {?} animationCache | ||
* @return {?} | ||
*/ | ||
function mergeOptionsWithDefault(options, container, animationCache) { | ||
/** @type {?} */ | ||
const merged = Object.assign({ | ||
container, | ||
renderer: 'svg', | ||
loop: true, | ||
autoplay: true, | ||
}, options); | ||
if (animationCache !== null) { | ||
return animationCache.transformOptions(merged); | ||
} | ||
return merged; | ||
} | ||
/** | ||
* @param {?} options | ||
* @return {?} | ||
*/ | ||
function isAnimationConfigWithData(options) { | ||
/** @type {?} */ | ||
const animationData = ((/** @type {?} */ (options))).animationData; | ||
return animationData !== null && typeof animationData === 'object'; | ||
} | ||
/** | ||
* @param {?} animationCache | ||
* @param {?} options | ||
* @param {?} animationItem | ||
* @return {?} | ||
*/ | ||
function awaitConfigAndCache(animationCache, options, animationItem) { | ||
if (animationCache === null) { | ||
return; | ||
} | ||
animationItem.addEventListener('config_ready', (/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
animationCache.set(options, animationItem); | ||
})); | ||
} | ||
/** | ||
* @param {?} player | ||
* @return {?} | ||
*/ | ||
function streamifyPlayerOrLoader(player) { | ||
/** @type {?} */ | ||
const playerOrLoader = player(); | ||
if (playerOrLoader instanceof Promise) { | ||
return from(playerOrLoader).pipe(map((/** | ||
* @param {?} module | ||
* @return {?} | ||
*/ | ||
module => module.default || module)), catchError((/** | ||
* @param {?} error | ||
* @return {?} | ||
*/ | ||
error => { | ||
console.error(` | ||
Could not retrieve the "lottie-web" player, did you provide | ||
the "player" property correctly? | ||
export function playerFactory() { | ||
return import('lottie-web'); | ||
} | ||
LottieModule.forRoot({ player: playerFactory }) | ||
`); | ||
return throwError(error); | ||
})), shareReplay(1)); | ||
} | ||
return of(playerOrLoader); | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: src/animation-loader.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
// This has to be dynamic as `Document` interface is not | ||
// accepted by the ngc compiler | ||
// @dynamic | ||
class AnimationLoader { | ||
@@ -243,12 +209,8 @@ /** | ||
* @param {?} platformId | ||
* @param {?} document | ||
* @param {?} isSafari | ||
* @param {?} options | ||
* @param {?} animationCache | ||
*/ | ||
constructor(ngZone, platformId, document, isSafari, options, animationCache) { | ||
constructor(ngZone, platformId, options, animationCache) { | ||
this.ngZone = ngZone; | ||
this.platformId = platformId; | ||
this.document = document; | ||
this.isSafari = isSafari; | ||
this.options = options; | ||
@@ -291,3 +253,2 @@ this.animationCache = animationCache; | ||
loadAnimation(player, options, eventsFacade, animationCreated, instance) { | ||
setPlayerLocationHref(player, this.document.location.href, this.isSafari); | ||
/** @type {?} */ | ||
@@ -311,4 +272,2 @@ const animationItem = this.ngZone.runOutsideAngular((/** | ||
{ type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, | ||
{ type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, | ||
{ type: Boolean, decorators: [{ type: Inject, args: [IS_SAFARI,] }] }, | ||
{ type: undefined, decorators: [{ type: Inject, args: [LOTTIE_OPTIONS,] }] }, | ||
@@ -337,12 +296,2 @@ { type: undefined, decorators: [{ type: Inject, args: [ANIMATION_CACHE,] }] } | ||
*/ | ||
AnimationLoader.prototype.document; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
AnimationLoader.prototype.isSafari; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
AnimationLoader.prototype.options; | ||
@@ -885,14 +834,10 @@ /** | ||
provide: LOTTIE_OPTIONS, | ||
useValue: options | ||
useValue: options, | ||
}, | ||
{ | ||
provide: IS_SAFARI, | ||
useFactory: isSafariFactory | ||
}, | ||
{ | ||
provide: ANIMATION_CACHE, | ||
useFactory: AnimationCache.create, | ||
deps: [LOTTIE_OPTIONS] | ||
} | ||
] | ||
deps: [LOTTIE_OPTIONS], | ||
}, | ||
], | ||
}; | ||
@@ -905,3 +850,3 @@ } | ||
declarations: [BaseDirective, LottieDirective, LottieComponent], | ||
exports: [BaseDirective, LottieDirective, LottieComponent] | ||
exports: [BaseDirective, LottieDirective, LottieComponent], | ||
},] } | ||
@@ -969,3 +914,3 @@ ]; | ||
export { BaseDirective, LottieComponent, LottieDirective, LottieModule, LottieTransferState, transformAnimationFilenameToKey, IS_SAFARI as ɵb, LOTTIE_OPTIONS as ɵc, ANIMATION_CACHE as ɵd, isSafariFactory as ɵe, AnimationLoader as ɵf, AnimationCache as ɵg, LottieEventsFacade as ɵh }; | ||
export { BaseDirective, LottieComponent, LottieDirective, LottieModule, LottieTransferState, transformAnimationFilenameToKey, LOTTIE_OPTIONS as ɵb, ANIMATION_CACHE as ɵc, AnimationLoader as ɵd, AnimationCache as ɵe, LottieEventsFacade as ɵf }; | ||
//# sourceMappingURL=ngx-lottie.js.map |
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'; | ||
import { isPlatformServer, CommonModule } from '@angular/common'; | ||
import { from, throwError, of, Subject } from 'rxjs'; | ||
@@ -10,112 +10,2 @@ import { map, catchError, shareReplay, takeUntil } from 'rxjs/operators'; | ||
* @fileoverview added by tsickle | ||
* Generated from: src/utils.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @param {?} animation | ||
* @return {?} | ||
*/ | ||
function transformAnimationFilenameToKey(animation) { | ||
return "animation-" + animation.split('.json')[0]; | ||
} | ||
/** | ||
* @param {?} player | ||
* @param {?} href | ||
* @param {?} isSafari | ||
* @return {?} | ||
*/ | ||
function setPlayerLocationHref(player, href, isSafari) { | ||
// This is a fix for the mask on Safari/iOS | ||
// https://github.com/airbnb/lottie-web/issues/1198 | ||
if (isSafari) { | ||
((/** @type {?} */ (((/** @type {?} */ (player)))))).setLocationHref(href); | ||
} | ||
} | ||
/** | ||
* @param {?} options | ||
* @param {?} container | ||
* @param {?} animationCache | ||
* @return {?} | ||
*/ | ||
function mergeOptionsWithDefault(options, container, animationCache) { | ||
/** @type {?} */ | ||
var merged = Object.assign({ | ||
container: container, | ||
renderer: 'svg', | ||
loop: true, | ||
autoplay: true | ||
}, options); | ||
if (animationCache !== null) { | ||
return animationCache.transformOptions(merged); | ||
} | ||
return merged; | ||
} | ||
/** | ||
* @return {?} | ||
*/ | ||
function isSafariFactory() { | ||
// This `try-catch` block will also handle server-side rendering | ||
// as `navigator` is not accessable there | ||
try { | ||
var vendor = navigator.vendor, userAgent = navigator.userAgent; | ||
return (vendor.indexOf('Apple') > -1 && | ||
userAgent.indexOf('CriOS') === -1 && | ||
userAgent.indexOf('FxiOS') === -1); | ||
} | ||
catch (_a) { | ||
return false; | ||
} | ||
} | ||
/** | ||
* @param {?} options | ||
* @return {?} | ||
*/ | ||
function isAnimationConfigWithData(options) { | ||
/** @type {?} */ | ||
var animationData = ((/** @type {?} */ (options))).animationData; | ||
return animationData !== null && typeof animationData === 'object'; | ||
} | ||
/** | ||
* @param {?} animationCache | ||
* @param {?} options | ||
* @param {?} animationItem | ||
* @return {?} | ||
*/ | ||
function awaitConfigAndCache(animationCache, options, animationItem) { | ||
if (animationCache === null) { | ||
return; | ||
} | ||
animationItem.addEventListener('config_ready', (/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
animationCache.set(options, animationItem); | ||
})); | ||
} | ||
/** | ||
* @param {?} player | ||
* @return {?} | ||
*/ | ||
function streamifyPlayerOrLoader(player) { | ||
/** @type {?} */ | ||
var playerOrLoader = player(); | ||
if (playerOrLoader instanceof Promise) { | ||
return from(playerOrLoader).pipe(map((/** | ||
* @param {?} module | ||
* @return {?} | ||
*/ | ||
function (module) { return module.default || module; })), catchError((/** | ||
* @param {?} error | ||
* @return {?} | ||
*/ | ||
function (error) { | ||
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 "); | ||
return throwError(error); | ||
})), shareReplay(1)); | ||
} | ||
return of(playerOrLoader); | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: src/symbols.ts | ||
@@ -217,4 +107,2 @@ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
/** @type {?} */ | ||
var IS_SAFARI = new InjectionToken('IsSafari'); | ||
/** @type {?} */ | ||
var LOTTIE_OPTIONS = new InjectionToken('LottieOptions'); | ||
@@ -226,14 +114,90 @@ /** @type {?} */ | ||
* @fileoverview added by tsickle | ||
* Generated from: src/utils.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** | ||
* @param {?} animation | ||
* @return {?} | ||
*/ | ||
function transformAnimationFilenameToKey(animation) { | ||
return "animation-" + animation.split('.json')[0]; | ||
} | ||
/** | ||
* @param {?} options | ||
* @param {?} container | ||
* @param {?} animationCache | ||
* @return {?} | ||
*/ | ||
function mergeOptionsWithDefault(options, container, animationCache) { | ||
/** @type {?} */ | ||
var merged = Object.assign({ | ||
container: container, | ||
renderer: 'svg', | ||
loop: true, | ||
autoplay: true, | ||
}, options); | ||
if (animationCache !== null) { | ||
return animationCache.transformOptions(merged); | ||
} | ||
return merged; | ||
} | ||
/** | ||
* @param {?} options | ||
* @return {?} | ||
*/ | ||
function isAnimationConfigWithData(options) { | ||
/** @type {?} */ | ||
var animationData = ((/** @type {?} */ (options))).animationData; | ||
return animationData !== null && typeof animationData === 'object'; | ||
} | ||
/** | ||
* @param {?} animationCache | ||
* @param {?} options | ||
* @param {?} animationItem | ||
* @return {?} | ||
*/ | ||
function awaitConfigAndCache(animationCache, options, animationItem) { | ||
if (animationCache === null) { | ||
return; | ||
} | ||
animationItem.addEventListener('config_ready', (/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
animationCache.set(options, animationItem); | ||
})); | ||
} | ||
/** | ||
* @param {?} player | ||
* @return {?} | ||
*/ | ||
function streamifyPlayerOrLoader(player) { | ||
/** @type {?} */ | ||
var playerOrLoader = player(); | ||
if (playerOrLoader instanceof Promise) { | ||
return from(playerOrLoader).pipe(map((/** | ||
* @param {?} module | ||
* @return {?} | ||
*/ | ||
function (module) { return module.default || module; })), catchError((/** | ||
* @param {?} error | ||
* @return {?} | ||
*/ | ||
function (error) { | ||
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 "); | ||
return throwError(error); | ||
})), shareReplay(1)); | ||
} | ||
return of(playerOrLoader); | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* Generated from: src/animation-loader.ts | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
// This has to be dynamic as `Document` interface is not | ||
// accepted by the ngc compiler | ||
// @dynamic | ||
var AnimationLoader = /** @class */ (function () { | ||
function AnimationLoader(ngZone, platformId, document, isSafari, options, animationCache) { | ||
function AnimationLoader(ngZone, platformId, options, animationCache) { | ||
this.ngZone = ngZone; | ||
this.platformId = platformId; | ||
this.document = document; | ||
this.isSafari = isSafari; | ||
this.options = options; | ||
@@ -295,3 +259,2 @@ this.animationCache = animationCache; | ||
function (player, options, eventsFacade, animationCreated, instance) { | ||
setPlayerLocationHref(player, this.document.location.href, this.isSafari); | ||
/** @type {?} */ | ||
@@ -314,4 +277,2 @@ var animationItem = this.ngZone.runOutsideAngular((/** | ||
{ type: String, decorators: [{ type: Inject, args: [PLATFORM_ID,] }] }, | ||
{ type: Document, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, | ||
{ type: Boolean, decorators: [{ type: Inject, args: [IS_SAFARI,] }] }, | ||
{ type: undefined, decorators: [{ type: Inject, args: [LOTTIE_OPTIONS,] }] }, | ||
@@ -342,12 +303,2 @@ { type: undefined, decorators: [{ type: Inject, args: [ANIMATION_CACHE,] }] } | ||
*/ | ||
AnimationLoader.prototype.document; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
AnimationLoader.prototype.isSafari; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
AnimationLoader.prototype.options; | ||
@@ -950,14 +901,10 @@ /** | ||
provide: LOTTIE_OPTIONS, | ||
useValue: options | ||
useValue: options, | ||
}, | ||
{ | ||
provide: IS_SAFARI, | ||
useFactory: isSafariFactory | ||
}, | ||
{ | ||
provide: ANIMATION_CACHE, | ||
useFactory: AnimationCache.create, | ||
deps: [LOTTIE_OPTIONS] | ||
} | ||
] | ||
deps: [LOTTIE_OPTIONS], | ||
}, | ||
], | ||
}; | ||
@@ -969,3 +916,3 @@ }; | ||
declarations: [BaseDirective, LottieDirective, LottieComponent], | ||
exports: [BaseDirective, LottieDirective, LottieComponent] | ||
exports: [BaseDirective, LottieDirective, LottieComponent], | ||
},] } | ||
@@ -1038,3 +985,3 @@ ]; | ||
export { BaseDirective, LottieComponent, LottieDirective, LottieModule, LottieTransferState, transformAnimationFilenameToKey, IS_SAFARI as ɵb, LOTTIE_OPTIONS as ɵc, ANIMATION_CACHE as ɵd, isSafariFactory as ɵe, AnimationLoader as ɵf, AnimationCache as ɵg, LottieEventsFacade as ɵh }; | ||
export { BaseDirective, LottieComponent, LottieDirective, LottieModule, LottieTransferState, transformAnimationFilenameToKey, LOTTIE_OPTIONS as ɵb, ANIMATION_CACHE as ɵc, AnimationLoader as ɵd, AnimationCache as ɵe, LottieEventsFacade as ɵf }; | ||
//# sourceMappingURL=ngx-lottie.js.map |
@@ -5,6 +5,5 @@ /** | ||
export * from './index'; | ||
export { AnimationCache as ɵg } from './src/animation-cache'; | ||
export { AnimationLoader as ɵf } from './src/animation-loader'; | ||
export { LottieEventsFacade as ɵh } from './src/events-facade'; | ||
export { ANIMATION_CACHE as ɵd, IS_SAFARI as ɵb, LOTTIE_OPTIONS as ɵc, LottieOptions as ɵa } from './src/symbols'; | ||
export { isSafariFactory as ɵe } from './src/utils'; | ||
export { AnimationCache as ɵe } from './src/animation-cache'; | ||
export { AnimationLoader as ɵd } from './src/animation-loader'; | ||
export { LottieEventsFacade as ɵf } from './src/events-facade'; | ||
export { ANIMATION_CACHE as ɵc, LOTTIE_OPTIONS as ɵb, LottieOptions as ɵa } from './src/symbols'; |
@@ -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":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"} | ||
{"__symbolic":"module","version":4,"metadata":{"ɵa":{"__symbolic":"interface"},"ɵb":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":99,"character":34},"arguments":["LottieOptions"]},"ɵc":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":100,"character":35},"arguments":["AnimationCache"]},"LottieModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"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":"ɵd"},{"provide":{"__symbolic":"reference","name":"ɵb"},"useValue":{"__symbolic":"reference","name":"options"}},{"provide":{"__symbolic":"reference","name":"ɵc"},"useFactory":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵe"},"member":"create"},"deps":[{"__symbolic":"reference","name":"ɵb"}]}]}}}},"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":"ɵd"}]}],"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":"ɵf"}]}]}],"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":"ɵf"},{"__symbolic":"reference","name":"ɵd"}]}],"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":"ɵf"}]}]}],"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":"ɵf"},{"__symbolic":"reference","name":"ɵd"}]}],"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}}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":21,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":27,"character":5},"arguments":[{"__symbolic":"reference","module":"@angular/core","name":"PLATFORM_ID","line":27,"character":12}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":28,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":29,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵc"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":26,"character":20},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵe"}]}],"resolveLoaderAndLoadAnimation":[{"__symbolic":"method"}],"loadAnimation":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"class","members":{"transformOptions":[{"__symbolic":"method"}],"set":[{"__symbolic":"method"}]}},"ɵf":{"__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","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","ɵd":"./src/animation-loader","ɵe":"./src/animation-cache","ɵf":"./src/events-facade"},"importAs":"ngx-lottie"} |
{ | ||
"$schema": "../node_modules/ng-packagr/ng-package.schema.json", | ||
"name": "ngx-lottie", | ||
"version": "5.4.0", | ||
"version": "6.0.0-beta.0", | ||
"repository": { | ||
@@ -30,3 +30,3 @@ "type": "git", | ||
"@angular/core": ">=8.0.0", | ||
"lottie-web": ">=5.0.0", | ||
"lottie-web": ">=5.4.0", | ||
"rxjs": ">=6.0.0", | ||
@@ -33,0 +33,0 @@ "tslib": "^1.10.0" |
@@ -10,10 +10,8 @@ import { NgZone, EventEmitter } from '@angular/core'; | ||
private platformId; | ||
private document; | ||
private isSafari; | ||
private options; | ||
private animationCache; | ||
private player$; | ||
constructor(ngZone: NgZone, platformId: string, document: Document, isSafari: boolean, options: LottieOptions, animationCache: AnimationCache | null); | ||
constructor(ngZone: NgZone, platformId: string, options: LottieOptions, animationCache: AnimationCache | null); | ||
resolveLoaderAndLoadAnimation(options: AnimationOptions | null, container: HTMLElement, eventsFacade: LottieEventsFacade, animationCreated: EventEmitter<AnimationItem>, instance: BaseDirective, destroy$: Subject<void>): void; | ||
private loadAnimation; | ||
} |
@@ -67,5 +67,4 @@ import { InjectionToken } from '@angular/core'; | ||
export declare type AnimationOptions = Partial<AnimationConfigWithData> | Partial<AnimationConfigWithPath>; | ||
export declare const IS_SAFARI: InjectionToken<boolean>; | ||
export declare const LOTTIE_OPTIONS: InjectionToken<LottieOptions>; | ||
export declare const ANIMATION_CACHE: InjectionToken<AnimationCache | null>; | ||
export {}; |
@@ -5,7 +5,5 @@ import { Observable } from 'rxjs'; | ||
export declare function transformAnimationFilenameToKey(animation: AnimationFilename): string; | ||
export declare function setPlayerLocationHref(player: LottiePlayer, href: string, isSafari: boolean): void; | ||
export declare function mergeOptionsWithDefault(options: AnimationOptions | null, container: HTMLElement, animationCache: AnimationCache | null): AnimationConfigWithData | AnimationConfigWithPath; | ||
export declare function isSafariFactory(): boolean; | ||
export declare function isAnimationConfigWithData(options: AnimationConfigWithPath | AnimationConfigWithData): options is AnimationConfigWithData; | ||
export declare function awaitConfigAndCache(animationCache: AnimationCache | null, options: AnimationConfigWithPath | AnimationConfigWithData, animationItem: AnimationItem): void; | ||
export declare function streamifyPlayerOrLoader(player: LottiePlayerFactoryOrLoader): Observable<LottiePlayer>; |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
513022
6071
3