@univerjs-pro/print 0.19.0 → 0.20.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 +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5984cd=_0x204a;function _0x204a(_0x29e20b,_0x39464c){_0x29e20b=_0x29e20b-0x175;const _0xa7d21a=_0xa7d2();let _0x204a81=_0xa7d21a[_0x29e20b];return _0x204a81;}(function(_0x182984,_0x3881cd){const _0x3297f0=_0x204a,_0x40d74b=_0x182984();while(!![]){try{const _0x1bb049=parseInt(_0x3297f0(0x18c))/0x1*(-parseInt(_0x3297f0(0x17c))/0x2)+-parseInt(_0x3297f0(0x18f))/0x3*(-parseInt(_0x3297f0(0x19d))/0x4)+-parseInt(_0x3297f0(0x181))/0x5+parseInt(_0x3297f0(0x17b))/0x6+parseInt(_0x3297f0(0x185))/0x7+-parseInt(_0x3297f0(0x183))/0x8*(-parseInt(_0x3297f0(0x178))/0x9)+-parseInt(_0x3297f0(0x196))/0xa*(parseInt(_0x3297f0(0x179))/0xb);if(_0x1bb049===_0x3881cd)break;else _0x40d74b['push'](_0x40d74b['shift']());}catch(_0xbc31db){_0x40d74b['push'](_0x40d74b['shift']());}}}(_0xa7d2,0x7fbc9),Object[_0x5984cd(0x176)](exports,Symbol[_0x5984cd(0x195)],{'value':'Module'}));let e=function(_0x6232c4){const _0x4e7224=_0x5984cd;return _0x6232c4[_0x4e7224(0x186)]=_0x4e7224(0x186),_0x6232c4[_0x4e7224(0x175)]=_0x4e7224(0x175),_0x6232c4;}({}),t=function(_0x29774f){const _0x158254=_0x5984cd;return _0x29774f[_0x158254(0x184)]='Origin',_0x29774f[_0x158254(0x19c)]=_0x158254(0x19c),_0x29774f[_0x158254(0x192)]=_0x158254(0x192),_0x29774f[_0x158254(0x190)]='FitPage',_0x29774f[_0x158254(0x17d)]='Custom',_0x29774f;}({}),n=function(_0xbd5ee3){const _0x528d32=_0x5984cd;return _0xbd5ee3[_0x528d32(0x17a)]=_0x528d32(0x17a),_0xbd5ee3[_0x528d32(0x198)]=_0x528d32(0x198),_0xbd5ee3[_0x528d32(0x187)]=_0x528d32(0x187),_0xbd5ee3;}({}),r=function(_0x2c8ae8){const _0x205cdb=_0x5984cd;return _0x2c8ae8[_0x205cdb(0x189)]='Normal',_0x2c8ae8['Narrow']=_0x205cdb(0x18a),_0x2c8ae8[_0x205cdb(0x191)]=_0x205cdb(0x191),_0x2c8ae8['None']='None',_0x2c8ae8['Custom']='Custom',_0x2c8ae8;}({});function _0xa7d2(){const _0x27ff1d=['FitHeight','offline-printing-css','px\x20','toStringTag','90fTJRgi','PRINT_CONTAINER_CLASS','End','createElement','innerHTML','None','FitWidth','4rKeUhf','Landscape','defineProperty','PrintDirection','45EHsUaQ','280962QggUPS','Start','772170hSNWLl','735164qoGdUh','Custom','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','printing-canvas-container',',\x20.','2065965WQJWoe','style','1543664fRnytX','Origin','2999346GHiRbB','Portrait','Middle','PaperMarginMap','Normal','Narrow','\x0a\x20\x20\x20\x20.','1MVmaoi','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PRINT_CANVAS_CLASS','35697Yrlspj','FitPage','Wide'];_0xa7d2=function(){return _0x27ff1d;};return _0xa7d2();}const i={[r[_0x5984cd(0x189)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[r[_0x5984cd(0x18a)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[r['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[r[_0x5984cd(0x19b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[r[_0x5984cd(0x17d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x5984cd(0x17f),o='printing-canvas';function s(_0x453ba9,_0x30d000,_0x4a2b53){const _0xa29a8b=_0x5984cd;let _0x391d7d=_0x4a2b53===e[_0xa29a8b(0x186)]?_0x453ba9:_0x30d000,_0x20d4f8=_0x4a2b53===e[_0xa29a8b(0x186)]?_0x30d000:_0x453ba9,_0x5df494=_0xa29a8b(0x18b)+o+_0xa29a8b(0x17e)+_0x391d7d+_0xa29a8b(0x194)+_0x20d4f8+'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.'+a+_0xa29a8b(0x180)+a+'\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.'+o+'\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'+_0x20d4f8+_0xa29a8b(0x18d)+_0x391d7d+'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}',_0xbeb18=document[_0xa29a8b(0x199)](_0xa29a8b(0x182));return _0xbeb18[_0xa29a8b(0x19a)]=_0x5df494,_0xbeb18['className']=_0xa29a8b(0x193),_0xbeb18;}exports[_0x5984cd(0x18e)]=o,exports[_0x5984cd(0x197)]=a,exports[_0x5984cd(0x188)]=i,exports['PrintAlign']=n,exports[_0x5984cd(0x177)]=e,exports['PrintPaperMargin']=r,exports['PrintScale']=t,exports['createPrintStyle']=s;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x742930=_0x3704;(function(_0x1cc769,_0x3ba73c){const _0x49cdef=_0x3704,_0x571007=_0x1cc769();while(!![]){try{const _0xe1fd98=-parseInt(_0x49cdef(0x11c))/0x1*(-parseInt(_0x49cdef(0x130))/0x2)+parseInt(_0x49cdef(0x11d))/0x3*(-parseInt(_0x49cdef(0x128))/0x4)+parseInt(_0x49cdef(0x123))/0x5+-parseInt(_0x49cdef(0x12c))/0x6*(-parseInt(_0x49cdef(0x12b))/0x7)+parseInt(_0x49cdef(0x133))/0x8*(-parseInt(_0x49cdef(0x127))/0x9)+-parseInt(_0x49cdef(0x111))/0xa*(parseInt(_0x49cdef(0x11f))/0xb)+parseInt(_0x49cdef(0x134))/0xc*(parseInt(_0x49cdef(0x113))/0xd);if(_0xe1fd98===_0x3ba73c)break;else _0x571007['push'](_0x571007['shift']());}catch(_0x2c771a){_0x571007['push'](_0x571007['shift']());}}}(_0x109c,0x4514e));let e=function(_0x11eb83){const _0x267328=_0x3704;return _0x11eb83['Portrait']='Portrait',_0x11eb83[_0x267328(0x121)]=_0x267328(0x121),_0x11eb83;}({}),t=function(_0x2e8c8e){const _0x19f90c=_0x3704;return _0x2e8c8e[_0x19f90c(0x119)]='Origin',_0x2e8c8e[_0x19f90c(0x126)]=_0x19f90c(0x126),_0x2e8c8e['FitHeight']=_0x19f90c(0x120),_0x2e8c8e['FitPage']=_0x19f90c(0x131),_0x2e8c8e[_0x19f90c(0x11b)]=_0x19f90c(0x11b),_0x2e8c8e;}({}),n=function(_0x23eccb){const _0xd6b833=_0x3704;return _0x23eccb[_0xd6b833(0x116)]=_0xd6b833(0x116),_0x23eccb[_0xd6b833(0x110)]=_0xd6b833(0x110),_0x23eccb[_0xd6b833(0x112)]=_0xd6b833(0x112),_0x23eccb;}({}),r=function(_0x12b74f){const _0x1d5994=_0x3704;return _0x12b74f[_0x1d5994(0x124)]=_0x1d5994(0x124),_0x12b74f[_0x1d5994(0x114)]='Narrow',_0x12b74f[_0x1d5994(0x125)]=_0x1d5994(0x125),_0x12b74f[_0x1d5994(0x129)]=_0x1d5994(0x129),_0x12b74f[_0x1d5994(0x11b)]=_0x1d5994(0x11b),_0x12b74f;}({});function _0x3704(_0x2b4412,_0x3c701c){_0x2b4412=_0x2b4412-0x10f;const _0x109c1a=_0x109c();let _0x3704b3=_0x109c1a[_0x2b4412];return _0x3704b3;}function _0x109c(){const _0x292c30=['952ufAOtM','None','\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','7SmZbiM','720102jZdAkv','offline-printing-css','\x0a\x20\x20\x20\x20.','className','5164evDSzw','FitPage','createElement','88VBCiEC','239232OymBOP','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','printing-canvas-container','End','10rrGVnb','Middle','520WKtaZP','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}','Start','Portrait','px\x20','Origin','\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.','Custom','109SNibhe','3534qthkdA','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.','5838382VDdVbU','FitHeight','Landscape','printing-canvas','1540975BQQbVL','Normal','Wide','FitWidth','337914XuuVGt'];_0x109c=function(){return _0x292c30;};return _0x109c();}const i={[r['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[r[_0x742930(0x114)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[r[_0x742930(0x125)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[r[_0x742930(0x129)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[r[_0x742930(0x11b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x742930(0x10f),o=_0x742930(0x122);function s(_0x54d77a,_0x56c770,_0x51586b){const _0x40ff94=_0x742930;let _0x5a38c8=_0x51586b===e['Portrait']?_0x54d77a:_0x56c770,_0x49bf10=_0x51586b===e[_0x40ff94(0x117)]?_0x56c770:_0x54d77a,_0x432598=_0x40ff94(0x12e)+o+_0x40ff94(0x12a)+_0x5a38c8+_0x40ff94(0x118)+_0x49bf10+_0x40ff94(0x11e)+a+',\x20.'+a+_0x40ff94(0x11a)+o+_0x40ff94(0x135)+_0x49bf10+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5a38c8+_0x40ff94(0x115),_0x2d87ce=document[_0x40ff94(0x132)]('style');return _0x2d87ce['innerHTML']=_0x432598,_0x2d87ce[_0x40ff94(0x12f)]=_0x40ff94(0x12d),_0x2d87ce;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x742930=_0x3704;(function(_0x1cc769,_0x3ba73c){const _0x49cdef=_0x3704,_0x571007=_0x1cc769();while(!![]){try{const _0xe1fd98=-parseInt(_0x49cdef(0x11c))/0x1*(-parseInt(_0x49cdef(0x130))/0x2)+parseInt(_0x49cdef(0x11d))/0x3*(-parseInt(_0x49cdef(0x128))/0x4)+parseInt(_0x49cdef(0x123))/0x5+-parseInt(_0x49cdef(0x12c))/0x6*(-parseInt(_0x49cdef(0x12b))/0x7)+parseInt(_0x49cdef(0x133))/0x8*(-parseInt(_0x49cdef(0x127))/0x9)+-parseInt(_0x49cdef(0x111))/0xa*(parseInt(_0x49cdef(0x11f))/0xb)+parseInt(_0x49cdef(0x134))/0xc*(parseInt(_0x49cdef(0x113))/0xd);if(_0xe1fd98===_0x3ba73c)break;else _0x571007['push'](_0x571007['shift']());}catch(_0x2c771a){_0x571007['push'](_0x571007['shift']());}}}(_0x109c,0x4514e));let e=function(_0x11eb83){const _0x267328=_0x3704;return _0x11eb83['Portrait']='Portrait',_0x11eb83[_0x267328(0x121)]=_0x267328(0x121),_0x11eb83;}({}),t=function(_0x2e8c8e){const _0x19f90c=_0x3704;return _0x2e8c8e[_0x19f90c(0x119)]='Origin',_0x2e8c8e[_0x19f90c(0x126)]=_0x19f90c(0x126),_0x2e8c8e['FitHeight']=_0x19f90c(0x120),_0x2e8c8e['FitPage']=_0x19f90c(0x131),_0x2e8c8e[_0x19f90c(0x11b)]=_0x19f90c(0x11b),_0x2e8c8e;}({}),n=function(_0x23eccb){const _0xd6b833=_0x3704;return _0x23eccb[_0xd6b833(0x116)]=_0xd6b833(0x116),_0x23eccb[_0xd6b833(0x110)]=_0xd6b833(0x110),_0x23eccb[_0xd6b833(0x112)]=_0xd6b833(0x112),_0x23eccb;}({}),r=function(_0x12b74f){const _0x1d5994=_0x3704;return _0x12b74f[_0x1d5994(0x124)]=_0x1d5994(0x124),_0x12b74f[_0x1d5994(0x114)]='Narrow',_0x12b74f[_0x1d5994(0x125)]=_0x1d5994(0x125),_0x12b74f[_0x1d5994(0x129)]=_0x1d5994(0x129),_0x12b74f[_0x1d5994(0x11b)]=_0x1d5994(0x11b),_0x12b74f;}({});function _0x3704(_0x2b4412,_0x3c701c){_0x2b4412=_0x2b4412-0x10f;const _0x109c1a=_0x109c();let _0x3704b3=_0x109c1a[_0x2b4412];return _0x3704b3;}function _0x109c(){const _0x292c30=['952ufAOtM','None','\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','7SmZbiM','720102jZdAkv','offline-printing-css','\x0a\x20\x20\x20\x20.','className','5164evDSzw','FitPage','createElement','88VBCiEC','239232OymBOP','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','printing-canvas-container','End','10rrGVnb','Middle','520WKtaZP','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}','Start','Portrait','px\x20','Origin','\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.','Custom','109SNibhe','3534qthkdA','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.','5838382VDdVbU','FitHeight','Landscape','printing-canvas','1540975BQQbVL','Normal','Wide','FitWidth','337914XuuVGt'];_0x109c=function(){return _0x292c30;};return _0x109c();}const i={[r['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[r[_0x742930(0x114)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[r[_0x742930(0x125)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[r[_0x742930(0x129)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[r[_0x742930(0x11b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},a=_0x742930(0x10f),o=_0x742930(0x122);function s(_0x54d77a,_0x56c770,_0x51586b){const _0x40ff94=_0x742930;let _0x5a38c8=_0x51586b===e['Portrait']?_0x54d77a:_0x56c770,_0x49bf10=_0x51586b===e[_0x40ff94(0x117)]?_0x56c770:_0x54d77a,_0x432598=_0x40ff94(0x12e)+o+_0x40ff94(0x12a)+_0x5a38c8+_0x40ff94(0x118)+_0x49bf10+_0x40ff94(0x11e)+a+',\x20.'+a+_0x40ff94(0x11a)+o+_0x40ff94(0x135)+_0x49bf10+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5a38c8+_0x40ff94(0x115),_0x2d87ce=document[_0x40ff94(0x132)]('style');return _0x2d87ce['innerHTML']=_0x432598,_0x2d87ce[_0x40ff94(0x12f)]=_0x40ff94(0x12d),_0x2d87ce;}export{o as PRINT_CANVAS_CLASS,a as PRINT_CONTAINER_CLASS,i as PaperMarginMap,n as PrintAlign,e as PrintDirection,r as PrintPaperMargin,t as PrintScale,s as createPrintStyle};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0xf905(){const _0x569e2e=['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','PaperMarginMap','1169hIAdSb','\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','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Start','PRINT_CONTAINER_CLASS','3672688bbpjuO','FitPage','px\x20','innerHTML','exports','End','Custom','Portrait','FitHeight','className','Origin','PrintScale','\x0a\x20\x20\x20\x20.','176rwTefe','1275179cIBxWJ','Normal','Module','toStringTag','None','\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.','PrintPaperMargin','offline-printing-css','30072eTnArr','function','Narrow','defineProperty','Wide','1131531upjudK','createElement',',\x20.','printing-canvas','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','2137774WVRaSO','166885ivVuNr','style','33772455mmvIWQ','PrintAlign','PrintDirection'];_0xf905=function(){return _0x569e2e;};return _0xf905();}function _0x2c0c(_0x52f4c9,_0x1fd8db){_0x52f4c9=_0x52f4c9-0x195;const _0xf9051=_0xf905();let _0x2c0cb7=_0xf9051[_0x52f4c9];return _0x2c0cb7;}(function(_0x55b305,_0x2f0991){const _0x301e8e=_0x2c0c,_0x13f054=_0x55b305();while(!![]){try{const _0x56def6=parseInt(_0x301e8e(0x19f))/0x1+parseInt(_0x301e8e(0x1b2))/0x2+parseInt(_0x301e8e(0x1ac))/0x3+-parseInt(_0x301e8e(0x19e))/0x4*(-parseInt(_0x301e8e(0x1b3))/0x5)+parseInt(_0x301e8e(0x1a7))/0x6*(parseInt(_0x301e8e(0x1bb))/0x7)+-parseInt(_0x301e8e(0x1c1))/0x8+-parseInt(_0x301e8e(0x1b5))/0x9;if(_0x56def6===_0x2f0991)break;else _0x13f054['push'](_0x13f054['shift']());}catch(_0x23c838){_0x13f054['push'](_0x13f054['shift']());}}}(_0xf905,0xc7096),function(_0x1a261e,_0x379a63){const _0x216253=_0x2c0c;typeof exports=='object'&&typeof module<'u'?_0x379a63(exports):typeof define==_0x216253(0x1a8)&&define['amd']?define([_0x216253(0x195)],_0x379a63):(_0x1a261e=typeof globalThis<'u'?globalThis:_0x1a261e||self,_0x379a63(_0x1a261e['UniverProPrint']={}));}(this,function(_0x4ae18d){const _0x51d438=_0x2c0c;Object[_0x51d438(0x1aa)](_0x4ae18d,Symbol[_0x51d438(0x1a2)],{'value':_0x51d438(0x1a1)});let _0x2196d5=function(_0x5c258f){const _0x25d7d6=_0x51d438;return _0x5c258f[_0x25d7d6(0x198)]=_0x25d7d6(0x198),_0x5c258f[_0x25d7d6(0x1b9)]=_0x25d7d6(0x1b9),_0x5c258f;}({}),_0x57823b=function(_0x528db0){const _0x3b2823=_0x51d438;return _0x528db0[_0x3b2823(0x19b)]=_0x3b2823(0x19b),_0x528db0[_0x3b2823(0x1b1)]=_0x3b2823(0x1b1),_0x528db0['FitHeight']=_0x3b2823(0x199),_0x528db0[_0x3b2823(0x1c2)]=_0x3b2823(0x1c2),_0x528db0[_0x3b2823(0x197)]=_0x3b2823(0x197),_0x528db0;}({}),_0x30e0bb=function(_0x159d16){const _0x3cad98=_0x51d438;return _0x159d16[_0x3cad98(0x1bf)]='Start',_0x159d16[_0x3cad98(0x196)]=_0x3cad98(0x196),_0x159d16[_0x3cad98(0x1bd)]=_0x3cad98(0x1bd),_0x159d16;}({}),_0x101aa1=function(_0x290f52){const _0x55753f=_0x51d438;return _0x290f52[_0x55753f(0x1a0)]='Normal',_0x290f52[_0x55753f(0x1a9)]=_0x55753f(0x1a9),_0x290f52['Wide']=_0x55753f(0x1ab),_0x290f52[_0x55753f(0x1a3)]='None',_0x290f52['Custom']='Custom',_0x290f52;}({}),_0x174798={[_0x101aa1[_0x51d438(0x1a0)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x101aa1[_0x51d438(0x1a9)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x101aa1[_0x51d438(0x1ab)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x101aa1[_0x51d438(0x1a3)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x101aa1[_0x51d438(0x197)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x3b1806='printing-canvas-container',_0xe48730=_0x51d438(0x1af);function _0x2796a6(_0x1dc0b1,_0x502457,_0x5e2a97){const _0x33b5e3=_0x51d438;let _0x1fbdc3=_0x5e2a97===_0x2196d5[_0x33b5e3(0x198)]?_0x1dc0b1:_0x502457,_0xc3a9a7=_0x5e2a97===_0x2196d5[_0x33b5e3(0x198)]?_0x502457:_0x1dc0b1,_0x3e6e17=_0x33b5e3(0x19d)+_0xe48730+_0x33b5e3(0x1bc)+_0x1fbdc3+_0x33b5e3(0x1c3)+_0xc3a9a7+_0x33b5e3(0x1b0)+_0x3b1806+_0x33b5e3(0x1ae)+_0x3b1806+_0x33b5e3(0x1a4)+_0xe48730+'\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'+_0xc3a9a7+_0x33b5e3(0x1be)+_0x1fbdc3+_0x33b5e3(0x1b8),_0x4b3913=document[_0x33b5e3(0x1ad)](_0x33b5e3(0x1b4));return _0x4b3913[_0x33b5e3(0x1c4)]=_0x3e6e17,_0x4b3913[_0x33b5e3(0x19a)]=_0x33b5e3(0x1a6),_0x4b3913;}_0x4ae18d['PRINT_CANVAS_CLASS']=_0xe48730,_0x4ae18d[_0x51d438(0x1c0)]=_0x3b1806,_0x4ae18d[_0x51d438(0x1ba)]=_0x174798,_0x4ae18d[_0x51d438(0x1b6)]=_0x30e0bb,_0x4ae18d[_0x51d438(0x1b7)]=_0x2196d5,_0x4ae18d[_0x51d438(0x1a5)]=_0x101aa1,_0x4ae18d[_0x51d438(0x19c)]=_0x57823b,_0x4ae18d['createPrintStyle']=_0x2796a6;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^6.0.2",
|
|
46
46
|
"vitest": "^4.1.1",
|
|
47
|
-
"@univerjs-infra/shared": "0.
|
|
47
|
+
"@univerjs-infra/shared": "0.20.0"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"test": "vitest run",
|