@univerjs-pro/print 0.9.3 → 0.9.4-nightly.202507290713

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 _0x1f7e59=_0x5b04;(function(_0x2ae41a,_0xfa85b1){const _0x11e1cd=_0x5b04,_0x30935b=_0x2ae41a();while(!![]){try{const _0x2f014b=parseInt(_0x11e1cd(0x121))/0x1+parseInt(_0x11e1cd(0x12b))/0x2*(-parseInt(_0x11e1cd(0x12e))/0x3)+parseInt(_0x11e1cd(0x119))/0x4*(parseInt(_0x11e1cd(0x10d))/0x5)+-parseInt(_0x11e1cd(0x131))/0x6+parseInt(_0x11e1cd(0x10e))/0x7*(-parseInt(_0x11e1cd(0x110))/0x8)+parseInt(_0x11e1cd(0x12c))/0x9*(parseInt(_0x11e1cd(0x11b))/0xa)+parseInt(_0x11e1cd(0x124))/0xb;if(_0x2f014b===_0xfa85b1)break;else _0x30935b['push'](_0x30935b['shift']());}catch(_0x39f4c4){_0x30935b['push'](_0x30935b['shift']());}}}(_0xe21a,0x7eb4e));function _0xe21a(){const _0x1f0cc2=['px\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','innerHTML','None','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','defineProperty','className','FitHeight','190KjTwgN','7xpyLXO','Custom','5936264XfqrzX','PrintAlign','Landscape','Start','printing-canvas','FitWidth','Origin','toStringTag','PrintScale','11044Ayxngy','Portrait','75220CGLpBE','\x0a\x20\x20\x20\x20.','Normal','createElement','Narrow','createPrintStyle','607543gjLcmm','PRINT_CANVAS_CLASS','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','6688847Tqpexi','\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.','PrintDirection','offline-printing-css',',\x20.','PRINT_CONTAINER_CLASS','FitPage','1509820GmMLoB','1071sgGdzA','style','3YlzkRY','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}','PaperMarginMap','1198338kGxfEE','End','Middle','Wide'];_0xe21a=function(){return _0x1f0cc2;};return _0xe21a();}Object[_0x1f7e59(0x13b)](exports,Symbol[_0x1f7e59(0x117)],{'value':'Module'});function _0x5b04(_0x1a9777,_0x28f112){const _0xe21a9d=_0xe21a();return _0x5b04=function(_0x5b0434,_0x22d5f1){_0x5b0434=_0x5b0434-0x10b;let _0x5de015=_0xe21a9d[_0x5b0434];return _0x5de015;},_0x5b04(_0x1a9777,_0x28f112);}var e=(_0x2689a6=>(_0x2689a6[_0x1f7e59(0x11a)]='Portrait',_0x2689a6['Landscape']=_0x1f7e59(0x112),_0x2689a6))(e||{}),l=(_0x4d7ddc=>(_0x4d7ddc[_0x1f7e59(0x116)]=_0x1f7e59(0x116),_0x4d7ddc[_0x1f7e59(0x115)]=_0x1f7e59(0x115),_0x4d7ddc[_0x1f7e59(0x10c)]=_0x1f7e59(0x10c),_0x4d7ddc[_0x1f7e59(0x12a)]=_0x1f7e59(0x12a),_0x4d7ddc[_0x1f7e59(0x10f)]=_0x1f7e59(0x10f),_0x4d7ddc))(l||{}),c=(_0x242a27=>(_0x242a27[_0x1f7e59(0x113)]='Start',_0x242a27['End']=_0x1f7e59(0x132),_0x242a27[_0x1f7e59(0x133)]=_0x1f7e59(0x133),_0x242a27))(c||{}),i=(_0x510a35=>(_0x510a35[_0x1f7e59(0x11d)]=_0x1f7e59(0x11d),_0x510a35[_0x1f7e59(0x11f)]=_0x1f7e59(0x11f),_0x510a35['Wide']=_0x1f7e59(0x134),_0x510a35[_0x1f7e59(0x138)]='None',_0x510a35))(i||{});const h={[i[_0x1f7e59(0x11d)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x1f7e59(0x11f)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x1f7e59(0x138)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n=_0x1f7e59(0x114);function m(_0x1edc66,_0x2d4020,_0x49e63c){const _0x29798b=_0x1f7e59,_0x316c8a=_0x49e63c===e[_0x29798b(0x11a)]?_0x1edc66:_0x2d4020,_0x5c88c7=_0x49e63c===e['Portrait']?_0x2d4020:_0x1edc66,_0x1102ad=_0x29798b(0x11c)+n+_0x29798b(0x13a)+_0x316c8a+_0x29798b(0x135)+_0x5c88c7+'px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+r+_0x29798b(0x128)+r+_0x29798b(0x125)+n+_0x29798b(0x136)+_0x5c88c7+_0x29798b(0x123)+_0x316c8a+_0x29798b(0x12f),_0x53bd83=document[_0x29798b(0x11e)](_0x29798b(0x12d));return _0x53bd83[_0x29798b(0x137)]=_0x1102ad,_0x53bd83[_0x29798b(0x10b)]=_0x29798b(0x127),_0x53bd83;}exports[_0x1f7e59(0x122)]=n,exports[_0x1f7e59(0x129)]=r,exports[_0x1f7e59(0x130)]=h,exports[_0x1f7e59(0x111)]=c,exports[_0x1f7e59(0x126)]=e,exports[_0x1f7e59(0x139)]=i,exports[_0x1f7e59(0x118)]=l,exports[_0x1f7e59(0x120)]=m;
1
+ 'use strict';function _0x26fe(_0x9a2feb,_0x2489e7){const _0x265dee=_0x265d();return _0x26fe=function(_0x26feaf,_0x4dfa90){_0x26feaf=_0x26feaf-0x1d4;let _0x564fc2=_0x265dee[_0x26feaf];return _0x564fc2;},_0x26fe(_0x9a2feb,_0x2489e7);}const _0x30dfbd=_0x26fe;(function(_0x1a1acf,_0x3978df){const _0x18bd00=_0x26fe,_0x29b09b=_0x1a1acf();while(!![]){try{const _0x4f596a=-parseInt(_0x18bd00(0x1f9))/0x1+-parseInt(_0x18bd00(0x1e5))/0x2+-parseInt(_0x18bd00(0x1e9))/0x3+parseInt(_0x18bd00(0x1df))/0x4*(parseInt(_0x18bd00(0x1f6))/0x5)+parseInt(_0x18bd00(0x1e8))/0x6+parseInt(_0x18bd00(0x1e1))/0x7+parseInt(_0x18bd00(0x1fd))/0x8;if(_0x4f596a===_0x3978df)break;else _0x29b09b['push'](_0x29b09b['shift']());}catch(_0x4c367e){_0x29b09b['push'](_0x29b09b['shift']());}}}(_0x265d,0x46e0d));function _0x265d(){const _0x507b4f=['End','Portrait','FitWidth','FitHeight','Origin','Wide','PRINT_CANVAS_CLASS',',\x20.','Custom','Narrow','PRINT_CONTAINER_CLASS','2424acfxYx','None','807079GSJXGF','\x0a\x20\x20\x20\x20.','PrintAlign','\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','348542CCjFOX','innerHTML','PrintPaperMargin','1023642vhkWGA','707406rejcAQ','PrintScale','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','createElement','toStringTag','className','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.','PrintDirection','FitPage','px\x20','defineProperty','style','2190CaMKpq','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','60296ZzCnNj','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','px;\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.','1674832QFIcek','Module','Normal'];_0x265d=function(){return _0x507b4f;};return _0x265d();}Object[_0x30dfbd(0x1f4)](exports,Symbol[_0x30dfbd(0x1ed)],{'value':_0x30dfbd(0x1fe)});var e=(_0xe9eaf4=>(_0xe9eaf4[_0x30dfbd(0x1d5)]='Portrait',_0xe9eaf4[_0x30dfbd(0x1f8)]=_0x30dfbd(0x1f8),_0xe9eaf4))(e||{}),l=(_0x5e489e=>(_0x5e489e[_0x30dfbd(0x1d8)]=_0x30dfbd(0x1d8),_0x5e489e[_0x30dfbd(0x1d6)]=_0x30dfbd(0x1d6),_0x5e489e['FitHeight']=_0x30dfbd(0x1d7),_0x5e489e[_0x30dfbd(0x1f2)]=_0x30dfbd(0x1f2),_0x5e489e[_0x30dfbd(0x1dc)]=_0x30dfbd(0x1dc),_0x5e489e))(l||{}),c=(_0x31fa63=>(_0x31fa63['Start']=_0x30dfbd(0x1fa),_0x31fa63[_0x30dfbd(0x1d4)]=_0x30dfbd(0x1d4),_0x31fa63['Middle']='Middle',_0x31fa63))(c||{}),i=(_0x4c3d0b=>(_0x4c3d0b[_0x30dfbd(0x1ff)]='Normal',_0x4c3d0b[_0x30dfbd(0x1dd)]=_0x30dfbd(0x1dd),_0x4c3d0b[_0x30dfbd(0x1d9)]=_0x30dfbd(0x1d9),_0x4c3d0b['None']='None',_0x4c3d0b))(i||{});const h={[i[_0x30dfbd(0x1ff)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x30dfbd(0x1dd)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x30dfbd(0x1d9)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x30dfbd(0x1e0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n='printing-canvas';function m(_0x399d37,_0x4f6a4a,_0x4fa006){const _0x211899=_0x30dfbd,_0x279aad=_0x4fa006===e[_0x211899(0x1d5)]?_0x399d37:_0x4f6a4a,_0x2344b3=_0x4fa006===e['Portrait']?_0x4f6a4a:_0x399d37,_0x35262e=_0x211899(0x1e2)+n+_0x211899(0x1e4)+_0x279aad+_0x211899(0x1f3)+_0x2344b3+_0x211899(0x1fc)+r+_0x211899(0x1db)+r+_0x211899(0x1f0)+n+_0x211899(0x1eb)+_0x2344b3+_0x211899(0x1f7)+_0x279aad+_0x211899(0x1fb),_0x199230=document[_0x211899(0x1ec)](_0x211899(0x1f5));return _0x199230[_0x211899(0x1e6)]=_0x35262e,_0x199230[_0x211899(0x1ee)]=_0x211899(0x1ef),_0x199230;}exports[_0x30dfbd(0x1da)]=n,exports[_0x30dfbd(0x1de)]=r,exports['PaperMarginMap']=h,exports[_0x30dfbd(0x1e3)]=c,exports[_0x30dfbd(0x1f1)]=e,exports[_0x30dfbd(0x1e7)]=i,exports[_0x30dfbd(0x1ea)]=l,exports['createPrintStyle']=m;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1ed918=_0x2ccd;(function(_0x184512,_0x1a76a3){const _0x264403=_0x2ccd,_0x32b26b=_0x184512();while(!![]){try{const _0x225724=-parseInt(_0x264403(0x177))/0x1+parseInt(_0x264403(0x16b))/0x2*(parseInt(_0x264403(0x184))/0x3)+-parseInt(_0x264403(0x16c))/0x4*(parseInt(_0x264403(0x16f))/0x5)+-parseInt(_0x264403(0x187))/0x6+parseInt(_0x264403(0x174))/0x7+parseInt(_0x264403(0x172))/0x8+parseInt(_0x264403(0x16a))/0x9;if(_0x225724===_0x1a76a3)break;else _0x32b26b['push'](_0x32b26b['shift']());}catch(_0x166a52){_0x32b26b['push'](_0x32b26b['shift']());}}}(_0x3bf4,0x927e9));var e=(_0xe596f3=>(_0xe596f3[_0x1ed918(0x16e)]=_0x1ed918(0x16e),_0xe596f3[_0x1ed918(0x179)]=_0x1ed918(0x179),_0xe596f3))(e||{}),l=(_0x348623=>(_0x348623['Origin']='Origin',_0x348623[_0x1ed918(0x175)]=_0x1ed918(0x175),_0x348623['FitHeight']='FitHeight',_0x348623['FitPage']=_0x1ed918(0x17c),_0x348623[_0x1ed918(0x180)]=_0x1ed918(0x180),_0x348623))(l||{}),m=(_0x3313c3=>(_0x3313c3[_0x1ed918(0x181)]=_0x1ed918(0x181),_0x3313c3['End']='End',_0x3313c3[_0x1ed918(0x16d)]='Middle',_0x3313c3))(m||{}),o=(_0x4f6961=>(_0x4f6961[_0x1ed918(0x168)]=_0x1ed918(0x168),_0x4f6961[_0x1ed918(0x169)]=_0x1ed918(0x169),_0x4f6961[_0x1ed918(0x17a)]=_0x1ed918(0x17a),_0x4f6961['None']=_0x1ed918(0x186),_0x4f6961))(o||{});function _0x3bf4(){const _0x2d89c9=['FitWidth','\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','641692ssQzcx','printing-canvas-container','Landscape','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','FitPage',',\x20.','innerHTML','offline-printing-css','Custom','Start','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.','1464jfLpzf','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.','None','5405754pQfbCF','Normal','Narrow','5468688pHBpLC','2138XJtTFp','858652mDeQsa','Middle','Portrait','5TRjjlJ','\x0a\x20\x20\x20\x20.','createElement','918656knSBcA','\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','7792533JqciyQ'];_0x3bf4=function(){return _0x2d89c9;};return _0x3bf4();}function _0x2ccd(_0x16772f,_0x23c43e){const _0x3bf422=_0x3bf4();return _0x2ccd=function(_0x2ccd93,_0x3ec4c0){_0x2ccd93=_0x2ccd93-0x168;let _0x1612a4=_0x3bf422[_0x2ccd93];return _0x1612a4;},_0x2ccd(_0x16772f,_0x23c43e);}const c={[o[_0x1ed918(0x168)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1ed918(0x169)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1ed918(0x186)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1ed918(0x178),d='printing-canvas';function g(_0x1da1b8,_0x5bbe1e,_0x35b472){const _0x3465a2=_0x1ed918,_0x3089dd=_0x35b472===e['Portrait']?_0x1da1b8:_0x5bbe1e,_0x2e917d=_0x35b472===e[_0x3465a2(0x16e)]?_0x5bbe1e:_0x1da1b8,_0x587948=_0x3465a2(0x170)+d+_0x3465a2(0x176)+_0x3089dd+'px\x20'+_0x2e917d+_0x3465a2(0x185)+p+_0x3465a2(0x17d)+p+_0x3465a2(0x183)+d+_0x3465a2(0x173)+_0x2e917d+_0x3465a2(0x182)+_0x3089dd+_0x3465a2(0x17b),_0x76307a=document[_0x3465a2(0x171)]('style');return _0x76307a[_0x3465a2(0x17e)]=_0x587948,_0x76307a['className']=_0x3465a2(0x17f),_0x76307a;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
1
+ const _0x47b5cb=_0x1ac6;function _0x1ac6(_0x34db2d,_0x374b7a){const _0x223a59=_0x223a();return _0x1ac6=function(_0x1ac6af,_0xc9c4ed){_0x1ac6af=_0x1ac6af-0x1ef;let _0x417eef=_0x223a59[_0x1ac6af];return _0x417eef;},_0x1ac6(_0x34db2d,_0x374b7a);}(function(_0x2812f7,_0x57003b){const _0x35b41c=_0x1ac6,_0x16e1e3=_0x2812f7();while(!![]){try{const _0x21ea69=-parseInt(_0x35b41c(0x1f8))/0x1+-parseInt(_0x35b41c(0x200))/0x2+parseInt(_0x35b41c(0x1ef))/0x3+-parseInt(_0x35b41c(0x20a))/0x4*(parseInt(_0x35b41c(0x1f2))/0x5)+parseInt(_0x35b41c(0x20e))/0x6*(-parseInt(_0x35b41c(0x1fe))/0x7)+parseInt(_0x35b41c(0x20d))/0x8+parseInt(_0x35b41c(0x1f9))/0x9*(parseInt(_0x35b41c(0x203))/0xa);if(_0x21ea69===_0x57003b)break;else _0x16e1e3['push'](_0x16e1e3['shift']());}catch(_0x1cc709){_0x16e1e3['push'](_0x16e1e3['shift']());}}}(_0x223a,0x71dc5));var e=(_0x46f609=>(_0x46f609[_0x47b5cb(0x20c)]=_0x47b5cb(0x20c),_0x46f609[_0x47b5cb(0x201)]=_0x47b5cb(0x201),_0x46f609))(e||{}),l=(_0x310546=>(_0x310546[_0x47b5cb(0x206)]=_0x47b5cb(0x206),_0x310546[_0x47b5cb(0x1f4)]=_0x47b5cb(0x1f4),_0x310546['FitHeight']=_0x47b5cb(0x1fc),_0x310546[_0x47b5cb(0x209)]='FitPage',_0x310546[_0x47b5cb(0x1ff)]='Custom',_0x310546))(l||{}),m=(_0x291ed4=>(_0x291ed4['Start']=_0x47b5cb(0x210),_0x291ed4['End']=_0x47b5cb(0x207),_0x291ed4[_0x47b5cb(0x1f0)]=_0x47b5cb(0x1f0),_0x291ed4))(m||{}),o=(_0x5f4e2d=>(_0x5f4e2d[_0x47b5cb(0x20f)]=_0x47b5cb(0x20f),_0x5f4e2d[_0x47b5cb(0x1f7)]=_0x47b5cb(0x1f7),_0x5f4e2d[_0x47b5cb(0x1fd)]=_0x47b5cb(0x1fd),_0x5f4e2d['None']=_0x47b5cb(0x1fa),_0x5f4e2d))(o||{});const c={[o[_0x47b5cb(0x20f)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x47b5cb(0x1f7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x47b5cb(0x1fd)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x47b5cb(0x1fa)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x47b5cb(0x1f5);function g(_0x3d925d,_0x367eb0,_0x26e486){const _0x5f4b7c=_0x47b5cb,_0x23dbc8=_0x26e486===e[_0x5f4b7c(0x20c)]?_0x3d925d:_0x367eb0,_0x3893a6=_0x26e486===e['Portrait']?_0x367eb0:_0x3d925d,_0x37507c=_0x5f4b7c(0x205)+d+_0x5f4b7c(0x204)+_0x23dbc8+_0x5f4b7c(0x1fb)+_0x3893a6+_0x5f4b7c(0x1f3)+p+_0x5f4b7c(0x1f1)+p+'\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.'+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'+_0x3893a6+_0x5f4b7c(0x202)+_0x23dbc8+'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}',_0xe6c485=document['createElement'](_0x5f4b7c(0x20b));return _0xe6c485[_0x5f4b7c(0x1f6)]=_0x37507c,_0xe6c485['className']=_0x5f4b7c(0x208),_0xe6c485;}function _0x223a(){const _0x1b7e60=['6364088omtKAS','6njUgUc','Normal','Start','2021088vBmwJZ','Middle',',\x20.','385625BUglCz','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.','FitWidth','printing-canvas','innerHTML','Narrow','726961hmoMcr','729FEOWKh','None','px\x20','FitHeight','Wide','577283NemzMh','Custom','1233504NHUUxj','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','80830gbYwrt','\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.','Origin','End','offline-printing-css','FitPage','12pzcTGc','style','Portrait'];_0x223a=function(){return _0x1b7e60;};return _0x223a();}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1ed918=_0x2ccd;(function(_0x184512,_0x1a76a3){const _0x264403=_0x2ccd,_0x32b26b=_0x184512();while(!![]){try{const _0x225724=-parseInt(_0x264403(0x177))/0x1+parseInt(_0x264403(0x16b))/0x2*(parseInt(_0x264403(0x184))/0x3)+-parseInt(_0x264403(0x16c))/0x4*(parseInt(_0x264403(0x16f))/0x5)+-parseInt(_0x264403(0x187))/0x6+parseInt(_0x264403(0x174))/0x7+parseInt(_0x264403(0x172))/0x8+parseInt(_0x264403(0x16a))/0x9;if(_0x225724===_0x1a76a3)break;else _0x32b26b['push'](_0x32b26b['shift']());}catch(_0x166a52){_0x32b26b['push'](_0x32b26b['shift']());}}}(_0x3bf4,0x927e9));var e=(_0xe596f3=>(_0xe596f3[_0x1ed918(0x16e)]=_0x1ed918(0x16e),_0xe596f3[_0x1ed918(0x179)]=_0x1ed918(0x179),_0xe596f3))(e||{}),l=(_0x348623=>(_0x348623['Origin']='Origin',_0x348623[_0x1ed918(0x175)]=_0x1ed918(0x175),_0x348623['FitHeight']='FitHeight',_0x348623['FitPage']=_0x1ed918(0x17c),_0x348623[_0x1ed918(0x180)]=_0x1ed918(0x180),_0x348623))(l||{}),m=(_0x3313c3=>(_0x3313c3[_0x1ed918(0x181)]=_0x1ed918(0x181),_0x3313c3['End']='End',_0x3313c3[_0x1ed918(0x16d)]='Middle',_0x3313c3))(m||{}),o=(_0x4f6961=>(_0x4f6961[_0x1ed918(0x168)]=_0x1ed918(0x168),_0x4f6961[_0x1ed918(0x169)]=_0x1ed918(0x169),_0x4f6961[_0x1ed918(0x17a)]=_0x1ed918(0x17a),_0x4f6961['None']=_0x1ed918(0x186),_0x4f6961))(o||{});function _0x3bf4(){const _0x2d89c9=['FitWidth','\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','641692ssQzcx','printing-canvas-container','Landscape','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','FitPage',',\x20.','innerHTML','offline-printing-css','Custom','Start','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.','1464jfLpzf','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.','None','5405754pQfbCF','Normal','Narrow','5468688pHBpLC','2138XJtTFp','858652mDeQsa','Middle','Portrait','5TRjjlJ','\x0a\x20\x20\x20\x20.','createElement','918656knSBcA','\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','7792533JqciyQ'];_0x3bf4=function(){return _0x2d89c9;};return _0x3bf4();}function _0x2ccd(_0x16772f,_0x23c43e){const _0x3bf422=_0x3bf4();return _0x2ccd=function(_0x2ccd93,_0x3ec4c0){_0x2ccd93=_0x2ccd93-0x168;let _0x1612a4=_0x3bf422[_0x2ccd93];return _0x1612a4;},_0x2ccd(_0x16772f,_0x23c43e);}const c={[o[_0x1ed918(0x168)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1ed918(0x169)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1ed918(0x186)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1ed918(0x178),d='printing-canvas';function g(_0x1da1b8,_0x5bbe1e,_0x35b472){const _0x3465a2=_0x1ed918,_0x3089dd=_0x35b472===e['Portrait']?_0x1da1b8:_0x5bbe1e,_0x2e917d=_0x35b472===e[_0x3465a2(0x16e)]?_0x5bbe1e:_0x1da1b8,_0x587948=_0x3465a2(0x170)+d+_0x3465a2(0x176)+_0x3089dd+'px\x20'+_0x2e917d+_0x3465a2(0x185)+p+_0x3465a2(0x17d)+p+_0x3465a2(0x183)+d+_0x3465a2(0x173)+_0x2e917d+_0x3465a2(0x182)+_0x3089dd+_0x3465a2(0x17b),_0x76307a=document[_0x3465a2(0x171)]('style');return _0x76307a[_0x3465a2(0x17e)]=_0x587948,_0x76307a['className']=_0x3465a2(0x17f),_0x76307a;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
1
+ const _0x47b5cb=_0x1ac6;function _0x1ac6(_0x34db2d,_0x374b7a){const _0x223a59=_0x223a();return _0x1ac6=function(_0x1ac6af,_0xc9c4ed){_0x1ac6af=_0x1ac6af-0x1ef;let _0x417eef=_0x223a59[_0x1ac6af];return _0x417eef;},_0x1ac6(_0x34db2d,_0x374b7a);}(function(_0x2812f7,_0x57003b){const _0x35b41c=_0x1ac6,_0x16e1e3=_0x2812f7();while(!![]){try{const _0x21ea69=-parseInt(_0x35b41c(0x1f8))/0x1+-parseInt(_0x35b41c(0x200))/0x2+parseInt(_0x35b41c(0x1ef))/0x3+-parseInt(_0x35b41c(0x20a))/0x4*(parseInt(_0x35b41c(0x1f2))/0x5)+parseInt(_0x35b41c(0x20e))/0x6*(-parseInt(_0x35b41c(0x1fe))/0x7)+parseInt(_0x35b41c(0x20d))/0x8+parseInt(_0x35b41c(0x1f9))/0x9*(parseInt(_0x35b41c(0x203))/0xa);if(_0x21ea69===_0x57003b)break;else _0x16e1e3['push'](_0x16e1e3['shift']());}catch(_0x1cc709){_0x16e1e3['push'](_0x16e1e3['shift']());}}}(_0x223a,0x71dc5));var e=(_0x46f609=>(_0x46f609[_0x47b5cb(0x20c)]=_0x47b5cb(0x20c),_0x46f609[_0x47b5cb(0x201)]=_0x47b5cb(0x201),_0x46f609))(e||{}),l=(_0x310546=>(_0x310546[_0x47b5cb(0x206)]=_0x47b5cb(0x206),_0x310546[_0x47b5cb(0x1f4)]=_0x47b5cb(0x1f4),_0x310546['FitHeight']=_0x47b5cb(0x1fc),_0x310546[_0x47b5cb(0x209)]='FitPage',_0x310546[_0x47b5cb(0x1ff)]='Custom',_0x310546))(l||{}),m=(_0x291ed4=>(_0x291ed4['Start']=_0x47b5cb(0x210),_0x291ed4['End']=_0x47b5cb(0x207),_0x291ed4[_0x47b5cb(0x1f0)]=_0x47b5cb(0x1f0),_0x291ed4))(m||{}),o=(_0x5f4e2d=>(_0x5f4e2d[_0x47b5cb(0x20f)]=_0x47b5cb(0x20f),_0x5f4e2d[_0x47b5cb(0x1f7)]=_0x47b5cb(0x1f7),_0x5f4e2d[_0x47b5cb(0x1fd)]=_0x47b5cb(0x1fd),_0x5f4e2d['None']=_0x47b5cb(0x1fa),_0x5f4e2d))(o||{});const c={[o[_0x47b5cb(0x20f)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x47b5cb(0x1f7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x47b5cb(0x1fd)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x47b5cb(0x1fa)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x47b5cb(0x1f5);function g(_0x3d925d,_0x367eb0,_0x26e486){const _0x5f4b7c=_0x47b5cb,_0x23dbc8=_0x26e486===e[_0x5f4b7c(0x20c)]?_0x3d925d:_0x367eb0,_0x3893a6=_0x26e486===e['Portrait']?_0x367eb0:_0x3d925d,_0x37507c=_0x5f4b7c(0x205)+d+_0x5f4b7c(0x204)+_0x23dbc8+_0x5f4b7c(0x1fb)+_0x3893a6+_0x5f4b7c(0x1f3)+p+_0x5f4b7c(0x1f1)+p+'\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.'+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'+_0x3893a6+_0x5f4b7c(0x202)+_0x23dbc8+'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}',_0xe6c485=document['createElement'](_0x5f4b7c(0x20b));return _0xe6c485[_0x5f4b7c(0x1f6)]=_0x37507c,_0xe6c485['className']=_0x5f4b7c(0x208),_0xe6c485;}function _0x223a(){const _0x1b7e60=['6364088omtKAS','6njUgUc','Normal','Start','2021088vBmwJZ','Middle',',\x20.','385625BUglCz','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.','FitWidth','printing-canvas','innerHTML','Narrow','726961hmoMcr','729FEOWKh','None','px\x20','FitHeight','Wide','577283NemzMh','Custom','1233504NHUUxj','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','80830gbYwrt','\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.','Origin','End','offline-printing-css','FitPage','12pzcTGc','style','Portrait'];_0x223a=function(){return _0x1b7e60;};return _0x223a();}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5a88(_0x12137c,_0x26e381){const _0x222514=_0x2225();return _0x5a88=function(_0x5a88b9,_0x49ee03){_0x5a88b9=_0x5a88b9-0x1de;let _0x40b531=_0x222514[_0x5a88b9];return _0x40b531;},_0x5a88(_0x12137c,_0x26e381);}function _0x2225(){const _0x16ee75=['px\x20','amd','47SQZfaq','8hsOLaz','10RYFeyD','Start','FitPage','PRINT_CANVAS_CLASS','980651dnFJqs','PrintDirection','Origin','36qaDhud','None','PrintPaperMargin','45546cSGySW','8189580qUBNEf','\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','FitWidth','Wide','\x0a\x20\x20\x20\x20.','UniverProPrint','className','printing-canvas','defineProperty','FitHeight','Module','PaperMarginMap','Custom','577090qDxaCM','object','printing-canvas-container','Narrow','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}','Landscape','innerHTML','toStringTag','7647255wtPjbQ','function','End','557178ZGDZYW','PRINT_CONTAINER_CLASS','style','Normal','offline-printing-css','Portrait','19223534yswwyc','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','createPrintStyle','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.'];_0x2225=function(){return _0x16ee75;};return _0x2225();}(function(_0x448b1d,_0x1f9b79){const _0x33bd68=_0x5a88,_0x44da01=_0x448b1d();while(!![]){try{const _0x5852aa=parseInt(_0x33bd68(0x1df))/0x1*(-parseInt(_0x33bd68(0x1eb))/0x2)+parseInt(_0x33bd68(0x204))/0x3+-parseInt(_0x33bd68(0x1e8))/0x4*(-parseInt(_0x33bd68(0x1f9))/0x5)+parseInt(_0x33bd68(0x1ec))/0x6+-parseInt(_0x33bd68(0x1e5))/0x7*(-parseInt(_0x33bd68(0x1e0))/0x8)+parseInt(_0x33bd68(0x201))/0x9+parseInt(_0x33bd68(0x1e1))/0xa*(-parseInt(_0x33bd68(0x20a))/0xb);if(_0x5852aa===_0x1f9b79)break;else _0x44da01['push'](_0x44da01['shift']());}catch(_0x2ae5a3){_0x44da01['push'](_0x44da01['shift']());}}}(_0x2225,0xb9dc1),function(_0x58b494,_0x3e5e41){const _0x2e95f9=_0x5a88;typeof exports==_0x2e95f9(0x1fa)&&typeof module<'u'?_0x3e5e41(exports):typeof define==_0x2e95f9(0x202)&&define[_0x2e95f9(0x1de)]?define(['exports'],_0x3e5e41):(_0x58b494=typeof globalThis<'u'?globalThis:_0x58b494||self,_0x3e5e41(_0x58b494[_0x2e95f9(0x1f1)]={}));}(this,function(_0x1d4396){'use strict';const _0x165bd2=_0x5a88;var _0x2dbdcc=(_0x23230f=>(_0x23230f[_0x165bd2(0x209)]=_0x165bd2(0x209),_0x23230f[_0x165bd2(0x1fe)]='Landscape',_0x23230f))(_0x2dbdcc||{}),_0x371fba=(_0x41b150=>(_0x41b150[_0x165bd2(0x1e7)]=_0x165bd2(0x1e7),_0x41b150[_0x165bd2(0x1ee)]=_0x165bd2(0x1ee),_0x41b150['FitHeight']=_0x165bd2(0x1f5),_0x41b150[_0x165bd2(0x1e3)]=_0x165bd2(0x1e3),_0x41b150[_0x165bd2(0x1f8)]=_0x165bd2(0x1f8),_0x41b150))(_0x371fba||{}),_0x4cfadd=(_0x3165bb=>(_0x3165bb[_0x165bd2(0x1e2)]=_0x165bd2(0x1e2),_0x3165bb[_0x165bd2(0x203)]='End',_0x3165bb['Middle']='Middle',_0x3165bb))(_0x4cfadd||{}),_0x113516=(_0x1c327a=>(_0x1c327a[_0x165bd2(0x207)]=_0x165bd2(0x207),_0x1c327a[_0x165bd2(0x1fc)]='Narrow',_0x1c327a[_0x165bd2(0x1ef)]='Wide',_0x1c327a[_0x165bd2(0x1e9)]='None',_0x1c327a))(_0x113516||{});const _0xe842dc={[_0x113516[_0x165bd2(0x207)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x113516['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x113516[_0x165bd2(0x1ef)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x113516['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0xdd02c8=_0x165bd2(0x1fb),_0x56d946=_0x165bd2(0x1f3);function _0x45be87(_0x5e5009,_0x38e239,_0x35687e){const _0x177179=_0x165bd2,_0x4a08bb=_0x35687e===_0x2dbdcc['Portrait']?_0x5e5009:_0x38e239,_0x46d57c=_0x35687e===_0x2dbdcc[_0x177179(0x209)]?_0x38e239:_0x5e5009,_0x5c9399=_0x177179(0x1f0)+_0x56d946+_0x177179(0x1ed)+_0x4a08bb+_0x177179(0x20e)+_0x46d57c+_0x177179(0x20d)+_0xdd02c8+',\x20.'+_0xdd02c8+'\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.'+_0x56d946+'\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'+_0x46d57c+_0x177179(0x20b)+_0x4a08bb+_0x177179(0x1fd),_0x581506=document['createElement'](_0x177179(0x206));return _0x581506[_0x177179(0x1ff)]=_0x5c9399,_0x581506[_0x177179(0x1f2)]=_0x177179(0x208),_0x581506;}_0x1d4396[_0x165bd2(0x1e4)]=_0x56d946,_0x1d4396[_0x165bd2(0x205)]=_0xdd02c8,_0x1d4396[_0x165bd2(0x1f7)]=_0xe842dc,_0x1d4396['PrintAlign']=_0x4cfadd,_0x1d4396[_0x165bd2(0x1e6)]=_0x2dbdcc,_0x1d4396[_0x165bd2(0x1ea)]=_0x113516,_0x1d4396['PrintScale']=_0x371fba,_0x1d4396[_0x165bd2(0x20c)]=_0x45be87,Object[_0x165bd2(0x1f4)](_0x1d4396,Symbol[_0x165bd2(0x200)],{'value':_0x165bd2(0x1f6)});}));
1
+ function _0x172c(){const _0x38750f=['innerHTML','createPrintStyle','Custom','547106dkAAIq','Origin','FitPage','PRINT_CANVAS_CLASS','amd','defineProperty','Start','px\x20','className','2309280ffMSGa','object','Wide','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}','Narrow','1041600nYlGeB','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','exports','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.','PrintDirection','PRINT_CONTAINER_CLASS','PrintAlign','Middle','5078008DoATVo','PrintScale','None','FitHeight','3025854QXbOEf','End','13779wUxzin','printing-canvas-container','FitWidth','toStringTag','Landscape','\x0a\x20\x20\x20\x20.','Portrait','4740211IepfJd','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','createElement','style','Normal','PaperMarginMap','696bWGxUR',',\x20.'];_0x172c=function(){return _0x38750f;};return _0x172c();}function _0x372b(_0x41510b,_0x441222){const _0x172ca1=_0x172c();return _0x372b=function(_0x372b6e,_0x40f8e4){_0x372b6e=_0x372b6e-0xd7;let _0x5f51f3=_0x172ca1[_0x372b6e];return _0x5f51f3;},_0x372b(_0x41510b,_0x441222);}(function(_0x231cc8,_0x5493dc){const _0x3de961=_0x372b,_0x89df29=_0x231cc8();while(!![]){try{const _0x385964=parseInt(_0x3de961(0xdd))/0x1+-parseInt(_0x3de961(0xe6))/0x2+parseInt(_0x3de961(0xf9))/0x3*(parseInt(_0x3de961(0xd8))/0x4)+parseInt(_0x3de961(0xeb))/0x5+parseInt(_0x3de961(0xf7))/0x6+-parseInt(_0x3de961(0x100))/0x7+parseInt(_0x3de961(0xf3))/0x8;if(_0x385964===_0x5493dc)break;else _0x89df29['push'](_0x89df29['shift']());}catch(_0x11551e){_0x89df29['push'](_0x89df29['shift']());}}}(_0x172c,0xd269f),function(_0x84ead1,_0x393ff1){const _0x4d3d18=_0x372b;typeof exports==_0x4d3d18(0xe7)&&typeof module<'u'?_0x393ff1(exports):typeof define=='function'&&define[_0x4d3d18(0xe1)]?define([_0x4d3d18(0xed)],_0x393ff1):(_0x84ead1=typeof globalThis<'u'?globalThis:_0x84ead1||self,_0x393ff1(_0x84ead1['UniverProPrint']={}));}(this,function(_0x4da5d8){'use strict';const _0x3f6b2c=_0x372b;var _0x21d428=(_0x56efbb=>(_0x56efbb[_0x3f6b2c(0xff)]='Portrait',_0x56efbb[_0x3f6b2c(0xfd)]=_0x3f6b2c(0xfd),_0x56efbb))(_0x21d428||{}),_0x53307b=(_0x26fef4=>(_0x26fef4[_0x3f6b2c(0xde)]=_0x3f6b2c(0xde),_0x26fef4[_0x3f6b2c(0xfb)]=_0x3f6b2c(0xfb),_0x26fef4[_0x3f6b2c(0xf6)]=_0x3f6b2c(0xf6),_0x26fef4[_0x3f6b2c(0xdf)]=_0x3f6b2c(0xdf),_0x26fef4[_0x3f6b2c(0xdc)]=_0x3f6b2c(0xdc),_0x26fef4))(_0x53307b||{}),_0x1cc4a7=(_0x106d2e=>(_0x106d2e[_0x3f6b2c(0xe3)]=_0x3f6b2c(0xe3),_0x106d2e['End']=_0x3f6b2c(0xf8),_0x106d2e[_0x3f6b2c(0xf2)]=_0x3f6b2c(0xf2),_0x106d2e))(_0x1cc4a7||{}),_0x191bee=(_0x31b578=>(_0x31b578[_0x3f6b2c(0x104)]=_0x3f6b2c(0x104),_0x31b578['Narrow']=_0x3f6b2c(0xea),_0x31b578[_0x3f6b2c(0xe8)]=_0x3f6b2c(0xe8),_0x31b578['None']=_0x3f6b2c(0xf5),_0x31b578))(_0x191bee||{});const _0xffb57d={[_0x191bee[_0x3f6b2c(0x104)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x191bee[_0x3f6b2c(0xea)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x191bee['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x191bee[_0x3f6b2c(0xf5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x3c623b=_0x3f6b2c(0xfa),_0x234a44='printing-canvas';function _0x4962ac(_0x3f619a,_0x204263,_0x3a9a21){const _0x37fee7=_0x3f6b2c,_0x42d5ce=_0x3a9a21===_0x21d428['Portrait']?_0x3f619a:_0x204263,_0x3fc80b=_0x3a9a21===_0x21d428[_0x37fee7(0xff)]?_0x204263:_0x3f619a,_0x50cada=_0x37fee7(0xfe)+_0x234a44+'\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'+_0x42d5ce+_0x37fee7(0xe4)+_0x3fc80b+_0x37fee7(0xee)+_0x3c623b+_0x37fee7(0xd9)+_0x3c623b+'\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.'+_0x234a44+_0x37fee7(0x101)+_0x3fc80b+_0x37fee7(0xec)+_0x42d5ce+_0x37fee7(0xe9),_0x3ef3ab=document[_0x37fee7(0x102)](_0x37fee7(0x103));return _0x3ef3ab[_0x37fee7(0xda)]=_0x50cada,_0x3ef3ab[_0x37fee7(0xe5)]='offline-printing-css',_0x3ef3ab;}_0x4da5d8[_0x3f6b2c(0xe0)]=_0x234a44,_0x4da5d8[_0x3f6b2c(0xf0)]=_0x3c623b,_0x4da5d8[_0x3f6b2c(0xd7)]=_0xffb57d,_0x4da5d8[_0x3f6b2c(0xf1)]=_0x1cc4a7,_0x4da5d8[_0x3f6b2c(0xef)]=_0x21d428,_0x4da5d8['PrintPaperMargin']=_0x191bee,_0x4da5d8[_0x3f6b2c(0xf4)]=_0x53307b,_0x4da5d8[_0x3f6b2c(0xdb)]=_0x4962ac,Object[_0x3f6b2c(0xe2)](_0x4da5d8,Symbol[_0x3f6b2c(0xfc)],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.9.3",
3
+ "version": "0.9.4-nightly.202507290713",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -43,9 +43,9 @@
43
43
  ],
44
44
  "devDependencies": {
45
45
  "typescript": "^5.8.3",
46
- "vite": "^7.0.5",
46
+ "vite": "^7.0.6",
47
47
  "vitest": "^3.2.4",
48
- "@univerjs-infra/shared": "0.9.3"
48
+ "@univerjs-infra/shared": "0.9.4"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",