@univerjs-pro/print 0.8.2 → 0.8.3-nightly.202506271607
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 _0x320ffa=_0x594a;(function(_0x429981,_0x36e573){const _0x1c0dce=_0x594a,_0x2da543=_0x429981();while(!![]){try{const _0x1087bf=parseInt(_0x1c0dce(0x183))/0x1+-parseInt(_0x1c0dce(0x19d))/0x2*(parseInt(_0x1c0dce(0x184))/0x3)+parseInt(_0x1c0dce(0x17e))/0x4*(parseInt(_0x1c0dce(0x191))/0x5)+-parseInt(_0x1c0dce(0x18d))/0x6*(parseInt(_0x1c0dce(0x17c))/0x7)+-parseInt(_0x1c0dce(0x194))/0x8+parseInt(_0x1c0dce(0x189))/0x9+-parseInt(_0x1c0dce(0x1a2))/0xa*(parseInt(_0x1c0dce(0x18a))/0xb);if(_0x1087bf===_0x36e573)break;else _0x2da543['push'](_0x2da543['shift']());}catch(_0x1c2367){_0x2da543['push'](_0x2da543['shift']());}}}(_0x1c09,0x64421));Object[_0x320ffa(0x199)](exports,Symbol['toStringTag'],{'value':_0x320ffa(0x195)});var e=(_0x1130d8=>(_0x1130d8[_0x320ffa(0x182)]=_0x320ffa(0x182),_0x1130d8[_0x320ffa(0x197)]=_0x320ffa(0x197),_0x1130d8))(e||{}),l=(_0x57d0b5=>(_0x57d0b5[_0x320ffa(0x19f)]=_0x320ffa(0x19f),_0x57d0b5[_0x320ffa(0x19c)]=_0x320ffa(0x19c),_0x57d0b5[_0x320ffa(0x193)]=_0x320ffa(0x193),_0x57d0b5['FitPage']=_0x320ffa(0x19a),_0x57d0b5[_0x320ffa(0x18b)]=_0x320ffa(0x18b),_0x57d0b5))(l||{}),c=(_0x185316=>(_0x185316['Start']=_0x320ffa(0x1a0),_0x185316[_0x320ffa(0x18f)]=_0x320ffa(0x18f),_0x185316[_0x320ffa(0x18e)]=_0x320ffa(0x18e),_0x185316))(c||{}),i=(_0x22c90d=>(_0x22c90d[_0x320ffa(0x19e)]='Normal',_0x22c90d[_0x320ffa(0x192)]=_0x320ffa(0x192),_0x22c90d[_0x320ffa(0x198)]=_0x320ffa(0x198),_0x22c90d['None']=_0x320ffa(0x181),_0x22c90d))(i||{});const h={[i[_0x320ffa(0x19e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x320ffa(0x192)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x320ffa(0x198)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x320ffa(0x181)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x320ffa(0x1a3),n=_0x320ffa(0x17d);function m(_0x151baa,_0x5576a6,_0x3cb40a){const _0x19e576=_0x320ffa,_0x2300b9=_0x3cb40a===e[_0x19e576(0x182)]?_0x151baa:_0x5576a6,_0x1ed29e=_0x3cb40a===e[_0x19e576(0x182)]?_0x5576a6:_0x151baa,_0x39e190=_0x19e576(0x1a7)+n+_0x19e576(0x186)+_0x2300b9+'px\x20'+_0x1ed29e+_0x19e576(0x17f)+r+',\x20.'+r+_0x19e576(0x196)+n+_0x19e576(0x187)+_0x1ed29e+_0x19e576(0x1a5)+_0x2300b9+'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}',_0x571627=document['createElement'](_0x19e576(0x1a4));return _0x571627[_0x19e576(0x190)]=_0x39e190,_0x571627[_0x19e576(0x18c)]=_0x19e576(0x1a6),_0x571627;}function _0x594a(_0x2515d2,_0xb1522){const _0x1c0942=_0x1c09();return _0x594a=function(_0x594aff,_0x3d53d0){_0x594aff=_0x594aff-0x17c;let _0x149589=_0x1c0942[_0x594aff];return _0x149589;},_0x594a(_0x2515d2,_0xb1522);}exports[_0x320ffa(0x188)]=n,exports[_0x320ffa(0x180)]=r,exports['PaperMarginMap']=h,exports[_0x320ffa(0x185)]=c,exports['PrintDirection']=e,exports[_0x320ffa(0x19b)]=i,exports[_0x320ffa(0x1a1)]=l,exports['createPrintStyle']=m;function _0x1c09(){const _0x403187=['PRINT_CONTAINER_CLASS','None','Portrait','688670hYDJRV','555AQZLbK','PrintAlign','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','\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','4309488OVXVFq','8416859SNVfjj','Custom','className','282ZMlyqK','Middle','End','innerHTML','92195rIZrzw','Narrow','FitHeight','26528lAizAu','Module','\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.','Landscape','Wide','defineProperty','FitPage','PrintPaperMargin','FitWidth','986nSeDfh','Normal','Origin','Start','PrintScale','10QmpFsK','printing-canvas-container','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','offline-printing-css','\x0a\x20\x20\x20\x20.','12145heMxJw','printing-canvas','40pvAYkF','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.'];_0x1c09=function(){return _0x403187;};return _0x1c09();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x476bc0=_0x2cc0;(function(_0x4359bf,_0xbb53b2){const _0x3d8ae8=_0x2cc0,_0x515494=_0x4359bf();while(!![]){try{const _0x51af53=-parseInt(_0x3d8ae8(0x115))/0x1*(parseInt(_0x3d8ae8(0x110))/0x2)+parseInt(_0x3d8ae8(0x11b))/0x3+-parseInt(_0x3d8ae8(0xf9))/0x4+parseInt(_0x3d8ae8(0x111))/0x5*(-parseInt(_0x3d8ae8(0xfc))/0x6)+-parseInt(_0x3d8ae8(0x117))/0x7*(-parseInt(_0x3d8ae8(0xff))/0x8)+parseInt(_0x3d8ae8(0xfe))/0x9+-parseInt(_0x3d8ae8(0x118))/0xa;if(_0x51af53===_0xbb53b2)break;else _0x515494['push'](_0x515494['shift']());}catch(_0x1e85b4){_0x515494['push'](_0x515494['shift']());}}}(_0x7a15,0x1b835));var e=(_0x17156c=>(_0x17156c[_0x476bc0(0x103)]='Portrait',_0x17156c['Landscape']=_0x476bc0(0x109),_0x17156c))(e||{}),l=(_0x443ac1=>(_0x443ac1[_0x476bc0(0xfd)]='Origin',_0x443ac1[_0x476bc0(0x112)]=_0x476bc0(0x112),_0x443ac1[_0x476bc0(0xf8)]=_0x476bc0(0xf8),_0x443ac1[_0x476bc0(0x113)]='FitPage',_0x443ac1[_0x476bc0(0x11a)]=_0x476bc0(0x11a),_0x443ac1))(l||{}),m=(_0x20e230=>(_0x20e230[_0x476bc0(0xfa)]='Start',_0x20e230[_0x476bc0(0x108)]=_0x476bc0(0x108),_0x20e230[_0x476bc0(0x10e)]=_0x476bc0(0x10e),_0x20e230))(m||{}),o=(_0x5ee31f=>(_0x5ee31f[_0x476bc0(0x106)]=_0x476bc0(0x106),_0x5ee31f[_0x476bc0(0x10b)]='Narrow',_0x5ee31f[_0x476bc0(0x100)]=_0x476bc0(0x100),_0x5ee31f[_0x476bc0(0x101)]='None',_0x5ee31f))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x476bc0(0x10b)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x476bc0(0x100)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x476bc0(0x101)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x476bc0(0x104);function _0x7a15(){const _0x56d70c=['28KUjWMF','416390KQMBlV','offline-printing-css','Custom','653763vFkFBf','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitHeight','369880pHFeUy','Start','className','516NsNaMO','Origin','1004877oZsqhy','352336otpuDH','Wide','None','createElement','Portrait','printing-canvas','\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','Normal','\x0a\x20\x20\x20\x20.','End','Landscape',',\x20.','Narrow','style','px\x20','Middle','\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','18CWyIRh','4105ZVFvvK','FitWidth','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.','20926ydkSjg','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}'];_0x7a15=function(){return _0x56d70c;};return _0x7a15();}function g(_0x2c66f2,_0x307a1c,_0x1b82b4){const _0x34ee3a=_0x476bc0,_0x4dc907=_0x1b82b4===e[_0x34ee3a(0x103)]?_0x2c66f2:_0x307a1c,_0x2f591b=_0x1b82b4===e[_0x34ee3a(0x103)]?_0x307a1c:_0x2c66f2,_0x4763ea=_0x34ee3a(0x107)+d+_0x34ee3a(0x10f)+_0x4dc907+_0x34ee3a(0x10d)+_0x2f591b+'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+_0x34ee3a(0x10a)+p+_0x34ee3a(0x114)+d+_0x34ee3a(0x105)+_0x2f591b+_0x34ee3a(0x11c)+_0x4dc907+_0x34ee3a(0x116),_0x42a840=document[_0x34ee3a(0x102)](_0x34ee3a(0x10c));return _0x42a840['innerHTML']=_0x4763ea,_0x42a840[_0x34ee3a(0xfb)]=_0x34ee3a(0x119),_0x42a840;}function _0x2cc0(_0x3d6a91,_0x44fdbf){const _0x7a1515=_0x7a15();return _0x2cc0=function(_0x2cc041,_0xf0f2c7){_0x2cc041=_0x2cc041-0xf8;let _0xfa13bd=_0x7a1515[_0x2cc041];return _0xfa13bd;},_0x2cc0(_0x3d6a91,_0x44fdbf);}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x476bc0=_0x2cc0;(function(_0x4359bf,_0xbb53b2){const _0x3d8ae8=_0x2cc0,_0x515494=_0x4359bf();while(!![]){try{const _0x51af53=-parseInt(_0x3d8ae8(0x115))/0x1*(parseInt(_0x3d8ae8(0x110))/0x2)+parseInt(_0x3d8ae8(0x11b))/0x3+-parseInt(_0x3d8ae8(0xf9))/0x4+parseInt(_0x3d8ae8(0x111))/0x5*(-parseInt(_0x3d8ae8(0xfc))/0x6)+-parseInt(_0x3d8ae8(0x117))/0x7*(-parseInt(_0x3d8ae8(0xff))/0x8)+parseInt(_0x3d8ae8(0xfe))/0x9+-parseInt(_0x3d8ae8(0x118))/0xa;if(_0x51af53===_0xbb53b2)break;else _0x515494['push'](_0x515494['shift']());}catch(_0x1e85b4){_0x515494['push'](_0x515494['shift']());}}}(_0x7a15,0x1b835));var e=(_0x17156c=>(_0x17156c[_0x476bc0(0x103)]='Portrait',_0x17156c['Landscape']=_0x476bc0(0x109),_0x17156c))(e||{}),l=(_0x443ac1=>(_0x443ac1[_0x476bc0(0xfd)]='Origin',_0x443ac1[_0x476bc0(0x112)]=_0x476bc0(0x112),_0x443ac1[_0x476bc0(0xf8)]=_0x476bc0(0xf8),_0x443ac1[_0x476bc0(0x113)]='FitPage',_0x443ac1[_0x476bc0(0x11a)]=_0x476bc0(0x11a),_0x443ac1))(l||{}),m=(_0x20e230=>(_0x20e230[_0x476bc0(0xfa)]='Start',_0x20e230[_0x476bc0(0x108)]=_0x476bc0(0x108),_0x20e230[_0x476bc0(0x10e)]=_0x476bc0(0x10e),_0x20e230))(m||{}),o=(_0x5ee31f=>(_0x5ee31f[_0x476bc0(0x106)]=_0x476bc0(0x106),_0x5ee31f[_0x476bc0(0x10b)]='Narrow',_0x5ee31f[_0x476bc0(0x100)]=_0x476bc0(0x100),_0x5ee31f[_0x476bc0(0x101)]='None',_0x5ee31f))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x476bc0(0x10b)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x476bc0(0x100)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x476bc0(0x101)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x476bc0(0x104);function _0x7a15(){const _0x56d70c=['28KUjWMF','416390KQMBlV','offline-printing-css','Custom','653763vFkFBf','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitHeight','369880pHFeUy','Start','className','516NsNaMO','Origin','1004877oZsqhy','352336otpuDH','Wide','None','createElement','Portrait','printing-canvas','\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','Normal','\x0a\x20\x20\x20\x20.','End','Landscape',',\x20.','Narrow','style','px\x20','Middle','\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','18CWyIRh','4105ZVFvvK','FitWidth','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.','20926ydkSjg','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}'];_0x7a15=function(){return _0x56d70c;};return _0x7a15();}function g(_0x2c66f2,_0x307a1c,_0x1b82b4){const _0x34ee3a=_0x476bc0,_0x4dc907=_0x1b82b4===e[_0x34ee3a(0x103)]?_0x2c66f2:_0x307a1c,_0x2f591b=_0x1b82b4===e[_0x34ee3a(0x103)]?_0x307a1c:_0x2c66f2,_0x4763ea=_0x34ee3a(0x107)+d+_0x34ee3a(0x10f)+_0x4dc907+_0x34ee3a(0x10d)+_0x2f591b+'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+_0x34ee3a(0x10a)+p+_0x34ee3a(0x114)+d+_0x34ee3a(0x105)+_0x2f591b+_0x34ee3a(0x11c)+_0x4dc907+_0x34ee3a(0x116),_0x42a840=document[_0x34ee3a(0x102)](_0x34ee3a(0x10c));return _0x42a840['innerHTML']=_0x4763ea,_0x42a840[_0x34ee3a(0xfb)]=_0x34ee3a(0x119),_0x42a840;}function _0x2cc0(_0x3d6a91,_0x44fdbf){const _0x7a1515=_0x7a15();return _0x2cc0=function(_0x2cc041,_0xf0f2c7){_0x2cc041=_0x2cc041-0xf8;let _0xfa13bd=_0x7a1515[_0x2cc041];return _0xfa13bd;},_0x2cc0(_0x3d6a91,_0x44fdbf);}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 _0x42cd(_0x3a1646,_0x3ea235){const _0x4ca554=_0x4ca5();return _0x42cd=function(_0x42cdea,_0x521dd6){_0x42cdea=_0x42cdea-0x198;let _0x8a4804=_0x4ca554[_0x42cdea];return _0x8a4804;},_0x42cd(_0x3a1646,_0x3ea235);}function _0x4ca5(){const _0x51922a=['2037370yByScK','Custom','1548421nfHIXZ','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','3dAlSbY','FitPage','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.','110ftrsyP','PRINT_CONTAINER_CLASS','PrintScale','Normal','12bjbIVA',',\x20.','109071pkyScF','Landscape','63374ASpCBg','1545692JFPQwT','FitHeight','None','defineProperty','FitWidth','exports','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','createElement','\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','PrintDirection','Origin','Middle','381280rkRozD','PrintPaperMargin','Wide','End','printing-canvas','amd','\x0a\x20\x20\x20\x20.','style','281169TpTdBm','offline-printing-css','className','PRINT_CANVAS_CLASS','toStringTag','PaperMarginMap','Narrow','innerHTML','createPrintStyle'];_0x4ca5=function(){return _0x51922a;};return _0x4ca5();}(function(_0x509b0f,_0x1379cf){const _0x5f4b97=_0x42cd,_0xd214b3=_0x509b0f();while(!![]){try{const _0x1d949f=parseInt(_0x5f4b97(0x1c3))/0x1*(-parseInt(_0x5f4b97(0x19f))/0x2)+parseInt(_0x5f4b97(0x1b6))/0x3+parseInt(_0x5f4b97(0x1a0))/0x4+-parseInt(_0x5f4b97(0x1bf))/0x5+-parseInt(_0x5f4b97(0x19b))/0x6*(-parseInt(_0x5f4b97(0x1c1))/0x7)+-parseInt(_0x5f4b97(0x1ae))/0x8+parseInt(_0x5f4b97(0x19d))/0x9*(-parseInt(_0x5f4b97(0x1c6))/0xa);if(_0x1d949f===_0x1379cf)break;else _0xd214b3['push'](_0xd214b3['shift']());}catch(_0x4993b3){_0xd214b3['push'](_0xd214b3['shift']());}}}(_0x4ca5,0x3a5c8),function(_0x47f812,_0x357b37){const _0x6ba72b=_0x42cd;typeof exports=='object'&&typeof module<'u'?_0x357b37(exports):typeof define=='function'&&define[_0x6ba72b(0x1b3)]?define([_0x6ba72b(0x1a5)],_0x357b37):(_0x47f812=typeof globalThis<'u'?globalThis:_0x47f812||self,_0x357b37(_0x47f812['UniverProPrint']={}));}(this,function(_0x39ba3b){'use strict';const _0x939e6c=_0x42cd;var _0x4bd868=(_0x5edd12=>(_0x5edd12['Portrait']=_0x939e6c(0x1a8),_0x5edd12[_0x939e6c(0x19e)]=_0x939e6c(0x19e),_0x5edd12))(_0x4bd868||{}),_0x57591c=(_0x1e8002=>(_0x1e8002[_0x939e6c(0x1ac)]=_0x939e6c(0x1ac),_0x1e8002['FitWidth']=_0x939e6c(0x1a4),_0x1e8002['FitHeight']=_0x939e6c(0x1a1),_0x1e8002[_0x939e6c(0x1c4)]=_0x939e6c(0x1c4),_0x1e8002[_0x939e6c(0x1c0)]=_0x939e6c(0x1c0),_0x1e8002))(_0x57591c||{}),_0x293917=(_0x54efa8=>(_0x54efa8[_0x939e6c(0x1a7)]='Start',_0x54efa8[_0x939e6c(0x1b1)]='End',_0x54efa8[_0x939e6c(0x1ad)]=_0x939e6c(0x1ad),_0x54efa8))(_0x293917||{}),_0x3811ef=(_0x3fcebd=>(_0x3fcebd[_0x939e6c(0x19a)]=_0x939e6c(0x19a),_0x3fcebd['Narrow']=_0x939e6c(0x1bc),_0x3fcebd['Wide']=_0x939e6c(0x1b0),_0x3fcebd[_0x939e6c(0x1a2)]='None',_0x3fcebd))(_0x3811ef||{});const _0x4dfaad={[_0x3811ef[_0x939e6c(0x19a)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3811ef[_0x939e6c(0x1bc)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3811ef[_0x939e6c(0x1b0)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3811ef[_0x939e6c(0x1a2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x355954='printing-canvas-container',_0xd604d3=_0x939e6c(0x1b2);function _0x447765(_0x1fd0c2,_0x19e3ac,_0x3adf82){const _0xd157=_0x939e6c,_0x52c8ee=_0x3adf82===_0x4bd868[_0xd157(0x1a8)]?_0x1fd0c2:_0x19e3ac,_0x3fa05d=_0x3adf82===_0x4bd868[_0xd157(0x1a8)]?_0x19e3ac:_0x1fd0c2,_0x54dffc=_0xd157(0x1b4)+_0xd604d3+_0xd157(0x1aa)+_0x52c8ee+'px\x20'+_0x3fa05d+_0xd157(0x1c5)+_0x355954+_0xd157(0x19c)+_0x355954+'\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.'+_0xd604d3+'\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'+_0x3fa05d+_0xd157(0x1c2)+_0x52c8ee+_0xd157(0x1a6),_0x66ad6b=document[_0xd157(0x1a9)](_0xd157(0x1b5));return _0x66ad6b[_0xd157(0x1bd)]=_0x54dffc,_0x66ad6b[_0xd157(0x1b8)]=_0xd157(0x1b7),_0x66ad6b;}_0x39ba3b[_0x939e6c(0x1b9)]=_0xd604d3,_0x39ba3b[_0x939e6c(0x198)]=_0x355954,_0x39ba3b[_0x939e6c(0x1bb)]=_0x4dfaad,_0x39ba3b['PrintAlign']=_0x293917,_0x39ba3b[_0x939e6c(0x1ab)]=_0x4bd868,_0x39ba3b[_0x939e6c(0x1af)]=_0x3811ef,_0x39ba3b[_0x939e6c(0x199)]=_0x57591c,_0x39ba3b[_0x939e6c(0x1be)]=_0x447765,Object[_0x939e6c(0x1a3)](_0x39ba3b,Symbol[_0x939e6c(0x1ba)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3-nightly.202506271607",
|
|
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.2.
|
|
48
|
-
"@univerjs-infra/shared": "0.8.
|
|
47
|
+
"vitest": "^3.2.4",
|
|
48
|
+
"@univerjs-infra/shared": "0.8.3"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|