@univerjs-pro/print 0.5.4 → 0.5.5-experimental.20250122-3362a4a
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/umd/index.js +1 -1
- package/package.json +2 -2
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x5cdbda=_0x7f44;(function(_0x3f870d,_0x3f1d70){var _0x22b4e9=_0x7f44,_0xec1f90=_0x3f870d();while(!![]){try{var _0x5734e8=parseInt(_0x22b4e9(0x1c1))/0x1+parseInt(_0x22b4e9(0x1e5))/0x2*(parseInt(_0x22b4e9(0x1d5))/0x3)+-parseInt(_0x22b4e9(0x1ef))/0x4+parseInt(_0x22b4e9(0x1c9))/0x5*(-parseInt(_0x22b4e9(0x1c4))/0x6)+parseInt(_0x22b4e9(0x1d9))/0x7*(-parseInt(_0x22b4e9(0x1d6))/0x8)+-parseInt(_0x22b4e9(0x1df))/0x9+parseInt(_0x22b4e9(0x1e4))/0xa;if(_0x5734e8===_0x3f1d70)break;else _0xec1f90['push'](_0xec1f90['shift']());}catch(_0x1dbe4f){_0xec1f90['push'](_0xec1f90['shift']());}}}(_0x1961,0x83bf2));var __defProp=Object[_0x5cdbda(0x1ca)],__name=(_0x36e625,_0x56db26)=>__defProp(_0x36e625,'name',{'value':_0x56db26,'configurable':!0x0});Object[_0x5cdbda(0x1ca)](exports,Symbol[_0x5cdbda(0x1cb)],{'value':_0x5cdbda(0x1be)});var PrintPaperSize=(_0x307167=>(_0x307167['Letter']=_0x5cdbda(0x1ee),_0x307167[_0x5cdbda(0x1db)]=_0x5cdbda(0x1db),_0x307167[_0x5cdbda(0x1ea)]=_0x5cdbda(0x1ea),_0x307167[_0x5cdbda(0x1bb)]=_0x5cdbda(0x1bb),_0x307167['Executive']='Executive',_0x307167[_0x5cdbda(0x1cf)]=_0x5cdbda(0x1cf),_0x307167['A3']='A3',_0x307167['A4']='A4',_0x307167['A5']='A5',_0x307167['B4']='B4',_0x307167['B5']='B5',_0x307167))(PrintPaperSize||{}),PrintDirection=(_0x36e6a4=>(_0x36e6a4[_0x5cdbda(0x1bd)]=_0x5cdbda(0x1bd),_0x36e6a4[_0x5cdbda(0x1ec)]=_0x5cdbda(0x1ec),_0x36e6a4))(PrintDirection||{}),PrintScale=(_0x2a3775=>(_0x2a3775[_0x5cdbda(0x1e1)]=_0x5cdbda(0x1e1),_0x2a3775[_0x5cdbda(0x1c8)]=_0x5cdbda(0x1c8),_0x2a3775[_0x5cdbda(0x1e6)]='FitHeight',_0x2a3775[_0x5cdbda(0x1d0)]=_0x5cdbda(0x1d0),_0x2a3775[_0x5cdbda(0x1d8)]=_0x5cdbda(0x1d8),_0x2a3775))(PrintScale||{}),PrintAlign=(_0x11cea4=>(_0x11cea4['Start']=_0x5cdbda(0x1dd),_0x11cea4[_0x5cdbda(0x1cc)]=_0x5cdbda(0x1cc),_0x11cea4[_0x5cdbda(0x1cd)]='Middle',_0x11cea4))(PrintAlign||{}),PrintPaperMargin=(_0x4afdcf=>(_0x4afdcf[_0x5cdbda(0x1d1)]='Normal',_0x4afdcf['Narrow']=_0x5cdbda(0x1e8),_0x4afdcf[_0x5cdbda(0x1bc)]=_0x5cdbda(0x1bc),_0x4afdcf[_0x5cdbda(0x1c6)]=_0x5cdbda(0x1c6),_0x4afdcf))(PrintPaperMargin||{});const PaperSizePxMap={[PrintPaperSize['A3']]:{'w':0x463,'h':0x633},[PrintPaperSize['A4']]:{'w':0x31a,'h':0x464},[PrintPaperSize['A5']]:{'w':0x22f,'h':0x31a},[PrintPaperSize['B4']]:{'w':0x3b0,'h':0x540},[PrintPaperSize['B5']]:{'w':0x299,'h':0x3b0},[PrintPaperSize[_0x5cdbda(0x1de)]]:{'w':0x2b8,'h':0x3f0},[PrintPaperSize[_0x5cdbda(0x1cf)]]:{'w':0x330,'h':0x4e0},[PrintPaperSize[_0x5cdbda(0x1ea)]]:{'w':0x330,'h':0x540},[PrintPaperSize[_0x5cdbda(0x1ee)]]:{'w':0x330,'h':0x420},[PrintPaperSize[_0x5cdbda(0x1bb)]]:{'w':0x210,'h':0x330},[PrintPaperSize[_0x5cdbda(0x1db)]]:{'w':0x420,'h':0x660}},PaperMarginMap={[PrintPaperMargin[_0x5cdbda(0x1d1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x5cdbda(0x1e8)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x5cdbda(0x1bc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[PrintPaperMargin['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS=_0x5cdbda(0x1c0),PRINT_CANVAS_CLASS=_0x5cdbda(0x1f0);function createPrintStyle(_0x25d5d1,_0x58c2ce){var _0x2afa36=_0x5cdbda;const {w:_0x137b78,h:_0x3483a7}=PaperSizePxMap[_0x25d5d1],_0x42ca10=_0x58c2ce===PrintDirection[_0x2afa36(0x1bd)]?_0x137b78:_0x3483a7,_0x4a8090=_0x58c2ce===PrintDirection[_0x2afa36(0x1bd)]?_0x3483a7:_0x137b78,_0x363dfe=_0x2afa36(0x1e2)+_0x42ca10+_0x2afa36(0x1e7)+_0x4a8090+_0x2afa36(0x1ed)+PRINT_CONTAINER_CLASS+_0x2afa36(0x1e9)+PRINT_CONTAINER_CLASS+_0x2afa36(0x1ce)+PRINT_CANVAS_CLASS+_0x2afa36(0x1c7)+_0x4a8090+_0x2afa36(0x1d4)+_0x42ca10+_0x2afa36(0x1d2),_0xe3744=document['createElement'](_0x2afa36(0x1e3));return _0xe3744[_0x2afa36(0x1da)]=_0x363dfe,_0xe3744[_0x2afa36(0x1ba)]=_0x2afa36(0x1eb),_0xe3744;}function _0x1961(){var _0x10000e=['offline-printing-css','Landscape','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Letter','4033284YxQdGr','printing-canvas','PrintScale','className','Statement','Wide','Portrait','Module','PrintDirection','printing-canvas-container','872261QyyTNb','createPrintStyle','PrintPaperMargin','24018UrmXEl','PRINT_CONTAINER_CLASS','None','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','FitWidth','1115kxzjeY','defineProperty','toStringTag','End','Middle','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Folio','FitPage','Normal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PrintPaperSize','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1813413ByBLbh','70624GCwXFJ','PrintAlign','Custom','553enlgeV','innerHTML','Tabloid','PaperSizePxMap','Start','Executive','1836594cesphL','PRINT_CANVAS_CLASS','Origin','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','style','18653700IzUXsj','2PTfJUv','FitHeight','px\x20','Narrow',',\x20.','Legal'];_0x1961=function(){return _0x10000e;};return _0x1961();}function _0x7f44(_0x17bd4b,_0x2970b7){var _0x196153=_0x1961();return _0x7f44=function(_0x7f449c,_0x33f5d9){_0x7f449c=_0x7f449c-0x1b9;var _0x196016=_0x196153[_0x7f449c];return _0x196016;},_0x7f44(_0x17bd4b,_0x2970b7);}__name(createPrintStyle,_0x5cdbda(0x1c2)),exports[_0x5cdbda(0x1e0)]=PRINT_CANVAS_CLASS,exports[_0x5cdbda(0x1c5)]=PRINT_CONTAINER_CLASS,exports['PaperMarginMap']=PaperMarginMap,exports[_0x5cdbda(0x1dc)]=PaperSizePxMap,exports[_0x5cdbda(0x1d7)]=PrintAlign,exports[_0x5cdbda(0x1bf)]=PrintDirection,exports[_0x5cdbda(0x1c3)]=PrintPaperMargin,exports[_0x5cdbda(0x1d3)]=PrintPaperSize,exports[_0x5cdbda(0x1b9)]=PrintScale,exports[_0x5cdbda(0x1c2)]=createPrintStyle;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x451a78=_0x6d1b;(function(_0x23e306,_0x5e271f){var _0x50ab3c=_0x6d1b,_0x4f3f09=_0x23e306();while(!![]){try{var _0x9d5203=parseInt(_0x50ab3c(0x197))/0x1+parseInt(_0x50ab3c(0x1a1))/0x2+parseInt(_0x50ab3c(0x189))/0x3+parseInt(_0x50ab3c(0x1a4))/0x4*(parseInt(_0x50ab3c(0x185))/0x5)+parseInt(_0x50ab3c(0x187))/0x6+parseInt(_0x50ab3c(0x192))/0x7+-parseInt(_0x50ab3c(0x198))/0x8*(parseInt(_0x50ab3c(0x1a2))/0x9);if(_0x9d5203===_0x5e271f)break;else _0x4f3f09['push'](_0x4f3f09['shift']());}catch(_0x107067){_0x4f3f09['push'](_0x4f3f09['shift']());}}}(_0x56b0,0x9b5f8));var __defProp=Object[_0x451a78(0x181)],__name=(_0x564c3a,_0x34fc1a)=>__defProp(_0x564c3a,'name',{'value':_0x34fc1a,'configurable':!0x0}),PrintPaperSize=(_0x5c25e9=>(_0x5c25e9[_0x451a78(0x19b)]=_0x451a78(0x19b),_0x5c25e9[_0x451a78(0x18c)]=_0x451a78(0x18c),_0x5c25e9['Legal']='Legal',_0x5c25e9['Statement']=_0x451a78(0x19c),_0x5c25e9[_0x451a78(0x19a)]=_0x451a78(0x19a),_0x5c25e9[_0x451a78(0x191)]=_0x451a78(0x191),_0x5c25e9['A3']='A3',_0x5c25e9['A4']='A4',_0x5c25e9['A5']='A5',_0x5c25e9['B4']='B4',_0x5c25e9['B5']='B5',_0x5c25e9))(PrintPaperSize||{}),PrintDirection=(_0x5f0208=>(_0x5f0208[_0x451a78(0x18d)]=_0x451a78(0x18d),_0x5f0208[_0x451a78(0x1a6)]=_0x451a78(0x1a6),_0x5f0208))(PrintDirection||{}),PrintScale=(_0x54470a=>(_0x54470a[_0x451a78(0x193)]='Origin',_0x54470a['FitWidth']=_0x451a78(0x18b),_0x54470a['FitHeight']='FitHeight',_0x54470a[_0x451a78(0x18e)]=_0x451a78(0x18e),_0x54470a[_0x451a78(0x1a0)]=_0x451a78(0x1a0),_0x54470a))(PrintScale||{}),PrintAlign=(_0x14adf9=>(_0x14adf9[_0x451a78(0x195)]='Start',_0x14adf9[_0x451a78(0x1a3)]=_0x451a78(0x1a3),_0x14adf9['Middle']=_0x451a78(0x18a),_0x14adf9))(PrintAlign||{}),PrintPaperMargin=(_0x5d214c=>(_0x5d214c[_0x451a78(0x196)]=_0x451a78(0x196),_0x5d214c[_0x451a78(0x19e)]=_0x451a78(0x19e),_0x5d214c['Wide']='Wide',_0x5d214c[_0x451a78(0x1a7)]=_0x451a78(0x1a7),_0x5d214c))(PrintPaperMargin||{});const PaperSizePxMap={[PrintPaperSize['A3']]:{'w':0x463,'h':0x633},[PrintPaperSize['A4']]:{'w':0x31a,'h':0x464},[PrintPaperSize['A5']]:{'w':0x22f,'h':0x31a},[PrintPaperSize['B4']]:{'w':0x3b0,'h':0x540},[PrintPaperSize['B5']]:{'w':0x299,'h':0x3b0},[PrintPaperSize['Executive']]:{'w':0x2b8,'h':0x3f0},[PrintPaperSize[_0x451a78(0x191)]]:{'w':0x330,'h':0x4e0},[PrintPaperSize[_0x451a78(0x183)]]:{'w':0x330,'h':0x540},[PrintPaperSize[_0x451a78(0x19b)]]:{'w':0x330,'h':0x420},[PrintPaperSize[_0x451a78(0x19c)]]:{'w':0x210,'h':0x330},[PrintPaperSize[_0x451a78(0x18c)]]:{'w':0x420,'h':0x660}},PaperMarginMap={[PrintPaperMargin['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x451a78(0x19e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[PrintPaperMargin['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[PrintPaperMargin['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS=_0x451a78(0x184),PRINT_CANVAS_CLASS=_0x451a78(0x199);function createPrintStyle(_0x396629,_0x3f3310){var _0x41d8f7=_0x451a78;const {w:_0x56a9b2,h:_0x52554d}=PaperSizePxMap[_0x396629],_0x2492ee=_0x3f3310===PrintDirection[_0x41d8f7(0x18d)]?_0x56a9b2:_0x52554d,_0xd9fc10=_0x3f3310===PrintDirection[_0x41d8f7(0x18d)]?_0x52554d:_0x56a9b2,_0x1d5faf='\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x2492ee+_0x41d8f7(0x1a5)+_0xd9fc10+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+PRINT_CONTAINER_CLASS+_0x41d8f7(0x18f)+PRINT_CONTAINER_CLASS+_0x41d8f7(0x194)+PRINT_CANVAS_CLASS+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0xd9fc10+_0x41d8f7(0x188)+_0x2492ee+_0x41d8f7(0x19f),_0xc686a9=document[_0x41d8f7(0x182)]('style');return _0xc686a9[_0x41d8f7(0x190)]=_0x1d5faf,_0xc686a9['className']=_0x41d8f7(0x186),_0xc686a9;}__name(createPrintStyle,_0x451a78(0x19d));export{PRINT_CANVAS_CLASS,PRINT_CONTAINER_CLASS,PaperMarginMap,PaperSizePxMap,PrintAlign,PrintDirection,PrintPaperMargin,PrintPaperSize,PrintScale,createPrintStyle};function _0x6d1b(_0x390c1d,_0x579ccf){var _0x56b01d=_0x56b0();return _0x6d1b=function(_0x6d1bf2,_0x3a2aa4){_0x6d1bf2=_0x6d1bf2-0x181;var _0x4b67c2=_0x56b01d[_0x6d1bf2];return _0x4b67c2;},_0x6d1b(_0x390c1d,_0x579ccf);}function _0x56b0(){var _0x4d019c=['FitPage',',\x20.','innerHTML','Folio','1065141dNOFSg','Origin','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Start','Normal','383126sfVOEW','208HyKVAK','printing-canvas','Executive','Letter','Statement','createPrintStyle','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Custom','2197454peCsZu','684153JCfgJP','End','508KvtyMC','px\x20','Landscape','None','defineProperty','createElement','Legal','printing-canvas-container','11435eqTccs','offline-printing-css','1752342LZCIdF','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1188984BurYOj','Middle','FitWidth','Tabloid','Portrait'];_0x56b0=function(){return _0x4d019c;};return _0x56b0();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4e0b(_0x586c4a,_0x1edf74){var _0x41a84a=_0x41a8();return _0x4e0b=function(_0x4e0b8e,_0x34c33b){_0x4e0b8e=_0x4e0b8e-0x1f4;var _0x2de1d9=_0x41a84a[_0x4e0b8e];return _0x2de1d9;},_0x4e0b(_0x586c4a,_0x1edf74);}(function(_0x4726dc,_0x28a5a7){var _0x29526f=_0x4e0b,_0x223538=_0x4726dc();while(!![]){try{var _0x309846=parseInt(_0x29526f(0x1f8))/0x1+-parseInt(_0x29526f(0x1fa))/0x2+-parseInt(_0x29526f(0x204))/0x3+parseInt(_0x29526f(0x1fb))/0x4*(-parseInt(_0x29526f(0x21d))/0x5)+parseInt(_0x29526f(0x206))/0x6+-parseInt(_0x29526f(0x203))/0x7*(-parseInt(_0x29526f(0x1fc))/0x8)+parseInt(_0x29526f(0x207))/0x9;if(_0x309846===_0x28a5a7)break;else _0x223538['push'](_0x223538['shift']());}catch(_0x2c2ee6){_0x223538['push'](_0x223538['shift']());}}}(_0x41a8,0xe1092),function(_0x4632f5,_0x396f56){var _0x337c42=_0x4e0b;typeof exports=='object'&&typeof module<'u'?_0x396f56(exports):typeof define=='function'&&define[_0x337c42(0x20b)]?define([_0x337c42(0x223)],_0x396f56):(_0x4632f5=typeof globalThis<'u'?globalThis:_0x4632f5||self,_0x396f56(_0x4632f5[_0x337c42(0x1f6)]={}));}(this,function(_0x294423){'use strict';var _0x3f9e51=_0x4e0b;var _0x2bed2e=Object[_0x3f9e51(0x1ff)],_0x4f9d78=(_0x31e55e,_0x36168c)=>_0x2bed2e(_0x31e55e,_0x3f9e51(0x219),{'value':_0x36168c,'configurable':!0x0}),_0x44cba2=(_0x2ff01a=>(_0x2ff01a[_0x3f9e51(0x224)]='Letter',_0x2ff01a['Tabloid']=_0x3f9e51(0x21b),_0x2ff01a[_0x3f9e51(0x214)]=_0x3f9e51(0x214),_0x2ff01a[_0x3f9e51(0x220)]=_0x3f9e51(0x220),_0x2ff01a['Executive']=_0x3f9e51(0x221),_0x2ff01a[_0x3f9e51(0x225)]=_0x3f9e51(0x225),_0x2ff01a['A3']='A3',_0x2ff01a['A4']='A4',_0x2ff01a['A5']='A5',_0x2ff01a['B4']='B4',_0x2ff01a['B5']='B5',_0x2ff01a))(_0x44cba2||{}),_0x4eadb3=(_0x4dba47=>(_0x4dba47[_0x3f9e51(0x222)]=_0x3f9e51(0x222),_0x4dba47[_0x3f9e51(0x21c)]=_0x3f9e51(0x21c),_0x4dba47))(_0x4eadb3||{}),_0x224fdd=(_0x5c75f2=>(_0x5c75f2[_0x3f9e51(0x212)]=_0x3f9e51(0x212),_0x5c75f2[_0x3f9e51(0x200)]=_0x3f9e51(0x200),_0x5c75f2['FitHeight']=_0x3f9e51(0x1f5),_0x5c75f2[_0x3f9e51(0x218)]=_0x3f9e51(0x218),_0x5c75f2['Custom']=_0x3f9e51(0x226),_0x5c75f2))(_0x224fdd||{}),_0x3b9903=(_0x53bd4b=>(_0x53bd4b[_0x3f9e51(0x205)]='Start',_0x53bd4b[_0x3f9e51(0x20c)]=_0x3f9e51(0x20c),_0x53bd4b[_0x3f9e51(0x210)]=_0x3f9e51(0x210),_0x53bd4b))(_0x3b9903||{}),_0x15b85a=(_0x1cd950=>(_0x1cd950[_0x3f9e51(0x1fd)]='Normal',_0x1cd950[_0x3f9e51(0x202)]=_0x3f9e51(0x202),_0x1cd950[_0x3f9e51(0x21f)]=_0x3f9e51(0x21f),_0x1cd950['None']=_0x3f9e51(0x227),_0x1cd950))(_0x15b85a||{});const _0x499d99={[_0x44cba2['A3']]:{'w':0x463,'h':0x633},[_0x44cba2['A4']]:{'w':0x31a,'h':0x464},[_0x44cba2['A5']]:{'w':0x22f,'h':0x31a},[_0x44cba2['B4']]:{'w':0x3b0,'h':0x540},[_0x44cba2['B5']]:{'w':0x299,'h':0x3b0},[_0x44cba2[_0x3f9e51(0x221)]]:{'w':0x2b8,'h':0x3f0},[_0x44cba2[_0x3f9e51(0x225)]]:{'w':0x330,'h':0x4e0},[_0x44cba2[_0x3f9e51(0x214)]]:{'w':0x330,'h':0x540},[_0x44cba2['Letter']]:{'w':0x330,'h':0x420},[_0x44cba2[_0x3f9e51(0x220)]]:{'w':0x210,'h':0x330},[_0x44cba2[_0x3f9e51(0x21b)]]:{'w':0x420,'h':0x660}},_0x5cd71c={[_0x15b85a[_0x3f9e51(0x1fd)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x15b85a[_0x3f9e51(0x202)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x15b85a['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x15b85a[_0x3f9e51(0x227)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x32971a=_0x3f9e51(0x1fe),_0x1fd56a=_0x3f9e51(0x1f4);function _0x406797(_0x43fc27,_0x2ccdc6){var _0x3a7a5a=_0x3f9e51;const {w:_0x3a03e1,h:_0x52881d}=_0x499d99[_0x43fc27],_0x2a59c6=_0x2ccdc6===_0x4eadb3[_0x3a7a5a(0x222)]?_0x3a03e1:_0x52881d,_0x4f4f37=_0x2ccdc6===_0x4eadb3[_0x3a7a5a(0x222)]?_0x52881d:_0x3a03e1,_0x1a8155='\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'+_0x2a59c6+_0x3a7a5a(0x211)+_0x4f4f37+_0x3a7a5a(0x1f9)+_0x32971a+_0x3a7a5a(0x215)+_0x32971a+_0x3a7a5a(0x21a)+_0x1fd56a+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x4f4f37+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x2a59c6+_0x3a7a5a(0x1f7),_0x5358b2=document['createElement'](_0x3a7a5a(0x21e));return _0x5358b2['innerHTML']=_0x1a8155,_0x5358b2['className']='offline-printing-css',_0x5358b2;}_0x4f9d78(_0x406797,_0x3f9e51(0x209)),_0x294423[_0x3f9e51(0x208)]=_0x1fd56a,_0x294423[_0x3f9e51(0x216)]=_0x32971a,_0x294423[_0x3f9e51(0x217)]=_0x5cd71c,_0x294423['PaperSizePxMap']=_0x499d99,_0x294423[_0x3f9e51(0x20e)]=_0x3b9903,_0x294423[_0x3f9e51(0x213)]=_0x4eadb3,_0x294423[_0x3f9e51(0x20a)]=_0x15b85a,_0x294423[_0x3f9e51(0x20d)]=_0x44cba2,_0x294423['PrintScale']=_0x224fdd,_0x294423[_0x3f9e51(0x209)]=_0x406797,Object['defineProperty'](_0x294423,Symbol[_0x3f9e51(0x20f)],{'value':_0x3f9e51(0x201)});}));function _0x41a8(){var _0x2c2645=['Landscape','251915NafarY','style','Wide','Statement','Executive','Portrait','exports','Letter','Folio','Custom','None','printing-canvas','FitHeight','UniverProPrint','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','310495JKvHQa','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','3342768DbcfiF','52igKZow','344VKwefK','Normal','printing-canvas-container','defineProperty','FitWidth','Module','Narrow','51261FNQlTP','3873039JAqVaP','Start','7453890OxLUcs','24042807LRQxVM','PRINT_CANVAS_CLASS','createPrintStyle','PrintPaperMargin','amd','End','PrintPaperSize','PrintAlign','toStringTag','Middle','px\x20','Origin','PrintDirection','Legal',',\x20.','PRINT_CONTAINER_CLASS','PaperMarginMap','FitPage','name','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Tabloid'];_0x41a8=function(){return _0x2c2645;};return _0x41a8();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5-experimental.20250122-3362a4a",
|
|
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.7.2",
|
|
46
46
|
"vite": "^6.0.7",
|
|
47
47
|
"vitest": "^2.1.8",
|
|
48
|
-
"@univerjs-infra/shared": "0.5.
|
|
48
|
+
"@univerjs-infra/shared": "0.5.5"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|