@univerjs-pro/print 0.16.0 → 0.16.1-insiders.20260311-074e8ca

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 _0x5aeafc=_0x465e;(function(_0x1e3fd6,_0x27d2a1){const _0x5ee352=_0x465e,_0x2f6803=_0x1e3fd6();while(!![]){try{const _0x4cb486=-parseInt(_0x5ee352(0x134))/0x1+-parseInt(_0x5ee352(0x12e))/0x2+-parseInt(_0x5ee352(0x144))/0x3+parseInt(_0x5ee352(0x135))/0x4+-parseInt(_0x5ee352(0x123))/0x5+parseInt(_0x5ee352(0x13f))/0x6+-parseInt(_0x5ee352(0x124))/0x7*(-parseInt(_0x5ee352(0x140))/0x8);if(_0x4cb486===_0x27d2a1)break;else _0x2f6803['push'](_0x2f6803['shift']());}catch(_0x382f83){_0x2f6803['push'](_0x2f6803['shift']());}}}(_0x1c22,0xeeb8d));function _0x1c22(){const _0x210c82=['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','createElement','2023998rekSWs','6454424bWbSfJ','toStringTag','End','PRINT_CANVAS_CLASS','163950cuhFGD','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.','Wide','innerHTML','Narrow','\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','Landscape','PRINT_CONTAINER_CLASS','7979380dCHYXy','35xzpFGu','PaperMarginMap','PrintPaperMargin','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','PrintAlign','Module','Start','PrintScale','None','offline-printing-css','2043418Lbpupm','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','createPrintStyle','className','PrintDirection','864204gWavcI','571584OQkHbN','Origin','Portrait','FitPage','FitHeight','Custom','printing-canvas-container'];_0x1c22=function(){return _0x210c82;};return _0x1c22();}Object['defineProperty'](exports,Symbol[_0x5aeafc(0x141)],{'value':_0x5aeafc(0x129)});var i=(_0x26c84b=>(_0x26c84b[_0x5aeafc(0x137)]=_0x5aeafc(0x137),_0x26c84b['Landscape']=_0x5aeafc(0x121),_0x26c84b))(i||{}),l=(_0x1eb648=>(_0x1eb648['Origin']=_0x5aeafc(0x136),_0x1eb648[_0x5aeafc(0x13d)]=_0x5aeafc(0x13d),_0x1eb648[_0x5aeafc(0x139)]=_0x5aeafc(0x139),_0x1eb648['FitPage']=_0x5aeafc(0x138),_0x1eb648[_0x5aeafc(0x13a)]=_0x5aeafc(0x13a),_0x1eb648))(l||{}),m=(_0x4a326a=>(_0x4a326a[_0x5aeafc(0x12a)]=_0x5aeafc(0x12a),_0x4a326a['End']=_0x5aeafc(0x142),_0x4a326a['Middle']=_0x5aeafc(0x145),_0x4a326a))(m||{}),o=(_0xfcef8a=>(_0xfcef8a[_0x5aeafc(0x12f)]='Normal',_0xfcef8a[_0x5aeafc(0x11e)]=_0x5aeafc(0x11e),_0xfcef8a['Wide']=_0x5aeafc(0x147),_0xfcef8a[_0x5aeafc(0x12c)]=_0x5aeafc(0x12c),_0xfcef8a['Custom']='Custom',_0xfcef8a))(o||{});const g={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5aeafc(0x11e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5aeafc(0x147)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5aeafc(0x12c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x5aeafc(0x13a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x5aeafc(0x13b),n='printing-canvas';function _0x465e(_0x2ca9f7,_0x3a357e){_0x2ca9f7=_0x2ca9f7-0x11e;const _0x1c2270=_0x1c22();let _0x465ef9=_0x1c2270[_0x2ca9f7];return _0x465ef9;}function h(_0x402679,_0x2c0db5,_0x1d2ce5){const _0x4537d9=_0x5aeafc,_0x4fb03a=_0x1d2ce5===i['Portrait']?_0x402679:_0x2c0db5,_0x201f75=_0x1d2ce5===i['Portrait']?_0x2c0db5:_0x402679,_0x50aea7='\x0a\x20\x20\x20\x20.'+n+_0x4537d9(0x11f)+_0x4fb03a+_0x4537d9(0x120)+_0x201f75+_0x4537d9(0x127)+r+',\x20.'+r+_0x4537d9(0x146)+n+_0x4537d9(0x130)+_0x201f75+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4fb03a+_0x4537d9(0x13c),_0x14de6a=document[_0x4537d9(0x13e)]('style');return _0x14de6a[_0x4537d9(0x148)]=_0x50aea7,_0x14de6a[_0x4537d9(0x132)]=_0x4537d9(0x12d),_0x14de6a;}exports[_0x5aeafc(0x143)]=n,exports[_0x5aeafc(0x122)]=r,exports[_0x5aeafc(0x125)]=g,exports[_0x5aeafc(0x128)]=m,exports[_0x5aeafc(0x133)]=i,exports[_0x5aeafc(0x126)]=o,exports[_0x5aeafc(0x12b)]=l,exports[_0x5aeafc(0x131)]=h;
1
+ 'use strict';const _0x368345=_0x2dbb;(function(_0x5a2b32,_0x5e40f7){const _0x310d5c=_0x2dbb,_0x393b04=_0x5a2b32();while(!![]){try{const _0x8db60e=parseInt(_0x310d5c(0xd0))/0x1*(-parseInt(_0x310d5c(0xb9))/0x2)+parseInt(_0x310d5c(0xe8))/0x3*(-parseInt(_0x310d5c(0xb8))/0x4)+-parseInt(_0x310d5c(0xdd))/0x5+parseInt(_0x310d5c(0xd2))/0x6*(parseInt(_0x310d5c(0xd6))/0x7)+-parseInt(_0x310d5c(0xe7))/0x8+-parseInt(_0x310d5c(0xc4))/0x9*(-parseInt(_0x310d5c(0xde))/0xa)+parseInt(_0x310d5c(0xca))/0xb*(-parseInt(_0x310d5c(0xce))/0xc);if(_0x8db60e===_0x5e40f7)break;else _0x393b04['push'](_0x393b04['shift']());}catch(_0x70538b){_0x393b04['push'](_0x393b04['shift']());}}}(_0x4845,0x8bbf8));Object[_0x368345(0xb6)](exports,Symbol[_0x368345(0xd5)],{'value':_0x368345(0xd1)});var i=(_0x2e00be=>(_0x2e00be[_0x368345(0xbe)]='Portrait',_0x2e00be[_0x368345(0xbf)]=_0x368345(0xbf),_0x2e00be))(i||{}),l=(_0x8d5fd2=>(_0x8d5fd2[_0x368345(0xc0)]=_0x368345(0xc0),_0x8d5fd2[_0x368345(0xd4)]=_0x368345(0xd4),_0x8d5fd2[_0x368345(0xba)]='FitHeight',_0x8d5fd2[_0x368345(0xcf)]='FitPage',_0x8d5fd2[_0x368345(0xc8)]=_0x368345(0xc8),_0x8d5fd2))(l||{}),m=(_0x99f7cd=>(_0x99f7cd[_0x368345(0xc6)]='Start',_0x99f7cd[_0x368345(0xe3)]='End',_0x99f7cd[_0x368345(0xc9)]=_0x368345(0xc9),_0x99f7cd))(m||{}),o=(_0x5e36bf=>(_0x5e36bf[_0x368345(0xdc)]=_0x368345(0xdc),_0x5e36bf[_0x368345(0xbb)]=_0x368345(0xbb),_0x5e36bf[_0x368345(0xda)]=_0x368345(0xda),_0x5e36bf[_0x368345(0xe0)]=_0x368345(0xe0),_0x5e36bf[_0x368345(0xc8)]=_0x368345(0xc8),_0x5e36bf))(o||{});const g={[o[_0x368345(0xdc)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x368345(0xbb)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x368345(0xda)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x368345(0xe0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x368345(0xc8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x368345(0xc2),n=_0x368345(0xe6);function h(_0xa9cdbb,_0x12d625,_0x599ced){const _0x31c93f=_0x368345,_0xf6851f=_0x599ced===i['Portrait']?_0xa9cdbb:_0x12d625,_0x365943=_0x599ced===i[_0x31c93f(0xbe)]?_0x12d625:_0xa9cdbb,_0x454f52=_0x31c93f(0xc5)+n+_0x31c93f(0xdf)+_0xf6851f+_0x31c93f(0xc1)+_0x365943+_0x31c93f(0xc3)+r+_0x31c93f(0xbd)+r+_0x31c93f(0xdb)+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'+_0x365943+_0x31c93f(0xcc)+_0xf6851f+'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}',_0x5bb150=document[_0x31c93f(0xe4)](_0x31c93f(0xbc));return _0x5bb150[_0x31c93f(0xcd)]=_0x454f52,_0x5bb150[_0x31c93f(0xb7)]=_0x31c93f(0xd3),_0x5bb150;}function _0x4845(){const _0x4bf6aa=['innerHTML','12gqatbY','FitPage','4710VrrFZs','Module','2579586HoQaFF','offline-printing-css','FitWidth','toStringTag','7EOVfXt','createPrintStyle','PRINT_CANVAS_CLASS','PrintPaperMargin','Wide','\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.','Normal','953480HiTfIi','123320ruqWVE','\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','PrintDirection','PRINT_CONTAINER_CLASS','End','createElement','PrintAlign','printing-canvas','801896MwkepX','21AmIeqb','defineProperty','className','81696hMpKxH','8NBcdAT','FitHeight','Narrow','style',',\x20.','Portrait','Landscape','Origin','px\x20','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.','747tRnvdG','\x0a\x20\x20\x20\x20.','Start','PaperMarginMap','Custom','Middle','4711718resKHq','PrintScale','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x4845=function(){return _0x4bf6aa;};return _0x4845();}function _0x2dbb(_0x44a65e,_0x520853){_0x44a65e=_0x44a65e-0xb6;const _0x484598=_0x4845();let _0x2dbbcd=_0x484598[_0x44a65e];return _0x2dbbcd;}exports[_0x368345(0xd8)]=n,exports[_0x368345(0xe2)]=r,exports[_0x368345(0xc7)]=g,exports[_0x368345(0xe5)]=m,exports[_0x368345(0xe1)]=i,exports[_0x368345(0xd9)]=o,exports[_0x368345(0xcb)]=l,exports[_0x368345(0xd7)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4502(_0x744354,_0x459cb0){_0x744354=_0x744354-0x1e0;const _0x33c233=_0x33c2();let _0x4502d5=_0x33c233[_0x744354];return _0x4502d5;}const _0xb770fb=_0x4502;(function(_0xbaa400,_0x3a6906){const _0x5d43fd=_0x4502,_0x431cd7=_0xbaa400();while(!![]){try{const _0x54f7f1=parseInt(_0x5d43fd(0x1ef))/0x1*(parseInt(_0x5d43fd(0x1f1))/0x2)+parseInt(_0x5d43fd(0x1f0))/0x3*(parseInt(_0x5d43fd(0x1e7))/0x4)+-parseInt(_0x5d43fd(0x1f7))/0x5*(-parseInt(_0x5d43fd(0x201))/0x6)+-parseInt(_0x5d43fd(0x1e3))/0x7*(-parseInt(_0x5d43fd(0x200))/0x8)+parseInt(_0x5d43fd(0x1e4))/0x9+-parseInt(_0x5d43fd(0x1eb))/0xa+parseInt(_0x5d43fd(0x1ea))/0xb*(-parseInt(_0x5d43fd(0x1fb))/0xc);if(_0x54f7f1===_0x3a6906)break;else _0x431cd7['push'](_0x431cd7['shift']());}catch(_0x17f12d){_0x431cd7['push'](_0x431cd7['shift']());}}}(_0x33c2,0x3cdd5));var e=(_0x37559a=>(_0x37559a[_0xb770fb(0x202)]='Portrait',_0x37559a[_0xb770fb(0x1f9)]=_0xb770fb(0x1f9),_0x37559a))(e||{}),h=(_0x122168=>(_0x122168[_0xb770fb(0x1e2)]=_0xb770fb(0x1e2),_0x122168[_0xb770fb(0x1ff)]=_0xb770fb(0x1ff),_0x122168[_0xb770fb(0x1fa)]=_0xb770fb(0x1fa),_0x122168[_0xb770fb(0x1e9)]=_0xb770fb(0x1e9),_0x122168[_0xb770fb(0x1f2)]=_0xb770fb(0x1f2),_0x122168))(h||{}),l=(_0x306584=>(_0x306584['Start']='Start',_0x306584[_0xb770fb(0x1fc)]=_0xb770fb(0x1fc),_0x306584['Middle']=_0xb770fb(0x1e0),_0x306584))(l||{}),o=(_0x4d3167=>(_0x4d3167[_0xb770fb(0x1f5)]='Normal',_0x4d3167[_0xb770fb(0x1f8)]=_0xb770fb(0x1f8),_0x4d3167['Wide']='Wide',_0x4d3167[_0xb770fb(0x1e1)]='None',_0x4d3167['Custom']='Custom',_0x4d3167))(o||{});const c={[o[_0xb770fb(0x1f5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0xb770fb(0x1f8)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0xb770fb(0x1e6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0xb770fb(0x1e1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0xb770fb(0x1f2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0xb770fb(0x1ec),d='printing-canvas';function g(_0x463a3a,_0x26a728,_0x225099){const _0x432150=_0xb770fb,_0x36cbf7=_0x225099===e[_0x432150(0x202)]?_0x463a3a:_0x26a728,_0x6ee77=_0x225099===e[_0x432150(0x202)]?_0x26a728:_0x463a3a,_0x550c93='\x0a\x20\x20\x20\x20.'+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'+_0x36cbf7+_0x432150(0x1f3)+_0x6ee77+_0x432150(0x1e8)+p+',\x20.'+p+_0x432150(0x1ed)+d+_0x432150(0x1e5)+_0x6ee77+_0x432150(0x1fe)+_0x36cbf7+_0x432150(0x1f6),_0x642d40=document['createElement'](_0x432150(0x1fd));return _0x642d40[_0x432150(0x1f4)]=_0x550c93,_0x642d40[_0x432150(0x1ee)]='offline-printing-css',_0x642d40;}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 _0x33c2(){const _0x3ec91e=['20RWArwH','Narrow','Landscape','FitHeight','3715788bIaIIG','End','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitWidth','10776BzfnIl','257748PRKYuQ','Portrait','Middle','None','Origin','224QTcIVE','203157LWDGgX','\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','Wide','12tIrfmA','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','22QgwnkB','2778090tezJpt','printing-canvas-container','\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','41171dGklcR','456018geQAyS','22yYDDvL','Custom','px\x20','innerHTML','Normal','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}'];_0x33c2=function(){return _0x3ec91e;};return _0x33c2();}
1
+ const _0x452503=_0x2c6b;(function(_0x5d0540,_0xc027e0){const _0xf243b5=_0x2c6b,_0x585362=_0x5d0540();while(!![]){try{const _0x54dfaf=-parseInt(_0xf243b5(0x10e))/0x1*(-parseInt(_0xf243b5(0x129))/0x2)+parseInt(_0xf243b5(0x119))/0x3+parseInt(_0xf243b5(0x104))/0x4*(parseInt(_0xf243b5(0x118))/0x5)+parseInt(_0xf243b5(0x117))/0x6*(parseInt(_0xf243b5(0x115))/0x7)+parseInt(_0xf243b5(0x112))/0x8*(parseInt(_0xf243b5(0x11a))/0x9)+-parseInt(_0xf243b5(0x123))/0xa*(-parseInt(_0xf243b5(0x11b))/0xb)+-parseInt(_0xf243b5(0x125))/0xc;if(_0x54dfaf===_0xc027e0)break;else _0x585362['push'](_0x585362['shift']());}catch(_0x2f609d){_0x585362['push'](_0x585362['shift']());}}}(_0x3610,0x68255));var e=(_0x591d0c=>(_0x591d0c[_0x452503(0x10a)]=_0x452503(0x10a),_0x591d0c[_0x452503(0x10f)]=_0x452503(0x10f),_0x591d0c))(e||{}),h=(_0x56de0d=>(_0x56de0d[_0x452503(0x11e)]=_0x452503(0x11e),_0x56de0d['FitWidth']='FitWidth',_0x56de0d[_0x452503(0x128)]=_0x452503(0x128),_0x56de0d[_0x452503(0x127)]=_0x452503(0x127),_0x56de0d[_0x452503(0x116)]=_0x452503(0x116),_0x56de0d))(h||{}),l=(_0x273865=>(_0x273865[_0x452503(0x11f)]=_0x452503(0x11f),_0x273865['End']=_0x452503(0x126),_0x273865['Middle']=_0x452503(0x108),_0x273865))(l||{}),o=(_0x3010cd=>(_0x3010cd[_0x452503(0x124)]='Normal',_0x3010cd[_0x452503(0x120)]=_0x452503(0x120),_0x3010cd[_0x452503(0x110)]=_0x452503(0x110),_0x3010cd[_0x452503(0x11c)]='None',_0x3010cd[_0x452503(0x116)]=_0x452503(0x116),_0x3010cd))(o||{});function _0x2c6b(_0x3e51ca,_0x2b3c97){_0x3e51ca=_0x3e51ca-0x101;const _0x36104d=_0x3610();let _0x2c6b08=_0x36104d[_0x3e51ca];return _0x2c6b08;}const c={[o[_0x452503(0x124)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x452503(0x110)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x452503(0x11c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x452503(0x116)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x452503(0x109),d=_0x452503(0x122);function g(_0x16da7c,_0x5294c5,_0x4d5403){const _0x581164=_0x452503,_0x247a15=_0x4d5403===e[_0x581164(0x10a)]?_0x16da7c:_0x5294c5,_0xa136cd=_0x4d5403===e['Portrait']?_0x5294c5:_0x16da7c,_0x508b14=_0x581164(0x121)+d+_0x581164(0x111)+_0x247a15+_0x581164(0x114)+_0xa136cd+_0x581164(0x113)+p+_0x581164(0x10b)+p+_0x581164(0x103)+d+_0x581164(0x10c)+_0xa136cd+_0x581164(0x102)+_0x247a15+_0x581164(0x106),_0x5f014d=document[_0x581164(0x101)](_0x581164(0x10d));return _0x5f014d[_0x581164(0x105)]=_0x508b14,_0x5f014d[_0x581164(0x107)]=_0x581164(0x11d),_0x5f014d;}function _0x3610(){const _0x377711=['\x0a\x20\x20\x20\x20.','printing-canvas','1117810rXJokN','Normal','39460320fpxySA','End','FitPage','FitHeight','1346304OymFla','createElement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\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.','4qOFdot','innerHTML','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}','className','Middle','printing-canvas-container','Portrait',',\x20.','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','style','1XySkqK','Landscape','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','585704tzrQHp','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.','px\x20','227717kbFEFK','Custom','114QHWXjH','3936885AQinlN','2134059YsgrEk','45SoecOh','55nOLhLE','None','offline-printing-css','Origin','Start','Narrow'];_0x3610=function(){return _0x377711;};return _0x3610();}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
- function _0x4502(_0x744354,_0x459cb0){_0x744354=_0x744354-0x1e0;const _0x33c233=_0x33c2();let _0x4502d5=_0x33c233[_0x744354];return _0x4502d5;}const _0xb770fb=_0x4502;(function(_0xbaa400,_0x3a6906){const _0x5d43fd=_0x4502,_0x431cd7=_0xbaa400();while(!![]){try{const _0x54f7f1=parseInt(_0x5d43fd(0x1ef))/0x1*(parseInt(_0x5d43fd(0x1f1))/0x2)+parseInt(_0x5d43fd(0x1f0))/0x3*(parseInt(_0x5d43fd(0x1e7))/0x4)+-parseInt(_0x5d43fd(0x1f7))/0x5*(-parseInt(_0x5d43fd(0x201))/0x6)+-parseInt(_0x5d43fd(0x1e3))/0x7*(-parseInt(_0x5d43fd(0x200))/0x8)+parseInt(_0x5d43fd(0x1e4))/0x9+-parseInt(_0x5d43fd(0x1eb))/0xa+parseInt(_0x5d43fd(0x1ea))/0xb*(-parseInt(_0x5d43fd(0x1fb))/0xc);if(_0x54f7f1===_0x3a6906)break;else _0x431cd7['push'](_0x431cd7['shift']());}catch(_0x17f12d){_0x431cd7['push'](_0x431cd7['shift']());}}}(_0x33c2,0x3cdd5));var e=(_0x37559a=>(_0x37559a[_0xb770fb(0x202)]='Portrait',_0x37559a[_0xb770fb(0x1f9)]=_0xb770fb(0x1f9),_0x37559a))(e||{}),h=(_0x122168=>(_0x122168[_0xb770fb(0x1e2)]=_0xb770fb(0x1e2),_0x122168[_0xb770fb(0x1ff)]=_0xb770fb(0x1ff),_0x122168[_0xb770fb(0x1fa)]=_0xb770fb(0x1fa),_0x122168[_0xb770fb(0x1e9)]=_0xb770fb(0x1e9),_0x122168[_0xb770fb(0x1f2)]=_0xb770fb(0x1f2),_0x122168))(h||{}),l=(_0x306584=>(_0x306584['Start']='Start',_0x306584[_0xb770fb(0x1fc)]=_0xb770fb(0x1fc),_0x306584['Middle']=_0xb770fb(0x1e0),_0x306584))(l||{}),o=(_0x4d3167=>(_0x4d3167[_0xb770fb(0x1f5)]='Normal',_0x4d3167[_0xb770fb(0x1f8)]=_0xb770fb(0x1f8),_0x4d3167['Wide']='Wide',_0x4d3167[_0xb770fb(0x1e1)]='None',_0x4d3167['Custom']='Custom',_0x4d3167))(o||{});const c={[o[_0xb770fb(0x1f5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0xb770fb(0x1f8)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0xb770fb(0x1e6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0xb770fb(0x1e1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0xb770fb(0x1f2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0xb770fb(0x1ec),d='printing-canvas';function g(_0x463a3a,_0x26a728,_0x225099){const _0x432150=_0xb770fb,_0x36cbf7=_0x225099===e[_0x432150(0x202)]?_0x463a3a:_0x26a728,_0x6ee77=_0x225099===e[_0x432150(0x202)]?_0x26a728:_0x463a3a,_0x550c93='\x0a\x20\x20\x20\x20.'+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'+_0x36cbf7+_0x432150(0x1f3)+_0x6ee77+_0x432150(0x1e8)+p+',\x20.'+p+_0x432150(0x1ed)+d+_0x432150(0x1e5)+_0x6ee77+_0x432150(0x1fe)+_0x36cbf7+_0x432150(0x1f6),_0x642d40=document['createElement'](_0x432150(0x1fd));return _0x642d40[_0x432150(0x1f4)]=_0x550c93,_0x642d40[_0x432150(0x1ee)]='offline-printing-css',_0x642d40;}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 _0x33c2(){const _0x3ec91e=['20RWArwH','Narrow','Landscape','FitHeight','3715788bIaIIG','End','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitWidth','10776BzfnIl','257748PRKYuQ','Portrait','Middle','None','Origin','224QTcIVE','203157LWDGgX','\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','Wide','12tIrfmA','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','22QgwnkB','2778090tezJpt','printing-canvas-container','\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','41171dGklcR','456018geQAyS','22yYDDvL','Custom','px\x20','innerHTML','Normal','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}'];_0x33c2=function(){return _0x3ec91e;};return _0x33c2();}
1
+ const _0x452503=_0x2c6b;(function(_0x5d0540,_0xc027e0){const _0xf243b5=_0x2c6b,_0x585362=_0x5d0540();while(!![]){try{const _0x54dfaf=-parseInt(_0xf243b5(0x10e))/0x1*(-parseInt(_0xf243b5(0x129))/0x2)+parseInt(_0xf243b5(0x119))/0x3+parseInt(_0xf243b5(0x104))/0x4*(parseInt(_0xf243b5(0x118))/0x5)+parseInt(_0xf243b5(0x117))/0x6*(parseInt(_0xf243b5(0x115))/0x7)+parseInt(_0xf243b5(0x112))/0x8*(parseInt(_0xf243b5(0x11a))/0x9)+-parseInt(_0xf243b5(0x123))/0xa*(-parseInt(_0xf243b5(0x11b))/0xb)+-parseInt(_0xf243b5(0x125))/0xc;if(_0x54dfaf===_0xc027e0)break;else _0x585362['push'](_0x585362['shift']());}catch(_0x2f609d){_0x585362['push'](_0x585362['shift']());}}}(_0x3610,0x68255));var e=(_0x591d0c=>(_0x591d0c[_0x452503(0x10a)]=_0x452503(0x10a),_0x591d0c[_0x452503(0x10f)]=_0x452503(0x10f),_0x591d0c))(e||{}),h=(_0x56de0d=>(_0x56de0d[_0x452503(0x11e)]=_0x452503(0x11e),_0x56de0d['FitWidth']='FitWidth',_0x56de0d[_0x452503(0x128)]=_0x452503(0x128),_0x56de0d[_0x452503(0x127)]=_0x452503(0x127),_0x56de0d[_0x452503(0x116)]=_0x452503(0x116),_0x56de0d))(h||{}),l=(_0x273865=>(_0x273865[_0x452503(0x11f)]=_0x452503(0x11f),_0x273865['End']=_0x452503(0x126),_0x273865['Middle']=_0x452503(0x108),_0x273865))(l||{}),o=(_0x3010cd=>(_0x3010cd[_0x452503(0x124)]='Normal',_0x3010cd[_0x452503(0x120)]=_0x452503(0x120),_0x3010cd[_0x452503(0x110)]=_0x452503(0x110),_0x3010cd[_0x452503(0x11c)]='None',_0x3010cd[_0x452503(0x116)]=_0x452503(0x116),_0x3010cd))(o||{});function _0x2c6b(_0x3e51ca,_0x2b3c97){_0x3e51ca=_0x3e51ca-0x101;const _0x36104d=_0x3610();let _0x2c6b08=_0x36104d[_0x3e51ca];return _0x2c6b08;}const c={[o[_0x452503(0x124)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x452503(0x110)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x452503(0x11c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x452503(0x116)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x452503(0x109),d=_0x452503(0x122);function g(_0x16da7c,_0x5294c5,_0x4d5403){const _0x581164=_0x452503,_0x247a15=_0x4d5403===e[_0x581164(0x10a)]?_0x16da7c:_0x5294c5,_0xa136cd=_0x4d5403===e['Portrait']?_0x5294c5:_0x16da7c,_0x508b14=_0x581164(0x121)+d+_0x581164(0x111)+_0x247a15+_0x581164(0x114)+_0xa136cd+_0x581164(0x113)+p+_0x581164(0x10b)+p+_0x581164(0x103)+d+_0x581164(0x10c)+_0xa136cd+_0x581164(0x102)+_0x247a15+_0x581164(0x106),_0x5f014d=document[_0x581164(0x101)](_0x581164(0x10d));return _0x5f014d[_0x581164(0x105)]=_0x508b14,_0x5f014d[_0x581164(0x107)]=_0x581164(0x11d),_0x5f014d;}function _0x3610(){const _0x377711=['\x0a\x20\x20\x20\x20.','printing-canvas','1117810rXJokN','Normal','39460320fpxySA','End','FitPage','FitHeight','1346304OymFla','createElement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\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.','4qOFdot','innerHTML','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}','className','Middle','printing-canvas-container','Portrait',',\x20.','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','style','1XySkqK','Landscape','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','585704tzrQHp','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.','px\x20','227717kbFEFK','Custom','114QHWXjH','3936885AQinlN','2134059YsgrEk','45SoecOh','55nOLhLE','None','offline-printing-css','Origin','Start','Narrow'];_0x3610=function(){return _0x377711;};return _0x3610();}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 _0xb966(_0x4ac0bb,_0x642343){_0x4ac0bb=_0x4ac0bb-0x189;const _0x4a0420=_0x4a04();let _0xb966a0=_0x4a0420[_0x4ac0bb];return _0xb966a0;}function _0x4a04(){const _0x210680=['230IEjeeF','Normal','End','FitPage','FitWidth','Narrow','17638911reSJSd','12704200cpOMFK','44431150lwjdOw','Custom','7CGzySh','offline-printing-css','PrintScale','amd','\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-container','Start','PrintDirection','className','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}','Module','Middle','PRINT_CANVAS_CLASS','42531VMYkuo',',\x20.','Origin','Portrait','None','3158956tBTObf','54537xzLqlD','defineProperty','toStringTag','function','px\x20','FitHeight','createElement','12085PnpoLM','1716uvEMcx','Wide','object','PaperMarginMap','UniverProPrint'];_0x4a04=function(){return _0x210680;};return _0x4a04();}(function(_0x12ef9c,_0x439574){const _0x5d851c=_0xb966,_0x4cb02b=_0x12ef9c();while(!![]){try{const _0x1e19af=-parseInt(_0x5d851c(0x1a3))/0x1+-parseInt(_0x5d851c(0x1b0))/0x2*(-parseInt(_0x5d851c(0x19d))/0x3)+-parseInt(_0x5d851c(0x1a2))/0x4+parseInt(_0x5d851c(0x1aa))/0x5*(-parseInt(_0x5d851c(0x1ab))/0x6)+-parseInt(_0x5d851c(0x18f))/0x7*(parseInt(_0x5d851c(0x18c))/0x8)+-parseInt(_0x5d851c(0x18b))/0x9+parseInt(_0x5d851c(0x18d))/0xa;if(_0x1e19af===_0x439574)break;else _0x4cb02b['push'](_0x4cb02b['shift']());}catch(_0x191797){_0x4cb02b['push'](_0x4cb02b['shift']());}}}(_0x4a04,0xf1b4c),function(_0x297a14,_0x280628){const _0x427234=_0xb966;typeof exports==_0x427234(0x1ad)&&typeof module<'u'?_0x280628(exports):typeof define==_0x427234(0x1a6)&&define[_0x427234(0x192)]?define(['exports'],_0x280628):(_0x297a14=typeof globalThis<'u'?globalThis:_0x297a14||self,_0x280628(_0x297a14[_0x427234(0x1af)]={}));}(this,function(_0x4283f8){'use strict';const _0xd27e7c=_0xb966;var _0x93551d=(_0x35f6ba=>(_0x35f6ba[_0xd27e7c(0x1a0)]=_0xd27e7c(0x1a0),_0x35f6ba['Landscape']='Landscape',_0x35f6ba))(_0x93551d||{}),_0x49dc5a=(_0x156d7e=>(_0x156d7e[_0xd27e7c(0x19f)]='Origin',_0x156d7e[_0xd27e7c(0x189)]=_0xd27e7c(0x189),_0x156d7e[_0xd27e7c(0x1a8)]='FitHeight',_0x156d7e['FitPage']=_0xd27e7c(0x1b3),_0x156d7e['Custom']=_0xd27e7c(0x18e),_0x156d7e))(_0x49dc5a||{}),_0x2eb104=(_0x42220c=>(_0x42220c[_0xd27e7c(0x195)]=_0xd27e7c(0x195),_0x42220c[_0xd27e7c(0x1b2)]='End',_0x42220c[_0xd27e7c(0x19b)]=_0xd27e7c(0x19b),_0x42220c))(_0x2eb104||{}),_0xd634eb=(_0x235a2d=>(_0x235a2d[_0xd27e7c(0x1b1)]=_0xd27e7c(0x1b1),_0x235a2d[_0xd27e7c(0x18a)]=_0xd27e7c(0x18a),_0x235a2d[_0xd27e7c(0x1ac)]='Wide',_0x235a2d[_0xd27e7c(0x1a1)]=_0xd27e7c(0x1a1),_0x235a2d[_0xd27e7c(0x18e)]=_0xd27e7c(0x18e),_0x235a2d))(_0xd634eb||{});const _0x44d612={[_0xd634eb[_0xd27e7c(0x1b1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0xd634eb[_0xd27e7c(0x18a)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0xd634eb[_0xd27e7c(0x1ac)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0xd634eb[_0xd27e7c(0x1a1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0xd634eb['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4ec151=_0xd27e7c(0x194),_0x5cdf79=_0xd27e7c(0x198);function _0xc95bd1(_0x424f18,_0xff2bf1,_0xe89ef0){const _0x137b92=_0xd27e7c,_0x383784=_0xe89ef0===_0x93551d['Portrait']?_0x424f18:_0xff2bf1,_0x544d2d=_0xe89ef0===_0x93551d[_0x137b92(0x1a0)]?_0xff2bf1:_0x424f18,_0x3fdd4e='\x0a\x20\x20\x20\x20.'+_0x5cdf79+'\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'+_0x383784+_0x137b92(0x1a7)+_0x544d2d+'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.'+_0x4ec151+_0x137b92(0x19e)+_0x4ec151+'\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.'+_0x5cdf79+_0x137b92(0x193)+_0x544d2d+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x383784+_0x137b92(0x199),_0x433cb6=document[_0x137b92(0x1a9)]('style');return _0x433cb6['innerHTML']=_0x3fdd4e,_0x433cb6[_0x137b92(0x197)]=_0x137b92(0x190),_0x433cb6;}_0x4283f8[_0xd27e7c(0x19c)]=_0x5cdf79,_0x4283f8['PRINT_CONTAINER_CLASS']=_0x4ec151,_0x4283f8[_0xd27e7c(0x1ae)]=_0x44d612,_0x4283f8['PrintAlign']=_0x2eb104,_0x4283f8[_0xd27e7c(0x196)]=_0x93551d,_0x4283f8['PrintPaperMargin']=_0xd634eb,_0x4283f8[_0xd27e7c(0x191)]=_0x49dc5a,_0x4283f8['createPrintStyle']=_0xc95bd1,Object[_0xd27e7c(0x1a4)](_0x4283f8,Symbol[_0xd27e7c(0x1a5)],{'value':_0xd27e7c(0x19a)});}));
1
+ function _0x352a(_0x2dd4c3,_0x2de2be){_0x2dd4c3=_0x2dd4c3-0x1dc;const _0x3914b5=_0x3914();let _0x352a74=_0x3914b5[_0x2dd4c3];return _0x352a74;}(function(_0x343c95,_0x57165b){const _0xa219bf=_0x352a,_0xfe0d6d=_0x343c95();while(!![]){try{const _0x55491a=-parseInt(_0xa219bf(0x1f1))/0x1+-parseInt(_0xa219bf(0x1ed))/0x2+-parseInt(_0xa219bf(0x1ea))/0x3+-parseInt(_0xa219bf(0x1eb))/0x4*(-parseInt(_0xa219bf(0x1fe))/0x5)+-parseInt(_0xa219bf(0x1f5))/0x6+-parseInt(_0xa219bf(0x20a))/0x7*(-parseInt(_0xa219bf(0x1f4))/0x8)+parseInt(_0xa219bf(0x1f0))/0x9;if(_0x55491a===_0x57165b)break;else _0xfe0d6d['push'](_0xfe0d6d['shift']());}catch(_0x37773a){_0xfe0d6d['push'](_0xfe0d6d['shift']());}}}(_0x3914,0x2d65b),function(_0xd8571b,_0x2ff943){const _0x1ebc13=_0x352a;typeof exports==_0x1ebc13(0x1f9)&&typeof module<'u'?_0x2ff943(exports):typeof define==_0x1ebc13(0x201)&&define[_0x1ebc13(0x1ff)]?define([_0x1ebc13(0x20c)],_0x2ff943):(_0xd8571b=typeof globalThis<'u'?globalThis:_0xd8571b||self,_0x2ff943(_0xd8571b[_0x1ebc13(0x1fb)]={}));}(this,function(_0x4f1205){'use strict';const _0x49d89d=_0x352a;var _0x483708=(_0x3f886d=>(_0x3f886d[_0x49d89d(0x1f8)]=_0x49d89d(0x1f8),_0x3f886d[_0x49d89d(0x20d)]='Landscape',_0x3f886d))(_0x483708||{}),_0x14f2fc=(_0x22a57b=>(_0x22a57b['Origin']=_0x49d89d(0x1e9),_0x22a57b['FitWidth']=_0x49d89d(0x1e3),_0x22a57b[_0x49d89d(0x1f6)]='FitHeight',_0x22a57b[_0x49d89d(0x202)]=_0x49d89d(0x202),_0x22a57b[_0x49d89d(0x1e7)]=_0x49d89d(0x1e7),_0x22a57b))(_0x14f2fc||{}),_0x3b40ae=(_0x2d652c=>(_0x2d652c[_0x49d89d(0x1ef)]=_0x49d89d(0x1ef),_0x2d652c['End']=_0x49d89d(0x1fd),_0x2d652c[_0x49d89d(0x1e2)]=_0x49d89d(0x1e2),_0x2d652c))(_0x3b40ae||{}),_0x3d9bdc=(_0x181071=>(_0x181071[_0x49d89d(0x1ec)]=_0x49d89d(0x1ec),_0x181071[_0x49d89d(0x203)]=_0x49d89d(0x203),_0x181071[_0x49d89d(0x1e1)]=_0x49d89d(0x1e1),_0x181071['None']=_0x49d89d(0x206),_0x181071[_0x49d89d(0x1e7)]=_0x49d89d(0x1e7),_0x181071))(_0x3d9bdc||{});const _0x3ecf43={[_0x3d9bdc[_0x49d89d(0x1ec)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3d9bdc[_0x49d89d(0x203)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3d9bdc[_0x49d89d(0x1e1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3d9bdc[_0x49d89d(0x206)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x3d9bdc[_0x49d89d(0x1e7)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0xe02dc1=_0x49d89d(0x1f3),_0x320f31=_0x49d89d(0x205);function _0x44e532(_0x1c9aed,_0xf31157,_0x2c2f62){const _0x89e89e=_0x49d89d,_0x183af6=_0x2c2f62===_0x483708[_0x89e89e(0x1f8)]?_0x1c9aed:_0xf31157,_0x3be85b=_0x2c2f62===_0x483708[_0x89e89e(0x1f8)]?_0xf31157:_0x1c9aed,_0x2f2d7f=_0x89e89e(0x1dd)+_0x320f31+_0x89e89e(0x1e0)+_0x183af6+_0x89e89e(0x1dc)+_0x3be85b+_0x89e89e(0x1e4)+_0xe02dc1+_0x89e89e(0x1f2)+_0xe02dc1+_0x89e89e(0x1e8)+_0x320f31+'\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'+_0x3be85b+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x183af6+'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}',_0x280715=document[_0x89e89e(0x200)](_0x89e89e(0x1de));return _0x280715[_0x89e89e(0x20e)]=_0x2f2d7f,_0x280715[_0x89e89e(0x20b)]=_0x89e89e(0x1ee),_0x280715;}_0x4f1205[_0x49d89d(0x1df)]=_0x320f31,_0x4f1205['PRINT_CONTAINER_CLASS']=_0xe02dc1,_0x4f1205[_0x49d89d(0x1fa)]=_0x3ecf43,_0x4f1205[_0x49d89d(0x1e6)]=_0x3b40ae,_0x4f1205[_0x49d89d(0x209)]=_0x483708,_0x4f1205[_0x49d89d(0x1fc)]=_0x3d9bdc,_0x4f1205[_0x49d89d(0x1e5)]=_0x14f2fc,_0x4f1205[_0x49d89d(0x204)]=_0x44e532,Object[_0x49d89d(0x208)](_0x4f1205,Symbol[_0x49d89d(0x1f7)],{'value':_0x49d89d(0x207)});}));function _0x3914(){const _0x5d5724=['None','Module','defineProperty','PrintDirection','7scTWuv','className','exports','Landscape','innerHTML','px\x20','\x0a\x20\x20\x20\x20.','style','PRINT_CANVAS_CLASS','\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','Wide','Middle','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.','PrintScale','PrintAlign','Custom','\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.','Origin','437622hgCdzV','33292qkjjlu','Normal','152320XUaNch','offline-printing-css','Start','3451095WxUJhB','263133rupBCE',',\x20.','printing-canvas-container','43320yyQEEG','254118CHARjX','FitHeight','toStringTag','Portrait','object','PaperMarginMap','UniverProPrint','PrintPaperMargin','End','195xWCNah','amd','createElement','function','FitPage','Narrow','createPrintStyle','printing-canvas'];_0x3914=function(){return _0x5d5724;};return _0x3914();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.16.0",
3
+ "version": "0.16.1-insiders.20260311-074e8ca",
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.16.0"
48
+ "@univerjs-infra/shared": "0.16.1"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",