@univerjs-pro/print 0.10.1 → 0.10.2-nightly.202508080617

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
- 'use strict';const _0x54ad9e=_0x7c33;function _0x7c33(_0xf73cc1,_0x8d4836){const _0x1f88e7=_0x1f88();return _0x7c33=function(_0x7c333f,_0x58226d){_0x7c333f=_0x7c333f-0x1bd;let _0x5146f1=_0x1f88e7[_0x7c333f];return _0x5146f1;},_0x7c33(_0xf73cc1,_0x8d4836);}function _0x1f88(){const _0x1e3931=['2128114ncbllZ','Narrow','px\x20','toStringTag','4836VNXVlI','1832998UTyfOM','8YDoKnR','style','7532483DkYdUr','PrintPaperMargin','Wide','Normal','Start','2021889ZJtOKY','FitHeight','createElement',',\x20.','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}','FitWidth','Module','13864113yRHQoF','2145OkYrTL','End','Middle','\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','PaperMarginMap','PrintAlign','Portrait','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','Origin','Custom','PrintScale','FitPage','PRINT_CANVAS_CLASS','1571220LEqsLb','defineProperty','offline-printing-css','\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.','None','createPrintStyle','printing-canvas','PrintDirection'];_0x1f88=function(){return _0x1e3931;};return _0x1f88();}(function(_0x143765,_0x3138b8){const _0x1b48c1=_0x7c33,_0x1e224d=_0x143765();while(!![]){try{const _0x7b6de6=-parseInt(_0x1b48c1(0x1cf))/0x1+parseInt(_0x1b48c1(0x1ca))/0x2+-parseInt(_0x1b48c1(0x1d7))/0x3+-parseInt(_0x1b48c1(0x1ce))/0x4*(parseInt(_0x1b48c1(0x1df))/0x5)+parseInt(_0x1b48c1(0x1c2))/0x6+parseInt(_0x1b48c1(0x1d2))/0x7+parseInt(_0x1b48c1(0x1d0))/0x8*(parseInt(_0x1b48c1(0x1de))/0x9);if(_0x7b6de6===_0x3138b8)break;else _0x1e224d['push'](_0x1e224d['shift']());}catch(_0x1a5c17){_0x1e224d['push'](_0x1e224d['shift']());}}}(_0x1f88,0xdfd5f));Object[_0x54ad9e(0x1c3)](exports,Symbol[_0x54ad9e(0x1cd)],{'value':_0x54ad9e(0x1dd)});var e=(_0x13a80a=>(_0x13a80a[_0x54ad9e(0x1e5)]='Portrait',_0x13a80a[_0x54ad9e(0x1e7)]='Landscape',_0x13a80a))(e||{}),l=(_0x1e81a2=>(_0x1e81a2[_0x54ad9e(0x1bd)]=_0x54ad9e(0x1bd),_0x1e81a2['FitWidth']=_0x54ad9e(0x1dc),_0x1e81a2[_0x54ad9e(0x1d8)]=_0x54ad9e(0x1d8),_0x1e81a2[_0x54ad9e(0x1c0)]='FitPage',_0x1e81a2[_0x54ad9e(0x1be)]=_0x54ad9e(0x1be),_0x1e81a2))(l||{}),c=(_0xc35065=>(_0xc35065[_0x54ad9e(0x1d6)]='Start',_0xc35065['End']=_0x54ad9e(0x1e0),_0xc35065[_0x54ad9e(0x1e1)]=_0x54ad9e(0x1e1),_0xc35065))(c||{}),i=(_0x39794e=>(_0x39794e['Normal']=_0x54ad9e(0x1d5),_0x39794e[_0x54ad9e(0x1cb)]='Narrow',_0x39794e[_0x54ad9e(0x1d4)]='Wide',_0x39794e[_0x54ad9e(0x1c6)]=_0x54ad9e(0x1c6),_0x39794e))(i||{});const h={[i['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x54ad9e(0x1cb)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x54ad9e(0x1d4)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x54ad9e(0x1c6)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n=_0x54ad9e(0x1c8);function m(_0x1cfb98,_0x3eb0dd,_0x4bc7fd){const _0x525dd1=_0x54ad9e,_0x26063c=_0x4bc7fd===e[_0x525dd1(0x1e5)]?_0x1cfb98:_0x3eb0dd,_0x37da30=_0x4bc7fd===e[_0x525dd1(0x1e5)]?_0x3eb0dd:_0x1cfb98,_0x229363='\x0a\x20\x20\x20\x20.'+n+_0x525dd1(0x1e2)+_0x26063c+_0x525dd1(0x1cc)+_0x37da30+'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.'+r+_0x525dd1(0x1da)+r+_0x525dd1(0x1c5)+n+'\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'+_0x37da30+_0x525dd1(0x1e6)+_0x26063c+_0x525dd1(0x1db),_0x11515=document[_0x525dd1(0x1d9)](_0x525dd1(0x1d1));return _0x11515['innerHTML']=_0x229363,_0x11515['className']=_0x525dd1(0x1c4),_0x11515;}exports[_0x54ad9e(0x1c1)]=n,exports['PRINT_CONTAINER_CLASS']=r,exports[_0x54ad9e(0x1e3)]=h,exports[_0x54ad9e(0x1e4)]=c,exports[_0x54ad9e(0x1c9)]=e,exports[_0x54ad9e(0x1d3)]=i,exports[_0x54ad9e(0x1bf)]=l,exports[_0x54ad9e(0x1c7)]=m;
1
+ 'use strict';const _0x1f163e=_0xe71e;(function(_0x1e656a,_0x35f452){const _0x431773=_0xe71e,_0x1cbefc=_0x1e656a();while(!![]){try{const _0x3524cc=-parseInt(_0x431773(0x14f))/0x1+-parseInt(_0x431773(0x152))/0x2*(-parseInt(_0x431773(0x145))/0x3)+-parseInt(_0x431773(0x14d))/0x4*(parseInt(_0x431773(0x12c))/0x5)+-parseInt(_0x431773(0x157))/0x6*(parseInt(_0x431773(0x13a))/0x7)+-parseInt(_0x431773(0x13f))/0x8*(-parseInt(_0x431773(0x136))/0x9)+parseInt(_0x431773(0x148))/0xa*(parseInt(_0x431773(0x13b))/0xb)+-parseInt(_0x431773(0x158))/0xc*(-parseInt(_0x431773(0x12a))/0xd);if(_0x3524cc===_0x35f452)break;else _0x1cbefc['push'](_0x1cbefc['shift']());}catch(_0xc90eac){_0x1cbefc['push'](_0x1cbefc['shift']());}}}(_0xbcc6,0x68a3a));function _0xe71e(_0x45f93b,_0x2856d9){const _0xbcc639=_0xbcc6();return _0xe71e=function(_0xe71efb,_0x4f8645){_0xe71efb=_0xe71efb-0x129;let _0x48f0c2=_0xbcc639[_0xe71efb];return _0x48f0c2;},_0xe71e(_0x45f93b,_0x2856d9);}Object[_0x1f163e(0x129)](exports,Symbol[_0x1f163e(0x149)],{'value':_0x1f163e(0x12d)});function _0xbcc6(){const _0x34e6b8=['innerHTML','41090xRXDDt','toStringTag','PRINT_CANVAS_CLASS','offline-printing-css','createPrintStyle','28CKapVb','\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.','709720xMawbJ','Start','PrintPaperMargin','38zXRIem','Custom','createElement','FitPage','Portrait','51846pNUpHH','96eCIMYj','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}','defineProperty','575081eVbQxT','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','99770MJMeoR','Module','\x0a\x20\x20\x20\x20.','Narrow','\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','PRINT_CONTAINER_CLASS','Normal','Wide','FitWidth','printing-canvas','144bundJk','PaperMarginMap','FitHeight','px\x20','35kpimsV','1254hiochP','style','None','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.','123272NvnsOc','PrintScale','PrintDirection','Middle','Origin','Landscape','39843LOiACr','printing-canvas-container'];_0xbcc6=function(){return _0x34e6b8;};return _0xbcc6();}var e=(_0x56d6f6=>(_0x56d6f6[_0x1f163e(0x156)]=_0x1f163e(0x156),_0x56d6f6[_0x1f163e(0x144)]=_0x1f163e(0x144),_0x56d6f6))(e||{}),l=(_0x546a6c=>(_0x546a6c[_0x1f163e(0x143)]=_0x1f163e(0x143),_0x546a6c[_0x1f163e(0x134)]=_0x1f163e(0x134),_0x546a6c[_0x1f163e(0x138)]=_0x1f163e(0x138),_0x546a6c[_0x1f163e(0x155)]=_0x1f163e(0x155),_0x546a6c['Custom']=_0x1f163e(0x153),_0x546a6c))(l||{}),c=(_0xe65b62=>(_0xe65b62[_0x1f163e(0x150)]=_0x1f163e(0x150),_0xe65b62['End']='End',_0xe65b62[_0x1f163e(0x142)]='Middle',_0xe65b62))(c||{}),i=(_0x235111=>(_0x235111['Normal']=_0x1f163e(0x132),_0x235111['Narrow']='Narrow',_0x235111[_0x1f163e(0x133)]=_0x1f163e(0x133),_0x235111[_0x1f163e(0x13d)]=_0x1f163e(0x13d),_0x235111))(i||{});const h={[i[_0x1f163e(0x132)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x1f163e(0x12f)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x1f163e(0x133)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x1f163e(0x146),n=_0x1f163e(0x135);function m(_0x5b53e9,_0x405f62,_0x5db461){const _0x114c92=_0x1f163e,_0x2ce83e=_0x5db461===e[_0x114c92(0x156)]?_0x5b53e9:_0x405f62,_0xa614f1=_0x5db461===e[_0x114c92(0x156)]?_0x405f62:_0x5b53e9,_0x53084c=_0x114c92(0x12e)+n+'\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'+_0x2ce83e+_0x114c92(0x139)+_0xa614f1+_0x114c92(0x13e)+r+',\x20.'+r+_0x114c92(0x14e)+n+_0x114c92(0x130)+_0xa614f1+_0x114c92(0x12b)+_0x2ce83e+_0x114c92(0x159),_0x3b81d6=document[_0x114c92(0x154)](_0x114c92(0x13c));return _0x3b81d6[_0x114c92(0x147)]=_0x53084c,_0x3b81d6['className']=_0x114c92(0x14b),_0x3b81d6;}exports[_0x1f163e(0x14a)]=n,exports[_0x1f163e(0x131)]=r,exports[_0x1f163e(0x137)]=h,exports['PrintAlign']=c,exports[_0x1f163e(0x141)]=e,exports[_0x1f163e(0x151)]=i,exports[_0x1f163e(0x140)]=l,exports[_0x1f163e(0x14c)]=m;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3764(){const _0x4a142a=['Middle',',\x20.','Portrait','End','innerHTML','171877PVOrHl','33155889KWEXbK','4490PKiupY','FitWidth','Origin','FitHeight','Start','Landscape','20298RBJsgC','printing-canvas','\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.','None','\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','12OyqpnG','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}','76dOkhmA','1530JPJAoM','style','Custom','Normal','FitPage','8793gxBrlD','printing-canvas-container','Wide','167709JyAEhp','\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','Narrow','px\x20','249073ybWskv','createElement','className','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','11291SYaTQv','4UAHOwV','1168DnymhH','offline-printing-css'];_0x3764=function(){return _0x4a142a;};return _0x3764();}const _0x54286a=_0x3af2;(function(_0x5f65b7,_0x35a6b7){const _0xc09a3b=_0x3af2,_0x20349b=_0x5f65b7();while(!![]){try{const _0x4a2aad=-parseInt(_0xc09a3b(0x1a0))/0x1*(-parseInt(_0xc09a3b(0x198))/0x2)+parseInt(_0xc09a3b(0x18f))/0x3*(-parseInt(_0xc09a3b(0x186))/0x4)+parseInt(_0xc09a3b(0x187))/0x5*(-parseInt(_0xc09a3b(0x17f))/0x6)+parseInt(_0xc09a3b(0x197))/0x7*(parseInt(_0xc09a3b(0x199))/0x8)+parseInt(_0xc09a3b(0x18c))/0x9*(-parseInt(_0xc09a3b(0x1a2))/0xa)+-parseInt(_0xc09a3b(0x193))/0xb*(parseInt(_0xc09a3b(0x184))/0xc)+parseInt(_0xc09a3b(0x1a1))/0xd;if(_0x4a2aad===_0x35a6b7)break;else _0x20349b['push'](_0x20349b['shift']());}catch(_0x5f1ed5){_0x20349b['push'](_0x20349b['shift']());}}}(_0x3764,0x8b69a));var e=(_0xab4537=>(_0xab4537[_0x54286a(0x19d)]=_0x54286a(0x19d),_0xab4537['Landscape']=_0x54286a(0x17e),_0xab4537))(e||{}),l=(_0x59decb=>(_0x59decb[_0x54286a(0x17b)]=_0x54286a(0x17b),_0x59decb[_0x54286a(0x17a)]=_0x54286a(0x17a),_0x59decb[_0x54286a(0x17c)]='FitHeight',_0x59decb[_0x54286a(0x18b)]=_0x54286a(0x18b),_0x59decb[_0x54286a(0x189)]=_0x54286a(0x189),_0x59decb))(l||{}),m=(_0x1f7067=>(_0x1f7067[_0x54286a(0x17d)]=_0x54286a(0x17d),_0x1f7067[_0x54286a(0x19e)]='End',_0x1f7067[_0x54286a(0x19b)]='Middle',_0x1f7067))(m||{}),o=(_0x3b288b=>(_0x3b288b['Normal']='Normal',_0x3b288b['Narrow']='Narrow',_0x3b288b[_0x54286a(0x18e)]=_0x54286a(0x18e),_0x3b288b[_0x54286a(0x182)]=_0x54286a(0x182),_0x3b288b))(o||{});const c={[o[_0x54286a(0x18a)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x54286a(0x191)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x54286a(0x18e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x54286a(0x182)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x54286a(0x18d),d=_0x54286a(0x180);function g(_0x3c8e4f,_0x20f357,_0x1bd242){const _0x1b2197=_0x54286a,_0x235957=_0x1bd242===e['Portrait']?_0x3c8e4f:_0x20f357,_0x5232af=_0x1bd242===e[_0x1b2197(0x19d)]?_0x20f357:_0x3c8e4f,_0x353521='\x0a\x20\x20\x20\x20.'+d+_0x1b2197(0x183)+_0x235957+_0x1b2197(0x192)+_0x5232af+'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.'+p+_0x1b2197(0x19c)+p+_0x1b2197(0x181)+d+_0x1b2197(0x190)+_0x5232af+_0x1b2197(0x196)+_0x235957+_0x1b2197(0x185),_0x2ed5ee=document[_0x1b2197(0x194)](_0x1b2197(0x188));return _0x2ed5ee[_0x1b2197(0x19f)]=_0x353521,_0x2ed5ee[_0x1b2197(0x195)]=_0x1b2197(0x19a),_0x2ed5ee;}function _0x3af2(_0x26785f,_0x24ae46){const _0x376481=_0x3764();return _0x3af2=function(_0x3af265,_0x2e2177){_0x3af265=_0x3af265-0x17a;let _0x2aa348=_0x376481[_0x3af265];return _0x2aa348;},_0x3af2(_0x26785f,_0x24ae46);}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
1
+ const _0x5413b1=_0x3624;(function(_0x4bd1d4,_0x40b037){const _0x16eb99=_0x3624,_0x2c33dc=_0x4bd1d4();while(!![]){try{const _0x275bc7=parseInt(_0x16eb99(0x89))/0x1*(parseInt(_0x16eb99(0x82))/0x2)+-parseInt(_0x16eb99(0x92))/0x3+-parseInt(_0x16eb99(0x83))/0x4*(parseInt(_0x16eb99(0x8b))/0x5)+-parseInt(_0x16eb99(0xa1))/0x6+parseInt(_0x16eb99(0x8f))/0x7+parseInt(_0x16eb99(0x85))/0x8+parseInt(_0x16eb99(0x8d))/0x9;if(_0x275bc7===_0x40b037)break;else _0x2c33dc['push'](_0x2c33dc['shift']());}catch(_0x11bd64){_0x2c33dc['push'](_0x2c33dc['shift']());}}}(_0x22d6,0x19aed));var e=(_0x148d5e=>(_0x148d5e[_0x5413b1(0x95)]=_0x5413b1(0x95),_0x148d5e['Landscape']='Landscape',_0x148d5e))(e||{}),l=(_0x5d5920=>(_0x5d5920['Origin']=_0x5413b1(0x9f),_0x5d5920[_0x5413b1(0x99)]=_0x5413b1(0x99),_0x5d5920['FitHeight']=_0x5413b1(0xa0),_0x5d5920[_0x5413b1(0x8a)]=_0x5413b1(0x8a),_0x5d5920[_0x5413b1(0x8c)]=_0x5413b1(0x8c),_0x5d5920))(l||{}),m=(_0x134f21=>(_0x134f21[_0x5413b1(0x91)]='Start',_0x134f21['End']=_0x5413b1(0x87),_0x134f21[_0x5413b1(0x97)]=_0x5413b1(0x97),_0x134f21))(m||{}),o=(_0x266664=>(_0x266664[_0x5413b1(0x86)]=_0x5413b1(0x86),_0x266664['Narrow']=_0x5413b1(0x9d),_0x266664['Wide']=_0x5413b1(0x84),_0x266664[_0x5413b1(0x98)]=_0x5413b1(0x98),_0x266664))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5413b1(0x9d)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d='printing-canvas';function _0x3624(_0x5e889b,_0x35a6c3){const _0x22d68a=_0x22d6();return _0x3624=function(_0x3624f7,_0x36992b){_0x3624f7=_0x3624f7-0x82;let _0x137518=_0x22d68a[_0x3624f7];return _0x137518;},_0x3624(_0x5e889b,_0x35a6c3);}function _0x22d6(){const _0x32e489=['offline-printing-css','Origin','FitHeight','162918EcZrrF','2NEvrYo','28QdPBmN','Wide','1152120tKCxmN','Normal','End',',\x20.','112406sdVtKr','FitPage','101360RNkVuL','Custom','1630143rMfHEC','className','23779lsVRrx','createElement','Start','500073Innlfy','px\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.','Portrait','\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','Middle','None','FitWidth','innerHTML','\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.','\x0a\x20\x20\x20\x20.','Narrow'];_0x22d6=function(){return _0x32e489;};return _0x22d6();}function g(_0x274072,_0x569c9c,_0x25dfdb){const _0x45d701=_0x5413b1,_0x3f4e0=_0x25dfdb===e[_0x45d701(0x95)]?_0x274072:_0x569c9c,_0x53a71c=_0x25dfdb===e[_0x45d701(0x95)]?_0x569c9c:_0x274072,_0x5ecc62=_0x45d701(0x9c)+d+_0x45d701(0x96)+_0x3f4e0+_0x45d701(0x93)+_0x53a71c+_0x45d701(0x94)+p+_0x45d701(0x88)+p+_0x45d701(0x9b)+d+'\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'+_0x53a71c+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3f4e0+'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}',_0x1fe02b=document[_0x45d701(0x90)]('style');return _0x1fe02b[_0x45d701(0x9a)]=_0x5ecc62,_0x1fe02b[_0x45d701(0x8e)]=_0x45d701(0x9e),_0x1fe02b;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3764(){const _0x4a142a=['Middle',',\x20.','Portrait','End','innerHTML','171877PVOrHl','33155889KWEXbK','4490PKiupY','FitWidth','Origin','FitHeight','Start','Landscape','20298RBJsgC','printing-canvas','\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.','None','\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','12OyqpnG','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}','76dOkhmA','1530JPJAoM','style','Custom','Normal','FitPage','8793gxBrlD','printing-canvas-container','Wide','167709JyAEhp','\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','Narrow','px\x20','249073ybWskv','createElement','className','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','11291SYaTQv','4UAHOwV','1168DnymhH','offline-printing-css'];_0x3764=function(){return _0x4a142a;};return _0x3764();}const _0x54286a=_0x3af2;(function(_0x5f65b7,_0x35a6b7){const _0xc09a3b=_0x3af2,_0x20349b=_0x5f65b7();while(!![]){try{const _0x4a2aad=-parseInt(_0xc09a3b(0x1a0))/0x1*(-parseInt(_0xc09a3b(0x198))/0x2)+parseInt(_0xc09a3b(0x18f))/0x3*(-parseInt(_0xc09a3b(0x186))/0x4)+parseInt(_0xc09a3b(0x187))/0x5*(-parseInt(_0xc09a3b(0x17f))/0x6)+parseInt(_0xc09a3b(0x197))/0x7*(parseInt(_0xc09a3b(0x199))/0x8)+parseInt(_0xc09a3b(0x18c))/0x9*(-parseInt(_0xc09a3b(0x1a2))/0xa)+-parseInt(_0xc09a3b(0x193))/0xb*(parseInt(_0xc09a3b(0x184))/0xc)+parseInt(_0xc09a3b(0x1a1))/0xd;if(_0x4a2aad===_0x35a6b7)break;else _0x20349b['push'](_0x20349b['shift']());}catch(_0x5f1ed5){_0x20349b['push'](_0x20349b['shift']());}}}(_0x3764,0x8b69a));var e=(_0xab4537=>(_0xab4537[_0x54286a(0x19d)]=_0x54286a(0x19d),_0xab4537['Landscape']=_0x54286a(0x17e),_0xab4537))(e||{}),l=(_0x59decb=>(_0x59decb[_0x54286a(0x17b)]=_0x54286a(0x17b),_0x59decb[_0x54286a(0x17a)]=_0x54286a(0x17a),_0x59decb[_0x54286a(0x17c)]='FitHeight',_0x59decb[_0x54286a(0x18b)]=_0x54286a(0x18b),_0x59decb[_0x54286a(0x189)]=_0x54286a(0x189),_0x59decb))(l||{}),m=(_0x1f7067=>(_0x1f7067[_0x54286a(0x17d)]=_0x54286a(0x17d),_0x1f7067[_0x54286a(0x19e)]='End',_0x1f7067[_0x54286a(0x19b)]='Middle',_0x1f7067))(m||{}),o=(_0x3b288b=>(_0x3b288b['Normal']='Normal',_0x3b288b['Narrow']='Narrow',_0x3b288b[_0x54286a(0x18e)]=_0x54286a(0x18e),_0x3b288b[_0x54286a(0x182)]=_0x54286a(0x182),_0x3b288b))(o||{});const c={[o[_0x54286a(0x18a)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x54286a(0x191)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x54286a(0x18e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x54286a(0x182)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x54286a(0x18d),d=_0x54286a(0x180);function g(_0x3c8e4f,_0x20f357,_0x1bd242){const _0x1b2197=_0x54286a,_0x235957=_0x1bd242===e['Portrait']?_0x3c8e4f:_0x20f357,_0x5232af=_0x1bd242===e[_0x1b2197(0x19d)]?_0x20f357:_0x3c8e4f,_0x353521='\x0a\x20\x20\x20\x20.'+d+_0x1b2197(0x183)+_0x235957+_0x1b2197(0x192)+_0x5232af+'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.'+p+_0x1b2197(0x19c)+p+_0x1b2197(0x181)+d+_0x1b2197(0x190)+_0x5232af+_0x1b2197(0x196)+_0x235957+_0x1b2197(0x185),_0x2ed5ee=document[_0x1b2197(0x194)](_0x1b2197(0x188));return _0x2ed5ee[_0x1b2197(0x19f)]=_0x353521,_0x2ed5ee[_0x1b2197(0x195)]=_0x1b2197(0x19a),_0x2ed5ee;}function _0x3af2(_0x26785f,_0x24ae46){const _0x376481=_0x3764();return _0x3af2=function(_0x3af265,_0x2e2177){_0x3af265=_0x3af265-0x17a;let _0x2aa348=_0x376481[_0x3af265];return _0x2aa348;},_0x3af2(_0x26785f,_0x24ae46);}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
1
+ const _0x5413b1=_0x3624;(function(_0x4bd1d4,_0x40b037){const _0x16eb99=_0x3624,_0x2c33dc=_0x4bd1d4();while(!![]){try{const _0x275bc7=parseInt(_0x16eb99(0x89))/0x1*(parseInt(_0x16eb99(0x82))/0x2)+-parseInt(_0x16eb99(0x92))/0x3+-parseInt(_0x16eb99(0x83))/0x4*(parseInt(_0x16eb99(0x8b))/0x5)+-parseInt(_0x16eb99(0xa1))/0x6+parseInt(_0x16eb99(0x8f))/0x7+parseInt(_0x16eb99(0x85))/0x8+parseInt(_0x16eb99(0x8d))/0x9;if(_0x275bc7===_0x40b037)break;else _0x2c33dc['push'](_0x2c33dc['shift']());}catch(_0x11bd64){_0x2c33dc['push'](_0x2c33dc['shift']());}}}(_0x22d6,0x19aed));var e=(_0x148d5e=>(_0x148d5e[_0x5413b1(0x95)]=_0x5413b1(0x95),_0x148d5e['Landscape']='Landscape',_0x148d5e))(e||{}),l=(_0x5d5920=>(_0x5d5920['Origin']=_0x5413b1(0x9f),_0x5d5920[_0x5413b1(0x99)]=_0x5413b1(0x99),_0x5d5920['FitHeight']=_0x5413b1(0xa0),_0x5d5920[_0x5413b1(0x8a)]=_0x5413b1(0x8a),_0x5d5920[_0x5413b1(0x8c)]=_0x5413b1(0x8c),_0x5d5920))(l||{}),m=(_0x134f21=>(_0x134f21[_0x5413b1(0x91)]='Start',_0x134f21['End']=_0x5413b1(0x87),_0x134f21[_0x5413b1(0x97)]=_0x5413b1(0x97),_0x134f21))(m||{}),o=(_0x266664=>(_0x266664[_0x5413b1(0x86)]=_0x5413b1(0x86),_0x266664['Narrow']=_0x5413b1(0x9d),_0x266664['Wide']=_0x5413b1(0x84),_0x266664[_0x5413b1(0x98)]=_0x5413b1(0x98),_0x266664))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5413b1(0x9d)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d='printing-canvas';function _0x3624(_0x5e889b,_0x35a6c3){const _0x22d68a=_0x22d6();return _0x3624=function(_0x3624f7,_0x36992b){_0x3624f7=_0x3624f7-0x82;let _0x137518=_0x22d68a[_0x3624f7];return _0x137518;},_0x3624(_0x5e889b,_0x35a6c3);}function _0x22d6(){const _0x32e489=['offline-printing-css','Origin','FitHeight','162918EcZrrF','2NEvrYo','28QdPBmN','Wide','1152120tKCxmN','Normal','End',',\x20.','112406sdVtKr','FitPage','101360RNkVuL','Custom','1630143rMfHEC','className','23779lsVRrx','createElement','Start','500073Innlfy','px\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.','Portrait','\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','Middle','None','FitWidth','innerHTML','\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.','\x0a\x20\x20\x20\x20.','Narrow'];_0x22d6=function(){return _0x32e489;};return _0x22d6();}function g(_0x274072,_0x569c9c,_0x25dfdb){const _0x45d701=_0x5413b1,_0x3f4e0=_0x25dfdb===e[_0x45d701(0x95)]?_0x274072:_0x569c9c,_0x53a71c=_0x25dfdb===e[_0x45d701(0x95)]?_0x569c9c:_0x274072,_0x5ecc62=_0x45d701(0x9c)+d+_0x45d701(0x96)+_0x3f4e0+_0x45d701(0x93)+_0x53a71c+_0x45d701(0x94)+p+_0x45d701(0x88)+p+_0x45d701(0x9b)+d+'\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'+_0x53a71c+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3f4e0+'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}',_0x1fe02b=document[_0x45d701(0x90)]('style');return _0x1fe02b[_0x45d701(0x9a)]=_0x5ecc62,_0x1fe02b[_0x45d701(0x8e)]=_0x45d701(0x9e),_0x1fe02b;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xb0ec(_0x324080,_0x519528){const _0x552d23=_0x552d();return _0xb0ec=function(_0xb0ec02,_0x54d23e){_0xb0ec02=_0xb0ec02-0x149;let _0x3fcd8d=_0x552d23[_0xb0ec02];return _0x3fcd8d;},_0xb0ec(_0x324080,_0x519528);}(function(_0xd271ab,_0x42934f){const _0x448fd8=_0xb0ec,_0x414fb9=_0xd271ab();while(!![]){try{const _0x3db72d=-parseInt(_0x448fd8(0x178))/0x1+parseInt(_0x448fd8(0x171))/0x2+-parseInt(_0x448fd8(0x16c))/0x3*(-parseInt(_0x448fd8(0x15d))/0x4)+parseInt(_0x448fd8(0x15b))/0x5+parseInt(_0x448fd8(0x16d))/0x6*(-parseInt(_0x448fd8(0x158))/0x7)+parseInt(_0x448fd8(0x15c))/0x8+-parseInt(_0x448fd8(0x15a))/0x9;if(_0x3db72d===_0x42934f)break;else _0x414fb9['push'](_0x414fb9['shift']());}catch(_0xaafdc0){_0x414fb9['push'](_0x414fb9['shift']());}}}(_0x552d,0x4bde1),function(_0x3394c3,_0x5d7030){const _0x83907c=_0xb0ec;typeof exports==_0x83907c(0x153)&&typeof module<'u'?_0x5d7030(exports):typeof define==_0x83907c(0x15e)&&define['amd']?define([_0x83907c(0x15f)],_0x5d7030):(_0x3394c3=typeof globalThis<'u'?globalThis:_0x3394c3||self,_0x5d7030(_0x3394c3[_0x83907c(0x169)]={}));}(this,function(_0x1d9ca9){'use strict';const _0x3d22db=_0xb0ec;var _0x401e8f=(_0x22b589=>(_0x22b589[_0x3d22db(0x14f)]=_0x3d22db(0x14f),_0x22b589['Landscape']=_0x3d22db(0x151),_0x22b589))(_0x401e8f||{}),_0x1b44a7=(_0x312f09=>(_0x312f09[_0x3d22db(0x14d)]='Origin',_0x312f09[_0x3d22db(0x16a)]='FitWidth',_0x312f09[_0x3d22db(0x154)]=_0x3d22db(0x154),_0x312f09[_0x3d22db(0x163)]='FitPage',_0x312f09['Custom']=_0x3d22db(0x149),_0x312f09))(_0x1b44a7||{}),_0x4a5c86=(_0x2cb0ab=>(_0x2cb0ab[_0x3d22db(0x16f)]=_0x3d22db(0x16f),_0x2cb0ab[_0x3d22db(0x150)]=_0x3d22db(0x150),_0x2cb0ab[_0x3d22db(0x16e)]='Middle',_0x2cb0ab))(_0x4a5c86||{}),_0x2e6639=(_0x4a3b90=>(_0x4a3b90[_0x3d22db(0x177)]=_0x3d22db(0x177),_0x4a3b90[_0x3d22db(0x164)]=_0x3d22db(0x164),_0x4a3b90[_0x3d22db(0x170)]='Wide',_0x4a3b90['None']='None',_0x4a3b90))(_0x2e6639||{});const _0x3934da={[_0x2e6639[_0x3d22db(0x177)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x2e6639[_0x3d22db(0x164)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x2e6639[_0x3d22db(0x170)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x2e6639['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x368b3d='printing-canvas-container',_0x133ee3=_0x3d22db(0x174);function _0x527067(_0x433c13,_0x24546f,_0xc404f3){const _0xeaf186=_0x3d22db,_0x56c5d2=_0xc404f3===_0x401e8f[_0xeaf186(0x14f)]?_0x433c13:_0x24546f,_0x16fb8f=_0xc404f3===_0x401e8f[_0xeaf186(0x14f)]?_0x24546f:_0x433c13,_0x119c6b=_0xeaf186(0x14a)+_0x133ee3+_0xeaf186(0x14c)+_0x56c5d2+'px\x20'+_0x16fb8f+_0xeaf186(0x173)+_0x368b3d+_0xeaf186(0x152)+_0x368b3d+_0xeaf186(0x175)+_0x133ee3+_0xeaf186(0x155)+_0x16fb8f+_0xeaf186(0x159)+_0x56c5d2+_0xeaf186(0x168),_0x5038ba=document[_0xeaf186(0x160)](_0xeaf186(0x157));return _0x5038ba[_0xeaf186(0x156)]=_0x119c6b,_0x5038ba[_0xeaf186(0x176)]='offline-printing-css',_0x5038ba;}_0x1d9ca9[_0x3d22db(0x166)]=_0x133ee3,_0x1d9ca9[_0x3d22db(0x161)]=_0x368b3d,_0x1d9ca9[_0x3d22db(0x172)]=_0x3934da,_0x1d9ca9['PrintAlign']=_0x4a5c86,_0x1d9ca9[_0x3d22db(0x165)]=_0x401e8f,_0x1d9ca9[_0x3d22db(0x14e)]=_0x2e6639,_0x1d9ca9[_0x3d22db(0x167)]=_0x1b44a7,_0x1d9ca9[_0x3d22db(0x162)]=_0x527067,Object[_0x3d22db(0x16b)](_0x1d9ca9,Symbol['toStringTag'],{'value':_0x3d22db(0x14b)});}));function _0x552d(){const _0x47149b=['113658wwzvfz','PaperMarginMap','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.','printing-canvas','\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.','className','Normal','106622eQDyBO','Custom','\x0a\x20\x20\x20\x20.','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','Origin','PrintPaperMargin','Portrait','End','Landscape',',\x20.','object','FitHeight','\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','innerHTML','style','12943jDkhAa','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','8380377NtgdhD','2948450EhJRFX','4383056RJsVEm','788pYshDy','function','exports','createElement','PRINT_CONTAINER_CLASS','createPrintStyle','FitPage','Narrow','PrintDirection','PRINT_CANVAS_CLASS','PrintScale','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}','UniverProPrint','FitWidth','defineProperty','2685Gljhkv','72IlVoNz','Middle','Start','Wide'];_0x552d=function(){return _0x47149b;};return _0x552d();}
1
+ function _0x31cb(_0x3a24f2,_0x3f9df3){const _0x10dc4d=_0x10dc();return _0x31cb=function(_0x31cbb0,_0x552154){_0x31cbb0=_0x31cbb0-0x10b;let _0x52ed88=_0x10dc4d[_0x31cbb0];return _0x52ed88;},_0x31cb(_0x3a24f2,_0x3f9df3);}(function(_0x31bcac,_0x58e4d8){const _0x180302=_0x31cb,_0x56057f=_0x31bcac();while(!![]){try{const _0x297d3a=-parseInt(_0x180302(0x115))/0x1+parseInt(_0x180302(0x10f))/0x2+-parseInt(_0x180302(0x13d))/0x3+parseInt(_0x180302(0x120))/0x4*(parseInt(_0x180302(0x11c))/0x5)+parseInt(_0x180302(0x12c))/0x6*(-parseInt(_0x180302(0x12a))/0x7)+-parseInt(_0x180302(0x131))/0x8*(parseInt(_0x180302(0x123))/0x9)+parseInt(_0x180302(0x13a))/0xa*(parseInt(_0x180302(0x112))/0xb);if(_0x297d3a===_0x58e4d8)break;else _0x56057f['push'](_0x56057f['shift']());}catch(_0x472a7d){_0x56057f['push'](_0x56057f['shift']());}}}(_0x10dc,0x5a5d8),function(_0x2e98a9,_0xbc4306){const _0x331a13=_0x31cb;typeof exports==_0x331a13(0x113)&&typeof module<'u'?_0xbc4306(exports):typeof define==_0x331a13(0x129)&&define[_0x331a13(0x11a)]?define([_0x331a13(0x121)],_0xbc4306):(_0x2e98a9=typeof globalThis<'u'?globalThis:_0x2e98a9||self,_0xbc4306(_0x2e98a9[_0x331a13(0x12b)]={}));}(this,function(_0xc0bbf6){'use strict';const _0x37030c=_0x31cb;var _0x1e137a=(_0x612d1f=>(_0x612d1f[_0x37030c(0x12f)]=_0x37030c(0x12f),_0x612d1f[_0x37030c(0x139)]=_0x37030c(0x139),_0x612d1f))(_0x1e137a||{}),_0x5c3b1e=(_0x452595=>(_0x452595[_0x37030c(0x126)]=_0x37030c(0x126),_0x452595[_0x37030c(0x118)]=_0x37030c(0x118),_0x452595[_0x37030c(0x119)]=_0x37030c(0x119),_0x452595[_0x37030c(0x10d)]='FitPage',_0x452595['Custom']=_0x37030c(0x12d),_0x452595))(_0x5c3b1e||{}),_0x3e2a27=(_0x56b0f5=>(_0x56b0f5[_0x37030c(0x132)]=_0x37030c(0x132),_0x56b0f5[_0x37030c(0x117)]='End',_0x56b0f5[_0x37030c(0x11f)]='Middle',_0x56b0f5))(_0x3e2a27||{}),_0x585f09=(_0x3e3c21=>(_0x3e3c21[_0x37030c(0x125)]='Normal',_0x3e3c21[_0x37030c(0x124)]=_0x37030c(0x124),_0x3e3c21[_0x37030c(0x130)]=_0x37030c(0x130),_0x3e3c21[_0x37030c(0x110)]=_0x37030c(0x110),_0x3e3c21))(_0x585f09||{});const _0x2072cb={[_0x585f09[_0x37030c(0x125)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x585f09[_0x37030c(0x124)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x585f09['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x585f09['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0xa230e2=_0x37030c(0x111),_0x2a87cc=_0x37030c(0x10c);function _0x189fa1(_0xb2592b,_0xba0778,_0x2dc7d1){const _0x34d0f5=_0x37030c,_0x23bd51=_0x2dc7d1===_0x1e137a[_0x34d0f5(0x12f)]?_0xb2592b:_0xba0778,_0x38c985=_0x2dc7d1===_0x1e137a[_0x34d0f5(0x12f)]?_0xba0778:_0xb2592b,_0x907247=_0x34d0f5(0x122)+_0x2a87cc+_0x34d0f5(0x12e)+_0x23bd51+_0x34d0f5(0x10b)+_0x38c985+_0x34d0f5(0x127)+_0xa230e2+_0x34d0f5(0x11b)+_0xa230e2+_0x34d0f5(0x10e)+_0x2a87cc+_0x34d0f5(0x135)+_0x38c985+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x23bd51+_0x34d0f5(0x137),_0x5d4dad=document[_0x34d0f5(0x136)]('style');return _0x5d4dad[_0x34d0f5(0x11d)]=_0x907247,_0x5d4dad[_0x34d0f5(0x11e)]=_0x34d0f5(0x116),_0x5d4dad;}_0xc0bbf6['PRINT_CANVAS_CLASS']=_0x2a87cc,_0xc0bbf6['PRINT_CONTAINER_CLASS']=_0xa230e2,_0xc0bbf6[_0x37030c(0x128)]=_0x2072cb,_0xc0bbf6[_0x37030c(0x134)]=_0x3e2a27,_0xc0bbf6['PrintDirection']=_0x1e137a,_0xc0bbf6[_0x37030c(0x114)]=_0x585f09,_0xc0bbf6[_0x37030c(0x133)]=_0x5c3b1e,_0xc0bbf6[_0x37030c(0x13b)]=_0x189fa1,Object['defineProperty'](_0xc0bbf6,Symbol[_0x37030c(0x138)],{'value':_0x37030c(0x13c)});}));function _0x10dc(){const _0x15ca7a=['Module','236904kXJKlC','px\x20','printing-canvas','FitPage','\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.','1316292HXcxyl','None','printing-canvas-container','65571vMPnGa','object','PrintPaperMargin','114920dKvnXy','offline-printing-css','End','FitWidth','FitHeight','amd',',\x20.','170BAqipS','innerHTML','className','Middle','78084RPVdzM','exports','\x0a\x20\x20\x20\x20.','1278VQHvQU','Narrow','Normal','Origin','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.','PaperMarginMap','function','5180203YPsDpP','UniverProPrint','6TTGSbB','Custom','\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','Portrait','Wide','7384xOXVZH','Start','PrintScale','PrintAlign','\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','createElement','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}','toStringTag','Landscape','190nmvogK','createPrintStyle'];_0x10dc=function(){return _0x15ca7a;};return _0x10dc();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.10.1",
3
+ "version": "0.10.2-nightly.202508080617",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -45,7 +45,7 @@
45
45
  "typescript": "^5.8.3",
46
46
  "vite": "^7.0.6",
47
47
  "vitest": "^3.2.4",
48
- "@univerjs-infra/shared": "0.10.1"
48
+ "@univerjs-infra/shared": "0.10.2"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",