@univerjs-pro/print 0.15.1 → 0.15.2

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 _0x11c03d=_0x151b;(function(_0x1e544e,_0x12738b){const _0x47dfb6=_0x151b,_0x36494b=_0x1e544e();while(!![]){try{const _0x3ed6c7=-parseInt(_0x47dfb6(0xbe))/0x1*(-parseInt(_0x47dfb6(0xa7))/0x2)+-parseInt(_0x47dfb6(0xb3))/0x3*(-parseInt(_0x47dfb6(0xbd))/0x4)+-parseInt(_0x47dfb6(0xb1))/0x5+-parseInt(_0x47dfb6(0xd0))/0x6+-parseInt(_0x47dfb6(0xab))/0x7+parseInt(_0x47dfb6(0xc3))/0x8+-parseInt(_0x47dfb6(0xa3))/0x9*(parseInt(_0x47dfb6(0xaa))/0xa);if(_0x3ed6c7===_0x12738b)break;else _0x36494b['push'](_0x36494b['shift']());}catch(_0x92baee){_0x36494b['push'](_0x36494b['shift']());}}}(_0xb3f7,0x5a1b8));Object[_0x11c03d(0xbc)](exports,Symbol[_0x11c03d(0xc8)],{'value':_0x11c03d(0xad)});var i=(_0x4db0e2=>(_0x4db0e2[_0x11c03d(0xc9)]=_0x11c03d(0xc9),_0x4db0e2[_0x11c03d(0xb2)]=_0x11c03d(0xb2),_0x4db0e2))(i||{}),l=(_0x3be459=>(_0x3be459[_0x11c03d(0xa5)]=_0x11c03d(0xa5),_0x3be459[_0x11c03d(0xc0)]=_0x11c03d(0xc0),_0x3be459[_0x11c03d(0xaf)]=_0x11c03d(0xaf),_0x3be459[_0x11c03d(0xcd)]=_0x11c03d(0xcd),_0x3be459[_0x11c03d(0xca)]=_0x11c03d(0xca),_0x3be459))(l||{}),m=(_0x54eddc=>(_0x54eddc['Start']=_0x11c03d(0xcb),_0x54eddc[_0x11c03d(0xa6)]=_0x11c03d(0xa6),_0x54eddc['Middle']=_0x11c03d(0xac),_0x54eddc))(m||{}),o=(_0x13f80d=>(_0x13f80d[_0x11c03d(0xae)]=_0x11c03d(0xae),_0x13f80d[_0x11c03d(0xc7)]=_0x11c03d(0xc7),_0x13f80d[_0x11c03d(0xc4)]=_0x11c03d(0xc4),_0x13f80d['None']=_0x11c03d(0xa9),_0x13f80d[_0x11c03d(0xca)]=_0x11c03d(0xca),_0x13f80d))(o||{});function _0x151b(_0x301d81,_0x160ab1){_0x301d81=_0x301d81-0xa3;const _0xb3f78c=_0xb3f7();let _0x151b6a=_0xb3f78c[_0x301d81];return _0x151b6a;}const g={[o[_0x11c03d(0xae)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x11c03d(0xc7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x11c03d(0xc4)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x11c03d(0xa9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x11c03d(0xb4),n=_0x11c03d(0xd1);function h(_0x4e8e7e,_0x3227ec,_0x47a3b6){const _0x14a469=_0x11c03d,_0x192711=_0x47a3b6===i[_0x14a469(0xc9)]?_0x4e8e7e:_0x3227ec,_0x2ba887=_0x47a3b6===i['Portrait']?_0x3227ec:_0x4e8e7e,_0x3b0d7e=_0x14a469(0xb5)+n+_0x14a469(0xc5)+_0x192711+_0x14a469(0xc6)+_0x2ba887+_0x14a469(0xcc)+r+_0x14a469(0xb6)+r+_0x14a469(0xba)+n+_0x14a469(0xcf)+_0x2ba887+_0x14a469(0xb7)+_0x192711+_0x14a469(0xb0),_0x222e7c=document['createElement'](_0x14a469(0xa8));return _0x222e7c[_0x14a469(0xce)]=_0x3b0d7e,_0x222e7c['className']=_0x14a469(0xb9),_0x222e7c;}function _0xb3f7(){const _0xd8e423=['Normal','FitHeight','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}','2330330UQyius','Landscape','3nAHPQQ','printing-canvas-container','\x0a\x20\x20\x20\x20.',',\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PRINT_CONTAINER_CLASS','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.','PrintPaperMargin','defineProperty','2455532ruVKJS','130263HSSLkU','createPrintStyle','FitWidth','PaperMarginMap','PrintScale','2342832nILXwY','Wide','\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','px\x20','Narrow','toStringTag','Portrait','Custom','Start','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.','FitPage','innerHTML','\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','514518KIaHbC','printing-canvas','27TCKdJo','PRINT_CANVAS_CLASS','Origin','End','6jbOSgQ','style','None','1195510rFymia','125818VxXsVt','Middle','Module'];_0xb3f7=function(){return _0xd8e423;};return _0xb3f7();}exports[_0x11c03d(0xa4)]=n,exports[_0x11c03d(0xb8)]=r,exports[_0x11c03d(0xc1)]=g,exports['PrintAlign']=m,exports['PrintDirection']=i,exports[_0x11c03d(0xbb)]=o,exports[_0x11c03d(0xc2)]=l,exports[_0x11c03d(0xbf)]=h;
1
+ 'use strict';const _0x3a8d50=_0x1037;(function(_0x1a2b71,_0x9eeb40){const _0x41f4fe=_0x1037,_0x508ee5=_0x1a2b71();while(!![]){try{const _0x4de5f4=parseInt(_0x41f4fe(0x9f))/0x1*(-parseInt(_0x41f4fe(0xb5))/0x2)+-parseInt(_0x41f4fe(0xc1))/0x3+-parseInt(_0x41f4fe(0xb7))/0x4+parseInt(_0x41f4fe(0xb9))/0x5*(-parseInt(_0x41f4fe(0xa6))/0x6)+-parseInt(_0x41f4fe(0x9e))/0x7*(parseInt(_0x41f4fe(0xb0))/0x8)+parseInt(_0x41f4fe(0xad))/0x9*(-parseInt(_0x41f4fe(0xb8))/0xa)+parseInt(_0x41f4fe(0xb3))/0xb;if(_0x4de5f4===_0x9eeb40)break;else _0x508ee5['push'](_0x508ee5['shift']());}catch(_0x234bed){_0x508ee5['push'](_0x508ee5['shift']());}}}(_0x1619,0xcfa45));Object[_0x3a8d50(0xbc)](exports,Symbol[_0x3a8d50(0xbd)],{'value':_0x3a8d50(0xa0)});var i=(_0x3a59da=>(_0x3a59da[_0x3a8d50(0x9d)]='Portrait',_0x3a59da[_0x3a8d50(0xbf)]=_0x3a8d50(0xbf),_0x3a59da))(i||{}),l=(_0x3f51e0=>(_0x3f51e0[_0x3a8d50(0xb1)]='Origin',_0x3f51e0['FitWidth']='FitWidth',_0x3f51e0[_0x3a8d50(0xc5)]='FitHeight',_0x3f51e0[_0x3a8d50(0xc0)]=_0x3a8d50(0xc0),_0x3f51e0[_0x3a8d50(0x9b)]=_0x3a8d50(0x9b),_0x3f51e0))(l||{}),m=(_0x3d2684=>(_0x3d2684[_0x3a8d50(0xc6)]=_0x3a8d50(0xc6),_0x3d2684[_0x3a8d50(0xb6)]=_0x3a8d50(0xb6),_0x3d2684[_0x3a8d50(0xa7)]=_0x3a8d50(0xa7),_0x3d2684))(m||{}),o=(_0x146fd6=>(_0x146fd6['Normal']='Normal',_0x146fd6['Narrow']=_0x3a8d50(0xb4),_0x146fd6[_0x3a8d50(0xb2)]=_0x3a8d50(0xb2),_0x146fd6[_0x3a8d50(0x9c)]=_0x3a8d50(0x9c),_0x146fd6[_0x3a8d50(0x9b)]='Custom',_0x146fd6))(o||{});function _0x1037(_0x3e957a,_0xe17bf){_0x3e957a=_0x3e957a-0x9b;const _0x161977=_0x1619();let _0x103712=_0x161977[_0x3e957a];return _0x103712;}const g={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3a8d50(0xb4)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3a8d50(0xb2)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3a8d50(0x9c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x3a8d50(0x9b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x3a8d50(0xa3),n=_0x3a8d50(0xa5);function h(_0x48e9a7,_0x52db3b,_0x5bd204){const _0x304534=_0x3a8d50,_0x1bfc7b=_0x5bd204===i[_0x304534(0x9d)]?_0x48e9a7:_0x52db3b,_0x720cdf=_0x5bd204===i[_0x304534(0x9d)]?_0x52db3b:_0x48e9a7,_0x1bbede=_0x304534(0xc7)+n+_0x304534(0xac)+_0x1bfc7b+_0x304534(0xc4)+_0x720cdf+_0x304534(0xc2)+r+_0x304534(0xae)+r+_0x304534(0xbb)+n+_0x304534(0xbe)+_0x720cdf+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x1bfc7b+_0x304534(0xab),_0x224bda=document[_0x304534(0xa9)](_0x304534(0xaa));return _0x224bda['innerHTML']=_0x1bbede,_0x224bda[_0x304534(0xa4)]=_0x304534(0xa8),_0x224bda;}function _0x1619(){const _0x1c1fee=['Narrow','127586FRMObV','End','2017072uxxAqc','12830Vevcof','53885FFhBsy','createPrintStyle','\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.','defineProperty','toStringTag','\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','Landscape','FitPage','526773eMCHYy','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.','PRINT_CONTAINER_CLASS','px\x20','FitHeight','Start','\x0a\x20\x20\x20\x20.','Custom','None','Portrait','7600999ZYIwMJ','2yUiOSX','Module','PrintAlign','PrintDirection','printing-canvas-container','className','printing-canvas','204aLjGLl','Middle','offline-printing-css','createElement','style','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}','\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','3744KsmgoM',',\x20.','PrintScale','8bPCrNg','Origin','Wide','40083439opBIgJ'];_0x1619=function(){return _0x1c1fee;};return _0x1619();}exports['PRINT_CANVAS_CLASS']=n,exports[_0x3a8d50(0xc3)]=r,exports['PaperMarginMap']=g,exports[_0x3a8d50(0xa1)]=m,exports[_0x3a8d50(0xa2)]=i,exports['PrintPaperMargin']=o,exports[_0x3a8d50(0xaf)]=l,exports[_0x3a8d50(0xba)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x12475a=_0x2902;(function(_0x7792ef,_0x557089){const _0x141e28=_0x2902,_0xc0643d=_0x7792ef();while(!![]){try{const _0x443c8c=-parseInt(_0x141e28(0x1e4))/0x1+parseInt(_0x141e28(0x1f5))/0x2*(-parseInt(_0x141e28(0x1de))/0x3)+-parseInt(_0x141e28(0x1e8))/0x4+-parseInt(_0x141e28(0x1ee))/0x5*(parseInt(_0x141e28(0x1ed))/0x6)+parseInt(_0x141e28(0x1df))/0x7+-parseInt(_0x141e28(0x1e3))/0x8*(-parseInt(_0x141e28(0x1e5))/0x9)+parseInt(_0x141e28(0x1f4))/0xa*(parseInt(_0x141e28(0x1f8))/0xb);if(_0x443c8c===_0x557089)break;else _0xc0643d['push'](_0xc0643d['shift']());}catch(_0x398456){_0xc0643d['push'](_0xc0643d['shift']());}}}(_0x1704,0xe1218));function _0x2902(_0x41fa3e,_0x39fdf7){_0x41fa3e=_0x41fa3e-0x1da;const _0x1704b8=_0x1704();let _0x290294=_0x1704b8[_0x41fa3e];return _0x290294;}var e=(_0x1da776=>(_0x1da776[_0x12475a(0x1fc)]=_0x12475a(0x1fc),_0x1da776[_0x12475a(0x1dd)]=_0x12475a(0x1dd),_0x1da776))(e||{}),h=(_0x2b5855=>(_0x2b5855['Origin']=_0x12475a(0x1e2),_0x2b5855['FitWidth']=_0x12475a(0x1eb),_0x2b5855[_0x12475a(0x1ec)]=_0x12475a(0x1ec),_0x2b5855['FitPage']=_0x12475a(0x1e9),_0x2b5855[_0x12475a(0x1e1)]=_0x12475a(0x1e1),_0x2b5855))(h||{}),l=(_0x5c8c22=>(_0x5c8c22['Start']=_0x12475a(0x1e0),_0x5c8c22[_0x12475a(0x1f6)]=_0x12475a(0x1f6),_0x5c8c22[_0x12475a(0x1f1)]=_0x12475a(0x1f1),_0x5c8c22))(l||{}),o=(_0x382553=>(_0x382553['Normal']=_0x12475a(0x1fb),_0x382553[_0x12475a(0x1ea)]='Narrow',_0x382553[_0x12475a(0x1dc)]=_0x12475a(0x1dc),_0x382553[_0x12475a(0x1f0)]='None',_0x382553['Custom']='Custom',_0x382553))(o||{});const c={[o[_0x12475a(0x1fb)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x12475a(0x1ea)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x12475a(0x1dc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x12475a(0x1e1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x12475a(0x1ef);function g(_0x50ff04,_0x1970ad,_0x436f43){const _0x512021=_0x12475a,_0x44f610=_0x436f43===e['Portrait']?_0x50ff04:_0x1970ad,_0x248a2a=_0x436f43===e[_0x512021(0x1fc)]?_0x1970ad:_0x50ff04,_0xe7454e=_0x512021(0x1db)+d+'\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'+_0x44f610+'px\x20'+_0x248a2a+_0x512021(0x1da)+p+_0x512021(0x1fa)+p+_0x512021(0x1f2)+d+_0x512021(0x1e6)+_0x248a2a+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x44f610+_0x512021(0x1e7),_0x2a37df=document['createElement'](_0x512021(0x1f3));return _0x2a37df['innerHTML']=_0xe7454e,_0x2a37df[_0x512021(0x1f7)]=_0x512021(0x1f9),_0x2a37df;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};function _0x1704(){const _0x48072b=['Landscape','9dMDMMQ','968072flPcYf','Start','Custom','Origin','8rbtVDq','1160460nFyyBt','7421697RGTGHY','\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\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','560784pvYRUx','FitPage','Narrow','FitWidth','FitHeight','12756eYIMnU','1550yDNdbe','printing-canvas','None','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.','style','45940GbRLTf','1183102VXYmWa','End','className','8844sUxVOM','offline-printing-css',',\x20.','Normal','Portrait','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.','\x0a\x20\x20\x20\x20.','Wide'];_0x1704=function(){return _0x48072b;};return _0x1704();}
1
+ const _0xe32073=_0x31f8;(function(_0x4d07f0,_0x425c1a){const _0x3ab023=_0x31f8,_0x4481d9=_0x4d07f0();while(!![]){try{const _0x3b3735=parseInt(_0x3ab023(0xa5))/0x1*(parseInt(_0x3ab023(0x96))/0x2)+-parseInt(_0x3ab023(0x9a))/0x3*(-parseInt(_0x3ab023(0xb7))/0x4)+parseInt(_0x3ab023(0x9e))/0x5+-parseInt(_0x3ab023(0xb2))/0x6+parseInt(_0x3ab023(0xa9))/0x7*(-parseInt(_0x3ab023(0x99))/0x8)+parseInt(_0x3ab023(0x9b))/0x9*(parseInt(_0x3ab023(0xb9))/0xa)+-parseInt(_0x3ab023(0xb8))/0xb*(-parseInt(_0x3ab023(0xb1))/0xc);if(_0x3b3735===_0x425c1a)break;else _0x4481d9['push'](_0x4481d9['shift']());}catch(_0x4bb66d){_0x4481d9['push'](_0x4481d9['shift']());}}}(_0x1992,0xc48db));var e=(_0x2b13e4=>(_0x2b13e4['Portrait']='Portrait',_0x2b13e4[_0xe32073(0xa8)]=_0xe32073(0xa8),_0x2b13e4))(e||{}),h=(_0x29c3ad=>(_0x29c3ad[_0xe32073(0x9d)]='Origin',_0x29c3ad[_0xe32073(0xb0)]=_0xe32073(0xb0),_0x29c3ad[_0xe32073(0x95)]=_0xe32073(0x95),_0x29c3ad[_0xe32073(0xa0)]=_0xe32073(0xa0),_0x29c3ad[_0xe32073(0xa1)]='Custom',_0x29c3ad))(h||{}),l=(_0x2f0f26=>(_0x2f0f26[_0xe32073(0xa2)]='Start',_0x2f0f26[_0xe32073(0xaf)]=_0xe32073(0xaf),_0x2f0f26[_0xe32073(0x9c)]=_0xe32073(0x9c),_0x2f0f26))(l||{}),o=(_0x16e781=>(_0x16e781[_0xe32073(0xaa)]='Normal',_0x16e781[_0xe32073(0xad)]='Narrow',_0x16e781[_0xe32073(0xa6)]=_0xe32073(0xa6),_0x16e781[_0xe32073(0x94)]=_0xe32073(0x94),_0x16e781[_0xe32073(0xa1)]=_0xe32073(0xa1),_0x16e781))(o||{});function _0x1992(){const _0x56c2ef=['className','795192QAnZts','3ORbmMq','18ZylRQV','Middle','Origin','844835ugaNgn','createElement','FitPage','Custom','Start','innerHTML',',\x20.','3ujXEbS','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','63WXcHBJ','Normal','Portrait','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.','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','End','FitWidth','12JmhqvO','4970826FrkjwQ','style','\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','\x0a\x20\x20\x20\x20.','\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.','5732072FvfRhp','3907849gFgOBK','2849270yxndVE','None','FitHeight','698szzgdQ','printing-canvas-container'];_0x1992=function(){return _0x56c2ef;};return _0x1992();}const c={[o[_0xe32073(0xaa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0xe32073(0xad)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0xe32073(0xa6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0xe32073(0xa1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0xe32073(0x97),d='printing-canvas';function _0x31f8(_0x5b175f,_0x264e49){_0x5b175f=_0x5b175f-0x94;const _0x199228=_0x1992();let _0x31f81d=_0x199228[_0x5b175f];return _0x31f81d;}function g(_0x6545aa,_0x3505fd,_0x5a9331){const _0x4ba9b1=_0xe32073,_0xf1f77d=_0x5a9331===e[_0x4ba9b1(0xab)]?_0x6545aa:_0x3505fd,_0x1f5685=_0x5a9331===e[_0x4ba9b1(0xab)]?_0x3505fd:_0x6545aa,_0x58984f=_0x4ba9b1(0xb5)+d+_0x4ba9b1(0xb4)+_0xf1f77d+'px\x20'+_0x1f5685+_0x4ba9b1(0xac)+p+_0x4ba9b1(0xa4)+p+_0x4ba9b1(0xb6)+d+_0x4ba9b1(0xae)+_0x1f5685+_0x4ba9b1(0xa7)+_0xf1f77d+'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}',_0x5a1b1c=document[_0x4ba9b1(0x9f)](_0x4ba9b1(0xb3));return _0x5a1b1c[_0x4ba9b1(0xa3)]=_0x58984f,_0x5a1b1c[_0x4ba9b1(0x98)]='offline-printing-css',_0x5a1b1c;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x12475a=_0x2902;(function(_0x7792ef,_0x557089){const _0x141e28=_0x2902,_0xc0643d=_0x7792ef();while(!![]){try{const _0x443c8c=-parseInt(_0x141e28(0x1e4))/0x1+parseInt(_0x141e28(0x1f5))/0x2*(-parseInt(_0x141e28(0x1de))/0x3)+-parseInt(_0x141e28(0x1e8))/0x4+-parseInt(_0x141e28(0x1ee))/0x5*(parseInt(_0x141e28(0x1ed))/0x6)+parseInt(_0x141e28(0x1df))/0x7+-parseInt(_0x141e28(0x1e3))/0x8*(-parseInt(_0x141e28(0x1e5))/0x9)+parseInt(_0x141e28(0x1f4))/0xa*(parseInt(_0x141e28(0x1f8))/0xb);if(_0x443c8c===_0x557089)break;else _0xc0643d['push'](_0xc0643d['shift']());}catch(_0x398456){_0xc0643d['push'](_0xc0643d['shift']());}}}(_0x1704,0xe1218));function _0x2902(_0x41fa3e,_0x39fdf7){_0x41fa3e=_0x41fa3e-0x1da;const _0x1704b8=_0x1704();let _0x290294=_0x1704b8[_0x41fa3e];return _0x290294;}var e=(_0x1da776=>(_0x1da776[_0x12475a(0x1fc)]=_0x12475a(0x1fc),_0x1da776[_0x12475a(0x1dd)]=_0x12475a(0x1dd),_0x1da776))(e||{}),h=(_0x2b5855=>(_0x2b5855['Origin']=_0x12475a(0x1e2),_0x2b5855['FitWidth']=_0x12475a(0x1eb),_0x2b5855[_0x12475a(0x1ec)]=_0x12475a(0x1ec),_0x2b5855['FitPage']=_0x12475a(0x1e9),_0x2b5855[_0x12475a(0x1e1)]=_0x12475a(0x1e1),_0x2b5855))(h||{}),l=(_0x5c8c22=>(_0x5c8c22['Start']=_0x12475a(0x1e0),_0x5c8c22[_0x12475a(0x1f6)]=_0x12475a(0x1f6),_0x5c8c22[_0x12475a(0x1f1)]=_0x12475a(0x1f1),_0x5c8c22))(l||{}),o=(_0x382553=>(_0x382553['Normal']=_0x12475a(0x1fb),_0x382553[_0x12475a(0x1ea)]='Narrow',_0x382553[_0x12475a(0x1dc)]=_0x12475a(0x1dc),_0x382553[_0x12475a(0x1f0)]='None',_0x382553['Custom']='Custom',_0x382553))(o||{});const c={[o[_0x12475a(0x1fb)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x12475a(0x1ea)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x12475a(0x1dc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x12475a(0x1e1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x12475a(0x1ef);function g(_0x50ff04,_0x1970ad,_0x436f43){const _0x512021=_0x12475a,_0x44f610=_0x436f43===e['Portrait']?_0x50ff04:_0x1970ad,_0x248a2a=_0x436f43===e[_0x512021(0x1fc)]?_0x1970ad:_0x50ff04,_0xe7454e=_0x512021(0x1db)+d+'\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'+_0x44f610+'px\x20'+_0x248a2a+_0x512021(0x1da)+p+_0x512021(0x1fa)+p+_0x512021(0x1f2)+d+_0x512021(0x1e6)+_0x248a2a+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x44f610+_0x512021(0x1e7),_0x2a37df=document['createElement'](_0x512021(0x1f3));return _0x2a37df['innerHTML']=_0xe7454e,_0x2a37df[_0x512021(0x1f7)]=_0x512021(0x1f9),_0x2a37df;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};function _0x1704(){const _0x48072b=['Landscape','9dMDMMQ','968072flPcYf','Start','Custom','Origin','8rbtVDq','1160460nFyyBt','7421697RGTGHY','\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\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','560784pvYRUx','FitPage','Narrow','FitWidth','FitHeight','12756eYIMnU','1550yDNdbe','printing-canvas','None','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.','style','45940GbRLTf','1183102VXYmWa','End','className','8844sUxVOM','offline-printing-css',',\x20.','Normal','Portrait','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.','\x0a\x20\x20\x20\x20.','Wide'];_0x1704=function(){return _0x48072b;};return _0x1704();}
1
+ const _0xe32073=_0x31f8;(function(_0x4d07f0,_0x425c1a){const _0x3ab023=_0x31f8,_0x4481d9=_0x4d07f0();while(!![]){try{const _0x3b3735=parseInt(_0x3ab023(0xa5))/0x1*(parseInt(_0x3ab023(0x96))/0x2)+-parseInt(_0x3ab023(0x9a))/0x3*(-parseInt(_0x3ab023(0xb7))/0x4)+parseInt(_0x3ab023(0x9e))/0x5+-parseInt(_0x3ab023(0xb2))/0x6+parseInt(_0x3ab023(0xa9))/0x7*(-parseInt(_0x3ab023(0x99))/0x8)+parseInt(_0x3ab023(0x9b))/0x9*(parseInt(_0x3ab023(0xb9))/0xa)+-parseInt(_0x3ab023(0xb8))/0xb*(-parseInt(_0x3ab023(0xb1))/0xc);if(_0x3b3735===_0x425c1a)break;else _0x4481d9['push'](_0x4481d9['shift']());}catch(_0x4bb66d){_0x4481d9['push'](_0x4481d9['shift']());}}}(_0x1992,0xc48db));var e=(_0x2b13e4=>(_0x2b13e4['Portrait']='Portrait',_0x2b13e4[_0xe32073(0xa8)]=_0xe32073(0xa8),_0x2b13e4))(e||{}),h=(_0x29c3ad=>(_0x29c3ad[_0xe32073(0x9d)]='Origin',_0x29c3ad[_0xe32073(0xb0)]=_0xe32073(0xb0),_0x29c3ad[_0xe32073(0x95)]=_0xe32073(0x95),_0x29c3ad[_0xe32073(0xa0)]=_0xe32073(0xa0),_0x29c3ad[_0xe32073(0xa1)]='Custom',_0x29c3ad))(h||{}),l=(_0x2f0f26=>(_0x2f0f26[_0xe32073(0xa2)]='Start',_0x2f0f26[_0xe32073(0xaf)]=_0xe32073(0xaf),_0x2f0f26[_0xe32073(0x9c)]=_0xe32073(0x9c),_0x2f0f26))(l||{}),o=(_0x16e781=>(_0x16e781[_0xe32073(0xaa)]='Normal',_0x16e781[_0xe32073(0xad)]='Narrow',_0x16e781[_0xe32073(0xa6)]=_0xe32073(0xa6),_0x16e781[_0xe32073(0x94)]=_0xe32073(0x94),_0x16e781[_0xe32073(0xa1)]=_0xe32073(0xa1),_0x16e781))(o||{});function _0x1992(){const _0x56c2ef=['className','795192QAnZts','3ORbmMq','18ZylRQV','Middle','Origin','844835ugaNgn','createElement','FitPage','Custom','Start','innerHTML',',\x20.','3ujXEbS','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','63WXcHBJ','Normal','Portrait','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.','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','End','FitWidth','12JmhqvO','4970826FrkjwQ','style','\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','\x0a\x20\x20\x20\x20.','\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.','5732072FvfRhp','3907849gFgOBK','2849270yxndVE','None','FitHeight','698szzgdQ','printing-canvas-container'];_0x1992=function(){return _0x56c2ef;};return _0x1992();}const c={[o[_0xe32073(0xaa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0xe32073(0xad)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0xe32073(0xa6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0xe32073(0xa1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0xe32073(0x97),d='printing-canvas';function _0x31f8(_0x5b175f,_0x264e49){_0x5b175f=_0x5b175f-0x94;const _0x199228=_0x1992();let _0x31f81d=_0x199228[_0x5b175f];return _0x31f81d;}function g(_0x6545aa,_0x3505fd,_0x5a9331){const _0x4ba9b1=_0xe32073,_0xf1f77d=_0x5a9331===e[_0x4ba9b1(0xab)]?_0x6545aa:_0x3505fd,_0x1f5685=_0x5a9331===e[_0x4ba9b1(0xab)]?_0x3505fd:_0x6545aa,_0x58984f=_0x4ba9b1(0xb5)+d+_0x4ba9b1(0xb4)+_0xf1f77d+'px\x20'+_0x1f5685+_0x4ba9b1(0xac)+p+_0x4ba9b1(0xa4)+p+_0x4ba9b1(0xb6)+d+_0x4ba9b1(0xae)+_0x1f5685+_0x4ba9b1(0xa7)+_0xf1f77d+'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}',_0x5a1b1c=document[_0x4ba9b1(0x9f)](_0x4ba9b1(0xb3));return _0x5a1b1c[_0x4ba9b1(0xa3)]=_0x58984f,_0x5a1b1c[_0x4ba9b1(0x98)]='offline-printing-css',_0x5a1b1c;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2370(_0x27a0e1,_0x4baee0){_0x27a0e1=_0x27a0e1-0x1df;const _0x48fbc1=_0x48fb();let _0x237099=_0x48fbc1[_0x27a0e1];return _0x237099;}(function(_0x181352,_0x457854){const _0x2aa57d=_0x2370,_0x4ca80a=_0x181352();while(!![]){try{const _0x9e7a5c=parseInt(_0x2aa57d(0x1f7))/0x1*(parseInt(_0x2aa57d(0x1ee))/0x2)+-parseInt(_0x2aa57d(0x1eb))/0x3*(parseInt(_0x2aa57d(0x1f9))/0x4)+-parseInt(_0x2aa57d(0x1e9))/0x5+-parseInt(_0x2aa57d(0x1fb))/0x6+-parseInt(_0x2aa57d(0x1fe))/0x7*(-parseInt(_0x2aa57d(0x1f1))/0x8)+-parseInt(_0x2aa57d(0x205))/0x9+parseInt(_0x2aa57d(0x206))/0xa;if(_0x9e7a5c===_0x457854)break;else _0x4ca80a['push'](_0x4ca80a['shift']());}catch(_0x34372a){_0x4ca80a['push'](_0x4ca80a['shift']());}}}(_0x48fb,0x249e0),function(_0x2bb1d1,_0x31dc76){const _0x24fccf=_0x2370;typeof exports==_0x24fccf(0x1f2)&&typeof module<'u'?_0x31dc76(exports):typeof define==_0x24fccf(0x1fc)&&define[_0x24fccf(0x1ea)]?define([_0x24fccf(0x1e4)],_0x31dc76):(_0x2bb1d1=typeof globalThis<'u'?globalThis:_0x2bb1d1||self,_0x31dc76(_0x2bb1d1[_0x24fccf(0x1fa)]={}));}(this,function(_0x1aafde){'use strict';const _0x214067=_0x2370;var _0x5e86d6=(_0x30ff78=>(_0x30ff78[_0x214067(0x207)]=_0x214067(0x207),_0x30ff78[_0x214067(0x1f8)]=_0x214067(0x1f8),_0x30ff78))(_0x5e86d6||{}),_0x36af8d=(_0x524cb8=>(_0x524cb8[_0x214067(0x209)]='Origin',_0x524cb8[_0x214067(0x1ef)]=_0x214067(0x1ef),_0x524cb8['FitHeight']=_0x214067(0x1ff),_0x524cb8[_0x214067(0x1e8)]=_0x214067(0x1e8),_0x524cb8[_0x214067(0x1e7)]=_0x214067(0x1e7),_0x524cb8))(_0x36af8d||{}),_0x1b8033=(_0x36005a=>(_0x36005a[_0x214067(0x208)]=_0x214067(0x208),_0x36005a[_0x214067(0x1e3)]=_0x214067(0x1e3),_0x36005a[_0x214067(0x20e)]=_0x214067(0x20e),_0x36005a))(_0x1b8033||{}),_0x36acfa=(_0x281671=>(_0x281671['Normal']=_0x214067(0x1ec),_0x281671['Narrow']=_0x214067(0x201),_0x281671[_0x214067(0x1e1)]=_0x214067(0x1e1),_0x281671[_0x214067(0x20c)]='None',_0x281671[_0x214067(0x1e7)]=_0x214067(0x1e7),_0x281671))(_0x36acfa||{});const _0x59d223={[_0x36acfa[_0x214067(0x1ec)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x36acfa[_0x214067(0x201)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x36acfa[_0x214067(0x1e1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x36acfa[_0x214067(0x20c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x36acfa[_0x214067(0x1e7)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x103796='printing-canvas-container',_0x5ebcea=_0x214067(0x20a);function _0x72e93f(_0x2823b5,_0x487ce5,_0x2d31a4){const _0x59d4f5=_0x214067,_0x16415b=_0x2d31a4===_0x5e86d6[_0x59d4f5(0x207)]?_0x2823b5:_0x487ce5,_0x4e779e=_0x2d31a4===_0x5e86d6['Portrait']?_0x487ce5:_0x2823b5,_0x11ae9b=_0x59d4f5(0x1f3)+_0x5ebcea+'\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'+_0x16415b+_0x59d4f5(0x202)+_0x4e779e+_0x59d4f5(0x1e0)+_0x103796+_0x59d4f5(0x1f0)+_0x103796+_0x59d4f5(0x1e5)+_0x5ebcea+_0x59d4f5(0x1fd)+_0x4e779e+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x16415b+_0x59d4f5(0x20b),_0x304acd=document[_0x59d4f5(0x200)](_0x59d4f5(0x1e6));return _0x304acd['innerHTML']=_0x11ae9b,_0x304acd[_0x59d4f5(0x1f5)]=_0x59d4f5(0x20f),_0x304acd;}_0x1aafde['PRINT_CANVAS_CLASS']=_0x5ebcea,_0x1aafde[_0x214067(0x1f4)]=_0x103796,_0x1aafde[_0x214067(0x203)]=_0x59d223,_0x1aafde[_0x214067(0x1df)]=_0x1b8033,_0x1aafde[_0x214067(0x1ed)]=_0x5e86d6,_0x1aafde[_0x214067(0x1f6)]=_0x36acfa,_0x1aafde['PrintScale']=_0x36af8d,_0x1aafde[_0x214067(0x20d)]=_0x72e93f,Object['defineProperty'](_0x1aafde,Symbol[_0x214067(0x204)],{'value':_0x214067(0x1e2)});}));function _0x48fb(){const _0x3b6226=['Wide','Module','End','exports','\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.','style','Custom','FitPage','122065drOvxu','amd','3cFRNfA','Normal','PrintDirection','262342FtmUNg','FitWidth',',\x20.','80QCUjWL','object','\x0a\x20\x20\x20\x20.','PRINT_CONTAINER_CLASS','className','PrintPaperMargin','1huTSEt','Landscape','935516WTkpex','UniverProPrint','397734LZtloj','function','\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','287tGPjGD','FitHeight','createElement','Narrow','px\x20','PaperMarginMap','toStringTag','968571XEklvZ','4506030ZazVMk','Portrait','Start','Origin','printing-canvas','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}','None','createPrintStyle','Middle','offline-printing-css','PrintAlign','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.'];_0x48fb=function(){return _0x3b6226;};return _0x48fb();}
1
+ function _0x5bb1(){const _0x1b440e=['PaperMarginMap','px\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}','Middle','UniverProPrint','End',',\x20.','1483048FAixvI','3vvmNfX','931fbNnug','innerHTML','181787ksUzZh','exports','createElement','PrintDirection','object','4PFRXJo','Custom','toStringTag','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','2257365zmnHkF','2755960bWLIKa','\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','5433111inINfe','Landscape','PRINT_CANVAS_CLASS','Origin','Module','PrintScale','offline-printing-css','Wide','None','Narrow','Portrait','\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','Normal','Start','function','1401450PweynO','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.','className','FitWidth','7482veAhCT','PRINT_CONTAINER_CLASS'];_0x5bb1=function(){return _0x1b440e;};return _0x5bb1();}function _0x5654(_0x225ba7,_0x293e21){_0x225ba7=_0x225ba7-0x102;const _0x5bb1d4=_0x5bb1();let _0x5654a5=_0x5bb1d4[_0x225ba7];return _0x5654a5;}(function(_0x533fc9,_0x432085){const _0x129946=_0x5654,_0x4c3fed=_0x533fc9();while(!![]){try{const _0x3b34e0=-parseInt(_0x129946(0x118))/0x1*(-parseInt(_0x129946(0x11d))/0x2)+parseInt(_0x129946(0x115))/0x3*(parseInt(_0x129946(0x114))/0x4)+-parseInt(_0x129946(0x122))/0x5+parseInt(_0x129946(0x10b))/0x6*(parseInt(_0x129946(0x116))/0x7)+parseInt(_0x129946(0x123))/0x8+-parseInt(_0x129946(0x125))/0x9+parseInt(_0x129946(0x107))/0xa;if(_0x3b34e0===_0x432085)break;else _0x4c3fed['push'](_0x4c3fed['shift']());}catch(_0x577355){_0x4c3fed['push'](_0x4c3fed['shift']());}}}(_0x5bb1,0x507cb),function(_0x2363a4,_0x39c1ba){const _0x1347c5=_0x5654;typeof exports==_0x1347c5(0x11c)&&typeof module<'u'?_0x39c1ba(exports):typeof define==_0x1347c5(0x106)&&define['amd']?define([_0x1347c5(0x119)],_0x39c1ba):(_0x2363a4=typeof globalThis<'u'?globalThis:_0x2363a4||self,_0x39c1ba(_0x2363a4[_0x1347c5(0x111)]={}));}(this,function(_0x2220d9){'use strict';const _0x45dcff=_0x5654;var _0x497134=(_0x1cdf44=>(_0x1cdf44[_0x45dcff(0x12f)]=_0x45dcff(0x12f),_0x1cdf44[_0x45dcff(0x126)]=_0x45dcff(0x126),_0x1cdf44))(_0x497134||{}),_0x5cbd01=(_0x3ad0f7=>(_0x3ad0f7[_0x45dcff(0x128)]='Origin',_0x3ad0f7[_0x45dcff(0x10a)]=_0x45dcff(0x10a),_0x3ad0f7['FitHeight']=_0x45dcff(0x103),_0x3ad0f7[_0x45dcff(0x120)]=_0x45dcff(0x120),_0x3ad0f7['Custom']=_0x45dcff(0x11e),_0x3ad0f7))(_0x5cbd01||{}),_0x94b2df=(_0x5112fc=>(_0x5112fc[_0x45dcff(0x105)]=_0x45dcff(0x105),_0x5112fc[_0x45dcff(0x112)]=_0x45dcff(0x112),_0x5112fc[_0x45dcff(0x110)]=_0x45dcff(0x110),_0x5112fc))(_0x94b2df||{}),_0x23c3bf=(_0xfef29b=>(_0xfef29b[_0x45dcff(0x104)]=_0x45dcff(0x104),_0xfef29b[_0x45dcff(0x12e)]=_0x45dcff(0x12e),_0xfef29b['Wide']=_0x45dcff(0x12c),_0xfef29b[_0x45dcff(0x12d)]=_0x45dcff(0x12d),_0xfef29b[_0x45dcff(0x11e)]=_0x45dcff(0x11e),_0xfef29b))(_0x23c3bf||{});const _0x33db9c={[_0x23c3bf[_0x45dcff(0x104)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x23c3bf[_0x45dcff(0x12e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x23c3bf['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x23c3bf['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x23c3bf[_0x45dcff(0x11e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1da9c3='printing-canvas-container',_0x515642='printing-canvas';function _0x15633d(_0x3b245f,_0x4a0e97,_0x515e2f){const _0x3b5e77=_0x45dcff,_0x5718c0=_0x515e2f===_0x497134['Portrait']?_0x3b245f:_0x4a0e97,_0x526204=_0x515e2f===_0x497134[_0x3b5e77(0x12f)]?_0x4a0e97:_0x3b245f,_0x5cfec9='\x0a\x20\x20\x20\x20.'+_0x515642+_0x3b5e77(0x121)+_0x5718c0+_0x3b5e77(0x10e)+_0x526204+_0x3b5e77(0x108)+_0x1da9c3+_0x3b5e77(0x113)+_0x1da9c3+_0x3b5e77(0x102)+_0x515642+_0x3b5e77(0x124)+_0x526204+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5718c0+_0x3b5e77(0x10f),_0x17b81c=document[_0x3b5e77(0x11a)]('style');return _0x17b81c[_0x3b5e77(0x117)]=_0x5cfec9,_0x17b81c[_0x3b5e77(0x109)]=_0x3b5e77(0x12b),_0x17b81c;}_0x2220d9[_0x45dcff(0x127)]=_0x515642,_0x2220d9[_0x45dcff(0x10c)]=_0x1da9c3,_0x2220d9[_0x45dcff(0x10d)]=_0x33db9c,_0x2220d9['PrintAlign']=_0x94b2df,_0x2220d9[_0x45dcff(0x11b)]=_0x497134,_0x2220d9['PrintPaperMargin']=_0x23c3bf,_0x2220d9[_0x45dcff(0x12a)]=_0x5cbd01,_0x2220d9['createPrintStyle']=_0x15633d,Object['defineProperty'](_0x2220d9,Symbol[_0x45dcff(0x11f)],{'value':_0x45dcff(0x129)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
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.9.3",
46
46
  "vite": "^7.3.1",
47
47
  "vitest": "^4.0.16",
48
- "@univerjs-infra/shared": "0.15.1"
48
+ "@univerjs-infra/shared": "0.15.2"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",