@univerjs-pro/print 0.7.0 → 0.8.0-beta.0
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +3 -3
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x256402=_0x1745;(function(_0x244dfc,_0xa5b906){const _0x44c5d1=_0x1745,_0x2d725f=_0x244dfc();while(!![]){try{const _0x427019=-parseInt(_0x44c5d1(0x11b))/0x1*(-parseInt(_0x44c5d1(0x112))/0x2)+parseInt(_0x44c5d1(0x10c))/0x3+parseInt(_0x44c5d1(0xff))/0x4+parseInt(_0x44c5d1(0x11f))/0x5+-parseInt(_0x44c5d1(0x118))/0x6*(-parseInt(_0x44c5d1(0xfb))/0x7)+-parseInt(_0x44c5d1(0x107))/0x8+-parseInt(_0x44c5d1(0x113))/0x9*(parseInt(_0x44c5d1(0x10a))/0xa);if(_0x427019===_0xa5b906)break;else _0x2d725f['push'](_0x2d725f['shift']());}catch(_0x1b5ed9){_0x2d725f['push'](_0x2d725f['shift']());}}}(_0x98a8,0x8db5a));function _0x98a8(){const _0x3f25ae=['42cQwHuk','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','End','207bJalOz','FitHeight','defineProperty','\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','3910260sncHpD','PrintScale','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','\x0a\x20\x20\x20\x20.','printing-canvas','className','Portrait','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','None','FitWidth','FitPage','652827vGmJkQ','createElement','innerHTML','PaperMarginMap','68884lDrIvR','createPrintStyle','Normal','PRINT_CANVAS_CLASS','Origin','printing-canvas-container',',\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','6446256DeTCkR','Middle','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}','970oplKNH','Module','2384505SSMRNH','offline-printing-css','style','Start','Custom','PrintAlign','10546nspfNK','181134CKCYGk','Wide','toStringTag','Landscape','Narrow'];_0x98a8=function(){return _0x3f25ae;};return _0x98a8();}function _0x1745(_0x2d9f32,_0x28d4a8){const _0x98a840=_0x98a8();return _0x1745=function(_0x174570,_0x5cf3a4){_0x174570=_0x174570-0xf5;let _0xeeba27=_0x98a840[_0x174570];return _0xeeba27;},_0x1745(_0x2d9f32,_0x28d4a8);}Object[_0x256402(0x11d)](exports,Symbol[_0x256402(0x115)],{'value':_0x256402(0x10b)});var e=(_0x10f4a4=>(_0x10f4a4[_0x256402(0xf6)]='Portrait',_0x10f4a4[_0x256402(0x116)]=_0x256402(0x116),_0x10f4a4))(e||{}),l=(_0x1aa809=>(_0x1aa809[_0x256402(0x103)]='Origin',_0x1aa809['FitWidth']=_0x256402(0xf9),_0x1aa809[_0x256402(0x11c)]=_0x256402(0x11c),_0x1aa809[_0x256402(0xfa)]=_0x256402(0xfa),_0x1aa809['Custom']=_0x256402(0x110),_0x1aa809))(l||{}),c=(_0x12e861=>(_0x12e861[_0x256402(0x10f)]=_0x256402(0x10f),_0x12e861[_0x256402(0x11a)]='End',_0x12e861[_0x256402(0x108)]='Middle',_0x12e861))(c||{}),i=(_0x120b68=>(_0x120b68[_0x256402(0x101)]=_0x256402(0x101),_0x120b68['Narrow']=_0x256402(0x117),_0x120b68[_0x256402(0x114)]=_0x256402(0x114),_0x120b68['None']='None',_0x120b68))(i||{});const h={[i['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x256402(0x117)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x256402(0xf8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x256402(0x104),n=_0x256402(0x123);function m(_0x4b48de,_0x1e5614,_0x409e1e){const _0x3993b9=_0x256402,_0x5f1769=_0x409e1e===e[_0x3993b9(0xf6)]?_0x4b48de:_0x1e5614,_0x1fa70e=_0x409e1e===e['Portrait']?_0x1e5614:_0x4b48de,_0x21fa8d=_0x3993b9(0x122)+n+_0x3993b9(0x11e)+_0x5f1769+'px\x20'+_0x1fa70e+_0x3993b9(0x121)+r+_0x3993b9(0x105)+r+_0x3993b9(0xf7)+n+_0x3993b9(0x106)+_0x1fa70e+_0x3993b9(0x119)+_0x5f1769+_0x3993b9(0x109),_0x57b77b=document[_0x3993b9(0xfc)](_0x3993b9(0x10e));return _0x57b77b[_0x3993b9(0xfd)]=_0x21fa8d,_0x57b77b[_0x3993b9(0xf5)]=_0x3993b9(0x10d),_0x57b77b;}exports[_0x256402(0x102)]=n,exports['PRINT_CONTAINER_CLASS']=r,exports[_0x256402(0xfe)]=h,exports[_0x256402(0x111)]=c,exports['PrintDirection']=e,exports['PrintPaperMargin']=i,exports[_0x256402(0x120)]=l,exports[_0x256402(0x100)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x217c91=_0x36a8;function _0xf2e5(){const _0x245787=['7127890tVhyTs','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','None','End','1NbxvhV','Narrow','435205bXzAfq','FitWidth','784179TLlypX','12845lKXMos','className','FitPage','Start','\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','FitHeight','Middle','printing-canvas','Origin','480866eOWQbd','\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','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.','printing-canvas-container','Landscape','Portrait','createElement','offline-printing-css','2313608pYfNed','31539pPKGzO','8pCYnLk','1488eoJerd'];_0xf2e5=function(){return _0x245787;};return _0xf2e5();}(function(_0x4293d5,_0x431443){const _0x52fa7b=_0x36a8,_0x262c38=_0x4293d5();while(!![]){try{const _0x376820=parseInt(_0x52fa7b(0xd2))/0x1*(parseInt(_0x52fa7b(0xc1))/0x2)+-parseInt(_0x52fa7b(0xcb))/0x3*(-parseInt(_0x52fa7b(0xcc))/0x4)+-parseInt(_0x52fa7b(0xd4))/0x5+-parseInt(_0x52fa7b(0xcd))/0x6*(parseInt(_0x52fa7b(0xd7))/0x7)+-parseInt(_0x52fa7b(0xca))/0x8+parseInt(_0x52fa7b(0xd6))/0x9+parseInt(_0x52fa7b(0xce))/0xa;if(_0x376820===_0x431443)break;else _0x262c38['push'](_0x262c38['shift']());}catch(_0x42d323){_0x262c38['push'](_0x262c38['shift']());}}}(_0xf2e5,0x382a9));function _0x36a8(_0x3de736,_0x2e12b6){const _0xf2e5ff=_0xf2e5();return _0x36a8=function(_0x36a824,_0x2ede60){_0x36a824=_0x36a824-0xbf;let _0x3f69e2=_0xf2e5ff[_0x36a824];return _0x3f69e2;},_0x36a8(_0x3de736,_0x2e12b6);}var e=(_0x115ef7=>(_0x115ef7[_0x217c91(0xc7)]=_0x217c91(0xc7),_0x115ef7[_0x217c91(0xc6)]=_0x217c91(0xc6),_0x115ef7))(e||{}),l=(_0x3abb57=>(_0x3abb57[_0x217c91(0xc0)]=_0x217c91(0xc0),_0x3abb57['FitWidth']=_0x217c91(0xd5),_0x3abb57[_0x217c91(0xdd)]=_0x217c91(0xdd),_0x3abb57[_0x217c91(0xd9)]=_0x217c91(0xd9),_0x3abb57['Custom']='Custom',_0x3abb57))(l||{}),m=(_0x593a3a=>(_0x593a3a[_0x217c91(0xda)]=_0x217c91(0xda),_0x593a3a[_0x217c91(0xd1)]=_0x217c91(0xd1),_0x593a3a[_0x217c91(0xde)]=_0x217c91(0xde),_0x593a3a))(m||{}),o=(_0x4c0f31=>(_0x4c0f31['Normal']=_0x217c91(0xc3),_0x4c0f31['Narrow']=_0x217c91(0xd3),_0x4c0f31[_0x217c91(0xdc)]=_0x217c91(0xdc),_0x4c0f31[_0x217c91(0xd0)]='None',_0x4c0f31))(o||{});const c={[o[_0x217c91(0xc3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x217c91(0xd3)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x217c91(0xdc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x217c91(0xd0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x217c91(0xc5),d=_0x217c91(0xbf);function g(_0x146b6f,_0x469cd2,_0x178e55){const _0x1d589b=_0x217c91,_0x500102=_0x178e55===e[_0x1d589b(0xc7)]?_0x146b6f:_0x469cd2,_0x447d5b=_0x178e55===e[_0x1d589b(0xc7)]?_0x469cd2:_0x146b6f,_0x1030d9='\x0a\x20\x20\x20\x20.'+d+_0x1d589b(0xc2)+_0x500102+'px\x20'+_0x447d5b+_0x1d589b(0xc4)+p+',\x20.'+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+_0x1d589b(0xdb)+_0x447d5b+_0x1d589b(0xcf)+_0x500102+'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}',_0x8dc986=document[_0x1d589b(0xc8)]('style');return _0x8dc986['innerHTML']=_0x1030d9,_0x8dc986[_0x1d589b(0xd8)]=_0x1d589b(0xc9),_0x8dc986;}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
|
-
|
|
1
|
+
const _0x217c91=_0x36a8;function _0xf2e5(){const _0x245787=['7127890tVhyTs','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','None','End','1NbxvhV','Narrow','435205bXzAfq','FitWidth','784179TLlypX','12845lKXMos','className','FitPage','Start','\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','FitHeight','Middle','printing-canvas','Origin','480866eOWQbd','\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','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.','printing-canvas-container','Landscape','Portrait','createElement','offline-printing-css','2313608pYfNed','31539pPKGzO','8pCYnLk','1488eoJerd'];_0xf2e5=function(){return _0x245787;};return _0xf2e5();}(function(_0x4293d5,_0x431443){const _0x52fa7b=_0x36a8,_0x262c38=_0x4293d5();while(!![]){try{const _0x376820=parseInt(_0x52fa7b(0xd2))/0x1*(parseInt(_0x52fa7b(0xc1))/0x2)+-parseInt(_0x52fa7b(0xcb))/0x3*(-parseInt(_0x52fa7b(0xcc))/0x4)+-parseInt(_0x52fa7b(0xd4))/0x5+-parseInt(_0x52fa7b(0xcd))/0x6*(parseInt(_0x52fa7b(0xd7))/0x7)+-parseInt(_0x52fa7b(0xca))/0x8+parseInt(_0x52fa7b(0xd6))/0x9+parseInt(_0x52fa7b(0xce))/0xa;if(_0x376820===_0x431443)break;else _0x262c38['push'](_0x262c38['shift']());}catch(_0x42d323){_0x262c38['push'](_0x262c38['shift']());}}}(_0xf2e5,0x382a9));function _0x36a8(_0x3de736,_0x2e12b6){const _0xf2e5ff=_0xf2e5();return _0x36a8=function(_0x36a824,_0x2ede60){_0x36a824=_0x36a824-0xbf;let _0x3f69e2=_0xf2e5ff[_0x36a824];return _0x3f69e2;},_0x36a8(_0x3de736,_0x2e12b6);}var e=(_0x115ef7=>(_0x115ef7[_0x217c91(0xc7)]=_0x217c91(0xc7),_0x115ef7[_0x217c91(0xc6)]=_0x217c91(0xc6),_0x115ef7))(e||{}),l=(_0x3abb57=>(_0x3abb57[_0x217c91(0xc0)]=_0x217c91(0xc0),_0x3abb57['FitWidth']=_0x217c91(0xd5),_0x3abb57[_0x217c91(0xdd)]=_0x217c91(0xdd),_0x3abb57[_0x217c91(0xd9)]=_0x217c91(0xd9),_0x3abb57['Custom']='Custom',_0x3abb57))(l||{}),m=(_0x593a3a=>(_0x593a3a[_0x217c91(0xda)]=_0x217c91(0xda),_0x593a3a[_0x217c91(0xd1)]=_0x217c91(0xd1),_0x593a3a[_0x217c91(0xde)]=_0x217c91(0xde),_0x593a3a))(m||{}),o=(_0x4c0f31=>(_0x4c0f31['Normal']=_0x217c91(0xc3),_0x4c0f31['Narrow']=_0x217c91(0xd3),_0x4c0f31[_0x217c91(0xdc)]=_0x217c91(0xdc),_0x4c0f31[_0x217c91(0xd0)]='None',_0x4c0f31))(o||{});const c={[o[_0x217c91(0xc3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x217c91(0xd3)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x217c91(0xdc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x217c91(0xd0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x217c91(0xc5),d=_0x217c91(0xbf);function g(_0x146b6f,_0x469cd2,_0x178e55){const _0x1d589b=_0x217c91,_0x500102=_0x178e55===e[_0x1d589b(0xc7)]?_0x146b6f:_0x469cd2,_0x447d5b=_0x178e55===e[_0x1d589b(0xc7)]?_0x469cd2:_0x146b6f,_0x1030d9='\x0a\x20\x20\x20\x20.'+d+_0x1d589b(0xc2)+_0x500102+'px\x20'+_0x447d5b+_0x1d589b(0xc4)+p+',\x20.'+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+_0x1d589b(0xdb)+_0x447d5b+_0x1d589b(0xcf)+_0x500102+'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}',_0x8dc986=document[_0x1d589b(0xc8)]('style');return _0x8dc986['innerHTML']=_0x1030d9,_0x8dc986[_0x1d589b(0xd8)]=_0x1d589b(0xc9),_0x8dc986;}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
|
|
1
|
+
function _0x303c(){const _0x4eea70=['Portrait','2042026rsjulK','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}','PaperMarginMap','Landscape','Wide','Middle','object','\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.','\x0a\x20\x20\x20\x20.','FitPage','None','function','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitHeight','exports','createPrintStyle','PrintScale','Module','629984YeaZjO','Custom','PRINT_CONTAINER_CLASS','className','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','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','372376AgXjkx','End',',\x20.','createElement','offline-printing-css','998088fJxVoA','PrintDirection','FitWidth','printing-canvas','131890zBXCsR','Normal','1420122gihyxh','toStringTag','UniverProPrint','Start','Origin','PrintAlign','1458870TJiJOK','28bxbSAm'];_0x303c=function(){return _0x4eea70;};return _0x303c();}function _0x4bf8(_0x1fb2cf,_0x1803b7){const _0x303c98=_0x303c();return _0x4bf8=function(_0x4bf819,_0x2fe3ba){_0x4bf819=_0x4bf819-0x1a2;let _0x2f293a=_0x303c98[_0x4bf819];return _0x2f293a;},_0x4bf8(_0x1fb2cf,_0x1803b7);}(function(_0x38e676,_0x1095db){const _0x297cff=_0x4bf8,_0x592239=_0x38e676();while(!![]){try{const _0x48cd1e=-parseInt(_0x297cff(0x1ab))/0x1+parseInt(_0x297cff(0x1ba))/0x2+parseInt(_0x297cff(0x1b7))/0x3+-parseInt(_0x297cff(0x1a6))/0x4+parseInt(_0x297cff(0x1af))/0x5+-parseInt(_0x297cff(0x1b1))/0x6+parseInt(_0x297cff(0x1b8))/0x7*(parseInt(_0x297cff(0x1cd))/0x8);if(_0x48cd1e===_0x1095db)break;else _0x592239['push'](_0x592239['shift']());}catch(_0x583fae){_0x592239['push'](_0x592239['shift']());}}}(_0x303c,0x7f264),function(_0x201676,_0x1a9b39){const _0xa13a46=_0x4bf8;typeof exports==_0xa13a46(0x1c1)&&typeof module<'u'?_0x1a9b39(exports):typeof define==_0xa13a46(0x1c6)&&define['amd']?define([_0xa13a46(0x1c9)],_0x1a9b39):(_0x201676=typeof globalThis<'u'?globalThis:_0x201676||self,_0x1a9b39(_0x201676[_0xa13a46(0x1b3)]={}));}(this,function(_0x451f80){'use strict';const _0x3ee595=_0x4bf8;var _0x2409cc=(_0x6cdec5=>(_0x6cdec5[_0x3ee595(0x1b9)]=_0x3ee595(0x1b9),_0x6cdec5[_0x3ee595(0x1be)]=_0x3ee595(0x1be),_0x6cdec5))(_0x2409cc||{}),_0x34102f=(_0x282d48=>(_0x282d48[_0x3ee595(0x1b5)]=_0x3ee595(0x1b5),_0x282d48[_0x3ee595(0x1ad)]='FitWidth',_0x282d48[_0x3ee595(0x1c8)]='FitHeight',_0x282d48[_0x3ee595(0x1c4)]='FitPage',_0x282d48[_0x3ee595(0x1ce)]=_0x3ee595(0x1ce),_0x282d48))(_0x34102f||{}),_0x3e6754=(_0x49e526=>(_0x49e526[_0x3ee595(0x1b4)]=_0x3ee595(0x1b4),_0x49e526[_0x3ee595(0x1a7)]=_0x3ee595(0x1a7),_0x49e526[_0x3ee595(0x1c0)]='Middle',_0x49e526))(_0x3e6754||{}),_0x2eb7d1=(_0x2ff650=>(_0x2ff650[_0x3ee595(0x1b0)]=_0x3ee595(0x1b0),_0x2ff650[_0x3ee595(0x1bb)]=_0x3ee595(0x1bb),_0x2ff650[_0x3ee595(0x1bf)]='Wide',_0x2ff650[_0x3ee595(0x1c5)]=_0x3ee595(0x1c5),_0x2ff650))(_0x2eb7d1||{});const _0x24cd87={[_0x2eb7d1['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x2eb7d1[_0x3ee595(0x1bb)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x2eb7d1[_0x3ee595(0x1bf)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x2eb7d1[_0x3ee595(0x1c5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x3227fb='printing-canvas-container',_0x1d1c14=_0x3ee595(0x1ae);function _0x1fe5ac(_0x3e9089,_0x107cc5,_0x30a92a){const _0x1fea48=_0x3ee595,_0x2bee18=_0x30a92a===_0x2409cc[_0x1fea48(0x1b9)]?_0x3e9089:_0x107cc5,_0x439ca2=_0x30a92a===_0x2409cc[_0x1fea48(0x1b9)]?_0x107cc5:_0x3e9089,_0x3062fb=_0x1fea48(0x1c3)+_0x1d1c14+_0x1fea48(0x1a5)+_0x2bee18+'px\x20'+_0x439ca2+'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.'+_0x3227fb+_0x1fea48(0x1a8)+_0x3227fb+_0x1fea48(0x1c2)+_0x1d1c14+_0x1fea48(0x1a3)+_0x439ca2+_0x1fea48(0x1c7)+_0x2bee18+_0x1fea48(0x1bc),_0x294714=document[_0x1fea48(0x1a9)]('style');return _0x294714['innerHTML']=_0x3062fb,_0x294714[_0x1fea48(0x1a2)]=_0x1fea48(0x1aa),_0x294714;}_0x451f80[_0x3ee595(0x1a4)]=_0x1d1c14,_0x451f80[_0x3ee595(0x1cf)]=_0x3227fb,_0x451f80[_0x3ee595(0x1bd)]=_0x24cd87,_0x451f80[_0x3ee595(0x1b6)]=_0x3e6754,_0x451f80[_0x3ee595(0x1ac)]=_0x2409cc,_0x451f80['PrintPaperMargin']=_0x2eb7d1,_0x451f80[_0x3ee595(0x1cb)]=_0x34102f,_0x451f80[_0x3ee595(0x1ca)]=_0x1fe5ac,Object['defineProperty'](_0x451f80,Symbol[_0x3ee595(0x1b2)],{'value':_0x3ee595(0x1cc)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0-beta.0",
|
|
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.
|
|
48
|
-
"@univerjs-infra/shared": "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",
|