@univerjs-pro/print 0.11.0 → 0.12.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';
|
|
1
|
+
'use strict';const _0x79546d=_0x3d4b;(function(_0x168c28,_0x3d46e2){const _0x50d1ce=_0x3d4b,_0x2a59d6=_0x168c28();while(!![]){try{const _0x353c35=parseInt(_0x50d1ce(0x1be))/0x1+-parseInt(_0x50d1ce(0x1b4))/0x2*(-parseInt(_0x50d1ce(0x1d0))/0x3)+-parseInt(_0x50d1ce(0x1d3))/0x4*(parseInt(_0x50d1ce(0x1c5))/0x5)+parseInt(_0x50d1ce(0x1bb))/0x6*(-parseInt(_0x50d1ce(0x1d4))/0x7)+-parseInt(_0x50d1ce(0x1d5))/0x8+-parseInt(_0x50d1ce(0x1bd))/0x9*(-parseInt(_0x50d1ce(0x1cc))/0xa)+-parseInt(_0x50d1ce(0x1b7))/0xb;if(_0x353c35===_0x3d46e2)break;else _0x2a59d6['push'](_0x2a59d6['shift']());}catch(_0x3d8171){_0x2a59d6['push'](_0x2a59d6['shift']());}}}(_0x2582,0x77341));function _0x2582(){const _0x19a069=['printing-canvas','FitHeight','FitWidth','Wide','Origin','None','405990iZWFPF','End','Custom','Start','offline-printing-css','printing-canvas-container','PrintScale','2110AToliA','PrintDirection','Landscape',',\x20.','27CjrEbJ','\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;\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.','12DJKDWk','116193iELQOn','2249640DidNJh','FitPage','\x0a\x20\x20\x20\x20.','px\x20','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}','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','163194EIRWra','Middle','innerHTML','8369372sqWaNG','PaperMarginMap','Portrait','toStringTag','90lStMgr','createElement','15516hXzvOE','924756ztFiYD'];_0x2582=function(){return _0x19a069;};return _0x2582();}Object['defineProperty'](exports,Symbol[_0x79546d(0x1ba)],{'value':'Module'});var i=(_0x5a66e2=>(_0x5a66e2[_0x79546d(0x1b9)]=_0x79546d(0x1b9),_0x5a66e2['Landscape']=_0x79546d(0x1ce),_0x5a66e2))(i||{}),l=(_0x5e6e07=>(_0x5e6e07[_0x79546d(0x1c3)]=_0x79546d(0x1c3),_0x5e6e07[_0x79546d(0x1c1)]=_0x79546d(0x1c1),_0x5e6e07['FitHeight']=_0x79546d(0x1c0),_0x5e6e07[_0x79546d(0x1d6)]=_0x79546d(0x1d6),_0x5e6e07[_0x79546d(0x1c7)]=_0x79546d(0x1c7),_0x5e6e07))(l||{}),m=(_0x9a58ea=>(_0x9a58ea['Start']=_0x79546d(0x1c8),_0x9a58ea[_0x79546d(0x1c6)]='End',_0x9a58ea[_0x79546d(0x1b5)]='Middle',_0x9a58ea))(m||{}),o=(_0x1205c7=>(_0x1205c7[_0x79546d(0x1db)]=_0x79546d(0x1db),_0x1205c7[_0x79546d(0x1d9)]='Narrow',_0x1205c7['Wide']=_0x79546d(0x1c2),_0x1205c7[_0x79546d(0x1c4)]='None',_0x1205c7[_0x79546d(0x1c7)]=_0x79546d(0x1c7),_0x1205c7))(o||{});const g={[o[_0x79546d(0x1db)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x79546d(0x1d9)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x79546d(0x1c2)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x79546d(0x1c4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x79546d(0x1c7)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x79546d(0x1ca),n=_0x79546d(0x1bf);function h(_0x22d58c,_0x17bdfa,_0x5f24c6){const _0x41bb29=_0x79546d,_0x4756e9=_0x5f24c6===i[_0x41bb29(0x1b9)]?_0x22d58c:_0x17bdfa,_0x4cb869=_0x5f24c6===i[_0x41bb29(0x1b9)]?_0x17bdfa:_0x22d58c,_0x1e5e47=_0x41bb29(0x1d7)+n+'\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'+_0x4756e9+_0x41bb29(0x1d8)+_0x4cb869+_0x41bb29(0x1d2)+r+_0x41bb29(0x1cf)+r+_0x41bb29(0x1d1)+n+_0x41bb29(0x1dc)+_0x4cb869+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4756e9+_0x41bb29(0x1da),_0x36a72f=document[_0x41bb29(0x1bc)]('style');return _0x36a72f[_0x41bb29(0x1b6)]=_0x1e5e47,_0x36a72f['className']=_0x41bb29(0x1c9),_0x36a72f;}function _0x3d4b(_0x1f3d8a,_0x5df18c){const _0x2582ac=_0x2582();return _0x3d4b=function(_0x3d4b12,_0x15be91){_0x3d4b12=_0x3d4b12-0x1b4;let _0x3b4dfd=_0x2582ac[_0x3d4b12];return _0x3b4dfd;},_0x3d4b(_0x1f3d8a,_0x5df18c);}exports['PRINT_CANVAS_CLASS']=n,exports['PRINT_CONTAINER_CLASS']=r,exports[_0x79546d(0x1b8)]=g,exports['PrintAlign']=m,exports[_0x79546d(0x1cd)]=i,exports['PrintPaperMargin']=o,exports[_0x79546d(0x1cb)]=l,exports['createPrintStyle']=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0xb92c29=_0x4d5c;(function(_0x44aaa8,_0x5260cb){const _0x1844dc=_0x4d5c,_0x19d1d0=_0x44aaa8();while(!![]){try{const _0x28a8e7=parseInt(_0x1844dc(0x1ed))/0x1*(-parseInt(_0x1844dc(0x206))/0x2)+parseInt(_0x1844dc(0x210))/0x3*(parseInt(_0x1844dc(0x200))/0x4)+-parseInt(_0x1844dc(0x207))/0x5*(parseInt(_0x1844dc(0x20d))/0x6)+-parseInt(_0x1844dc(0x1ef))/0x7+parseInt(_0x1844dc(0x1f9))/0x8*(-parseInt(_0x1844dc(0x20e))/0x9)+parseInt(_0x1844dc(0x1fc))/0xa*(-parseInt(_0x1844dc(0x204))/0xb)+parseInt(_0x1844dc(0x1ff))/0xc;if(_0x28a8e7===_0x5260cb)break;else _0x19d1d0['push'](_0x19d1d0['shift']());}catch(_0x915937){_0x19d1d0['push'](_0x19d1d0['shift']());}}}(_0xfbcf,0xc78d3));function _0x4d5c(_0x1ef730,_0x4f5693){const _0xfbcf99=_0xfbcf();return _0x4d5c=function(_0x4d5c89,_0x21e614){_0x4d5c89=_0x4d5c89-0x1eb;let _0x16535f=_0xfbcf99[_0x4d5c89];return _0x16535f;},_0x4d5c(_0x1ef730,_0x4f5693);}var e=(_0x27a2ff=>(_0x27a2ff['Portrait']=_0xb92c29(0x20f),_0x27a2ff[_0xb92c29(0x1f5)]='Landscape',_0x27a2ff))(e||{}),h=(_0x5e4086=>(_0x5e4086[_0xb92c29(0x209)]=_0xb92c29(0x209),_0x5e4086[_0xb92c29(0x1fd)]=_0xb92c29(0x1fd),_0x5e4086['FitHeight']='FitHeight',_0x5e4086[_0xb92c29(0x1fa)]=_0xb92c29(0x1fa),_0x5e4086[_0xb92c29(0x203)]=_0xb92c29(0x203),_0x5e4086))(h||{}),l=(_0x5093da=>(_0x5093da[_0xb92c29(0x1f2)]='Start',_0x5093da['End']=_0xb92c29(0x20a),_0x5093da[_0xb92c29(0x1f1)]=_0xb92c29(0x1f1),_0x5093da))(l||{}),o=(_0x28f43f=>(_0x28f43f[_0xb92c29(0x202)]='Normal',_0x28f43f['Narrow']=_0xb92c29(0x1ec),_0x28f43f[_0xb92c29(0x1eb)]='Wide',_0x28f43f[_0xb92c29(0x208)]=_0xb92c29(0x208),_0x28f43f[_0xb92c29(0x203)]=_0xb92c29(0x203),_0x28f43f))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0xb92c29(0x1ec)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0xb92c29(0x203)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0xb92c29(0x20b),d=_0xb92c29(0x201);function g(_0x226535,_0x31a016,_0x43f950){const _0x2ed298=_0xb92c29,_0x48137e=_0x43f950===e[_0x2ed298(0x20f)]?_0x226535:_0x31a016,_0x427b95=_0x43f950===e['Portrait']?_0x31a016:_0x226535,_0x1d3a13=_0x2ed298(0x1f8)+d+_0x2ed298(0x1f0)+_0x48137e+_0x2ed298(0x1ee)+_0x427b95+'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.'+p+_0x2ed298(0x20c)+p+_0x2ed298(0x1fe)+d+_0x2ed298(0x1f3)+_0x427b95+_0x2ed298(0x205)+_0x48137e+_0x2ed298(0x1f6),_0x466444=document[_0x2ed298(0x1f4)](_0x2ed298(0x1f7));return _0x466444[_0x2ed298(0x212)]=_0x1d3a13,_0x466444[_0x2ed298(0x211)]=_0x2ed298(0x1fb),_0x466444;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};function _0xfbcf(){const _0x12db9d=['\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','Landscape','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}','style','\x0a\x20\x20\x20\x20.','152mWBnSz','FitPage','offline-printing-css','764770UEGzMK','FitWidth','\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.','74086272bdWJPw','68SemYxX','printing-canvas','Normal','Custom','88TSwWTU','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','294856nJpjRE','965OeuwNW','None','Origin','End','printing-canvas-container',',\x20.','35652pwOTQu','708399NhFFpp','Portrait','9042ULyhww','className','innerHTML','Wide','Narrow','8ZMbUbb','px\x20','6819232iFAGQk','\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','Start'];_0xfbcf=function(){return _0x12db9d;};return _0xfbcf();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0xb92c29=_0x4d5c;(function(_0x44aaa8,_0x5260cb){const _0x1844dc=_0x4d5c,_0x19d1d0=_0x44aaa8();while(!![]){try{const _0x28a8e7=parseInt(_0x1844dc(0x1ed))/0x1*(-parseInt(_0x1844dc(0x206))/0x2)+parseInt(_0x1844dc(0x210))/0x3*(parseInt(_0x1844dc(0x200))/0x4)+-parseInt(_0x1844dc(0x207))/0x5*(parseInt(_0x1844dc(0x20d))/0x6)+-parseInt(_0x1844dc(0x1ef))/0x7+parseInt(_0x1844dc(0x1f9))/0x8*(-parseInt(_0x1844dc(0x20e))/0x9)+parseInt(_0x1844dc(0x1fc))/0xa*(-parseInt(_0x1844dc(0x204))/0xb)+parseInt(_0x1844dc(0x1ff))/0xc;if(_0x28a8e7===_0x5260cb)break;else _0x19d1d0['push'](_0x19d1d0['shift']());}catch(_0x915937){_0x19d1d0['push'](_0x19d1d0['shift']());}}}(_0xfbcf,0xc78d3));function _0x4d5c(_0x1ef730,_0x4f5693){const _0xfbcf99=_0xfbcf();return _0x4d5c=function(_0x4d5c89,_0x21e614){_0x4d5c89=_0x4d5c89-0x1eb;let _0x16535f=_0xfbcf99[_0x4d5c89];return _0x16535f;},_0x4d5c(_0x1ef730,_0x4f5693);}var e=(_0x27a2ff=>(_0x27a2ff['Portrait']=_0xb92c29(0x20f),_0x27a2ff[_0xb92c29(0x1f5)]='Landscape',_0x27a2ff))(e||{}),h=(_0x5e4086=>(_0x5e4086[_0xb92c29(0x209)]=_0xb92c29(0x209),_0x5e4086[_0xb92c29(0x1fd)]=_0xb92c29(0x1fd),_0x5e4086['FitHeight']='FitHeight',_0x5e4086[_0xb92c29(0x1fa)]=_0xb92c29(0x1fa),_0x5e4086[_0xb92c29(0x203)]=_0xb92c29(0x203),_0x5e4086))(h||{}),l=(_0x5093da=>(_0x5093da[_0xb92c29(0x1f2)]='Start',_0x5093da['End']=_0xb92c29(0x20a),_0x5093da[_0xb92c29(0x1f1)]=_0xb92c29(0x1f1),_0x5093da))(l||{}),o=(_0x28f43f=>(_0x28f43f[_0xb92c29(0x202)]='Normal',_0x28f43f['Narrow']=_0xb92c29(0x1ec),_0x28f43f[_0xb92c29(0x1eb)]='Wide',_0x28f43f[_0xb92c29(0x208)]=_0xb92c29(0x208),_0x28f43f[_0xb92c29(0x203)]=_0xb92c29(0x203),_0x28f43f))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0xb92c29(0x1ec)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0xb92c29(0x203)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0xb92c29(0x20b),d=_0xb92c29(0x201);function g(_0x226535,_0x31a016,_0x43f950){const _0x2ed298=_0xb92c29,_0x48137e=_0x43f950===e[_0x2ed298(0x20f)]?_0x226535:_0x31a016,_0x427b95=_0x43f950===e['Portrait']?_0x31a016:_0x226535,_0x1d3a13=_0x2ed298(0x1f8)+d+_0x2ed298(0x1f0)+_0x48137e+_0x2ed298(0x1ee)+_0x427b95+'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.'+p+_0x2ed298(0x20c)+p+_0x2ed298(0x1fe)+d+_0x2ed298(0x1f3)+_0x427b95+_0x2ed298(0x205)+_0x48137e+_0x2ed298(0x1f6),_0x466444=document[_0x2ed298(0x1f4)](_0x2ed298(0x1f7));return _0x466444[_0x2ed298(0x212)]=_0x1d3a13,_0x466444[_0x2ed298(0x211)]=_0x2ed298(0x1fb),_0x466444;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,l as PrintAlign,e as PrintDirection,o as PrintPaperMargin,h as PrintScale,g as createPrintStyle};function _0xfbcf(){const _0x12db9d=['\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','Landscape','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}','style','\x0a\x20\x20\x20\x20.','152mWBnSz','FitPage','offline-printing-css','764770UEGzMK','FitWidth','\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.','74086272bdWJPw','68SemYxX','printing-canvas','Normal','Custom','88TSwWTU','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','294856nJpjRE','965OeuwNW','None','Origin','End','printing-canvas-container',',\x20.','35652pwOTQu','708399NhFFpp','Portrait','9042ULyhww','className','innerHTML','Wide','Narrow','8ZMbUbb','px\x20','6819232iFAGQk','\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','Start'];_0xfbcf=function(){return _0x12db9d;};return _0xfbcf();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1b5d26,_0x2fba39){const _0x29b3e6=_0x5a59,_0x3053a6=_0x1b5d26();while(!![]){try{const _0x3530b3=parseInt(_0x29b3e6(0x1a4))/0x1*(-parseInt(_0x29b3e6(0x18d))/0x2)+-parseInt(_0x29b3e6(0x194))/0x3+parseInt(_0x29b3e6(0x187))/0x4*(-parseInt(_0x29b3e6(0x196))/0x5)+-parseInt(_0x29b3e6(0x1a2))/0x6+-parseInt(_0x29b3e6(0x182))/0x7+-parseInt(_0x29b3e6(0x191))/0x8*(-parseInt(_0x29b3e6(0x19b))/0x9)+parseInt(_0x29b3e6(0x1af))/0xa;if(_0x3530b3===_0x2fba39)break;else _0x3053a6['push'](_0x3053a6['shift']());}catch(_0x479333){_0x3053a6['push'](_0x3053a6['shift']());}}}(_0x33de,0xc7a16),function(_0x16d32e,_0x32d5b3){const _0x5ac16f=_0x5a59;typeof exports==_0x5ac16f(0x18b)&&typeof module<'u'?_0x32d5b3(exports):typeof define==_0x5ac16f(0x193)&&define['amd']?define([_0x5ac16f(0x1ad)],_0x32d5b3):(_0x16d32e=typeof globalThis<'u'?globalThis:_0x16d32e||self,_0x32d5b3(_0x16d32e['UniverProPrint']={}));}(this,function(_0x5c362e){'use strict';const _0x9eedb2=_0x5a59;var _0x4ba820=(_0x3d579e=>(_0x3d579e['Portrait']=_0x9eedb2(0x181),_0x3d579e[_0x9eedb2(0x1a8)]=_0x9eedb2(0x1a8),_0x3d579e))(_0x4ba820||{}),_0x2c30ba=(_0x30ca55=>(_0x30ca55[_0x9eedb2(0x190)]=_0x9eedb2(0x190),_0x30ca55['FitWidth']='FitWidth',_0x30ca55[_0x9eedb2(0x19c)]='FitHeight',_0x30ca55['FitPage']=_0x9eedb2(0x192),_0x30ca55[_0x9eedb2(0x1aa)]=_0x9eedb2(0x1aa),_0x30ca55))(_0x2c30ba||{}),_0x4dae90=(_0x5cf3bd=>(_0x5cf3bd[_0x9eedb2(0x188)]='Start',_0x5cf3bd[_0x9eedb2(0x185)]=_0x9eedb2(0x185),_0x5cf3bd['Middle']=_0x9eedb2(0x18a),_0x5cf3bd))(_0x4dae90||{}),_0x27d895=(_0x1e905f=>(_0x1e905f['Normal']=_0x9eedb2(0x19f),_0x1e905f[_0x9eedb2(0x198)]=_0x9eedb2(0x198),_0x1e905f[_0x9eedb2(0x1ac)]='Wide',_0x1e905f['None']=_0x9eedb2(0x1a6),_0x1e905f['Custom']='Custom',_0x1e905f))(_0x27d895||{});const _0x33239a={[_0x27d895['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x27d895[_0x9eedb2(0x198)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x27d895[_0x9eedb2(0x1ac)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x27d895['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x27d895[_0x9eedb2(0x1aa)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x54487f=_0x9eedb2(0x1ab),_0x22cd52=_0x9eedb2(0x199);function _0x12c40d(_0x2aa02f,_0x2b936f,_0x36a687){const _0x1d04ac=_0x9eedb2,_0x3e7e35=_0x36a687===_0x4ba820[_0x1d04ac(0x181)]?_0x2aa02f:_0x2b936f,_0x401ec9=_0x36a687===_0x4ba820[_0x1d04ac(0x181)]?_0x2b936f:_0x2aa02f,_0x859392=_0x1d04ac(0x19d)+_0x22cd52+'\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'+_0x3e7e35+_0x1d04ac(0x19a)+_0x401ec9+'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.'+_0x54487f+_0x1d04ac(0x18f)+_0x54487f+_0x1d04ac(0x1a9)+_0x22cd52+_0x1d04ac(0x1a0)+_0x401ec9+_0x1d04ac(0x19e)+_0x3e7e35+_0x1d04ac(0x18c),_0x3e8436=document[_0x1d04ac(0x197)](_0x1d04ac(0x189));return _0x3e8436['innerHTML']=_0x859392,_0x3e8436[_0x1d04ac(0x183)]=_0x1d04ac(0x1b0),_0x3e8436;}_0x5c362e['PRINT_CANVAS_CLASS']=_0x22cd52,_0x5c362e[_0x9eedb2(0x1a7)]=_0x54487f,_0x5c362e[_0x9eedb2(0x184)]=_0x33239a,_0x5c362e['PrintAlign']=_0x4dae90,_0x5c362e[_0x9eedb2(0x18e)]=_0x4ba820,_0x5c362e[_0x9eedb2(0x1ae)]=_0x27d895,_0x5c362e[_0x9eedb2(0x1a3)]=_0x2c30ba,_0x5c362e[_0x9eedb2(0x1a1)]=_0x12c40d,Object[_0x9eedb2(0x1a5)](_0x5c362e,Symbol[_0x9eedb2(0x195)],{'value':_0x9eedb2(0x186)});}));function _0x5a59(_0x230825,_0x34a7f6){const _0x33de02=_0x33de();return _0x5a59=function(_0x5a59f8,_0x44485b){_0x5a59f8=_0x5a59f8-0x181;let _0x5768c4=_0x33de02[_0x5a59f8];return _0x5768c4;},_0x5a59(_0x230825,_0x34a7f6);}function _0x33de(){const _0x1c759b=['PrintPaperMargin','36414780MXzpnq','offline-printing-css','Portrait','3000956kpRlcw','className','PaperMarginMap','End','Module','512AlVXaU','Start','style','Middle','object','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}','14nHeeRj','PrintDirection',',\x20.','Origin','1607224fjXoEm','FitPage','function','1656456qelBQn','toStringTag','54895grjlLS','createElement','Narrow','printing-canvas','px\x20','27aggTnT','FitHeight','\x0a\x20\x20\x20\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\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','createPrintStyle','5285676LIhxyx','PrintScale','22769nISOMU','defineProperty','None','PRINT_CONTAINER_CLASS','Landscape','\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','printing-canvas-container','Wide','exports'];_0x33de=function(){return _0x1c759b;};return _0x33de();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
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.9.3",
|
|
46
|
-
"vite": "^7.
|
|
46
|
+
"vite": "^7.2.2",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.
|
|
48
|
+
"@univerjs-infra/shared": "0.12.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|