@stories-js/core
Version:
Stories web components to build stories
5 lines • 1.1 kB
JavaScript
/*!
* (C) StoriesJS https://storiesjs.org - GPL-2.0 License
*/
System.register(["./p-fbcb0011.system.js"],(function(t){"use strict";var e,n,r;return{setters:[function(t){e=t.r;n=t.h;r=t.c}],execute:function(){function o(){try{return document.implementation.createHTMLDocument("").body.style.zoom!==undefined}catch(t){return false}}function i(t){return{zoom:t.toPrecision(2)}}function s(t,e){return{height:(t+50).toFixed(),transformOrigin:"top left",transform:"scale(".concat(e,")")}}var c=":host{display:block}";var u=o();var a=t("stories_zoom",function(){function t(t){e(this,t);this.height=0;this.zoom=1}t.prototype.watchStateHandler=function(t){this.height=t.getBoundingClientRect().height};t.prototype.render=function(){var t=this;var e=u?i(this.zoom):s(this.height,this.zoom);return n(r,{style:e},n("div",{ref:function(e){return t.div=e},class:"innerZoomElementWrapper"},n("slot",null)))};Object.defineProperty(t,"watchers",{get:function(){return{div:["watchStateHandler"]}},enumerable:false,configurable:true});return t}());a.style=c}}}));
//# sourceMappingURL=p-979457ab.system.entry.js.map