UNPKG

@gilluan/ngx-figma

Version:

Angular component to render [Figma live embeds](https://help.figma.com/article/93-figma-live-embed).

2 lines 1.29 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core")):"function"==typeof define&&define.amd?define("@gilluan/ngx-figma",["exports","@angular/platform-browser","@angular/core"],t):t((e.gilluan=e.gilluan||{},e.gilluan["ngx-figma"]={}),e.ng.platformBrowser,e.ng.core)}(this,function(e,t,r){"use strict";var n=function(){function e(e){this.sanitizer=e,this.height="450",this.width="800"}return Object.defineProperty(e.prototype,"src",{get:function(){return this.sanitizer.bypassSecurityTrustResourceUrl("https://www.figma.com/embed?embed_host=astra&url="+this.url)},enumerable:!0,configurable:!0}),e.decorators=[{type:r.Component,args:[{selector:"ngx-figma",template:'\n <iframe\n [height]="height"\n [width]="width"\n [src]="src"\n allowFullScreen>\n </iframe>'}]}],e.ctorParameters=function(){return[{type:t.DomSanitizer}]},e.propDecorators={url:[{type:r.Input}],height:[{type:r.Input}],width:[{type:r.Input}]},e}(),o=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{declarations:[n],imports:[],exports:[n]}]}],e}();e.NgxFigmaComponent=n,e.NgxFigmaModule=o,Object.defineProperty(e,"__esModule",{value:!0})}); //# sourceMappingURL=gilluan-ngx-figma.umd.min.js.map