@univerjs-pro/print 1.0.0-alpha.7 → 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4c8e10=_0x3d73;(function(_0x1fed4c,_0x4e44bf){const _0x482148=_0x3d73,_0x278814=_0x1fed4c();while(!![]){try{const _0x487beb=parseInt(_0x482148(0x93))/0x1+-parseInt(_0x482148(0x75))/0x2*(parseInt(_0x482148(0x8d))/0x3)+parseInt(_0x482148(0x7d))/0x4*(-parseInt(_0x482148(0x81))/0x5)+-parseInt(_0x482148(0x8a))/0x6+parseInt(_0x482148(0x79))/0x7+parseInt(_0x482148(0x9c))/0x8+parseInt(_0x482148(0x86))/0x9*(parseInt(_0x482148(0x9a))/0xa);if(_0x487beb===_0x4e44bf)break;else _0x278814['push'](_0x278814['shift']());}catch(_0x124709){_0x278814['push'](_0x278814['shift']());}}}(_0x3160,0x46f65),Object[_0x4c8e10(0x78)](exports,Symbol[_0x4c8e10(0x87)],{'value':'Module'}));function _0x3d73(_0x366084,_0x480014){_0x366084=_0x366084-0x71;const _0x316017=_0x3160();let _0x3d7353=_0x316017[_0x366084];return _0x3d7353;}let e=function(_0x4d64fa){const _0x1d565d=_0x4c8e10;return _0x4d64fa[_0x1d565d(0x77)]='Portrait',_0x4d64fa[_0x1d565d(0x71)]=_0x1d565d(0x71),_0x4d64fa;}({}),t=function(_0x42c1cb){const _0x5646c7=_0x4c8e10;return _0x42c1cb[_0x5646c7(0x99)]='Origin',_0x42c1cb[_0x5646c7(0x89)]='FitWidth',_0x42c1cb[_0x5646c7(0x9b)]=_0x5646c7(0x9b),_0x42c1cb[_0x5646c7(0x83)]=_0x5646c7(0x83),_0x42c1cb['Custom']=_0x5646c7(0x94),_0x42c1cb;}({}),n=function(_0x26eee9){const _0x515664=_0x4c8e10;return _0x26eee9[_0x515664(0x7a)]='Start',_0x26eee9[_0x515664(0x90)]=_0x515664(0x90),_0x26eee9[_0x515664(0x7e)]='Middle',_0x26eee9;}({}),r=function(_0x1e5c1e){const _0x5db47d=_0x4c8e10;return _0x1e5c1e[_0x5db47d(0x97)]='Normal',_0x1e5c1e[_0x5db47d(0x8e)]=_0x5db47d(0x8e),_0x1e5c1e[_0x5db47d(0x74)]='Wide',_0x1e5c1e[_0x5db47d(0x72)]='None',_0x1e5c1e['Custom']=_0x5db47d(0x94),_0x1e5c1e;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x4c8e10(0x76),o='printing-canvas';function _0x3160(){const _0x41924f=['Start','createElement','PRINT_CONTAINER_CLASS','42456ilGLJf','Middle','className','PrintPaperMargin','65wfzUjG','createPrintStyle','FitPage','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','offline-printing-css','3678921kxaYxJ','toStringTag','PRINT_CANVAS_CLASS','FitWidth','1973424OLnlfP','\x0a\x20\x20\x20\x20.','PrintAlign','248772zgyEXh','Narrow','PaperMarginMap','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','488661DZjgHf','Custom',',\x20.','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Normal','style','Origin','10TvNJFl','FitHeight','123800PPhSxa','Landscape','None','PrintScale','Wide','8UbNkCe','printing-canvas-container','Portrait','defineProperty','1234366LwExgc'];_0x3160=function(){return _0x41924f;};return _0x3160();}function s(_0xb383f7,_0x1471f7,_0x3b07db){const _0x34c15d=_0x4c8e10;let _0xdfa30c=_0x3b07db===_0x34c15d(0x77)?_0xb383f7:_0x1471f7,_0x286245=_0x3b07db===_0x34c15d(0x77)?_0x1471f7:_0xb383f7,_0x41db5d=_0x34c15d(0x8b)+o+_0x34c15d(0x84)+_0xdfa30c+'px\x20'+_0x286245+_0x34c15d(0x96)+a+_0x34c15d(0x95)+a+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+o+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x286245+_0x34c15d(0x92)+_0xdfa30c+_0x34c15d(0x91),_0x1834fb=document[_0x34c15d(0x7b)](_0x34c15d(0x98));return _0x1834fb['innerHTML']=_0x41db5d,_0x1834fb[_0x34c15d(0x7f)]=_0x34c15d(0x85),_0x1834fb;}exports[_0x4c8e10(0x88)]=o,exports[_0x4c8e10(0x7c)]=a,exports[_0x4c8e10(0x8f)]=i,exports[_0x4c8e10(0x8c)]=n,exports['PrintDirection']=e,exports[_0x4c8e10(0x80)]=r,exports[_0x4c8e10(0x73)]=t,exports[_0x4c8e10(0x82)]=s;
1
+ const _0x4446ab=_0x5a6d;function _0x513f(){const _0xf1e01c=['Normal','2560OIBxKN','1007412nQrAjb','createElement','FitPage','Custom','offline-printing-css','4725230FUdXqL','829105nkVsfK','Module','PrintDirection','printing-canvas','Start','4QMxNfK','PrintScale','Portrait','PrintAlign','Middle','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','3165474VbspWR',',\x20.','573464AbZQZz','style','None','\x0a\x20\x20\x20\x20.','18RiMckg','className','Wide','Origin','defineProperty','PRINT_CONTAINER_CLASS','innerHTML','2011704qtzryO','11543MIFlQx','FitHeight','FitWidth','PaperMarginMap','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Landscape','End','px\x20','toStringTag','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x513f=function(){return _0xf1e01c;};return _0x513f();}(function(_0x570d95,_0x465aba){const _0x42dc7c=_0x5a6d,_0x268389=_0x570d95();while(!![]){try{const _0x2d3342=-parseInt(_0x42dc7c(0xe8))/0x1+-parseInt(_0x42dc7c(0xd5))/0x2+parseInt(_0x42dc7c(0xe6))/0x3*(parseInt(_0x42dc7c(0xe0))/0x4)+-parseInt(_0x42dc7c(0xdb))/0x5+parseInt(_0x42dc7c(0xf3))/0x6+-parseInt(_0x42dc7c(0xf4))/0x7*(parseInt(_0x42dc7c(0xd4))/0x8)+parseInt(_0x42dc7c(0xec))/0x9*(parseInt(_0x42dc7c(0xda))/0xa);if(_0x2d3342===_0x465aba)break;else _0x268389['push'](_0x268389['shift']());}catch(_0x325b71){_0x268389['push'](_0x268389['shift']());}}}(_0x513f,0x89e51),Object[_0x4446ab(0xf0)](exports,Symbol[_0x4446ab(0xd1)],{'value':_0x4446ab(0xdc)}));function _0x5a6d(_0x71afba,_0x582501){_0x71afba=_0x71afba-0xcc;const _0x513f92=_0x513f();let _0x5a6d65=_0x513f92[_0x71afba];return _0x5a6d65;}let e=function(_0x5ca8b4){const _0x303640=_0x4446ab;return _0x5ca8b4['Portrait']=_0x303640(0xe2),_0x5ca8b4['Landscape']=_0x303640(0xce),_0x5ca8b4;}({}),t=function(_0x58e7b5){const _0x46cbf1=_0x4446ab;return _0x58e7b5[_0x46cbf1(0xef)]='Origin',_0x58e7b5[_0x46cbf1(0xf6)]=_0x46cbf1(0xf6),_0x58e7b5[_0x46cbf1(0xf5)]=_0x46cbf1(0xf5),_0x58e7b5[_0x46cbf1(0xd7)]=_0x46cbf1(0xd7),_0x58e7b5[_0x46cbf1(0xd8)]=_0x46cbf1(0xd8),_0x58e7b5;}({}),n=function(_0x48948e){const _0x14c808=_0x4446ab;return _0x48948e[_0x14c808(0xdf)]=_0x14c808(0xdf),_0x48948e[_0x14c808(0xcf)]=_0x14c808(0xcf),_0x48948e[_0x14c808(0xe4)]=_0x14c808(0xe4),_0x48948e;}({}),r=function(_0x5e6488){const _0x213a93=_0x4446ab;return _0x5e6488[_0x213a93(0xd3)]=_0x213a93(0xd3),_0x5e6488['Narrow']='Narrow',_0x5e6488[_0x213a93(0xee)]='Wide',_0x5e6488[_0x213a93(0xea)]=_0x213a93(0xea),_0x5e6488[_0x213a93(0xd8)]=_0x213a93(0xd8),_0x5e6488;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a='printing-canvas-container',o=_0x4446ab(0xde);function s(_0x30b744,_0x41636f,_0x295a3b){const _0x33a17e=_0x4446ab;let _0xd38bde=_0x295a3b===_0x33a17e(0xe2)?_0x30b744:_0x41636f,_0x14bce5=_0x295a3b===_0x33a17e(0xe2)?_0x41636f:_0x30b744,_0x8186e1=_0x33a17e(0xeb)+o+_0x33a17e(0xcd)+_0xd38bde+_0x33a17e(0xd0)+_0x14bce5+_0x33a17e(0xe5)+a+_0x33a17e(0xe7)+a+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+o+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x14bce5+_0x33a17e(0xd2)+_0xd38bde+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}',_0x107b9e=document[_0x33a17e(0xd6)](_0x33a17e(0xe9));return _0x107b9e[_0x33a17e(0xf2)]=_0x8186e1,_0x107b9e[_0x33a17e(0xed)]=_0x33a17e(0xd9),_0x107b9e;}exports['PRINT_CANVAS_CLASS']=o,exports[_0x4446ab(0xf1)]=a,exports[_0x4446ab(0xcc)]=i,exports[_0x4446ab(0xe3)]=n,exports[_0x4446ab(0xdd)]=e,exports['PrintPaperMargin']=r,exports[_0x4446ab(0xe1)]=t,exports['createPrintStyle']=s;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2f3e6f=_0xeaab;(function(_0x2f87c4,_0x20c515){const _0xe517fa=_0xeaab,_0x30384d=_0x2f87c4();while(!![]){try{const _0x44c2d1=parseInt(_0xe517fa(0x7a))/0x1*(parseInt(_0xe517fa(0x75))/0x2)+-parseInt(_0xe517fa(0x8b))/0x3+parseInt(_0xe517fa(0x7b))/0x4*(parseInt(_0xe517fa(0x95))/0x5)+parseInt(_0xe517fa(0x97))/0x6+-parseInt(_0xe517fa(0x8f))/0x7*(parseInt(_0xe517fa(0x91))/0x8)+parseInt(_0xe517fa(0x7f))/0x9+-parseInt(_0xe517fa(0x7d))/0xa;if(_0x44c2d1===_0x20c515)break;else _0x30384d['push'](_0x30384d['shift']());}catch(_0x224136){_0x30384d['push'](_0x30384d['shift']());}}}(_0x332b,0x81e6a));function _0x332b(){const _0x273692=['offline-printing-css','className','Landscape','1JDRfwt','140852dctMFR','Normal','12043270qwAEpx','Custom','1097946JezvvC','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','FitPage',',\x20.','\x0a\x20\x20\x20\x20.','style','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','FitHeight','Origin','printing-canvas','px\x20','Middle','157476kZHmlN','Wide','innerHTML','createElement','91rUlpow','FitWidth','226968kLEOZU','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','Portrait','70ULkVwW','None','6250254EonxAU','End','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','1002062rIUJvd','Start'];_0x332b=function(){return _0x273692;};return _0x332b();}let e=function(_0x25a373){const _0x44797e=_0xeaab;return _0x25a373['Portrait']=_0x44797e(0x94),_0x25a373[_0x44797e(0x79)]=_0x44797e(0x79),_0x25a373;}({}),t=function(_0x559568){const _0x546e00=_0xeaab;return _0x559568[_0x546e00(0x87)]=_0x546e00(0x87),_0x559568[_0x546e00(0x90)]=_0x546e00(0x90),_0x559568[_0x546e00(0x86)]=_0x546e00(0x86),_0x559568[_0x546e00(0x81)]=_0x546e00(0x81),_0x559568[_0x546e00(0x7e)]=_0x546e00(0x7e),_0x559568;}({}),n=function(_0x353241){const _0x6b9ca8=_0xeaab;return _0x353241[_0x6b9ca8(0x76)]='Start',_0x353241[_0x6b9ca8(0x98)]='End',_0x353241[_0x6b9ca8(0x8a)]='Middle',_0x353241;}({}),r=function(_0x51bced){const _0x2d906d=_0xeaab;return _0x51bced['Normal']=_0x2d906d(0x7c),_0x51bced[_0x2d906d(0x93)]='Narrow',_0x51bced[_0x2d906d(0x8c)]='Wide',_0x51bced['None']=_0x2d906d(0x96),_0x51bced['Custom']=_0x2d906d(0x7e),_0x51bced;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a='printing-canvas-container',o=_0x2f3e6f(0x88);function _0xeaab(_0x19c193,_0x155d03){_0x19c193=_0x19c193-0x74;const _0x332b5e=_0x332b();let _0xeaabd5=_0x332b5e[_0x19c193];return _0xeaabd5;}function s(_0x5d4fa8,_0x4b82e7,_0x427265){const _0x44305d=_0x2f3e6f;let _0x563864=_0x427265===_0x44305d(0x94)?_0x5d4fa8:_0x4b82e7,_0x5aaf23=_0x427265===_0x44305d(0x94)?_0x4b82e7:_0x5d4fa8,_0x528bc1=_0x44305d(0x83)+o+_0x44305d(0x74)+_0x563864+_0x44305d(0x89)+_0x5aaf23+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+a+_0x44305d(0x82)+a+_0x44305d(0x85)+o+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x5aaf23+_0x44305d(0x92)+_0x563864+_0x44305d(0x80),_0x30b260=document[_0x44305d(0x8e)](_0x44305d(0x84));return _0x30b260[_0x44305d(0x8d)]=_0x528bc1,_0x30b260[_0x44305d(0x78)]=_0x44305d(0x77),_0x30b260;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};
1
+ const _0x351f49=_0x1263;(function(_0x5f3e1f,_0x13a38a){const _0x59aaad=_0x1263,_0x2ad0bd=_0x5f3e1f();while(!![]){try{const _0xc730dc=-parseInt(_0x59aaad(0xd1))/0x1*(-parseInt(_0x59aaad(0xc8))/0x2)+parseInt(_0x59aaad(0xd7))/0x3*(-parseInt(_0x59aaad(0xcd))/0x4)+parseInt(_0x59aaad(0xbb))/0x5+-parseInt(_0x59aaad(0xdc))/0x6+-parseInt(_0x59aaad(0xbf))/0x7*(-parseInt(_0x59aaad(0xd5))/0x8)+parseInt(_0x59aaad(0xcf))/0x9*(parseInt(_0x59aaad(0xc6))/0xa)+-parseInt(_0x59aaad(0xbc))/0xb*(-parseInt(_0x59aaad(0xc2))/0xc);if(_0xc730dc===_0x13a38a)break;else _0x2ad0bd['push'](_0x2ad0bd['shift']());}catch(_0xfb06db){_0x2ad0bd['push'](_0x2ad0bd['shift']());}}}(_0x5182,0xad4a5));let e=function(_0x14e9c5){const _0x1fb864=_0x1263;return _0x14e9c5[_0x1fb864(0xd4)]=_0x1fb864(0xd4),_0x14e9c5[_0x1fb864(0xdb)]='Landscape',_0x14e9c5;}({}),t=function(_0x413bd6){const _0x310ce9=_0x1263;return _0x413bd6['Origin']=_0x310ce9(0xce),_0x413bd6[_0x310ce9(0xcc)]='FitWidth',_0x413bd6[_0x310ce9(0xc0)]=_0x310ce9(0xc0),_0x413bd6[_0x310ce9(0xd0)]=_0x310ce9(0xd0),_0x413bd6['Custom']=_0x310ce9(0xd9),_0x413bd6;}({}),n=function(_0x437efa){const _0x4f39f8=_0x1263;return _0x437efa['Start']=_0x4f39f8(0xca),_0x437efa[_0x4f39f8(0xdd)]=_0x4f39f8(0xdd),_0x437efa['Middle']=_0x4f39f8(0xc4),_0x437efa;}({}),r=function(_0x320b56){const _0x341db1=_0x1263;return _0x320b56[_0x341db1(0xc1)]=_0x341db1(0xc1),_0x320b56[_0x341db1(0xc9)]=_0x341db1(0xc9),_0x320b56[_0x341db1(0xbe)]=_0x341db1(0xbe),_0x320b56[_0x341db1(0xcb)]=_0x341db1(0xcb),_0x320b56[_0x341db1(0xd9)]='Custom',_0x320b56;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x351f49(0xd8),o='printing-canvas';function _0x5182(){const _0x1c6cdc=['4016585IZHPkS','11hnRCXr','offline-printing-css','Wide','4382VujwjE','FitHeight','Normal','2856156nGAFIj','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Middle','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','90osKzzG','\x0a\x20\x20\x20\x20.','2oLgyPB','Narrow','Start','None','FitWidth','212UkXYXz','Origin','177462GJRJxU','FitPage','285617cruvuQ',',\x20.','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Portrait','12456UFRYnn','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','59307cIlPgD','printing-canvas-container','Custom','px\x20','Landscape','4329222UGEyqf','End','createElement','style'];_0x5182=function(){return _0x1c6cdc;};return _0x5182();}function s(_0x20c705,_0x3bee26,_0x2994e5){const _0x2d5c8b=_0x351f49;let _0x5514b2=_0x2994e5==='Portrait'?_0x20c705:_0x3bee26,_0x2d0b14=_0x2994e5==='Portrait'?_0x3bee26:_0x20c705,_0x226083=_0x2d5c8b(0xc7)+o+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x5514b2+_0x2d5c8b(0xda)+_0x2d0b14+_0x2d5c8b(0xc3)+a+_0x2d5c8b(0xd2)+a+_0x2d5c8b(0xc5)+o+_0x2d5c8b(0xd3)+_0x2d0b14+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5514b2+_0x2d5c8b(0xd6),_0x335994=document[_0x2d5c8b(0xde)](_0x2d5c8b(0xdf));return _0x335994['innerHTML']=_0x226083,_0x335994['className']=_0x2d5c8b(0xbd),_0x335994;}function _0x1263(_0x5de0b8,_0x1c1b4c){_0x5de0b8=_0x5de0b8-0xbb;const _0x5182b6=_0x5182();let _0x126354=_0x5182b6[_0x5de0b8];return _0x126354;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2f3e6f=_0xeaab;(function(_0x2f87c4,_0x20c515){const _0xe517fa=_0xeaab,_0x30384d=_0x2f87c4();while(!![]){try{const _0x44c2d1=parseInt(_0xe517fa(0x7a))/0x1*(parseInt(_0xe517fa(0x75))/0x2)+-parseInt(_0xe517fa(0x8b))/0x3+parseInt(_0xe517fa(0x7b))/0x4*(parseInt(_0xe517fa(0x95))/0x5)+parseInt(_0xe517fa(0x97))/0x6+-parseInt(_0xe517fa(0x8f))/0x7*(parseInt(_0xe517fa(0x91))/0x8)+parseInt(_0xe517fa(0x7f))/0x9+-parseInt(_0xe517fa(0x7d))/0xa;if(_0x44c2d1===_0x20c515)break;else _0x30384d['push'](_0x30384d['shift']());}catch(_0x224136){_0x30384d['push'](_0x30384d['shift']());}}}(_0x332b,0x81e6a));function _0x332b(){const _0x273692=['offline-printing-css','className','Landscape','1JDRfwt','140852dctMFR','Normal','12043270qwAEpx','Custom','1097946JezvvC','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','FitPage',',\x20.','\x0a\x20\x20\x20\x20.','style','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','FitHeight','Origin','printing-canvas','px\x20','Middle','157476kZHmlN','Wide','innerHTML','createElement','91rUlpow','FitWidth','226968kLEOZU','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','Portrait','70ULkVwW','None','6250254EonxAU','End','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','1002062rIUJvd','Start'];_0x332b=function(){return _0x273692;};return _0x332b();}let e=function(_0x25a373){const _0x44797e=_0xeaab;return _0x25a373['Portrait']=_0x44797e(0x94),_0x25a373[_0x44797e(0x79)]=_0x44797e(0x79),_0x25a373;}({}),t=function(_0x559568){const _0x546e00=_0xeaab;return _0x559568[_0x546e00(0x87)]=_0x546e00(0x87),_0x559568[_0x546e00(0x90)]=_0x546e00(0x90),_0x559568[_0x546e00(0x86)]=_0x546e00(0x86),_0x559568[_0x546e00(0x81)]=_0x546e00(0x81),_0x559568[_0x546e00(0x7e)]=_0x546e00(0x7e),_0x559568;}({}),n=function(_0x353241){const _0x6b9ca8=_0xeaab;return _0x353241[_0x6b9ca8(0x76)]='Start',_0x353241[_0x6b9ca8(0x98)]='End',_0x353241[_0x6b9ca8(0x8a)]='Middle',_0x353241;}({}),r=function(_0x51bced){const _0x2d906d=_0xeaab;return _0x51bced['Normal']=_0x2d906d(0x7c),_0x51bced[_0x2d906d(0x93)]='Narrow',_0x51bced[_0x2d906d(0x8c)]='Wide',_0x51bced['None']=_0x2d906d(0x96),_0x51bced['Custom']=_0x2d906d(0x7e),_0x51bced;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a='printing-canvas-container',o=_0x2f3e6f(0x88);function _0xeaab(_0x19c193,_0x155d03){_0x19c193=_0x19c193-0x74;const _0x332b5e=_0x332b();let _0xeaabd5=_0x332b5e[_0x19c193];return _0xeaabd5;}function s(_0x5d4fa8,_0x4b82e7,_0x427265){const _0x44305d=_0x2f3e6f;let _0x563864=_0x427265===_0x44305d(0x94)?_0x5d4fa8:_0x4b82e7,_0x5aaf23=_0x427265===_0x44305d(0x94)?_0x4b82e7:_0x5d4fa8,_0x528bc1=_0x44305d(0x83)+o+_0x44305d(0x74)+_0x563864+_0x44305d(0x89)+_0x5aaf23+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+a+_0x44305d(0x82)+a+_0x44305d(0x85)+o+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x5aaf23+_0x44305d(0x92)+_0x563864+_0x44305d(0x80),_0x30b260=document[_0x44305d(0x8e)](_0x44305d(0x84));return _0x30b260[_0x44305d(0x8d)]=_0x528bc1,_0x30b260[_0x44305d(0x78)]=_0x44305d(0x77),_0x30b260;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};
1
+ const _0x351f49=_0x1263;(function(_0x5f3e1f,_0x13a38a){const _0x59aaad=_0x1263,_0x2ad0bd=_0x5f3e1f();while(!![]){try{const _0xc730dc=-parseInt(_0x59aaad(0xd1))/0x1*(-parseInt(_0x59aaad(0xc8))/0x2)+parseInt(_0x59aaad(0xd7))/0x3*(-parseInt(_0x59aaad(0xcd))/0x4)+parseInt(_0x59aaad(0xbb))/0x5+-parseInt(_0x59aaad(0xdc))/0x6+-parseInt(_0x59aaad(0xbf))/0x7*(-parseInt(_0x59aaad(0xd5))/0x8)+parseInt(_0x59aaad(0xcf))/0x9*(parseInt(_0x59aaad(0xc6))/0xa)+-parseInt(_0x59aaad(0xbc))/0xb*(-parseInt(_0x59aaad(0xc2))/0xc);if(_0xc730dc===_0x13a38a)break;else _0x2ad0bd['push'](_0x2ad0bd['shift']());}catch(_0xfb06db){_0x2ad0bd['push'](_0x2ad0bd['shift']());}}}(_0x5182,0xad4a5));let e=function(_0x14e9c5){const _0x1fb864=_0x1263;return _0x14e9c5[_0x1fb864(0xd4)]=_0x1fb864(0xd4),_0x14e9c5[_0x1fb864(0xdb)]='Landscape',_0x14e9c5;}({}),t=function(_0x413bd6){const _0x310ce9=_0x1263;return _0x413bd6['Origin']=_0x310ce9(0xce),_0x413bd6[_0x310ce9(0xcc)]='FitWidth',_0x413bd6[_0x310ce9(0xc0)]=_0x310ce9(0xc0),_0x413bd6[_0x310ce9(0xd0)]=_0x310ce9(0xd0),_0x413bd6['Custom']=_0x310ce9(0xd9),_0x413bd6;}({}),n=function(_0x437efa){const _0x4f39f8=_0x1263;return _0x437efa['Start']=_0x4f39f8(0xca),_0x437efa[_0x4f39f8(0xdd)]=_0x4f39f8(0xdd),_0x437efa['Middle']=_0x4f39f8(0xc4),_0x437efa;}({}),r=function(_0x320b56){const _0x341db1=_0x1263;return _0x320b56[_0x341db1(0xc1)]=_0x341db1(0xc1),_0x320b56[_0x341db1(0xc9)]=_0x341db1(0xc9),_0x320b56[_0x341db1(0xbe)]=_0x341db1(0xbe),_0x320b56[_0x341db1(0xcb)]=_0x341db1(0xcb),_0x320b56[_0x341db1(0xd9)]='Custom',_0x320b56;}({});const i={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x351f49(0xd8),o='printing-canvas';function _0x5182(){const _0x1c6cdc=['4016585IZHPkS','11hnRCXr','offline-printing-css','Wide','4382VujwjE','FitHeight','Normal','2856156nGAFIj','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Middle','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','90osKzzG','\x0a\x20\x20\x20\x20.','2oLgyPB','Narrow','Start','None','FitWidth','212UkXYXz','Origin','177462GJRJxU','FitPage','285617cruvuQ',',\x20.','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Portrait','12456UFRYnn','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','59307cIlPgD','printing-canvas-container','Custom','px\x20','Landscape','4329222UGEyqf','End','createElement','style'];_0x5182=function(){return _0x1c6cdc;};return _0x5182();}function s(_0x20c705,_0x3bee26,_0x2994e5){const _0x2d5c8b=_0x351f49;let _0x5514b2=_0x2994e5==='Portrait'?_0x20c705:_0x3bee26,_0x2d0b14=_0x2994e5==='Portrait'?_0x3bee26:_0x20c705,_0x226083=_0x2d5c8b(0xc7)+o+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x5514b2+_0x2d5c8b(0xda)+_0x2d0b14+_0x2d5c8b(0xc3)+a+_0x2d5c8b(0xd2)+a+_0x2d5c8b(0xc5)+o+_0x2d5c8b(0xd3)+_0x2d0b14+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5514b2+_0x2d5c8b(0xd6),_0x335994=document[_0x2d5c8b(0xde)](_0x2d5c8b(0xdf));return _0x335994['innerHTML']=_0x226083,_0x335994['className']=_0x2d5c8b(0xbd),_0x335994;}function _0x1263(_0x5de0b8,_0x1c1b4c){_0x5de0b8=_0x5de0b8-0xbb;const _0x5182b6=_0x5182();let _0x126354=_0x5182b6[_0x5de0b8];return _0x126354;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xa0bf(){const _0x436a8e=['Normal','offline-printing-css','PrintPaperMargin','Start','Origin','FitHeight','createElement','66bGYsiQ','PrintScale','10654064fwNnCJ','End','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','PrintAlign','978885tEEOqV','9ChROCk',',\x20.','Module','Middle','FitPage','Custom','toStringTag','PaperMarginMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','innerHTML','defineProperty','2211310nCpJHe','Narrow','\x0a\x20\x20\x20\x20.','className','function','9ZNuXPH','47411903cSpyTY','printing-canvas-container','Portrait','Landscape','FitWidth','3VXaTJX','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','2794OvnxnQ','UniverProPrint','6521864zlPFup','519183GjCjFX','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','PRINT_CONTAINER_CLASS','Wide','None'];_0xa0bf=function(){return _0x436a8e;};return _0xa0bf();}function _0x30cd(_0x57eefe,_0x2fce92){_0x57eefe=_0x57eefe-0x1cb;const _0xa0bfc5=_0xa0bf();let _0x30cd3f=_0xa0bfc5[_0x57eefe];return _0x30cd3f;}(function(_0x379e26,_0x2279eb){const _0x5cabaa=_0x30cd,_0x640f23=_0x379e26();while(!![]){try{const _0x594c67=-parseInt(_0x5cabaa(0x1ce))/0x1*(-parseInt(_0x5cabaa(0x1e6))/0x2)+-parseInt(_0x5cabaa(0x1e4))/0x3*(parseInt(_0x5cabaa(0x1e8))/0x4)+parseInt(_0x5cabaa(0x1cd))/0x5+-parseInt(_0x5cabaa(0x1f5))/0x6*(parseInt(_0x5cabaa(0x1e9))/0x7)+-parseInt(_0x5cabaa(0x1f7))/0x8*(parseInt(_0x5cabaa(0x1de))/0x9)+parseInt(_0x5cabaa(0x1d9))/0xa+parseInt(_0x5cabaa(0x1df))/0xb;if(_0x594c67===_0x2279eb)break;else _0x640f23['push'](_0x640f23['shift']());}catch(_0x519454){_0x640f23['push'](_0x640f23['shift']());}}}(_0xa0bf,0xeac23),function(_0x49cd96,_0x52d571){const _0x5ee873=_0x30cd;typeof exports=='object'&&typeof module<'u'?_0x52d571(exports):typeof define==_0x5ee873(0x1dd)&&define['amd']?define(['exports'],_0x52d571):(_0x49cd96=typeof globalThis<'u'?globalThis:_0x49cd96||self,_0x52d571(_0x49cd96[_0x5ee873(0x1e7)]={}));}(this,function(_0x2d9bc0){const _0x37c019=_0x30cd;Object[_0x37c019(0x1d8)](_0x2d9bc0,Symbol[_0x37c019(0x1d4)],{'value':_0x37c019(0x1d0)});let _0xe663c7=function(_0x272a14){const _0x5b667a=_0x37c019;return _0x272a14[_0x5b667a(0x1e1)]=_0x5b667a(0x1e1),_0x272a14[_0x5b667a(0x1e2)]='Landscape',_0x272a14;}({}),_0x1e1b9e=function(_0x58a7b3){const _0x229a86=_0x37c019;return _0x58a7b3['Origin']=_0x229a86(0x1f2),_0x58a7b3[_0x229a86(0x1e3)]='FitWidth',_0x58a7b3[_0x229a86(0x1f3)]='FitHeight',_0x58a7b3['FitPage']=_0x229a86(0x1d2),_0x58a7b3[_0x229a86(0x1d3)]='Custom',_0x58a7b3;}({}),_0x30f851=function(_0x26b245){const _0x454886=_0x37c019;return _0x26b245[_0x454886(0x1f1)]=_0x454886(0x1f1),_0x26b245[_0x454886(0x1f8)]=_0x454886(0x1f8),_0x26b245[_0x454886(0x1d1)]=_0x454886(0x1d1),_0x26b245;}({}),_0x40eae0=function(_0x5c8d8d){const _0x53c534=_0x37c019;return _0x5c8d8d[_0x53c534(0x1ee)]=_0x53c534(0x1ee),_0x5c8d8d[_0x53c534(0x1da)]=_0x53c534(0x1da),_0x5c8d8d[_0x53c534(0x1ec)]=_0x53c534(0x1ec),_0x5c8d8d['None']=_0x53c534(0x1ed),_0x5c8d8d[_0x53c534(0x1d3)]=_0x53c534(0x1d3),_0x5c8d8d;}({}),_0x507513={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4f6d13=_0x37c019(0x1e0),_0x306219='printing-canvas';function _0xcf7613(_0x2e95e7,_0x21b7eb,_0x184f41){const _0x4201f2=_0x37c019;let _0x4dae4f=_0x184f41==='Portrait'?_0x2e95e7:_0x21b7eb,_0x438290=_0x184f41==='Portrait'?_0x21b7eb:_0x2e95e7,_0xffca27=_0x4201f2(0x1db)+_0x306219+_0x4201f2(0x1ea)+_0x4dae4f+'px\x20'+_0x438290+_0x4201f2(0x1cb)+_0x4f6d13+_0x4201f2(0x1cf)+_0x4f6d13+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+_0x306219+_0x4201f2(0x1e5)+_0x438290+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4dae4f+_0x4201f2(0x1d6),_0x2a946f=document[_0x4201f2(0x1f4)]('style');return _0x2a946f[_0x4201f2(0x1d7)]=_0xffca27,_0x2a946f[_0x4201f2(0x1dc)]=_0x4201f2(0x1ef),_0x2a946f;}_0x2d9bc0['PRINT_CANVAS_CLASS']=_0x306219,_0x2d9bc0[_0x37c019(0x1eb)]=_0x4f6d13,_0x2d9bc0[_0x37c019(0x1d5)]=_0x507513,_0x2d9bc0[_0x37c019(0x1cc)]=_0x30f851,_0x2d9bc0['PrintDirection']=_0xe663c7,_0x2d9bc0[_0x37c019(0x1f0)]=_0x40eae0,_0x2d9bc0[_0x37c019(0x1f6)]=_0x1e1b9e,_0x2d9bc0['createPrintStyle']=_0xcf7613;}));
1
+ (function(_0x7e7b58,_0x2e0b79){const _0x2d1dcb=_0x2a05,_0x2c890a=_0x7e7b58();while(!![]){try{const _0x4379fa=parseInt(_0x2d1dcb(0xe9))/0x1*(parseInt(_0x2d1dcb(0xf0))/0x2)+-parseInt(_0x2d1dcb(0xe3))/0x3+parseInt(_0x2d1dcb(0xe4))/0x4*(-parseInt(_0x2d1dcb(0x106))/0x5)+parseInt(_0x2d1dcb(0xfd))/0x6*(parseInt(_0x2d1dcb(0xfe))/0x7)+parseInt(_0x2d1dcb(0xe0))/0x8+-parseInt(_0x2d1dcb(0xf8))/0x9+-parseInt(_0x2d1dcb(0xf1))/0xa;if(_0x4379fa===_0x2e0b79)break;else _0x2c890a['push'](_0x2c890a['shift']());}catch(_0xdca2dc){_0x2c890a['push'](_0x2c890a['shift']());}}}(_0x310d,0x8631f),function(_0x35a3a5,_0x9c8eb3){const _0x279451=_0x2a05;typeof exports==_0x279451(0xe1)&&typeof module<'u'?_0x9c8eb3(exports):typeof define=='function'&&define[_0x279451(0x10e)]?define([_0x279451(0xf2)],_0x9c8eb3):(_0x35a3a5=typeof globalThis<'u'?globalThis:_0x35a3a5||self,_0x9c8eb3(_0x35a3a5[_0x279451(0xef)]={}));}(this,function(_0x5564ad){const _0x4e1e80=_0x2a05;Object[_0x4e1e80(0x10d)](_0x5564ad,Symbol[_0x4e1e80(0xe8)],{'value':_0x4e1e80(0xf3)});let _0x27f892=function(_0x4d2f48){const _0x13d276=_0x4e1e80;return _0x4d2f48['Portrait']='Portrait',_0x4d2f48[_0x13d276(0xf5)]='Landscape',_0x4d2f48;}({}),_0x4a1a1f=function(_0x5b792b){const _0x5062c3=_0x4e1e80;return _0x5b792b[_0x5062c3(0x110)]='Origin',_0x5b792b[_0x5062c3(0xf9)]=_0x5062c3(0xf9),_0x5b792b['FitHeight']=_0x5062c3(0x108),_0x5b792b['FitPage']='FitPage',_0x5b792b[_0x5062c3(0xeb)]='Custom',_0x5b792b;}({}),_0x684e12=function(_0xaf711f){const _0x5492ac=_0x4e1e80;return _0xaf711f[_0x5492ac(0xe2)]=_0x5492ac(0xe2),_0xaf711f[_0x5492ac(0x107)]=_0x5492ac(0x107),_0xaf711f[_0x5492ac(0xe7)]=_0x5492ac(0xe7),_0xaf711f;}({}),_0x11c975=function(_0x94ec1c){const _0x424c9b=_0x4e1e80;return _0x94ec1c[_0x424c9b(0xea)]=_0x424c9b(0xea),_0x94ec1c[_0x424c9b(0x10c)]=_0x424c9b(0x10c),_0x94ec1c[_0x424c9b(0x104)]='Wide',_0x94ec1c[_0x424c9b(0xf6)]='None',_0x94ec1c['Custom']='Custom',_0x94ec1c;}({}),_0x490e15={'Normal':{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},'Narrow':{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},'Wide':{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},'None':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},'Custom':{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x374a08='printing-canvas-container',_0x10c20f=_0x4e1e80(0x109);function _0x1fd373(_0x943aa9,_0xbc1171,_0x50ae3a){const _0x39a18a=_0x4e1e80;let _0x5e4abb=_0x50ae3a===_0x39a18a(0x105)?_0x943aa9:_0xbc1171,_0x3155a2=_0x50ae3a==='Portrait'?_0xbc1171:_0x943aa9,_0x19d21c=_0x39a18a(0xe5)+_0x10c20f+_0x39a18a(0xf4)+_0x5e4abb+_0x39a18a(0xe6)+_0x3155a2+_0x39a18a(0x100)+_0x374a08+_0x39a18a(0xff)+_0x374a08+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+_0x10c20f+_0x39a18a(0x10a)+_0x3155a2+_0x39a18a(0x10b)+_0x5e4abb+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}',_0x59ab57=document[_0x39a18a(0xfa)](_0x39a18a(0xf7));return _0x59ab57[_0x39a18a(0x102)]=_0x19d21c,_0x59ab57['className']=_0x39a18a(0xed),_0x59ab57;}_0x5564ad[_0x4e1e80(0xfc)]=_0x10c20f,_0x5564ad[_0x4e1e80(0x10f)]=_0x374a08,_0x5564ad['PaperMarginMap']=_0x490e15,_0x5564ad[_0x4e1e80(0xec)]=_0x684e12,_0x5564ad[_0x4e1e80(0xee)]=_0x27f892,_0x5564ad[_0x4e1e80(0xfb)]=_0x11c975,_0x5564ad[_0x4e1e80(0x101)]=_0x4a1a1f,_0x5564ad[_0x4e1e80(0x103)]=_0x1fd373;}));function _0x2a05(_0x254066,_0x18d29e){_0x254066=_0x254066-0xe0;const _0x310dec=_0x310d();let _0x2a05a3=_0x310dec[_0x254066];return _0x2a05a3;}function _0x310d(){const _0x1de7ae=['createElement','PrintPaperMargin','PRINT_CANVAS_CLASS','836904xpagUG','28dGxBAn',',\x20.','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','PrintScale','innerHTML','createPrintStyle','Wide','Portrait','170165NftxqK','End','FitHeight','printing-canvas','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Narrow','defineProperty','amd','PRINT_CONTAINER_CLASS','Origin','6135072YNlnua','object','Start','863637RDRLUb','28oDJLrr','\x0a\x20\x20\x20\x20.','px\x20','Middle','toStringTag','259096QogQfL','Normal','Custom','PrintAlign','offline-printing-css','PrintDirection','UniverProPrint','4GVlHni','3370240FBcUTH','exports','Module','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Landscape','None','style','3871935AsuMPc','FitWidth'];_0x310d=function(){return _0x1de7ae;};return _0x310d();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "1.0.0-alpha.7",
3
+ "version": "1.0.0-beta.0",
4
4
  "private": false,
5
5
  "description": "Shared print utilities for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -50,7 +50,7 @@
50
50
  "devDependencies": {
51
51
  "typescript": "^6.0.3",
52
52
  "vitest": "^4.1.10",
53
- "@univerjs-infra/shared": "1.0.0-alpha.7"
53
+ "@univerjs-infra/shared": "1.0.0-beta.0"
54
54
  },
55
55
  "scripts": {
56
56
  "test": "vitest run",