@univerjs-pro/print 0.7.0 → 0.8.0-nightly.202505261607

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 _0x27930c=_0x4680;(function(_0x137ad5,_0x190e80){const _0x3000b8=_0x4680,_0x130fd7=_0x137ad5();while(!![]){try{const _0x3055bc=parseInt(_0x3000b8(0x1e7))/0x1*(-parseInt(_0x3000b8(0x1dc))/0x2)+parseInt(_0x3000b8(0x1fd))/0x3*(-parseInt(_0x3000b8(0x1e0))/0x4)+-parseInt(_0x3000b8(0x1ee))/0x5*(-parseInt(_0x3000b8(0x1ec))/0x6)+parseInt(_0x3000b8(0x1eb))/0x7+parseInt(_0x3000b8(0x1d4))/0x8*(parseInt(_0x3000b8(0x1de))/0x9)+parseInt(_0x3000b8(0x1df))/0xa+-parseInt(_0x3000b8(0x1f0))/0xb;if(_0x3055bc===_0x190e80)break;else _0x130fd7['push'](_0x130fd7['shift']());}catch(_0x15afd9){_0x130fd7['push'](_0x130fd7['shift']());}}}(_0x4d07,0x6de36));Object[_0x27930c(0x1e6)](exports,Symbol[_0x27930c(0x1d7)],{'value':_0x27930c(0x1da)});function _0x4d07(){const _0x14fa90=['596212njAxfR','\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','\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.','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}','innerHTML','Normal','defineProperty','2LZDJSH','PrintAlign','FitWidth','None','6128724oDrSzV','6PyccBp','\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','1200505Uefdjg','Wide','13553276hGNiFe','Origin','FitPage','FitHeight',',\x20.','style','End','className','PaperMarginMap','Landscape','printing-canvas-container','Portrait','Middle','3RKyGLZ','Custom','offline-printing-css','px\x20','PrintScale','createPrintStyle','8egfAFg','printing-canvas','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','toStringTag','Start','PRINT_CONTAINER_CLASS','Module','\x0a\x20\x20\x20\x20.','120746bCqkkD','createElement','2641689TdrMtO','5428630kXBJKL'];_0x4d07=function(){return _0x14fa90;};return _0x4d07();}var e=(_0x46ddcf=>(_0x46ddcf[_0x27930c(0x1fb)]=_0x27930c(0x1fb),_0x46ddcf[_0x27930c(0x1f9)]=_0x27930c(0x1f9),_0x46ddcf))(e||{}),l=(_0x43d978=>(_0x43d978[_0x27930c(0x1f1)]=_0x27930c(0x1f1),_0x43d978[_0x27930c(0x1e9)]=_0x27930c(0x1e9),_0x43d978[_0x27930c(0x1f3)]='FitHeight',_0x43d978[_0x27930c(0x1f2)]=_0x27930c(0x1f2),_0x43d978['Custom']=_0x27930c(0x1cf),_0x43d978))(l||{}),c=(_0x2c5cae=>(_0x2c5cae[_0x27930c(0x1d8)]=_0x27930c(0x1d8),_0x2c5cae[_0x27930c(0x1f6)]=_0x27930c(0x1f6),_0x2c5cae[_0x27930c(0x1fc)]=_0x27930c(0x1fc),_0x2c5cae))(c||{}),i=(_0x5cb6e3=>(_0x5cb6e3[_0x27930c(0x1e5)]='Normal',_0x5cb6e3['Narrow']='Narrow',_0x5cb6e3[_0x27930c(0x1ef)]=_0x27930c(0x1ef),_0x5cb6e3[_0x27930c(0x1ea)]=_0x27930c(0x1ea),_0x5cb6e3))(i||{});const h={[i[_0x27930c(0x1e5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x27930c(0x1fa),n=_0x27930c(0x1d5);function m(_0x22d417,_0x1e5055,_0x18dbe5){const _0x127a4f=_0x27930c,_0xc43419=_0x18dbe5===e['Portrait']?_0x22d417:_0x1e5055,_0x1e3497=_0x18dbe5===e[_0x127a4f(0x1fb)]?_0x1e5055:_0x22d417,_0x4ea73e=_0x127a4f(0x1db)+n+_0x127a4f(0x1ed)+_0xc43419+_0x127a4f(0x1d1)+_0x1e3497+'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+_0x127a4f(0x1f4)+r+_0x127a4f(0x1e2)+n+_0x127a4f(0x1e1)+_0x1e3497+_0x127a4f(0x1d6)+_0xc43419+_0x127a4f(0x1e3),_0x7eda64=document[_0x127a4f(0x1dd)](_0x127a4f(0x1f5));return _0x7eda64[_0x127a4f(0x1e4)]=_0x4ea73e,_0x7eda64[_0x127a4f(0x1f7)]=_0x127a4f(0x1d0),_0x7eda64;}function _0x4680(_0x195628,_0x5a3237){const _0x4d0775=_0x4d07();return _0x4680=function(_0x468018,_0x1a56b0){_0x468018=_0x468018-0x1cf;let _0x81a569=_0x4d0775[_0x468018];return _0x81a569;},_0x4680(_0x195628,_0x5a3237);}exports['PRINT_CANVAS_CLASS']=n,exports[_0x27930c(0x1d9)]=r,exports[_0x27930c(0x1f8)]=h,exports[_0x27930c(0x1e8)]=c,exports['PrintDirection']=e,exports['PrintPaperMargin']=i,exports[_0x27930c(0x1d2)]=l,exports[_0x27930c(0x1d3)]=m;
1
+ 'use strict';function _0x4d26(){const _0x37faf7=['Portrait','style','Normal','Start','8rSrImp','None','Middle','330ZFjkmK','6035283QTVMSp','px\x20','847250siQdGJ','5316nZFFbs','Landscape','PRINT_CANVAS_CLASS','83762TUzBNX','End','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Module','FitHeight','25057626NNyzXh','offline-printing-css','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.','1765mcwpuT','Origin','toStringTag','Wide','printing-canvas','PrintPaperMargin','className','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.','FitWidth','createElement','PRINT_CONTAINER_CLASS','Narrow','PaperMarginMap','2PkiQis','5777430xyrrqK','\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','1404717xiwbfb','printing-canvas-container','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x4d26=function(){return _0x37faf7;};return _0x4d26();}const _0xb6dbf3=_0x1faf;(function(_0x15c97e,_0x421154){const _0x1cf13e=_0x1faf,_0x590834=_0x15c97e();while(!![]){try{const _0x38c431=parseInt(_0x1cf13e(0x147))/0x1+-parseInt(_0x1cf13e(0x137))/0x2*(-parseInt(_0x1cf13e(0x13a))/0x3)+-parseInt(_0x1cf13e(0x148))/0x4*(parseInt(_0x1cf13e(0x129))/0x5)+-parseInt(_0x1cf13e(0x144))/0x6*(-parseInt(_0x1cf13e(0x14b))/0x7)+-parseInt(_0x1cf13e(0x141))/0x8*(-parseInt(_0x1cf13e(0x145))/0x9)+parseInt(_0x1cf13e(0x138))/0xa+-parseInt(_0x1cf13e(0x126))/0xb;if(_0x38c431===_0x421154)break;else _0x590834['push'](_0x590834['shift']());}catch(_0x30b688){_0x590834['push'](_0x590834['shift']());}}}(_0x4d26,0x73ede));function _0x1faf(_0x3e1f54,_0x19dc93){const _0x4d2666=_0x4d26();return _0x1faf=function(_0x1faf37,_0x15f4e8){_0x1faf37=_0x1faf37-0x122;let _0x151516=_0x4d2666[_0x1faf37];return _0x151516;},_0x1faf(_0x3e1f54,_0x19dc93);}Object['defineProperty'](exports,Symbol[_0xb6dbf3(0x12b)],{'value':_0xb6dbf3(0x124)});var e=(_0x54cbca=>(_0x54cbca[_0xb6dbf3(0x13d)]=_0xb6dbf3(0x13d),_0x54cbca[_0xb6dbf3(0x149)]=_0xb6dbf3(0x149),_0x54cbca))(e||{}),l=(_0xb7d922=>(_0xb7d922['Origin']=_0xb6dbf3(0x12a),_0xb7d922[_0xb6dbf3(0x132)]='FitWidth',_0xb7d922[_0xb6dbf3(0x125)]=_0xb6dbf3(0x125),_0xb7d922['FitPage']='FitPage',_0xb7d922['Custom']=_0xb6dbf3(0x130),_0xb7d922))(l||{}),c=(_0x38e3b8=>(_0x38e3b8[_0xb6dbf3(0x140)]=_0xb6dbf3(0x140),_0x38e3b8[_0xb6dbf3(0x14c)]='End',_0x38e3b8[_0xb6dbf3(0x143)]='Middle',_0x38e3b8))(c||{}),i=(_0x48f765=>(_0x48f765['Normal']=_0xb6dbf3(0x13f),_0x48f765[_0xb6dbf3(0x135)]=_0xb6dbf3(0x135),_0x48f765[_0xb6dbf3(0x12c)]='Wide',_0x48f765[_0xb6dbf3(0x142)]=_0xb6dbf3(0x142),_0x48f765))(i||{});const h={[i[_0xb6dbf3(0x13f)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0xb6dbf3(0x135)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0xb6dbf3(0x12c)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0xb6dbf3(0x13b),n=_0xb6dbf3(0x12d);function m(_0x54c2cd,_0x44de4f,_0x190c41){const _0x2b0152=_0xb6dbf3,_0x166c91=_0x190c41===e[_0x2b0152(0x13d)]?_0x54c2cd:_0x44de4f,_0x424154=_0x190c41===e['Portrait']?_0x44de4f:_0x54c2cd,_0x189fae='\x0a\x20\x20\x20\x20.'+n+_0x2b0152(0x123)+_0x166c91+_0x2b0152(0x146)+_0x424154+_0x2b0152(0x128)+r+',\x20.'+r+_0x2b0152(0x131)+n+_0x2b0152(0x139)+_0x424154+_0x2b0152(0x13c)+_0x166c91+_0x2b0152(0x122),_0xc42ca6=document[_0x2b0152(0x133)](_0x2b0152(0x13e));return _0xc42ca6['innerHTML']=_0x189fae,_0xc42ca6[_0x2b0152(0x12f)]=_0x2b0152(0x127),_0xc42ca6;}exports[_0xb6dbf3(0x14a)]=n,exports[_0xb6dbf3(0x134)]=r,exports[_0xb6dbf3(0x136)]=h,exports['PrintAlign']=c,exports['PrintDirection']=e,exports[_0xb6dbf3(0x12e)]=i,exports['PrintScale']=l,exports['createPrintStyle']=m;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x27e2(_0x147064,_0xd27b7){const _0x432091=_0x4320();return _0x27e2=function(_0x27e2ea,_0x4839f4){_0x27e2ea=_0x27e2ea-0xff;let _0x98fa2c=_0x432091[_0x27e2ea];return _0x98fa2c;},_0x27e2(_0x147064,_0xd27b7);}const _0x561295=_0x27e2;(function(_0x1a1bad,_0x26b372){const _0x1135d6=_0x27e2,_0x64807b=_0x1a1bad();while(!![]){try{const _0x387255=-parseInt(_0x1135d6(0x11f))/0x1*(-parseInt(_0x1135d6(0x109))/0x2)+parseInt(_0x1135d6(0x104))/0x3+-parseInt(_0x1135d6(0x11c))/0x4*(parseInt(_0x1135d6(0x116))/0x5)+-parseInt(_0x1135d6(0x10b))/0x6*(-parseInt(_0x1135d6(0x10f))/0x7)+-parseInt(_0x1135d6(0x118))/0x8*(-parseInt(_0x1135d6(0x103))/0x9)+parseInt(_0x1135d6(0x114))/0xa*(parseInt(_0x1135d6(0x122))/0xb)+-parseInt(_0x1135d6(0x11d))/0xc;if(_0x387255===_0x26b372)break;else _0x64807b['push'](_0x64807b['shift']());}catch(_0x4ddffd){_0x64807b['push'](_0x64807b['shift']());}}}(_0x4320,0xdfc5a));var e=(_0x3f5d0a=>(_0x3f5d0a[_0x561295(0x10e)]='Portrait',_0x3f5d0a[_0x561295(0x123)]=_0x561295(0x123),_0x3f5d0a))(e||{}),l=(_0x5aab67=>(_0x5aab67[_0x561295(0x106)]=_0x561295(0x106),_0x5aab67[_0x561295(0x10c)]=_0x561295(0x10c),_0x5aab67['FitHeight']=_0x561295(0x108),_0x5aab67['FitPage']='FitPage',_0x5aab67['Custom']=_0x561295(0x10d),_0x5aab67))(l||{}),m=(_0x30a3ff=>(_0x30a3ff['Start']=_0x561295(0x121),_0x30a3ff[_0x561295(0x120)]=_0x561295(0x120),_0x30a3ff['Middle']=_0x561295(0x111),_0x30a3ff))(m||{}),o=(_0x59e028=>(_0x59e028[_0x561295(0x107)]=_0x561295(0x107),_0x59e028[_0x561295(0x11e)]=_0x561295(0x11e),_0x59e028['Wide']='Wide',_0x59e028[_0x561295(0x10a)]=_0x561295(0x10a),_0x59e028))(o||{});function _0x4320(){const _0x437738=['7ADvbfb','createElement','Middle','className','printing-canvas-container','1277500ULTugZ','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.','2798165NNGHzJ','px\x20','9236888FgaGvb','printing-canvas','style','\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','4sqmMNr','23177652itOrBh','Narrow','85817RdLWwA','End','Start','11mjGyJk','Landscape','innerHTML','\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;\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}','Wide','9CpOjFy','3782667SNcNjx','\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','Normal','FitHeight','20ZHogkx','None','37524ruTQhG','FitWidth','Custom','Portrait'];_0x4320=function(){return _0x437738;};return _0x4320();}const c={[o[_0x561295(0x107)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x561295(0x11e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x561295(0x102)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x561295(0x10a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x561295(0x113),d=_0x561295(0x119);function g(_0x489f32,_0x508d8a,_0x2f4ec8){const _0x4bc687=_0x561295,_0x140d3f=_0x2f4ec8===e['Portrait']?_0x489f32:_0x508d8a,_0x1c2231=_0x2f4ec8===e[_0x4bc687(0x10e)]?_0x508d8a:_0x489f32,_0x4eae7d='\x0a\x20\x20\x20\x20.'+d+_0x4bc687(0x100)+_0x140d3f+_0x4bc687(0x117)+_0x1c2231+_0x4bc687(0x115)+p+',\x20.'+p+_0x4bc687(0x105)+d+_0x4bc687(0x11b)+_0x1c2231+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x140d3f+_0x4bc687(0x101),_0x1d40ac=document[_0x4bc687(0x110)](_0x4bc687(0x11a));return _0x1d40ac[_0x4bc687(0xff)]=_0x4eae7d,_0x1d40ac[_0x4bc687(0x112)]='offline-printing-css',_0x1d40ac;}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
+ function _0x10f5(_0x527cd1,_0x548958){const _0x12c357=_0x12c3();return _0x10f5=function(_0x10f5d4,_0xbf8abb){_0x10f5d4=_0x10f5d4-0x10e;let _0x4b61ca=_0x12c357[_0x10f5d4];return _0x4b61ca;},_0x10f5(_0x527cd1,_0x548958);}function _0x12c3(){const _0x19417f=['\x0a\x20\x20\x20\x20.','Custom','3203960uJQKrs','\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','innerHTML','Wide','7083330aOgkOL','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;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','2012318aTNSlI','Portrait','Origin','offline-printing-css','\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','40wVzwrw','className','px\x20','Middle','3736QSxqZC','194zlpRqW','printing-canvas','Normal','style','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','5172890PcPZyd','Start',',\x20.','26907210MnxegT','None','FitPage','345813cdTJCf','FitHeight'];_0x12c3=function(){return _0x19417f;};return _0x12c3();}const _0x442631=_0x10f5;(function(_0xbcf64e,_0x5a1b22){const _0x452769=_0x10f5,_0x33f7a8=_0xbcf64e();while(!![]){try{const _0x1a20d8=-parseInt(_0x452769(0x111))/0x1*(parseInt(_0x452769(0x112))/0x2)+parseInt(_0x452769(0x11e))/0x3*(-parseInt(_0x452769(0x12f))/0x4)+parseInt(_0x452769(0x118))/0x5+-parseInt(_0x452769(0x127))/0x6+-parseInt(_0x452769(0x12a))/0x7+-parseInt(_0x452769(0x122))/0x8+parseInt(_0x452769(0x11b))/0x9;if(_0x1a20d8===_0x5a1b22)break;else _0x33f7a8['push'](_0x33f7a8['shift']());}catch(_0x1b931e){_0x33f7a8['push'](_0x33f7a8['shift']());}}}(_0x12c3,0x9c682));var e=(_0xe13a0=>(_0xe13a0[_0x442631(0x12b)]=_0x442631(0x12b),_0xe13a0['Landscape']='Landscape',_0xe13a0))(e||{}),l=(_0xbf03d5=>(_0xbf03d5[_0x442631(0x12c)]=_0x442631(0x12c),_0xbf03d5['FitWidth']='FitWidth',_0xbf03d5[_0x442631(0x11f)]=_0x442631(0x11f),_0xbf03d5[_0x442631(0x11d)]=_0x442631(0x11d),_0xbf03d5[_0x442631(0x121)]=_0x442631(0x121),_0xbf03d5))(l||{}),m=(_0x364e75=>(_0x364e75['Start']=_0x442631(0x119),_0x364e75['End']='End',_0x364e75['Middle']=_0x442631(0x110),_0x364e75))(m||{}),o=(_0x51ca22=>(_0x51ca22[_0x442631(0x114)]='Normal',_0x51ca22[_0x442631(0x116)]=_0x442631(0x116),_0x51ca22[_0x442631(0x126)]='Wide',_0x51ca22[_0x442631(0x11c)]=_0x442631(0x11c),_0x51ca22))(o||{});const c={[o[_0x442631(0x114)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x442631(0x116)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x442631(0x126)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x442631(0x124),d=_0x442631(0x113);function g(_0x3db78f,_0x26ba5e,_0x4e8cf9){const _0x34b6c1=_0x442631,_0x5d862f=_0x4e8cf9===e[_0x34b6c1(0x12b)]?_0x3db78f:_0x26ba5e,_0x335616=_0x4e8cf9===e[_0x34b6c1(0x12b)]?_0x26ba5e:_0x3db78f,_0x146c4d=_0x34b6c1(0x120)+d+_0x34b6c1(0x117)+_0x5d862f+_0x34b6c1(0x10f)+_0x335616+_0x34b6c1(0x128)+p+_0x34b6c1(0x11a)+p+_0x34b6c1(0x123)+d+_0x34b6c1(0x12e)+_0x335616+_0x34b6c1(0x129)+_0x5d862f+'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}',_0x351524=document['createElement'](_0x34b6c1(0x115));return _0x351524[_0x34b6c1(0x125)]=_0x146c4d,_0x351524[_0x34b6c1(0x10e)]=_0x34b6c1(0x12d),_0x351524;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x27e2(_0x147064,_0xd27b7){const _0x432091=_0x4320();return _0x27e2=function(_0x27e2ea,_0x4839f4){_0x27e2ea=_0x27e2ea-0xff;let _0x98fa2c=_0x432091[_0x27e2ea];return _0x98fa2c;},_0x27e2(_0x147064,_0xd27b7);}const _0x561295=_0x27e2;(function(_0x1a1bad,_0x26b372){const _0x1135d6=_0x27e2,_0x64807b=_0x1a1bad();while(!![]){try{const _0x387255=-parseInt(_0x1135d6(0x11f))/0x1*(-parseInt(_0x1135d6(0x109))/0x2)+parseInt(_0x1135d6(0x104))/0x3+-parseInt(_0x1135d6(0x11c))/0x4*(parseInt(_0x1135d6(0x116))/0x5)+-parseInt(_0x1135d6(0x10b))/0x6*(-parseInt(_0x1135d6(0x10f))/0x7)+-parseInt(_0x1135d6(0x118))/0x8*(-parseInt(_0x1135d6(0x103))/0x9)+parseInt(_0x1135d6(0x114))/0xa*(parseInt(_0x1135d6(0x122))/0xb)+-parseInt(_0x1135d6(0x11d))/0xc;if(_0x387255===_0x26b372)break;else _0x64807b['push'](_0x64807b['shift']());}catch(_0x4ddffd){_0x64807b['push'](_0x64807b['shift']());}}}(_0x4320,0xdfc5a));var e=(_0x3f5d0a=>(_0x3f5d0a[_0x561295(0x10e)]='Portrait',_0x3f5d0a[_0x561295(0x123)]=_0x561295(0x123),_0x3f5d0a))(e||{}),l=(_0x5aab67=>(_0x5aab67[_0x561295(0x106)]=_0x561295(0x106),_0x5aab67[_0x561295(0x10c)]=_0x561295(0x10c),_0x5aab67['FitHeight']=_0x561295(0x108),_0x5aab67['FitPage']='FitPage',_0x5aab67['Custom']=_0x561295(0x10d),_0x5aab67))(l||{}),m=(_0x30a3ff=>(_0x30a3ff['Start']=_0x561295(0x121),_0x30a3ff[_0x561295(0x120)]=_0x561295(0x120),_0x30a3ff['Middle']=_0x561295(0x111),_0x30a3ff))(m||{}),o=(_0x59e028=>(_0x59e028[_0x561295(0x107)]=_0x561295(0x107),_0x59e028[_0x561295(0x11e)]=_0x561295(0x11e),_0x59e028['Wide']='Wide',_0x59e028[_0x561295(0x10a)]=_0x561295(0x10a),_0x59e028))(o||{});function _0x4320(){const _0x437738=['7ADvbfb','createElement','Middle','className','printing-canvas-container','1277500ULTugZ','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.','2798165NNGHzJ','px\x20','9236888FgaGvb','printing-canvas','style','\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','4sqmMNr','23177652itOrBh','Narrow','85817RdLWwA','End','Start','11mjGyJk','Landscape','innerHTML','\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;\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}','Wide','9CpOjFy','3782667SNcNjx','\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','Normal','FitHeight','20ZHogkx','None','37524ruTQhG','FitWidth','Custom','Portrait'];_0x4320=function(){return _0x437738;};return _0x4320();}const c={[o[_0x561295(0x107)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x561295(0x11e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x561295(0x102)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x561295(0x10a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x561295(0x113),d=_0x561295(0x119);function g(_0x489f32,_0x508d8a,_0x2f4ec8){const _0x4bc687=_0x561295,_0x140d3f=_0x2f4ec8===e['Portrait']?_0x489f32:_0x508d8a,_0x1c2231=_0x2f4ec8===e[_0x4bc687(0x10e)]?_0x508d8a:_0x489f32,_0x4eae7d='\x0a\x20\x20\x20\x20.'+d+_0x4bc687(0x100)+_0x140d3f+_0x4bc687(0x117)+_0x1c2231+_0x4bc687(0x115)+p+',\x20.'+p+_0x4bc687(0x105)+d+_0x4bc687(0x11b)+_0x1c2231+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x140d3f+_0x4bc687(0x101),_0x1d40ac=document[_0x4bc687(0x110)](_0x4bc687(0x11a));return _0x1d40ac[_0x4bc687(0xff)]=_0x4eae7d,_0x1d40ac[_0x4bc687(0x112)]='offline-printing-css',_0x1d40ac;}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
+ function _0x10f5(_0x527cd1,_0x548958){const _0x12c357=_0x12c3();return _0x10f5=function(_0x10f5d4,_0xbf8abb){_0x10f5d4=_0x10f5d4-0x10e;let _0x4b61ca=_0x12c357[_0x10f5d4];return _0x4b61ca;},_0x10f5(_0x527cd1,_0x548958);}function _0x12c3(){const _0x19417f=['\x0a\x20\x20\x20\x20.','Custom','3203960uJQKrs','\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','innerHTML','Wide','7083330aOgkOL','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;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','2012318aTNSlI','Portrait','Origin','offline-printing-css','\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','40wVzwrw','className','px\x20','Middle','3736QSxqZC','194zlpRqW','printing-canvas','Normal','style','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','5172890PcPZyd','Start',',\x20.','26907210MnxegT','None','FitPage','345813cdTJCf','FitHeight'];_0x12c3=function(){return _0x19417f;};return _0x12c3();}const _0x442631=_0x10f5;(function(_0xbcf64e,_0x5a1b22){const _0x452769=_0x10f5,_0x33f7a8=_0xbcf64e();while(!![]){try{const _0x1a20d8=-parseInt(_0x452769(0x111))/0x1*(parseInt(_0x452769(0x112))/0x2)+parseInt(_0x452769(0x11e))/0x3*(-parseInt(_0x452769(0x12f))/0x4)+parseInt(_0x452769(0x118))/0x5+-parseInt(_0x452769(0x127))/0x6+-parseInt(_0x452769(0x12a))/0x7+-parseInt(_0x452769(0x122))/0x8+parseInt(_0x452769(0x11b))/0x9;if(_0x1a20d8===_0x5a1b22)break;else _0x33f7a8['push'](_0x33f7a8['shift']());}catch(_0x1b931e){_0x33f7a8['push'](_0x33f7a8['shift']());}}}(_0x12c3,0x9c682));var e=(_0xe13a0=>(_0xe13a0[_0x442631(0x12b)]=_0x442631(0x12b),_0xe13a0['Landscape']='Landscape',_0xe13a0))(e||{}),l=(_0xbf03d5=>(_0xbf03d5[_0x442631(0x12c)]=_0x442631(0x12c),_0xbf03d5['FitWidth']='FitWidth',_0xbf03d5[_0x442631(0x11f)]=_0x442631(0x11f),_0xbf03d5[_0x442631(0x11d)]=_0x442631(0x11d),_0xbf03d5[_0x442631(0x121)]=_0x442631(0x121),_0xbf03d5))(l||{}),m=(_0x364e75=>(_0x364e75['Start']=_0x442631(0x119),_0x364e75['End']='End',_0x364e75['Middle']=_0x442631(0x110),_0x364e75))(m||{}),o=(_0x51ca22=>(_0x51ca22[_0x442631(0x114)]='Normal',_0x51ca22[_0x442631(0x116)]=_0x442631(0x116),_0x51ca22[_0x442631(0x126)]='Wide',_0x51ca22[_0x442631(0x11c)]=_0x442631(0x11c),_0x51ca22))(o||{});const c={[o[_0x442631(0x114)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x442631(0x116)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x442631(0x126)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x442631(0x124),d=_0x442631(0x113);function g(_0x3db78f,_0x26ba5e,_0x4e8cf9){const _0x34b6c1=_0x442631,_0x5d862f=_0x4e8cf9===e[_0x34b6c1(0x12b)]?_0x3db78f:_0x26ba5e,_0x335616=_0x4e8cf9===e[_0x34b6c1(0x12b)]?_0x26ba5e:_0x3db78f,_0x146c4d=_0x34b6c1(0x120)+d+_0x34b6c1(0x117)+_0x5d862f+_0x34b6c1(0x10f)+_0x335616+_0x34b6c1(0x128)+p+_0x34b6c1(0x11a)+p+_0x34b6c1(0x123)+d+_0x34b6c1(0x12e)+_0x335616+_0x34b6c1(0x129)+_0x5d862f+'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}',_0x351524=document['createElement'](_0x34b6c1(0x115));return _0x351524[_0x34b6c1(0x125)]=_0x146c4d,_0x351524[_0x34b6c1(0x10e)]=_0x34b6c1(0x12d),_0x351524;}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 _0x2d9d(){const _0x3fa2a7=['PrintScale','\x0a\x20\x20\x20\x20.','94340JEtiEx','Narrow','exports','29337zRQjRt','4629324Cpwlie','createPrintStyle','PrintDirection','Middle','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}','PRINT_CONTAINER_CLASS','PRINT_CANVAS_CLASS','PrintPaperMargin','px\x20','amd','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','35tDVRoB','className','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.','function','PrintAlign','14584drGeGs',',\x20.','PaperMarginMap','printing-canvas-container','390eUNfYN','None','Module','54ZGspID','2307782SahAaI','toStringTag','4761LkuHFj','defineProperty','1dClzQy','\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','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','Start','FitPage','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Wide','innerHTML','221102NSisVZ','Landscape','Portrait','createElement','Origin','1803009dBBSLI'];_0x2d9d=function(){return _0x3fa2a7;};return _0x2d9d();}function _0x5833(_0x430629,_0x23ccee){const _0x2d9d80=_0x2d9d();return _0x5833=function(_0x5833db,_0x215f91){_0x5833db=_0x5833db-0x1a4;let _0x525ee3=_0x2d9d80[_0x5833db];return _0x525ee3;},_0x5833(_0x430629,_0x23ccee);}(function(_0x37991e,_0x2b09e1){const _0x24d027=_0x5833,_0x3a0cb5=_0x37991e();while(!![]){try{const _0x5c779f=parseInt(_0x24d027(0x1bc))/0x1*(-parseInt(_0x24d027(0x1b8))/0x2)+parseInt(_0x24d027(0x1ca))/0x3+parseInt(_0x24d027(0x1cd))/0x4*(parseInt(_0x24d027(0x1ab))/0x5)+parseInt(_0x24d027(0x1b7))/0x6*(parseInt(_0x24d027(0x1c5))/0x7)+-parseInt(_0x24d027(0x1b0))/0x8*(-parseInt(_0x24d027(0x1ba))/0x9)+parseInt(_0x24d027(0x1b4))/0xa*(parseInt(_0x24d027(0x1d0))/0xb)+-parseInt(_0x24d027(0x1d1))/0xc;if(_0x5c779f===_0x2b09e1)break;else _0x3a0cb5['push'](_0x3a0cb5['shift']());}catch(_0x4ef41b){_0x3a0cb5['push'](_0x3a0cb5['shift']());}}}(_0x2d9d,0x8d60c),function(_0x38432a,_0x85832a){const _0x517b53=_0x5833;typeof exports=='object'&&typeof module<'u'?_0x85832a(exports):typeof define==_0x517b53(0x1ae)&&define[_0x517b53(0x1a9)]?define([_0x517b53(0x1cf)],_0x85832a):(_0x38432a=typeof globalThis<'u'?globalThis:_0x38432a||self,_0x85832a(_0x38432a['UniverProPrint']={}));}(this,function(_0x47ada9){'use strict';const _0x45862f=_0x5833;var _0xe0b069=(_0x5c029e=>(_0x5c029e[_0x45862f(0x1c7)]=_0x45862f(0x1c7),_0x5c029e[_0x45862f(0x1c6)]='Landscape',_0x5c029e))(_0xe0b069||{}),_0x57bc5b=(_0x523a54=>(_0x523a54[_0x45862f(0x1c9)]=_0x45862f(0x1c9),_0x523a54['FitWidth']='FitWidth',_0x523a54[_0x45862f(0x1d5)]='FitHeight',_0x523a54[_0x45862f(0x1c1)]=_0x45862f(0x1c1),_0x523a54['Custom']='Custom',_0x523a54))(_0x57bc5b||{}),_0x444e88=(_0x54882a=>(_0x54882a[_0x45862f(0x1c0)]=_0x45862f(0x1c0),_0x54882a['End']='End',_0x54882a[_0x45862f(0x1d4)]=_0x45862f(0x1d4),_0x54882a))(_0x444e88||{}),_0x1491b8=(_0x44a1df=>(_0x44a1df[_0x45862f(0x1be)]=_0x45862f(0x1be),_0x44a1df['Narrow']=_0x45862f(0x1ce),_0x44a1df[_0x45862f(0x1c3)]=_0x45862f(0x1c3),_0x44a1df[_0x45862f(0x1b5)]=_0x45862f(0x1b5),_0x44a1df))(_0x1491b8||{});const _0x104652={[_0x1491b8[_0x45862f(0x1be)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1491b8[_0x45862f(0x1ce)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1491b8[_0x45862f(0x1c3)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1491b8['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4d8042=_0x45862f(0x1b3),_0x5147fb='printing-canvas';function _0x381e59(_0x1ce987,_0x217bb3,_0x1f99cb){const _0xf61f73=_0x45862f,_0x28bb76=_0x1f99cb===_0xe0b069[_0xf61f73(0x1c7)]?_0x1ce987:_0x217bb3,_0x545880=_0x1f99cb===_0xe0b069['Portrait']?_0x217bb3:_0x1ce987,_0x2c1dde=_0xf61f73(0x1cc)+_0x5147fb+_0xf61f73(0x1bd)+_0x28bb76+_0xf61f73(0x1a8)+_0x545880+_0xf61f73(0x1ad)+_0x4d8042+_0xf61f73(0x1b1)+_0x4d8042+_0xf61f73(0x1c2)+_0x5147fb+_0xf61f73(0x1bf)+_0x545880+_0xf61f73(0x1aa)+_0x28bb76+_0xf61f73(0x1a4),_0x175a01=document[_0xf61f73(0x1c8)]('style');return _0x175a01[_0xf61f73(0x1c4)]=_0x2c1dde,_0x175a01[_0xf61f73(0x1ac)]='offline-printing-css',_0x175a01;}_0x47ada9[_0x45862f(0x1a6)]=_0x5147fb,_0x47ada9[_0x45862f(0x1a5)]=_0x4d8042,_0x47ada9[_0x45862f(0x1b2)]=_0x104652,_0x47ada9[_0x45862f(0x1af)]=_0x444e88,_0x47ada9[_0x45862f(0x1d3)]=_0xe0b069,_0x47ada9[_0x45862f(0x1a7)]=_0x1491b8,_0x47ada9[_0x45862f(0x1cb)]=_0x57bc5b,_0x47ada9[_0x45862f(0x1d2)]=_0x381e59,Object[_0x45862f(0x1bb)](_0x47ada9,Symbol[_0x45862f(0x1b9)],{'value':_0x45862f(0x1b6)});}));
1
+ (function(_0x3b898e,_0x989f65){const _0x4f2336=_0x3a40,_0x352655=_0x3b898e();while(!![]){try{const _0x729f91=-parseInt(_0x4f2336(0x104))/0x1+parseInt(_0x4f2336(0x110))/0x2+parseInt(_0x4f2336(0x11c))/0x3+-parseInt(_0x4f2336(0x120))/0x4*(parseInt(_0x4f2336(0x122))/0x5)+-parseInt(_0x4f2336(0x10f))/0x6*(-parseInt(_0x4f2336(0x118))/0x7)+parseInt(_0x4f2336(0x113))/0x8+parseInt(_0x4f2336(0x127))/0x9;if(_0x729f91===_0x989f65)break;else _0x352655['push'](_0x352655['shift']());}catch(_0x4a890a){_0x352655['push'](_0x352655['shift']());}}}(_0x139c,0xb437e),function(_0x57b56a,_0x25763e){const _0x5d9c0c=_0x3a40;typeof exports==_0x5d9c0c(0x11f)&&typeof module<'u'?_0x25763e(exports):typeof define==_0x5d9c0c(0x111)&&define[_0x5d9c0c(0x112)]?define([_0x5d9c0c(0x10a)],_0x25763e):(_0x57b56a=typeof globalThis<'u'?globalThis:_0x57b56a||self,_0x25763e(_0x57b56a[_0x5d9c0c(0x11b)]={}));}(this,function(_0x731df8){'use strict';const _0x15df1a=_0x3a40;var _0x5bec6b=(_0x4690d7=>(_0x4690d7[_0x15df1a(0x108)]='Portrait',_0x4690d7['Landscape']=_0x15df1a(0x10e),_0x4690d7))(_0x5bec6b||{}),_0x1abd07=(_0x2027a7=>(_0x2027a7['Origin']=_0x15df1a(0x115),_0x2027a7['FitWidth']='FitWidth',_0x2027a7[_0x15df1a(0x117)]='FitHeight',_0x2027a7['FitPage']=_0x15df1a(0x12b),_0x2027a7[_0x15df1a(0x10c)]=_0x15df1a(0x10c),_0x2027a7))(_0x1abd07||{}),_0x19b5c0=(_0x4c1ed2=>(_0x4c1ed2['Start']='Start',_0x4c1ed2[_0x15df1a(0x103)]=_0x15df1a(0x103),_0x4c1ed2[_0x15df1a(0x119)]=_0x15df1a(0x119),_0x4c1ed2))(_0x19b5c0||{}),_0x559e5e=(_0x3b3942=>(_0x3b3942['Normal']='Normal',_0x3b3942[_0x15df1a(0x124)]=_0x15df1a(0x124),_0x3b3942['Wide']='Wide',_0x3b3942['None']=_0x15df1a(0x10d),_0x3b3942))(_0x559e5e||{});const _0x523d60={[_0x559e5e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x559e5e[_0x15df1a(0x124)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x559e5e[_0x15df1a(0x109)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x559e5e[_0x15df1a(0x10d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x22264d=_0x15df1a(0x10b),_0x124b48=_0x15df1a(0x129);function _0x4d38fa(_0xe2f97f,_0x52ab42,_0x4340b2){const _0x31e4dc=_0x15df1a,_0x525635=_0x4340b2===_0x5bec6b[_0x31e4dc(0x108)]?_0xe2f97f:_0x52ab42,_0x3f2418=_0x4340b2===_0x5bec6b[_0x31e4dc(0x108)]?_0x52ab42:_0xe2f97f,_0x2d856e='\x0a\x20\x20\x20\x20.'+_0x124b48+_0x31e4dc(0x125)+_0x525635+_0x31e4dc(0x106)+_0x3f2418+'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.'+_0x22264d+',\x20.'+_0x22264d+_0x31e4dc(0x11d)+_0x124b48+'\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'+_0x3f2418+_0x31e4dc(0x11a)+_0x525635+'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}',_0x51f242=document[_0x31e4dc(0x114)]('style');return _0x51f242[_0x31e4dc(0x128)]=_0x2d856e,_0x51f242[_0x31e4dc(0x123)]=_0x31e4dc(0x116),_0x51f242;}_0x731df8[_0x15df1a(0x126)]=_0x124b48,_0x731df8[_0x15df1a(0x121)]=_0x22264d,_0x731df8['PaperMarginMap']=_0x523d60,_0x731df8[_0x15df1a(0x11e)]=_0x19b5c0,_0x731df8[_0x15df1a(0x107)]=_0x5bec6b,_0x731df8[_0x15df1a(0x105)]=_0x559e5e,_0x731df8['PrintScale']=_0x1abd07,_0x731df8['createPrintStyle']=_0x4d38fa,Object['defineProperty'](_0x731df8,Symbol['toStringTag'],{'value':_0x15df1a(0x12a)});}));function _0x3a40(_0x4284bf,_0x37da07){const _0x139c89=_0x139c();return _0x3a40=function(_0x3a40c3,_0x2e7085){_0x3a40c3=_0x3a40c3-0x103;let _0x4b492b=_0x139c89[_0x3a40c3];return _0x4b492b;},_0x3a40(_0x4284bf,_0x37da07);}function _0x139c(){const _0x4ce1de=['Portrait','Wide','exports','printing-canvas-container','Custom','None','Landscape','3552vYRVoy','1650708uewwBj','function','amd','5398480DjzixM','createElement','Origin','offline-printing-css','FitHeight','931lsYslW','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','UniverProPrint','677493aerqCF','\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.','PrintAlign','object','1272956tryPNS','PRINT_CONTAINER_CLASS','5dSsxfk','className','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','PRINT_CANVAS_CLASS','4473828CvWKjr','innerHTML','printing-canvas','Module','FitPage','End','1245410bUloue','PrintPaperMargin','px\x20','PrintDirection'];_0x139c=function(){return _0x4ce1de;};return _0x139c();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.7.0",
3
+ "version": "0.8.0-nightly.202505261607",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -44,8 +44,8 @@
44
44
  "devDependencies": {
45
45
  "typescript": "^5.8.3",
46
46
  "vite": "^6.3.5",
47
- "vitest": "^3.1.3",
48
- "@univerjs-infra/shared": "0.7.0"
47
+ "vitest": "^3.1.4",
48
+ "@univerjs-infra/shared": "0.8.0-beta.0"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",