@univerjs-pro/print 0.12.0 → 0.12.1
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';const
|
|
1
|
+
'use strict';const _0xcff920=_0x140d;(function(_0x3d6da4,_0x2afb7d){const _0x5ce32d=_0x140d,_0x29f2a=_0x3d6da4();while(!![]){try{const _0x4dfcbf=-parseInt(_0x5ce32d(0x17f))/0x1+parseInt(_0x5ce32d(0x17b))/0x2*(-parseInt(_0x5ce32d(0x16b))/0x3)+parseInt(_0x5ce32d(0x179))/0x4*(-parseInt(_0x5ce32d(0x175))/0x5)+-parseInt(_0x5ce32d(0x177))/0x6+parseInt(_0x5ce32d(0x171))/0x7*(-parseInt(_0x5ce32d(0x173))/0x8)+parseInt(_0x5ce32d(0x196))/0x9+parseInt(_0x5ce32d(0x189))/0xa;if(_0x4dfcbf===_0x2afb7d)break;else _0x29f2a['push'](_0x29f2a['shift']());}catch(_0x125430){_0x29f2a['push'](_0x29f2a['shift']());}}}(_0xae69,0xf16bb));function _0xae69(){const _0x5f02eb=['220RXHqAV','Landscape','284EaWijj','Middle','\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.','Wide','1284090ZTXopo','Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','createPrintStyle','defineProperty','PRINT_CANVAS_CLASS',',\x20.','PaperMarginMap','Narrow','PrintDirection','48666800cYbcdY','PrintScale','Start','innerHTML','\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','px\x20','printing-canvas-container','Normal','printing-canvas','Portrait','FitPage','FitHeight','PrintAlign','12279195IilxUL','End','34950ZjnmdO','FitWidth','createElement','PrintPaperMargin','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.','className','503279LsKsUF','Custom','40ZunXpm','Module','159675XlNByf','PRINT_CONTAINER_CLASS','1127256vhvBDu','None'];_0xae69=function(){return _0x5f02eb;};return _0xae69();}Object[_0xcff920(0x183)](exports,Symbol['toStringTag'],{'value':_0xcff920(0x174)});var i=(_0x42ebd4=>(_0x42ebd4[_0xcff920(0x192)]=_0xcff920(0x192),_0x42ebd4[_0xcff920(0x17a)]=_0xcff920(0x17a),_0x42ebd4))(i||{}),l=(_0x48834e=>(_0x48834e[_0xcff920(0x180)]='Origin',_0x48834e[_0xcff920(0x16c)]=_0xcff920(0x16c),_0x48834e[_0xcff920(0x194)]=_0xcff920(0x194),_0x48834e[_0xcff920(0x193)]=_0xcff920(0x193),_0x48834e['Custom']=_0xcff920(0x172),_0x48834e))(l||{}),m=(_0x6014f6=>(_0x6014f6[_0xcff920(0x18b)]=_0xcff920(0x18b),_0x6014f6[_0xcff920(0x197)]=_0xcff920(0x197),_0x6014f6[_0xcff920(0x17c)]=_0xcff920(0x17c),_0x6014f6))(m||{}),o=(_0x4fbab9=>(_0x4fbab9[_0xcff920(0x190)]=_0xcff920(0x190),_0x4fbab9[_0xcff920(0x187)]=_0xcff920(0x187),_0x4fbab9[_0xcff920(0x17e)]='Wide',_0x4fbab9[_0xcff920(0x178)]=_0xcff920(0x178),_0x4fbab9[_0xcff920(0x172)]=_0xcff920(0x172),_0x4fbab9))(o||{});const g={[o[_0xcff920(0x190)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0xcff920(0x187)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0xcff920(0x178)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0xcff920(0x172)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0xcff920(0x18f),n=_0xcff920(0x191);function h(_0x363ca1,_0x5285db,_0x36a176){const _0x1295d3=_0xcff920,_0x53e467=_0x36a176===i['Portrait']?_0x363ca1:_0x5285db,_0x5cca08=_0x36a176===i[_0x1295d3(0x192)]?_0x5285db:_0x363ca1,_0x1b87c2='\x0a\x20\x20\x20\x20.'+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'+_0x53e467+_0x1295d3(0x18e)+_0x5cca08+_0x1295d3(0x16f)+r+_0x1295d3(0x185)+r+_0x1295d3(0x17d)+n+_0x1295d3(0x18d)+_0x5cca08+_0x1295d3(0x181)+_0x53e467+'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}',_0x1a83ce=document[_0x1295d3(0x16d)]('style');return _0x1a83ce[_0x1295d3(0x18c)]=_0x1b87c2,_0x1a83ce[_0x1295d3(0x170)]='offline-printing-css',_0x1a83ce;}function _0x140d(_0x5a3042,_0x1294c4){const _0xae694f=_0xae69();return _0x140d=function(_0x140d46,_0x356ce5){_0x140d46=_0x140d46-0x16b;let _0x4dab09=_0xae694f[_0x140d46];return _0x4dab09;},_0x140d(_0x5a3042,_0x1294c4);}exports[_0xcff920(0x184)]=n,exports[_0xcff920(0x176)]=r,exports[_0xcff920(0x186)]=g,exports[_0xcff920(0x195)]=m,exports[_0xcff920(0x188)]=i,exports[_0xcff920(0x16e)]=o,exports[_0xcff920(0x18a)]=l,exports[_0xcff920(0x182)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x162dcd=_0x31d2;(function(_0x475fd3,_0x2400b4){const _0x5972d5=_0x31d2,_0x229093=_0x475fd3();while(!![]){try{const _0x29a469=parseInt(_0x5972d5(0xf8))/0x1*(-parseInt(_0x5972d5(0xe4))/0x2)+parseInt(_0x5972d5(0xd8))/0x3+-parseInt(_0x5972d5(0xf4))/0x4*(parseInt(_0x5972d5(0xea))/0x5)+parseInt(_0x5972d5(0xdf))/0x6+parseInt(_0x5972d5(0xe6))/0x7+parseInt(_0x5972d5(0xe8))/0x8*(parseInt(_0x5972d5(0xde))/0x9)+parseInt(_0x5972d5(0xe0))/0xa*(-parseInt(_0x5972d5(0xd5))/0xb);if(_0x29a469===_0x2400b4)break;else _0x229093['push'](_0x229093['shift']());}catch(_0x455b2e){_0x229093['push'](_0x229093['shift']());}}}(_0x1e44,0x50431));var e=(_0x2b6a24=>(_0x2b6a24[_0x162dcd(0xed)]=_0x162dcd(0xed),_0x2b6a24[_0x162dcd(0xe2)]=_0x162dcd(0xe2),_0x2b6a24))(e||{}),h=(_0x5e4b99=>(_0x5e4b99[_0x162dcd(0xdd)]='Origin',_0x5e4b99['FitWidth']=_0x162dcd(0xeb),_0x5e4b99[_0x162dcd(0xdc)]='FitHeight',_0x5e4b99[_0x162dcd(0xe9)]=_0x162dcd(0xe9),_0x5e4b99['Custom']='Custom',_0x5e4b99))(h||{}),l=(_0x424c3a=>(_0x424c3a['Start']=_0x162dcd(0xef),_0x424c3a['End']=_0x162dcd(0xd6),_0x424c3a['Middle']=_0x162dcd(0xf0),_0x424c3a))(l||{}),o=(_0xbe64fb=>(_0xbe64fb['Normal']='Normal',_0xbe64fb[_0x162dcd(0xf3)]=_0x162dcd(0xf3),_0xbe64fb[_0x162dcd(0xda)]=_0x162dcd(0xda),_0xbe64fb[_0x162dcd(0xf9)]='None',_0xbe64fb['Custom']='Custom',_0xbe64fb))(o||{});function _0x1e44(){const _0x7bab92=['Portrait','px\x20','Start','Middle','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','printing-canvas-container','Narrow','5388BFDvAd','printing-canvas','Normal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','419DsTRVt','None','2310aFfzBl','End','createElement','105021MZDUHF','className','Wide','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}','FitHeight','Origin','49698xJnvME','3189462sVhOSi','6550CEKWbk','\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','Landscape','\x0a\x20\x20\x20\x20.','2416BoaVCy','\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.','4355757fRQmHV','style','592upSrZG','FitPage','2320LKOhuX','FitWidth','innerHTML'];_0x1e44=function(){return _0x7bab92;};return _0x1e44();}function _0x31d2(_0x18d278,_0x40005d){const _0x1e444e=_0x1e44();return _0x31d2=function(_0x31d2c2,_0xbe490b){_0x31d2c2=_0x31d2c2-0xd5;let _0x1a7b12=_0x1e444e[_0x31d2c2];return _0x1a7b12;},_0x31d2(_0x18d278,_0x40005d);}const c={[o[_0x162dcd(0xf6)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x162dcd(0xf3)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x162dcd(0xda)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x162dcd(0xf9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x162dcd(0xf2),d=_0x162dcd(0xf5);function g(_0x451d56,_0xb3412e,_0x34944f){const _0x3e0112=_0x162dcd,_0x597424=_0x34944f===e[_0x3e0112(0xed)]?_0x451d56:_0xb3412e,_0x9a6b60=_0x34944f===e[_0x3e0112(0xed)]?_0xb3412e:_0x451d56,_0xa9a145=_0x3e0112(0xe3)+d+'\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'+_0x597424+_0x3e0112(0xee)+_0x9a6b60+_0x3e0112(0xf1)+p+',\x20.'+p+_0x3e0112(0xe5)+d+_0x3e0112(0xe1)+_0x9a6b60+_0x3e0112(0xf7)+_0x597424+_0x3e0112(0xdb),_0x798a80=document[_0x3e0112(0xd7)](_0x3e0112(0xe7));return _0x798a80[_0x3e0112(0xec)]=_0xa9a145,_0x798a80[_0x3e0112(0xd9)]='offline-printing-css',_0x798a80;}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};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x162dcd=_0x31d2;(function(_0x475fd3,_0x2400b4){const _0x5972d5=_0x31d2,_0x229093=_0x475fd3();while(!![]){try{const _0x29a469=parseInt(_0x5972d5(0xf8))/0x1*(-parseInt(_0x5972d5(0xe4))/0x2)+parseInt(_0x5972d5(0xd8))/0x3+-parseInt(_0x5972d5(0xf4))/0x4*(parseInt(_0x5972d5(0xea))/0x5)+parseInt(_0x5972d5(0xdf))/0x6+parseInt(_0x5972d5(0xe6))/0x7+parseInt(_0x5972d5(0xe8))/0x8*(parseInt(_0x5972d5(0xde))/0x9)+parseInt(_0x5972d5(0xe0))/0xa*(-parseInt(_0x5972d5(0xd5))/0xb);if(_0x29a469===_0x2400b4)break;else _0x229093['push'](_0x229093['shift']());}catch(_0x455b2e){_0x229093['push'](_0x229093['shift']());}}}(_0x1e44,0x50431));var e=(_0x2b6a24=>(_0x2b6a24[_0x162dcd(0xed)]=_0x162dcd(0xed),_0x2b6a24[_0x162dcd(0xe2)]=_0x162dcd(0xe2),_0x2b6a24))(e||{}),h=(_0x5e4b99=>(_0x5e4b99[_0x162dcd(0xdd)]='Origin',_0x5e4b99['FitWidth']=_0x162dcd(0xeb),_0x5e4b99[_0x162dcd(0xdc)]='FitHeight',_0x5e4b99[_0x162dcd(0xe9)]=_0x162dcd(0xe9),_0x5e4b99['Custom']='Custom',_0x5e4b99))(h||{}),l=(_0x424c3a=>(_0x424c3a['Start']=_0x162dcd(0xef),_0x424c3a['End']=_0x162dcd(0xd6),_0x424c3a['Middle']=_0x162dcd(0xf0),_0x424c3a))(l||{}),o=(_0xbe64fb=>(_0xbe64fb['Normal']='Normal',_0xbe64fb[_0x162dcd(0xf3)]=_0x162dcd(0xf3),_0xbe64fb[_0x162dcd(0xda)]=_0x162dcd(0xda),_0xbe64fb[_0x162dcd(0xf9)]='None',_0xbe64fb['Custom']='Custom',_0xbe64fb))(o||{});function _0x1e44(){const _0x7bab92=['Portrait','px\x20','Start','Middle','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','printing-canvas-container','Narrow','5388BFDvAd','printing-canvas','Normal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','419DsTRVt','None','2310aFfzBl','End','createElement','105021MZDUHF','className','Wide','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}','FitHeight','Origin','49698xJnvME','3189462sVhOSi','6550CEKWbk','\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','Landscape','\x0a\x20\x20\x20\x20.','2416BoaVCy','\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.','4355757fRQmHV','style','592upSrZG','FitPage','2320LKOhuX','FitWidth','innerHTML'];_0x1e44=function(){return _0x7bab92;};return _0x1e44();}function _0x31d2(_0x18d278,_0x40005d){const _0x1e444e=_0x1e44();return _0x31d2=function(_0x31d2c2,_0xbe490b){_0x31d2c2=_0x31d2c2-0xd5;let _0x1a7b12=_0x1e444e[_0x31d2c2];return _0x1a7b12;},_0x31d2(_0x18d278,_0x40005d);}const c={[o[_0x162dcd(0xf6)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x162dcd(0xf3)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x162dcd(0xda)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x162dcd(0xf9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x162dcd(0xf2),d=_0x162dcd(0xf5);function g(_0x451d56,_0xb3412e,_0x34944f){const _0x3e0112=_0x162dcd,_0x597424=_0x34944f===e[_0x3e0112(0xed)]?_0x451d56:_0xb3412e,_0x9a6b60=_0x34944f===e[_0x3e0112(0xed)]?_0xb3412e:_0x451d56,_0xa9a145=_0x3e0112(0xe3)+d+'\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'+_0x597424+_0x3e0112(0xee)+_0x9a6b60+_0x3e0112(0xf1)+p+',\x20.'+p+_0x3e0112(0xe5)+d+_0x3e0112(0xe1)+_0x9a6b60+_0x3e0112(0xf7)+_0x597424+_0x3e0112(0xdb),_0x798a80=document[_0x3e0112(0xd7)](_0x3e0112(0xe7));return _0x798a80[_0x3e0112(0xec)]=_0xa9a145,_0x798a80[_0x3e0112(0xd9)]='offline-printing-css',_0x798a80;}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};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3975(_0x33265a,_0x2dc14f){const _0x2932b5=_0x2932();return _0x3975=function(_0x397532,_0x13df90){_0x397532=_0x397532-0x1b4;let _0x2aead6=_0x2932b5[_0x397532];return _0x2aead6;},_0x3975(_0x33265a,_0x2dc14f);}(function(_0x12feb5,_0x285cb7){const _0x11cd15=_0x3975,_0x102fe0=_0x12feb5();while(!![]){try{const _0x3c428a=parseInt(_0x11cd15(0x1bf))/0x1+parseInt(_0x11cd15(0x1c3))/0x2+-parseInt(_0x11cd15(0x1e3))/0x3*(-parseInt(_0x11cd15(0x1d9))/0x4)+parseInt(_0x11cd15(0x1de))/0x5*(-parseInt(_0x11cd15(0x1d4))/0x6)+parseInt(_0x11cd15(0x1c0))/0x7*(parseInt(_0x11cd15(0x1ba))/0x8)+parseInt(_0x11cd15(0x1d3))/0x9+-parseInt(_0x11cd15(0x1c7))/0xa;if(_0x3c428a===_0x285cb7)break;else _0x102fe0['push'](_0x102fe0['shift']());}catch(_0xd614c4){_0x102fe0['push'](_0x102fe0['shift']());}}}(_0x2932,0xe2fe8),function(_0x7eb759,_0x5ba7c5){const _0x11b1da=_0x3975;typeof exports==_0x11b1da(0x1d7)&&typeof module<'u'?_0x5ba7c5(exports):typeof define=='function'&&define[_0x11b1da(0x1dd)]?define([_0x11b1da(0x1c6)],_0x5ba7c5):(_0x7eb759=typeof globalThis<'u'?globalThis:_0x7eb759||self,_0x5ba7c5(_0x7eb759[_0x11b1da(0x1e1)]={}));}(this,function(_0x4803cc){'use strict';const _0x507f85=_0x3975;var _0x5ccf5a=(_0x1d6b02=>(_0x1d6b02[_0x507f85(0x1bc)]=_0x507f85(0x1bc),_0x1d6b02[_0x507f85(0x1bd)]=_0x507f85(0x1bd),_0x1d6b02))(_0x5ccf5a||{}),_0x12c22b=(_0x3f82ab=>(_0x3f82ab[_0x507f85(0x1d6)]=_0x507f85(0x1d6),_0x3f82ab[_0x507f85(0x1cd)]='FitWidth',_0x3f82ab[_0x507f85(0x1cf)]=_0x507f85(0x1cf),_0x3f82ab[_0x507f85(0x1b8)]=_0x507f85(0x1b8),_0x3f82ab['Custom']=_0x507f85(0x1c2),_0x3f82ab))(_0x12c22b||{}),_0x8d056=(_0x2ca50a=>(_0x2ca50a[_0x507f85(0x1d8)]=_0x507f85(0x1d8),_0x2ca50a[_0x507f85(0x1c1)]=_0x507f85(0x1c1),_0x2ca50a[_0x507f85(0x1d5)]='Middle',_0x2ca50a))(_0x8d056||{}),_0x3db0c7=(_0x2eac06=>(_0x2eac06[_0x507f85(0x1e2)]=_0x507f85(0x1e2),_0x2eac06['Narrow']=_0x507f85(0x1bb),_0x2eac06['Wide']=_0x507f85(0x1b9),_0x2eac06['None']=_0x507f85(0x1b6),_0x2eac06[_0x507f85(0x1c2)]='Custom',_0x2eac06))(_0x3db0c7||{});const _0x92ac10={[_0x3db0c7['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3db0c7[_0x507f85(0x1bb)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3db0c7['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3db0c7['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x3db0c7[_0x507f85(0x1c2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x2b542e=_0x507f85(0x1b5),_0x19023c=_0x507f85(0x1db);function _0x5e0775(_0x3e1872,_0x5a0142,_0x43dac6){const _0x73a28=_0x507f85,_0x30ea0a=_0x43dac6===_0x5ccf5a[_0x73a28(0x1bc)]?_0x3e1872:_0x5a0142,_0x229535=_0x43dac6===_0x5ccf5a[_0x73a28(0x1bc)]?_0x5a0142:_0x3e1872,_0x16ebf1=_0x73a28(0x1c5)+_0x19023c+_0x73a28(0x1da)+_0x30ea0a+_0x73a28(0x1df)+_0x229535+'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.'+_0x2b542e+_0x73a28(0x1d2)+_0x2b542e+_0x73a28(0x1b4)+_0x19023c+'\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'+_0x229535+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x30ea0a+_0x73a28(0x1c9),_0x33607f=document[_0x73a28(0x1cc)](_0x73a28(0x1e0));return _0x33607f['innerHTML']=_0x16ebf1,_0x33607f[_0x73a28(0x1dc)]=_0x73a28(0x1ca),_0x33607f;}_0x4803cc[_0x507f85(0x1d0)]=_0x19023c,_0x4803cc[_0x507f85(0x1be)]=_0x2b542e,_0x4803cc['PaperMarginMap']=_0x92ac10,_0x4803cc[_0x507f85(0x1b7)]=_0x8d056,_0x4803cc[_0x507f85(0x1cb)]=_0x5ccf5a,_0x4803cc[_0x507f85(0x1e4)]=_0x3db0c7,_0x4803cc['PrintScale']=_0x12c22b,_0x4803cc[_0x507f85(0x1c4)]=_0x5e0775,Object[_0x507f85(0x1c8)](_0x4803cc,Symbol[_0x507f85(0x1ce)],{'value':_0x507f85(0x1d1)});}));function _0x2932(){const _0x5375c8=['Custom','3255802HZtqBW','createPrintStyle','\x0a\x20\x20\x20\x20.','exports','44006030lvgvQM','defineProperty','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}','offline-printing-css','PrintDirection','createElement','FitWidth','toStringTag','FitHeight','PRINT_CANVAS_CLASS','Module',',\x20.','14213232DwaVyT','12EEYwBs','Middle','Origin','object','Start','2716LSnaHx','\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','className','amd','3613930NdadZA','px\x20','style','UniverProPrint','Normal','6294NaFQZD','PrintPaperMargin','\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.','printing-canvas-container','None','PrintAlign','FitPage','Wide','5315576SuGKyR','Narrow','Portrait','Landscape','PRINT_CONTAINER_CLASS','1479805RvLwyN','7xtTKwa','End'];_0x2932=function(){return _0x5375c8;};return _0x2932();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
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.9.3",
|
|
46
46
|
"vite": "^7.2.2",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.12.
|
|
48
|
+
"@univerjs-infra/shared": "0.12.1"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|