@univerjs-pro/print 0.15.5 → 0.16.0-insiders.20260302-b09f1e4

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 _0x5f334c=_0x1115;(function(_0x15aad4,_0x560fea){const _0x6ba5ed=_0x1115,_0x472dcc=_0x15aad4();while(!![]){try{const _0x23ee5d=parseInt(_0x6ba5ed(0xe9))/0x1*(-parseInt(_0x6ba5ed(0xe7))/0x2)+parseInt(_0x6ba5ed(0xd9))/0x3+parseInt(_0x6ba5ed(0xf2))/0x4*(-parseInt(_0x6ba5ed(0xf0))/0x5)+-parseInt(_0x6ba5ed(0xdf))/0x6+-parseInt(_0x6ba5ed(0xd7))/0x7*(-parseInt(_0x6ba5ed(0xf7))/0x8)+parseInt(_0x6ba5ed(0xda))/0x9*(-parseInt(_0x6ba5ed(0xf3))/0xa)+parseInt(_0x6ba5ed(0xe4))/0xb;if(_0x23ee5d===_0x560fea)break;else _0x472dcc['push'](_0x472dcc['shift']());}catch(_0x564f95){_0x472dcc['push'](_0x472dcc['shift']());}}}(_0x3804,0xccaf8));function _0x1115(_0xc84c5d,_0xce2305){_0xc84c5d=_0xc84c5d-0xd2;const _0x38047b=_0x3804();let _0x111526=_0x38047b[_0xc84c5d];return _0x111526;}Object['defineProperty'](exports,Symbol[_0x5f334c(0xe1)],{'value':_0x5f334c(0xe2)});function _0x3804(){const _0x26f5f2=['Middle','createElement','FitWidth','664YoFFwB','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.','innerHTML',',\x20.','Landscape','printing-canvas','Portrait','PaperMarginMap','81011ECwxcZ','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1683789UWnTDt','517689JKBxCV','None','offline-printing-css','Origin','PRINT_CONTAINER_CLASS','235932fyvSQo','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','Module','FitHeight','27882701gcCFCc','Narrow','printing-canvas-container','9314FQHkoi','FitPage','245eyIdmi','Normal','\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','Custom','Wide','PrintDirection','End','15sYHHWc','\x0a\x20\x20\x20\x20.','1183352MZkxuE','200aughKP'];_0x3804=function(){return _0x26f5f2;};return _0x3804();}var i=(_0xfc0651=>(_0xfc0651['Portrait']='Portrait',_0xfc0651[_0x5f334c(0xd3)]=_0x5f334c(0xd3),_0xfc0651))(i||{}),l=(_0x4626e4=>(_0x4626e4[_0x5f334c(0xdd)]='Origin',_0x4626e4[_0x5f334c(0xf6)]='FitWidth',_0x4626e4[_0x5f334c(0xe3)]=_0x5f334c(0xe3),_0x4626e4[_0x5f334c(0xe8)]='FitPage',_0x4626e4[_0x5f334c(0xec)]=_0x5f334c(0xec),_0x4626e4))(l||{}),m=(_0x2c5be6=>(_0x2c5be6['Start']='Start',_0x2c5be6[_0x5f334c(0xef)]='End',_0x2c5be6[_0x5f334c(0xf4)]=_0x5f334c(0xf4),_0x2c5be6))(m||{}),o=(_0x1d8c18=>(_0x1d8c18['Normal']=_0x5f334c(0xea),_0x1d8c18[_0x5f334c(0xe5)]=_0x5f334c(0xe5),_0x1d8c18[_0x5f334c(0xed)]=_0x5f334c(0xed),_0x1d8c18[_0x5f334c(0xdb)]=_0x5f334c(0xdb),_0x1d8c18[_0x5f334c(0xec)]=_0x5f334c(0xec),_0x1d8c18))(o||{});const g={[o[_0x5f334c(0xea)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5f334c(0xe5)]]:{'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},[o[_0x5f334c(0xec)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x5f334c(0xe6),n=_0x5f334c(0xd4);function h(_0xe57389,_0x2b23ed,_0x4de728){const _0x5ddfcc=_0x5f334c,_0x7d4d9c=_0x4de728===i[_0x5ddfcc(0xd5)]?_0xe57389:_0x2b23ed,_0x25e81e=_0x4de728===i[_0x5ddfcc(0xd5)]?_0x2b23ed:_0xe57389,_0x3ba7d9=_0x5ddfcc(0xf1)+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'+_0x7d4d9c+'px\x20'+_0x25e81e+_0x5ddfcc(0xf8)+r+_0x5ddfcc(0xd2)+r+'\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.'+n+_0x5ddfcc(0xeb)+_0x25e81e+_0x5ddfcc(0xd8)+_0x7d4d9c+_0x5ddfcc(0xe0),_0x2772d2=document[_0x5ddfcc(0xf5)]('style');return _0x2772d2[_0x5ddfcc(0xf9)]=_0x3ba7d9,_0x2772d2['className']=_0x5ddfcc(0xdc),_0x2772d2;}exports['PRINT_CANVAS_CLASS']=n,exports[_0x5f334c(0xde)]=r,exports[_0x5f334c(0xd6)]=g,exports['PrintAlign']=m,exports[_0x5f334c(0xee)]=i,exports['PrintPaperMargin']=o,exports['PrintScale']=l,exports['createPrintStyle']=h;
1
+ 'use strict';const _0x4f14b4=_0x7f23;(function(_0x2e0bd3,_0x80c8ab){const _0x10e303=_0x7f23,_0x58e511=_0x2e0bd3();while(!![]){try{const _0x39b17e=-parseInt(_0x10e303(0x1b7))/0x1+parseInt(_0x10e303(0x1b1))/0x2*(parseInt(_0x10e303(0x197))/0x3)+-parseInt(_0x10e303(0x1ac))/0x4+parseInt(_0x10e303(0x1a0))/0x5*(-parseInt(_0x10e303(0x194))/0x6)+-parseInt(_0x10e303(0x1b0))/0x7*(parseInt(_0x10e303(0x1b8))/0x8)+-parseInt(_0x10e303(0x19d))/0x9+-parseInt(_0x10e303(0x1bb))/0xa*(-parseInt(_0x10e303(0x1a4))/0xb);if(_0x39b17e===_0x80c8ab)break;else _0x58e511['push'](_0x58e511['shift']());}catch(_0x5efd25){_0x58e511['push'](_0x58e511['shift']());}}}(_0xf533,0x710d6));function _0xf533(){const _0x151386=['Portrait','430bVJDJo','className','\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.','Landscape','74371qsNrrn','\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','printing-canvas','PrintAlign','Middle','Custom','None','\x0a\x20\x20\x20\x20.','2305432OahQEu','PrintPaperMargin','\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','FitPage','7fMMyPo','9094LyLKXD','Start','PrintDirection','Normal','printing-canvas-container','Module','569335jUuSVR','5517752zUVjeq','Narrow','FitHeight','3930KFpQtd','createPrintStyle',',\x20.','End','PRINT_CANVAS_CLASS','innerHTML','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','55974YlhTsy','FitWidth','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.','489ilUYdq','Origin','defineProperty','PrintScale','toStringTag','Wide','2677194NZJEFi','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}'];_0xf533=function(){return _0x151386;};return _0xf533();}Object[_0x4f14b4(0x199)](exports,Symbol[_0x4f14b4(0x19b)],{'value':_0x4f14b4(0x1b6)});var i=(_0x5c389e=>(_0x5c389e[_0x4f14b4(0x19f)]=_0x4f14b4(0x19f),_0x5c389e[_0x4f14b4(0x1a3)]=_0x4f14b4(0x1a3),_0x5c389e))(i||{}),l=(_0x131c1e=>(_0x131c1e['Origin']=_0x4f14b4(0x198),_0x131c1e[_0x4f14b4(0x195)]=_0x4f14b4(0x195),_0x131c1e['FitHeight']=_0x4f14b4(0x1ba),_0x131c1e[_0x4f14b4(0x1af)]=_0x4f14b4(0x1af),_0x131c1e[_0x4f14b4(0x1a9)]=_0x4f14b4(0x1a9),_0x131c1e))(l||{}),m=(_0x55d987=>(_0x55d987['Start']=_0x4f14b4(0x1b2),_0x55d987[_0x4f14b4(0x1be)]=_0x4f14b4(0x1be),_0x55d987[_0x4f14b4(0x1a8)]='Middle',_0x55d987))(m||{}),o=(_0x1f0159=>(_0x1f0159[_0x4f14b4(0x1b4)]=_0x4f14b4(0x1b4),_0x1f0159['Narrow']=_0x4f14b4(0x1b9),_0x1f0159['Wide']=_0x4f14b4(0x19c),_0x1f0159[_0x4f14b4(0x1aa)]='None',_0x1f0159[_0x4f14b4(0x1a9)]=_0x4f14b4(0x1a9),_0x1f0159))(o||{});function _0x7f23(_0x2dca86,_0x5cc86d){_0x2dca86=_0x2dca86-0x194;const _0xf53346=_0xf533();let _0x7f23c7=_0xf53346[_0x2dca86];return _0x7f23c7;}const g={[o[_0x4f14b4(0x1b4)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4f14b4(0x19c)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x4f14b4(0x1a9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x4f14b4(0x1b5),n=_0x4f14b4(0x1a6);function h(_0x1208cd,_0x37b50f,_0x496a4e){const _0x53cf17=_0x4f14b4,_0x3a804f=_0x496a4e===i['Portrait']?_0x1208cd:_0x37b50f,_0x187187=_0x496a4e===i['Portrait']?_0x37b50f:_0x1208cd,_0x127666=_0x53cf17(0x1ab)+n+_0x53cf17(0x1ae)+_0x3a804f+'px\x20'+_0x187187+_0x53cf17(0x196)+r+_0x53cf17(0x1bd)+r+_0x53cf17(0x1a2)+n+_0x53cf17(0x1a5)+_0x187187+_0x53cf17(0x1c1)+_0x3a804f+_0x53cf17(0x19e),_0x354e40=document['createElement']('style');return _0x354e40[_0x53cf17(0x1c0)]=_0x127666,_0x354e40[_0x53cf17(0x1a1)]='offline-printing-css',_0x354e40;}exports[_0x4f14b4(0x1bf)]=n,exports['PRINT_CONTAINER_CLASS']=r,exports['PaperMarginMap']=g,exports[_0x4f14b4(0x1a7)]=m,exports[_0x4f14b4(0x1b3)]=i,exports[_0x4f14b4(0x1ad)]=o,exports[_0x4f14b4(0x19a)]=l,exports[_0x4f14b4(0x1bc)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x205860=_0x3004;(function(_0x35de9a,_0x4fcd34){const _0x34c0b3=_0x3004,_0xf36bf6=_0x35de9a();while(!![]){try{const _0x96388f=-parseInt(_0x34c0b3(0x137))/0x1+-parseInt(_0x34c0b3(0x140))/0x2*(-parseInt(_0x34c0b3(0x130))/0x3)+-parseInt(_0x34c0b3(0x12b))/0x4*(parseInt(_0x34c0b3(0x138))/0x5)+-parseInt(_0x34c0b3(0x128))/0x6*(-parseInt(_0x34c0b3(0x12a))/0x7)+-parseInt(_0x34c0b3(0x13d))/0x8*(-parseInt(_0x34c0b3(0x13a))/0x9)+-parseInt(_0x34c0b3(0x12e))/0xa*(parseInt(_0x34c0b3(0x132))/0xb)+parseInt(_0x34c0b3(0x131))/0xc;if(_0x96388f===_0x4fcd34)break;else _0xf36bf6['push'](_0xf36bf6['shift']());}catch(_0x20dc83){_0xf36bf6['push'](_0xf36bf6['shift']());}}}(_0x1c41,0x35942));var e=(_0x296267=>(_0x296267[_0x205860(0x12f)]=_0x205860(0x12f),_0x296267[_0x205860(0x13e)]=_0x205860(0x13e),_0x296267))(e||{}),h=(_0x4156fd=>(_0x4156fd[_0x205860(0x144)]=_0x205860(0x144),_0x4156fd['FitWidth']=_0x205860(0x148),_0x4156fd[_0x205860(0x139)]=_0x205860(0x139),_0x4156fd[_0x205860(0x133)]=_0x205860(0x133),_0x4156fd['Custom']='Custom',_0x4156fd))(h||{}),l=(_0x973671=>(_0x973671['Start']=_0x205860(0x134),_0x973671[_0x205860(0x146)]=_0x205860(0x146),_0x973671[_0x205860(0x145)]=_0x205860(0x145),_0x973671))(l||{}),o=(_0x5e69f8=>(_0x5e69f8[_0x205860(0x12d)]='Normal',_0x5e69f8[_0x205860(0x13b)]=_0x205860(0x13b),_0x5e69f8[_0x205860(0x147)]=_0x205860(0x147),_0x5e69f8['None']=_0x205860(0x143),_0x5e69f8[_0x205860(0x135)]='Custom',_0x5e69f8))(o||{});const c={[o[_0x205860(0x12d)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x205860(0x147)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x205860(0x143)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x205860(0x135)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x205860(0x127),d=_0x205860(0x136);function g(_0x36714a,_0x214c98,_0x49726e){const _0x4b01cc=_0x205860,_0x3e7e54=_0x49726e===e[_0x4b01cc(0x12f)]?_0x36714a:_0x214c98,_0x502dbd=_0x49726e===e[_0x4b01cc(0x12f)]?_0x214c98:_0x36714a,_0x4b28a1=_0x4b01cc(0x141)+d+_0x4b01cc(0x142)+_0x3e7e54+_0x4b01cc(0x129)+_0x502dbd+'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+',\x20.'+p+_0x4b01cc(0x126)+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'+_0x502dbd+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3e7e54+_0x4b01cc(0x13f),_0x537ffb=document[_0x4b01cc(0x12c)](_0x4b01cc(0x13c));return _0x537ffb['innerHTML']=_0x4b28a1,_0x537ffb['className']='offline-printing-css',_0x537ffb;}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 _0x3004(_0x3a2e49,_0x4f5abc){_0x3a2e49=_0x3a2e49-0x126;const _0x1c4143=_0x1c41();let _0x300450=_0x1c4143[_0x3a2e49];return _0x300450;}function _0x1c41(){const _0x1eb904=['Narrow','style','2072vQQuJE','Landscape','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}','10znhhCL','\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','None','Origin','Middle','End','Wide','FitWidth','\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.','printing-canvas-container','6XeVrQH','px\x20','1665265erDGHR','24132TIVZoF','createElement','Normal','20pxNSnT','Portrait','17133UwuQhK','2826396HaXMgm','151767JnQKhR','FitPage','Start','Custom','printing-canvas','337026qIhzVB','205wsXwAk','FitHeight','11448ZQXSwS'];_0x1c41=function(){return _0x1eb904;};return _0x1c41();}
1
+ const _0x2ec2ce=_0x13e3;(function(_0x1a50dc,_0x1d9ddb){const _0x3809a9=_0x13e3,_0x293529=_0x1a50dc();while(!![]){try{const _0x5c6354=-parseInt(_0x3809a9(0x110))/0x1+-parseInt(_0x3809a9(0x11d))/0x2*(-parseInt(_0x3809a9(0x10d))/0x3)+parseInt(_0x3809a9(0x120))/0x4+-parseInt(_0x3809a9(0x113))/0x5*(-parseInt(_0x3809a9(0x11e))/0x6)+-parseInt(_0x3809a9(0x108))/0x7+parseInt(_0x3809a9(0x127))/0x8*(-parseInt(_0x3809a9(0x116))/0x9)+-parseInt(_0x3809a9(0x128))/0xa*(-parseInt(_0x3809a9(0x126))/0xb);if(_0x5c6354===_0x1d9ddb)break;else _0x293529['push'](_0x293529['shift']());}catch(_0x171ca0){_0x293529['push'](_0x293529['shift']());}}}(_0x4028,0xdd72d));var e=(_0x1a5ad9=>(_0x1a5ad9['Portrait']=_0x2ec2ce(0x122),_0x1a5ad9[_0x2ec2ce(0x111)]=_0x2ec2ce(0x111),_0x1a5ad9))(e||{}),h=(_0xa0f202=>(_0xa0f202[_0x2ec2ce(0x124)]=_0x2ec2ce(0x124),_0xa0f202['FitWidth']='FitWidth',_0xa0f202[_0x2ec2ce(0x115)]=_0x2ec2ce(0x115),_0xa0f202[_0x2ec2ce(0x10c)]=_0x2ec2ce(0x10c),_0xa0f202[_0x2ec2ce(0x121)]='Custom',_0xa0f202))(h||{}),l=(_0x2de8d0=>(_0x2de8d0[_0x2ec2ce(0x114)]=_0x2ec2ce(0x114),_0x2de8d0[_0x2ec2ce(0x10e)]=_0x2ec2ce(0x10e),_0x2de8d0['Middle']=_0x2ec2ce(0x119),_0x2de8d0))(l||{}),o=(_0x576c67=>(_0x576c67[_0x2ec2ce(0x11b)]=_0x2ec2ce(0x11b),_0x576c67[_0x2ec2ce(0x129)]='Narrow',_0x576c67['Wide']='Wide',_0x576c67[_0x2ec2ce(0x125)]=_0x2ec2ce(0x125),_0x576c67[_0x2ec2ce(0x121)]=_0x2ec2ce(0x121),_0x576c67))(o||{});const c={[o[_0x2ec2ce(0x11b)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x2ec2ce(0x129)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x2ec2ce(0x125)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x2ec2ce(0x121)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x2ec2ce(0x10b),d=_0x2ec2ce(0x11f);function g(_0x2268da,_0x28cd0a,_0x240835){const _0x5fc50c=_0x2ec2ce,_0x20e639=_0x240835===e[_0x5fc50c(0x122)]?_0x2268da:_0x28cd0a,_0x401daa=_0x240835===e[_0x5fc50c(0x122)]?_0x28cd0a:_0x2268da,_0x578c6e=_0x5fc50c(0x112)+d+_0x5fc50c(0x123)+_0x20e639+'px\x20'+_0x401daa+_0x5fc50c(0x117)+p+_0x5fc50c(0x10a)+p+_0x5fc50c(0x107)+d+_0x5fc50c(0x10f)+_0x401daa+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x20e639+'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}',_0x491315=document[_0x5fc50c(0x11c)](_0x5fc50c(0x11a));return _0x491315[_0x5fc50c(0x109)]=_0x578c6e,_0x491315[_0x5fc50c(0x118)]='offline-printing-css',_0x491315;}function _0x13e3(_0x1804a2,_0x5dd60b){_0x1804a2=_0x1804a2-0x107;const _0x40286d=_0x4028();let _0x13e306=_0x40286d[_0x1804a2];return _0x13e306;}function _0x4028(){const _0x22eb48=['4860744eLjZEW','Custom','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','Origin','None','11PqxlPE','73280WnMnPg','12627570PdQEqC','Narrow','\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.','11337508RAuVpV','innerHTML',',\x20.','printing-canvas-container','FitPage','19329npYpuX','End','\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','945436tOPDyv','Landscape','\x0a\x20\x20\x20\x20.','15XtpAId','Start','FitHeight','1188UfOqKc','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','Middle','style','Normal','createElement','422VxCSwt','1687674GTevQG','printing-canvas'];_0x4028=function(){return _0x22eb48;};return _0x4028();}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 _0x205860=_0x3004;(function(_0x35de9a,_0x4fcd34){const _0x34c0b3=_0x3004,_0xf36bf6=_0x35de9a();while(!![]){try{const _0x96388f=-parseInt(_0x34c0b3(0x137))/0x1+-parseInt(_0x34c0b3(0x140))/0x2*(-parseInt(_0x34c0b3(0x130))/0x3)+-parseInt(_0x34c0b3(0x12b))/0x4*(parseInt(_0x34c0b3(0x138))/0x5)+-parseInt(_0x34c0b3(0x128))/0x6*(-parseInt(_0x34c0b3(0x12a))/0x7)+-parseInt(_0x34c0b3(0x13d))/0x8*(-parseInt(_0x34c0b3(0x13a))/0x9)+-parseInt(_0x34c0b3(0x12e))/0xa*(parseInt(_0x34c0b3(0x132))/0xb)+parseInt(_0x34c0b3(0x131))/0xc;if(_0x96388f===_0x4fcd34)break;else _0xf36bf6['push'](_0xf36bf6['shift']());}catch(_0x20dc83){_0xf36bf6['push'](_0xf36bf6['shift']());}}}(_0x1c41,0x35942));var e=(_0x296267=>(_0x296267[_0x205860(0x12f)]=_0x205860(0x12f),_0x296267[_0x205860(0x13e)]=_0x205860(0x13e),_0x296267))(e||{}),h=(_0x4156fd=>(_0x4156fd[_0x205860(0x144)]=_0x205860(0x144),_0x4156fd['FitWidth']=_0x205860(0x148),_0x4156fd[_0x205860(0x139)]=_0x205860(0x139),_0x4156fd[_0x205860(0x133)]=_0x205860(0x133),_0x4156fd['Custom']='Custom',_0x4156fd))(h||{}),l=(_0x973671=>(_0x973671['Start']=_0x205860(0x134),_0x973671[_0x205860(0x146)]=_0x205860(0x146),_0x973671[_0x205860(0x145)]=_0x205860(0x145),_0x973671))(l||{}),o=(_0x5e69f8=>(_0x5e69f8[_0x205860(0x12d)]='Normal',_0x5e69f8[_0x205860(0x13b)]=_0x205860(0x13b),_0x5e69f8[_0x205860(0x147)]=_0x205860(0x147),_0x5e69f8['None']=_0x205860(0x143),_0x5e69f8[_0x205860(0x135)]='Custom',_0x5e69f8))(o||{});const c={[o[_0x205860(0x12d)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x205860(0x147)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x205860(0x143)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x205860(0x135)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x205860(0x127),d=_0x205860(0x136);function g(_0x36714a,_0x214c98,_0x49726e){const _0x4b01cc=_0x205860,_0x3e7e54=_0x49726e===e[_0x4b01cc(0x12f)]?_0x36714a:_0x214c98,_0x502dbd=_0x49726e===e[_0x4b01cc(0x12f)]?_0x214c98:_0x36714a,_0x4b28a1=_0x4b01cc(0x141)+d+_0x4b01cc(0x142)+_0x3e7e54+_0x4b01cc(0x129)+_0x502dbd+'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+',\x20.'+p+_0x4b01cc(0x126)+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'+_0x502dbd+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3e7e54+_0x4b01cc(0x13f),_0x537ffb=document[_0x4b01cc(0x12c)](_0x4b01cc(0x13c));return _0x537ffb['innerHTML']=_0x4b28a1,_0x537ffb['className']='offline-printing-css',_0x537ffb;}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 _0x3004(_0x3a2e49,_0x4f5abc){_0x3a2e49=_0x3a2e49-0x126;const _0x1c4143=_0x1c41();let _0x300450=_0x1c4143[_0x3a2e49];return _0x300450;}function _0x1c41(){const _0x1eb904=['Narrow','style','2072vQQuJE','Landscape','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}','10znhhCL','\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','None','Origin','Middle','End','Wide','FitWidth','\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.','printing-canvas-container','6XeVrQH','px\x20','1665265erDGHR','24132TIVZoF','createElement','Normal','20pxNSnT','Portrait','17133UwuQhK','2826396HaXMgm','151767JnQKhR','FitPage','Start','Custom','printing-canvas','337026qIhzVB','205wsXwAk','FitHeight','11448ZQXSwS'];_0x1c41=function(){return _0x1eb904;};return _0x1c41();}
1
+ const _0x2ec2ce=_0x13e3;(function(_0x1a50dc,_0x1d9ddb){const _0x3809a9=_0x13e3,_0x293529=_0x1a50dc();while(!![]){try{const _0x5c6354=-parseInt(_0x3809a9(0x110))/0x1+-parseInt(_0x3809a9(0x11d))/0x2*(-parseInt(_0x3809a9(0x10d))/0x3)+parseInt(_0x3809a9(0x120))/0x4+-parseInt(_0x3809a9(0x113))/0x5*(-parseInt(_0x3809a9(0x11e))/0x6)+-parseInt(_0x3809a9(0x108))/0x7+parseInt(_0x3809a9(0x127))/0x8*(-parseInt(_0x3809a9(0x116))/0x9)+-parseInt(_0x3809a9(0x128))/0xa*(-parseInt(_0x3809a9(0x126))/0xb);if(_0x5c6354===_0x1d9ddb)break;else _0x293529['push'](_0x293529['shift']());}catch(_0x171ca0){_0x293529['push'](_0x293529['shift']());}}}(_0x4028,0xdd72d));var e=(_0x1a5ad9=>(_0x1a5ad9['Portrait']=_0x2ec2ce(0x122),_0x1a5ad9[_0x2ec2ce(0x111)]=_0x2ec2ce(0x111),_0x1a5ad9))(e||{}),h=(_0xa0f202=>(_0xa0f202[_0x2ec2ce(0x124)]=_0x2ec2ce(0x124),_0xa0f202['FitWidth']='FitWidth',_0xa0f202[_0x2ec2ce(0x115)]=_0x2ec2ce(0x115),_0xa0f202[_0x2ec2ce(0x10c)]=_0x2ec2ce(0x10c),_0xa0f202[_0x2ec2ce(0x121)]='Custom',_0xa0f202))(h||{}),l=(_0x2de8d0=>(_0x2de8d0[_0x2ec2ce(0x114)]=_0x2ec2ce(0x114),_0x2de8d0[_0x2ec2ce(0x10e)]=_0x2ec2ce(0x10e),_0x2de8d0['Middle']=_0x2ec2ce(0x119),_0x2de8d0))(l||{}),o=(_0x576c67=>(_0x576c67[_0x2ec2ce(0x11b)]=_0x2ec2ce(0x11b),_0x576c67[_0x2ec2ce(0x129)]='Narrow',_0x576c67['Wide']='Wide',_0x576c67[_0x2ec2ce(0x125)]=_0x2ec2ce(0x125),_0x576c67[_0x2ec2ce(0x121)]=_0x2ec2ce(0x121),_0x576c67))(o||{});const c={[o[_0x2ec2ce(0x11b)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x2ec2ce(0x129)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x2ec2ce(0x125)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x2ec2ce(0x121)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x2ec2ce(0x10b),d=_0x2ec2ce(0x11f);function g(_0x2268da,_0x28cd0a,_0x240835){const _0x5fc50c=_0x2ec2ce,_0x20e639=_0x240835===e[_0x5fc50c(0x122)]?_0x2268da:_0x28cd0a,_0x401daa=_0x240835===e[_0x5fc50c(0x122)]?_0x28cd0a:_0x2268da,_0x578c6e=_0x5fc50c(0x112)+d+_0x5fc50c(0x123)+_0x20e639+'px\x20'+_0x401daa+_0x5fc50c(0x117)+p+_0x5fc50c(0x10a)+p+_0x5fc50c(0x107)+d+_0x5fc50c(0x10f)+_0x401daa+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x20e639+'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}',_0x491315=document[_0x5fc50c(0x11c)](_0x5fc50c(0x11a));return _0x491315[_0x5fc50c(0x109)]=_0x578c6e,_0x491315[_0x5fc50c(0x118)]='offline-printing-css',_0x491315;}function _0x13e3(_0x1804a2,_0x5dd60b){_0x1804a2=_0x1804a2-0x107;const _0x40286d=_0x4028();let _0x13e306=_0x40286d[_0x1804a2];return _0x13e306;}function _0x4028(){const _0x22eb48=['4860744eLjZEW','Custom','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','Origin','None','11PqxlPE','73280WnMnPg','12627570PdQEqC','Narrow','\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.','11337508RAuVpV','innerHTML',',\x20.','printing-canvas-container','FitPage','19329npYpuX','End','\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','945436tOPDyv','Landscape','\x0a\x20\x20\x20\x20.','15XtpAId','Start','FitHeight','1188UfOqKc','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','Middle','style','Normal','createElement','422VxCSwt','1687674GTevQG','printing-canvas'];_0x4028=function(){return _0x22eb48;};return _0x4028();}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 _0x2638(_0x3056cd,_0x30eb2a){_0x3056cd=_0x3056cd-0x1dd;const _0x521d01=_0x521d();let _0x2638d9=_0x521d01[_0x3056cd];return _0x2638d9;}function _0x521d(){const _0x2306b0=['Landscape','function',',\x20.','Origin','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','49664hcjgWm','Custom','PRINT_CONTAINER_CLASS','amd','Normal','UniverProPrint','PrintPaperMargin','FitHeight','\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','72xRUwRb','546141GbKjju','innerHTML','11ejCYSh','Portrait','477zAckPN','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','exports','4766867aiDsRN','Start','object','printing-canvas','printing-canvas-container','toStringTag','2744924YcxqPB','PrintAlign','6ojeres','createPrintStyle','672588hNnbkz','5240570jKemFu','FitWidth','PrintScale','148615ifrUTn','defineProperty','FitPage','Wide','\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','PaperMarginMap','offline-printing-css','Narrow'];_0x521d=function(){return _0x2306b0;};return _0x521d();}(function(_0xcee91,_0x3dfb30){const _0x34fd6b=_0x2638,_0x3803c1=_0xcee91();while(!![]){try{const _0x5a018f=-parseInt(_0x34fd6b(0x1f5))/0x1+parseInt(_0x34fd6b(0x1f3))/0x2*(parseInt(_0x34fd6b(0x1e3))/0x3)+-parseInt(_0x34fd6b(0x1f1))/0x4+-parseInt(_0x34fd6b(0x1f9))/0x5*(-parseInt(_0x34fd6b(0x1e2))/0x6)+parseInt(_0x34fd6b(0x1eb))/0x7+parseInt(_0x34fd6b(0x207))/0x8*(-parseInt(_0x34fd6b(0x1e7))/0x9)+-parseInt(_0x34fd6b(0x1f6))/0xa*(-parseInt(_0x34fd6b(0x1e5))/0xb);if(_0x5a018f===_0x3dfb30)break;else _0x3803c1['push'](_0x3803c1['shift']());}catch(_0xb86f90){_0x3803c1['push'](_0x3803c1['shift']());}}}(_0x521d,0x668ac),function(_0x1b12b6,_0x52e6b7){const _0x3d5ebd=_0x2638;typeof exports==_0x3d5ebd(0x1ed)&&typeof module<'u'?_0x52e6b7(exports):typeof define==_0x3d5ebd(0x202)&&define[_0x3d5ebd(0x20a)]?define([_0x3d5ebd(0x1ea)],_0x52e6b7):(_0x1b12b6=typeof globalThis<'u'?globalThis:_0x1b12b6||self,_0x52e6b7(_0x1b12b6[_0x3d5ebd(0x1dd)]={}));}(this,function(_0x30f4f8){'use strict';const _0x55e963=_0x2638;var _0x15091c=(_0x4d8168=>(_0x4d8168[_0x55e963(0x1e6)]=_0x55e963(0x1e6),_0x4d8168[_0x55e963(0x201)]=_0x55e963(0x201),_0x4d8168))(_0x15091c||{}),_0x556c3c=(_0x3bff1d=>(_0x3bff1d[_0x55e963(0x204)]=_0x55e963(0x204),_0x3bff1d[_0x55e963(0x1f7)]=_0x55e963(0x1f7),_0x3bff1d[_0x55e963(0x1df)]=_0x55e963(0x1df),_0x3bff1d[_0x55e963(0x1fb)]=_0x55e963(0x1fb),_0x3bff1d[_0x55e963(0x208)]=_0x55e963(0x208),_0x3bff1d))(_0x556c3c||{}),_0x36e64b=(_0x434174=>(_0x434174[_0x55e963(0x1ec)]='Start',_0x434174[_0x55e963(0x205)]=_0x55e963(0x205),_0x434174[_0x55e963(0x1e9)]=_0x55e963(0x1e9),_0x434174))(_0x36e64b||{}),_0x255101=(_0x4326c6=>(_0x4326c6[_0x55e963(0x20b)]=_0x55e963(0x20b),_0x4326c6[_0x55e963(0x200)]=_0x55e963(0x200),_0x4326c6[_0x55e963(0x1fc)]='Wide',_0x4326c6['None']=_0x55e963(0x1e1),_0x4326c6[_0x55e963(0x208)]=_0x55e963(0x208),_0x4326c6))(_0x255101||{});const _0x56cb97={[_0x255101[_0x55e963(0x20b)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x255101['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x255101[_0x55e963(0x1fc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x255101['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x255101[_0x55e963(0x208)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x45b6a8=_0x55e963(0x1ef),_0x1bcf99=_0x55e963(0x1ee);function _0x524058(_0x2929b4,_0x4188ff,_0x3d619c){const _0x1cbe2e=_0x55e963,_0xee53ff=_0x3d619c===_0x15091c[_0x1cbe2e(0x1e6)]?_0x2929b4:_0x4188ff,_0x16eb01=_0x3d619c===_0x15091c[_0x1cbe2e(0x1e6)]?_0x4188ff:_0x2929b4,_0x4d4d5f='\x0a\x20\x20\x20\x20.'+_0x1bcf99+_0x1cbe2e(0x206)+_0xee53ff+'px\x20'+_0x16eb01+'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.'+_0x45b6a8+_0x1cbe2e(0x203)+_0x45b6a8+_0x1cbe2e(0x1e0)+_0x1bcf99+_0x1cbe2e(0x1fd)+_0x16eb01+_0x1cbe2e(0x1e8)+_0xee53ff+'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}',_0x422f34=document['createElement']('style');return _0x422f34[_0x1cbe2e(0x1e4)]=_0x4d4d5f,_0x422f34['className']=_0x1cbe2e(0x1ff),_0x422f34;}_0x30f4f8['PRINT_CANVAS_CLASS']=_0x1bcf99,_0x30f4f8[_0x55e963(0x209)]=_0x45b6a8,_0x30f4f8[_0x55e963(0x1fe)]=_0x56cb97,_0x30f4f8[_0x55e963(0x1f2)]=_0x36e64b,_0x30f4f8['PrintDirection']=_0x15091c,_0x30f4f8[_0x55e963(0x1de)]=_0x255101,_0x30f4f8[_0x55e963(0x1f8)]=_0x556c3c,_0x30f4f8[_0x55e963(0x1f4)]=_0x524058,Object[_0x55e963(0x1fa)](_0x30f4f8,Symbol[_0x55e963(0x1f0)],{'value':'Module'});}));
1
+ (function(_0x50e257,_0xf5ab9f){const _0x98f563=_0xeaba,_0x58c4ca=_0x50e257();while(!![]){try{const _0x1ffcbc=parseInt(_0x98f563(0x16b))/0x1*(parseInt(_0x98f563(0x163))/0x2)+parseInt(_0x98f563(0x148))/0x3*(-parseInt(_0x98f563(0x14e))/0x4)+parseInt(_0x98f563(0x14f))/0x5+parseInt(_0x98f563(0x171))/0x6+-parseInt(_0x98f563(0x156))/0x7*(parseInt(_0x98f563(0x167))/0x8)+parseInt(_0x98f563(0x150))/0x9+-parseInt(_0x98f563(0x15b))/0xa;if(_0x1ffcbc===_0xf5ab9f)break;else _0x58c4ca['push'](_0x58c4ca['shift']());}catch(_0x13cee2){_0x58c4ca['push'](_0x58c4ca['shift']());}}}(_0x330a,0x48ccf),function(_0x1017e8,_0x2ffde5){const _0x2b0b01=_0xeaba;typeof exports=='object'&&typeof module<'u'?_0x2ffde5(exports):typeof define==_0x2b0b01(0x176)&&define['amd']?define([_0x2b0b01(0x16f)],_0x2ffde5):(_0x1017e8=typeof globalThis<'u'?globalThis:_0x1017e8||self,_0x2ffde5(_0x1017e8[_0x2b0b01(0x16d)]={}));}(this,function(_0x29fa9e){'use strict';const _0x4f506a=_0xeaba;var _0x2f7f0d=(_0x613b7b=>(_0x613b7b[_0x4f506a(0x157)]=_0x4f506a(0x157),_0x613b7b[_0x4f506a(0x154)]=_0x4f506a(0x154),_0x613b7b))(_0x2f7f0d||{}),_0x19995e=(_0xea2351=>(_0xea2351[_0x4f506a(0x158)]=_0x4f506a(0x158),_0xea2351[_0x4f506a(0x162)]=_0x4f506a(0x162),_0xea2351[_0x4f506a(0x175)]=_0x4f506a(0x175),_0xea2351[_0x4f506a(0x169)]='FitPage',_0xea2351[_0x4f506a(0x159)]=_0x4f506a(0x159),_0xea2351))(_0x19995e||{}),_0x32085f=(_0x32acce=>(_0x32acce['Start']=_0x4f506a(0x14b),_0x32acce[_0x4f506a(0x164)]='End',_0x32acce[_0x4f506a(0x161)]=_0x4f506a(0x161),_0x32acce))(_0x32085f||{}),_0x1d42a4=(_0x2b5c1e=>(_0x2b5c1e[_0x4f506a(0x14c)]=_0x4f506a(0x14c),_0x2b5c1e[_0x4f506a(0x170)]=_0x4f506a(0x170),_0x2b5c1e[_0x4f506a(0x14d)]=_0x4f506a(0x14d),_0x2b5c1e[_0x4f506a(0x15d)]='None',_0x2b5c1e[_0x4f506a(0x159)]=_0x4f506a(0x159),_0x2b5c1e))(_0x1d42a4||{});const _0x5b142b={[_0x1d42a4[_0x4f506a(0x14c)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1d42a4['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1d42a4[_0x4f506a(0x14d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1d42a4[_0x4f506a(0x15d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x1d42a4[_0x4f506a(0x159)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x513f4f=_0x4f506a(0x149),_0x4f7360='printing-canvas';function _0x168bb4(_0x16bb01,_0x111465,_0xb14394){const _0x4816c7=_0x4f506a,_0x36f8eb=_0xb14394===_0x2f7f0d[_0x4816c7(0x157)]?_0x16bb01:_0x111465,_0x3f59f4=_0xb14394===_0x2f7f0d[_0x4816c7(0x157)]?_0x111465:_0x16bb01,_0x42285f=_0x4816c7(0x16e)+_0x4f7360+_0x4816c7(0x15a)+_0x36f8eb+_0x4816c7(0x15f)+_0x3f59f4+_0x4816c7(0x14a)+_0x513f4f+',\x20.'+_0x513f4f+_0x4816c7(0x16c)+_0x4f7360+_0x4816c7(0x174)+_0x3f59f4+_0x4816c7(0x160)+_0x36f8eb+_0x4816c7(0x16a),_0x269c8c=document[_0x4816c7(0x165)](_0x4816c7(0x168));return _0x269c8c[_0x4816c7(0x15e)]=_0x42285f,_0x269c8c[_0x4816c7(0x173)]=_0x4816c7(0x153),_0x269c8c;}_0x29fa9e[_0x4f506a(0x166)]=_0x4f7360,_0x29fa9e['PRINT_CONTAINER_CLASS']=_0x513f4f,_0x29fa9e[_0x4f506a(0x15c)]=_0x5b142b,_0x29fa9e[_0x4f506a(0x151)]=_0x32085f,_0x29fa9e['PrintDirection']=_0x2f7f0d,_0x29fa9e[_0x4f506a(0x172)]=_0x1d42a4,_0x29fa9e[_0x4f506a(0x155)]=_0x19995e,_0x29fa9e['createPrintStyle']=_0x168bb4,Object['defineProperty'](_0x29fa9e,Symbol['toStringTag'],{'value':_0x4f506a(0x152)});}));function _0xeaba(_0x384a22,_0x5e4170){_0x384a22=_0x384a22-0x148;const _0x330abb=_0x330a();let _0xeabaea=_0x330abb[_0x384a22];return _0xeabaea;}function _0x330a(){const _0x395ec0=['FitHeight','function','57scsxos','printing-canvas-container','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.','Start','Normal','Wide','7964LVfUXs','1558005IKgAHG','4510287yxwtbK','PrintAlign','Module','offline-printing-css','Landscape','PrintScale','1086806nUYHpd','Portrait','Origin','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','7947030AjlqaP','PaperMarginMap','None','innerHTML','px\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','FitWidth','42MUKdhM','End','createElement','PRINT_CANVAS_CLASS','8bqXslT','style','FitPage','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}','18991XkFPYK','\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.','UniverProPrint','\x0a\x20\x20\x20\x20.','exports','Narrow','446556lGbsKG','PrintPaperMargin','className','\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'];_0x330a=function(){return _0x395ec0;};return _0x330a();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.15.5",
3
+ "version": "0.16.0-insiders.20260302-b09f1e4",
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.18",
48
- "@univerjs-infra/shared": "0.15.5"
48
+ "@univerjs-infra/shared": "0.16.0"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",