@univerjs-pro/print 0.9.1 → 0.9.2-nightly.202507121606
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
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x3862b0=_0x3437;(function(_0x5c0714,_0x4fd99b){const _0x124dd8=_0x3437,_0x395bd9=_0x5c0714();while(!![]){try{const _0x373d08=-parseInt(_0x124dd8(0x17e))/0x1+parseInt(_0x124dd8(0x176))/0x2*(parseInt(_0x124dd8(0x165))/0x3)+parseInt(_0x124dd8(0x18e))/0x4*(parseInt(_0x124dd8(0x181))/0x5)+-parseInt(_0x124dd8(0x18f))/0x6*(parseInt(_0x124dd8(0x18d))/0x7)+-parseInt(_0x124dd8(0x178))/0x8*(-parseInt(_0x124dd8(0x175))/0x9)+-parseInt(_0x124dd8(0x174))/0xa+parseInt(_0x124dd8(0x172))/0xb;if(_0x373d08===_0x4fd99b)break;else _0x395bd9['push'](_0x395bd9['shift']());}catch(_0x391ab6){_0x395bd9['push'](_0x395bd9['shift']());}}}(_0x172e,0x2ef7c));Object[_0x3862b0(0x171)](exports,Symbol[_0x3862b0(0x169)],{'value':_0x3862b0(0x168)});function _0x3437(_0x475ef7,_0x1b1505){const _0x172ea9=_0x172e();return _0x3437=function(_0x34379d,_0x16a85b){_0x34379d=_0x34379d-0x164;let _0xd1e65f=_0x172ea9[_0x34379d];return _0xd1e65f;},_0x3437(_0x475ef7,_0x1b1505);}var e=(_0x593158=>(_0x593158[_0x3862b0(0x193)]=_0x3862b0(0x193),_0x593158[_0x3862b0(0x16b)]=_0x3862b0(0x16b),_0x593158))(e||{}),l=(_0x1c3164=>(_0x1c3164[_0x3862b0(0x17d)]=_0x3862b0(0x17d),_0x1c3164[_0x3862b0(0x177)]='FitWidth',_0x1c3164['FitHeight']=_0x3862b0(0x189),_0x1c3164[_0x3862b0(0x17c)]=_0x3862b0(0x17c),_0x1c3164['Custom']=_0x3862b0(0x17b),_0x1c3164))(l||{}),c=(_0x3e2b8f=>(_0x3e2b8f['Start']=_0x3862b0(0x16f),_0x3e2b8f[_0x3862b0(0x166)]=_0x3862b0(0x166),_0x3e2b8f[_0x3862b0(0x16d)]=_0x3862b0(0x16d),_0x3e2b8f))(c||{}),i=(_0x37d1c5=>(_0x37d1c5[_0x3862b0(0x18a)]='Normal',_0x37d1c5[_0x3862b0(0x183)]=_0x3862b0(0x183),_0x37d1c5['Wide']='Wide',_0x37d1c5[_0x3862b0(0x18c)]=_0x3862b0(0x18c),_0x37d1c5))(i||{});const h={[i[_0x3862b0(0x18a)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x3862b0(0x183)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x3862b0(0x186)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x3862b0(0x18c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x3862b0(0x190),n=_0x3862b0(0x170);function _0x172e(){const _0x2954a0=['1048405YHXFIL','PRINT_CONTAINER_CLASS','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}','style','Wide','\x0a\x20\x20\x20\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.','FitHeight','Normal','PrintDirection','None','497bEqfyg','4GGSjFc','25554NPOaqe','printing-canvas-container','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.','PrintScale','Portrait','createElement','3XQHUSW','End','className','Module','toStringTag','innerHTML','Landscape',',\x20.','Middle','createPrintStyle','Start','printing-canvas','defineProperty','6567803fJbSdY','PRINT_CANVAS_CLASS','3347890EKRafr','109503XgxkLt','502202rSeIMc','FitWidth','88UeofBJ','\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','PrintAlign','Custom','FitPage','Origin','362134OISoYw','\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','PaperMarginMap'];_0x172e=function(){return _0x2954a0;};return _0x172e();}function m(_0x54c8e8,_0xe47468,_0x13ce71){const _0x59ca05=_0x3862b0,_0x354af2=_0x13ce71===e[_0x59ca05(0x193)]?_0x54c8e8:_0xe47468,_0x1c49e3=_0x13ce71===e['Portrait']?_0xe47468:_0x54c8e8,_0x88967c=_0x59ca05(0x187)+n+_0x59ca05(0x179)+_0x354af2+'px\x20'+_0x1c49e3+_0x59ca05(0x191)+r+_0x59ca05(0x16c)+r+_0x59ca05(0x188)+n+_0x59ca05(0x17f)+_0x1c49e3+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x354af2+_0x59ca05(0x184),_0x5d2008=document[_0x59ca05(0x164)](_0x59ca05(0x185));return _0x5d2008[_0x59ca05(0x16a)]=_0x88967c,_0x5d2008[_0x59ca05(0x167)]='offline-printing-css',_0x5d2008;}exports[_0x3862b0(0x173)]=n,exports[_0x3862b0(0x182)]=r,exports[_0x3862b0(0x180)]=h,exports[_0x3862b0(0x17a)]=c,exports[_0x3862b0(0x18b)]=e,exports['PrintPaperMargin']=i,exports[_0x3862b0(0x192)]=l,exports[_0x3862b0(0x16e)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x52759f=_0x39cc;function _0x39cc(_0x14bbe0,_0x25a718){const _0x3b6e1e=_0x3b6e();return _0x39cc=function(_0x39ccb9,_0x4b6951){_0x39ccb9=_0x39ccb9-0x160;let _0x15f85c=_0x3b6e1e[_0x39ccb9];return _0x15f85c;},_0x39cc(_0x14bbe0,_0x25a718);}(function(_0x152910,_0x173965){const _0x31b1d9=_0x39cc,_0x5381d8=_0x152910();while(!![]){try{const _0x875961=-parseInt(_0x31b1d9(0x165))/0x1*(-parseInt(_0x31b1d9(0x170))/0x2)+-parseInt(_0x31b1d9(0x162))/0x3*(-parseInt(_0x31b1d9(0x181))/0x4)+-parseInt(_0x31b1d9(0x17a))/0x5+-parseInt(_0x31b1d9(0x179))/0x6+parseInt(_0x31b1d9(0x166))/0x7*(parseInt(_0x31b1d9(0x186))/0x8)+-parseInt(_0x31b1d9(0x185))/0x9+parseInt(_0x31b1d9(0x176))/0xa*(parseInt(_0x31b1d9(0x172))/0xb);if(_0x875961===_0x173965)break;else _0x5381d8['push'](_0x5381d8['shift']());}catch(_0x1498d3){_0x5381d8['push'](_0x5381d8['shift']());}}}(_0x3b6e,0xbc5c8));function _0x3b6e(){const _0x5adecc=['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.','13380273tuKsyq','8XabAed','Narrow','Portrait','3hOHjrT','createElement','className','1Kdpsue','4902317WPDpxg','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}','\x0a\x20\x20\x20\x20.','px\x20','printing-canvas','style','Normal','offline-printing-css','\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','End','2451586REPnmp','Origin','2541NVeboz','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','FitPage','22130VjLXyt','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','None','2481918PcKpod','2554975lbpBok','Wide','Custom',',\x20.','Middle','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.','2982184NdsWvA','Landscape','FitHeight'];_0x3b6e=function(){return _0x5adecc;};return _0x3b6e();}var e=(_0x251774=>(_0x251774[_0x52759f(0x161)]=_0x52759f(0x161),_0x251774['Landscape']=_0x52759f(0x182),_0x251774))(e||{}),l=(_0x8e3077=>(_0x8e3077[_0x52759f(0x171)]=_0x52759f(0x171),_0x8e3077[_0x52759f(0x17f)]=_0x52759f(0x17f),_0x8e3077[_0x52759f(0x183)]=_0x52759f(0x183),_0x8e3077[_0x52759f(0x175)]=_0x52759f(0x175),_0x8e3077[_0x52759f(0x17c)]=_0x52759f(0x17c),_0x8e3077))(l||{}),m=(_0x320130=>(_0x320130[_0x52759f(0x173)]=_0x52759f(0x173),_0x320130[_0x52759f(0x16f)]='End',_0x320130[_0x52759f(0x17e)]='Middle',_0x320130))(m||{}),o=(_0x397f2f=>(_0x397f2f[_0x52759f(0x16c)]='Normal',_0x397f2f[_0x52759f(0x160)]=_0x52759f(0x160),_0x397f2f[_0x52759f(0x17b)]='Wide',_0x397f2f['None']=_0x52759f(0x178),_0x397f2f))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x52759f(0x160)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x52759f(0x178)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x52759f(0x16a);function g(_0x563d95,_0x2a3a2d,_0x23c824){const _0x5a9f22=_0x52759f,_0xfaa0a7=_0x23c824===e[_0x5a9f22(0x161)]?_0x563d95:_0x2a3a2d,_0x51e39e=_0x23c824===e[_0x5a9f22(0x161)]?_0x2a3a2d:_0x563d95,_0x11a504=_0x5a9f22(0x168)+d+_0x5a9f22(0x16e)+_0xfaa0a7+_0x5a9f22(0x169)+_0x51e39e+_0x5a9f22(0x184)+p+_0x5a9f22(0x17d)+p+_0x5a9f22(0x180)+d+_0x5a9f22(0x174)+_0x51e39e+_0x5a9f22(0x177)+_0xfaa0a7+_0x5a9f22(0x167),_0x47c88c=document[_0x5a9f22(0x163)](_0x5a9f22(0x16b));return _0x47c88c['innerHTML']=_0x11a504,_0x47c88c[_0x5a9f22(0x164)]=_0x5a9f22(0x16d),_0x47c88c;}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
|
|
1
|
+
const _0x52759f=_0x39cc;function _0x39cc(_0x14bbe0,_0x25a718){const _0x3b6e1e=_0x3b6e();return _0x39cc=function(_0x39ccb9,_0x4b6951){_0x39ccb9=_0x39ccb9-0x160;let _0x15f85c=_0x3b6e1e[_0x39ccb9];return _0x15f85c;},_0x39cc(_0x14bbe0,_0x25a718);}(function(_0x152910,_0x173965){const _0x31b1d9=_0x39cc,_0x5381d8=_0x152910();while(!![]){try{const _0x875961=-parseInt(_0x31b1d9(0x165))/0x1*(-parseInt(_0x31b1d9(0x170))/0x2)+-parseInt(_0x31b1d9(0x162))/0x3*(-parseInt(_0x31b1d9(0x181))/0x4)+-parseInt(_0x31b1d9(0x17a))/0x5+-parseInt(_0x31b1d9(0x179))/0x6+parseInt(_0x31b1d9(0x166))/0x7*(parseInt(_0x31b1d9(0x186))/0x8)+-parseInt(_0x31b1d9(0x185))/0x9+parseInt(_0x31b1d9(0x176))/0xa*(parseInt(_0x31b1d9(0x172))/0xb);if(_0x875961===_0x173965)break;else _0x5381d8['push'](_0x5381d8['shift']());}catch(_0x1498d3){_0x5381d8['push'](_0x5381d8['shift']());}}}(_0x3b6e,0xbc5c8));function _0x3b6e(){const _0x5adecc=['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.','13380273tuKsyq','8XabAed','Narrow','Portrait','3hOHjrT','createElement','className','1Kdpsue','4902317WPDpxg','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}','\x0a\x20\x20\x20\x20.','px\x20','printing-canvas','style','Normal','offline-printing-css','\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','End','2451586REPnmp','Origin','2541NVeboz','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','FitPage','22130VjLXyt','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','None','2481918PcKpod','2554975lbpBok','Wide','Custom',',\x20.','Middle','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.','2982184NdsWvA','Landscape','FitHeight'];_0x3b6e=function(){return _0x5adecc;};return _0x3b6e();}var e=(_0x251774=>(_0x251774[_0x52759f(0x161)]=_0x52759f(0x161),_0x251774['Landscape']=_0x52759f(0x182),_0x251774))(e||{}),l=(_0x8e3077=>(_0x8e3077[_0x52759f(0x171)]=_0x52759f(0x171),_0x8e3077[_0x52759f(0x17f)]=_0x52759f(0x17f),_0x8e3077[_0x52759f(0x183)]=_0x52759f(0x183),_0x8e3077[_0x52759f(0x175)]=_0x52759f(0x175),_0x8e3077[_0x52759f(0x17c)]=_0x52759f(0x17c),_0x8e3077))(l||{}),m=(_0x320130=>(_0x320130[_0x52759f(0x173)]=_0x52759f(0x173),_0x320130[_0x52759f(0x16f)]='End',_0x320130[_0x52759f(0x17e)]='Middle',_0x320130))(m||{}),o=(_0x397f2f=>(_0x397f2f[_0x52759f(0x16c)]='Normal',_0x397f2f[_0x52759f(0x160)]=_0x52759f(0x160),_0x397f2f[_0x52759f(0x17b)]='Wide',_0x397f2f['None']=_0x52759f(0x178),_0x397f2f))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x52759f(0x160)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x52759f(0x178)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x52759f(0x16a);function g(_0x563d95,_0x2a3a2d,_0x23c824){const _0x5a9f22=_0x52759f,_0xfaa0a7=_0x23c824===e[_0x5a9f22(0x161)]?_0x563d95:_0x2a3a2d,_0x51e39e=_0x23c824===e[_0x5a9f22(0x161)]?_0x2a3a2d:_0x563d95,_0x11a504=_0x5a9f22(0x168)+d+_0x5a9f22(0x16e)+_0xfaa0a7+_0x5a9f22(0x169)+_0x51e39e+_0x5a9f22(0x184)+p+_0x5a9f22(0x17d)+p+_0x5a9f22(0x180)+d+_0x5a9f22(0x174)+_0x51e39e+_0x5a9f22(0x177)+_0xfaa0a7+_0x5a9f22(0x167),_0x47c88c=document[_0x5a9f22(0x163)](_0x5a9f22(0x16b));return _0x47c88c['innerHTML']=_0x11a504,_0x47c88c[_0x5a9f22(0x164)]=_0x5a9f22(0x16d),_0x47c88c;}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 _0x4e7a(_0x17d6c7,_0x3224e0){const _0x36df94=_0x36df();return _0x4e7a=function(_0x4e7a9f,_0x330e25){_0x4e7a9f=_0x4e7a9f-0x15c;let _0x3fe5a3=_0x36df94[_0x4e7a9f];return _0x3fe5a3;},_0x4e7a(_0x17d6c7,_0x3224e0);}function _0x36df(){const _0x53149d=['End','printing-canvas','22004LKXJMV','193266rTUyAY','toStringTag','createPrintStyle','object','6zkWozx','788960bDpgLR','Custom',',\x20.','Start','PRINT_CONTAINER_CLASS','UniverProPrint','6236060eWeudu','PrintAlign','Module','6152pZfcWm','createElement','Wide','6659772ceWTft','px\x20','exports','6raRbik','None','Portrait','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.','FitHeight','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','defineProperty','Narrow','Origin','\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','amd','Landscape','className','\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.','innerHTML','\x0a\x20\x20\x20\x20.','PrintScale','style','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','offline-printing-css','PrintDirection','Middle','2459295mDpCjE','PRINT_CANVAS_CLASS','\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','13741LrOfSE','FitPage','FitWidth','PrintPaperMargin'];_0x36df=function(){return _0x53149d;};return _0x36df();}(function(_0x2f9c09,_0x25a35f){const _0x1b19c9=_0x4e7a,_0x4fb796=_0x2f9c09();while(!![]){try{const _0x4cc643=-parseInt(_0x1b19c9(0x165))/0x1*(parseInt(_0x1b19c9(0x160))/0x2)+parseInt(_0x1b19c9(0x161))/0x3+-parseInt(_0x1b19c9(0x172))/0x4+-parseInt(_0x1b19c9(0x16c))/0x5*(-parseInt(_0x1b19c9(0x175))/0x6)+parseInt(_0x1b19c9(0x190))/0x7*(parseInt(_0x1b19c9(0x16f))/0x8)+-parseInt(_0x1b19c9(0x18c))/0x9+parseInt(_0x1b19c9(0x166))/0xa;if(_0x4cc643===_0x25a35f)break;else _0x4fb796['push'](_0x4fb796['shift']());}catch(_0x2f3b12){_0x4fb796['push'](_0x4fb796['shift']());}}}(_0x36df,0xdab7b),function(_0xae7c94,_0xbdfe64){const _0x444fce=_0x4e7a;typeof exports==_0x444fce(0x164)&&typeof module<'u'?_0xbdfe64(exports):typeof define=='function'&&define[_0x444fce(0x17f)]?define([_0x444fce(0x174)],_0xbdfe64):(_0xae7c94=typeof globalThis<'u'?globalThis:_0xae7c94||self,_0xbdfe64(_0xae7c94[_0x444fce(0x16b)]={}));}(this,function(_0x271d12){'use strict';const _0x35e3da=_0x4e7a;var _0x3e6316=(_0x20625e=>(_0x20625e[_0x35e3da(0x177)]=_0x35e3da(0x177),_0x20625e[_0x35e3da(0x180)]=_0x35e3da(0x180),_0x20625e))(_0x3e6316||{}),_0x4a7fba=(_0x1fc1e5=>(_0x1fc1e5[_0x35e3da(0x17d)]=_0x35e3da(0x17d),_0x1fc1e5[_0x35e3da(0x15c)]='FitWidth',_0x1fc1e5['FitHeight']=_0x35e3da(0x179),_0x1fc1e5[_0x35e3da(0x191)]=_0x35e3da(0x191),_0x1fc1e5[_0x35e3da(0x167)]=_0x35e3da(0x167),_0x1fc1e5))(_0x4a7fba||{}),_0x17f002=(_0x501319=>(_0x501319[_0x35e3da(0x169)]='Start',_0x501319[_0x35e3da(0x15e)]=_0x35e3da(0x15e),_0x501319[_0x35e3da(0x18b)]=_0x35e3da(0x18b),_0x501319))(_0x17f002||{}),_0x1e3fc2=(_0x1f1efb=>(_0x1f1efb['Normal']=_0x35e3da(0x18f),_0x1f1efb[_0x35e3da(0x17c)]=_0x35e3da(0x17c),_0x1f1efb[_0x35e3da(0x171)]='Wide',_0x1f1efb[_0x35e3da(0x176)]='None',_0x1f1efb))(_0x1e3fc2||{});const _0x1fffe4={[_0x1e3fc2['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1e3fc2[_0x35e3da(0x17c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1e3fc2['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1e3fc2[_0x35e3da(0x176)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1a1ebc='printing-canvas-container',_0x116448=_0x35e3da(0x15f);function _0x688b42(_0x18642c,_0x1b5aa0,_0x2c344e){const _0x8788ca=_0x35e3da,_0x1219bf=_0x2c344e===_0x3e6316['Portrait']?_0x18642c:_0x1b5aa0,_0x202676=_0x2c344e===_0x3e6316['Portrait']?_0x1b5aa0:_0x18642c,_0x32dc6f=_0x8788ca(0x184)+_0x116448+_0x8788ca(0x17e)+_0x1219bf+_0x8788ca(0x173)+_0x202676+_0x8788ca(0x178)+_0x1a1ebc+_0x8788ca(0x168)+_0x1a1ebc+_0x8788ca(0x182)+_0x116448+_0x8788ca(0x18e)+_0x202676+_0x8788ca(0x17a)+_0x1219bf+_0x8788ca(0x187),_0x414b80=document[_0x8788ca(0x170)](_0x8788ca(0x186));return _0x414b80[_0x8788ca(0x183)]=_0x32dc6f,_0x414b80[_0x8788ca(0x181)]=_0x8788ca(0x189),_0x414b80;}_0x271d12[_0x35e3da(0x18d)]=_0x116448,_0x271d12[_0x35e3da(0x16a)]=_0x1a1ebc,_0x271d12[_0x35e3da(0x188)]=_0x1fffe4,_0x271d12[_0x35e3da(0x16d)]=_0x17f002,_0x271d12[_0x35e3da(0x18a)]=_0x3e6316,_0x271d12[_0x35e3da(0x15d)]=_0x1e3fc2,_0x271d12[_0x35e3da(0x185)]=_0x4a7fba,_0x271d12[_0x35e3da(0x163)]=_0x688b42,Object[_0x35e3da(0x17b)](_0x271d12,Symbol[_0x35e3da(0x162)],{'value':_0x35e3da(0x16e)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2-nightly.202507121606",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typescript": "^5.8.3",
|
|
46
46
|
"vite": "^6.3.5",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.9.
|
|
48
|
+
"@univerjs-infra/shared": "0.9.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|