@univerjs-pro/print 0.5.4 → 0.5.5-experimental.20250123-34738ff
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 +3 -3
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x32dc45=_0x17c3;(function(_0x4eb2b7,_0x1b8be0){var _0x51b479=_0x17c3,_0x2ec295=_0x4eb2b7();while(!![]){try{var _0x4d705e=-parseInt(_0x51b479(0x1e4))/0x1+parseInt(_0x51b479(0x1e5))/0x2*(-parseInt(_0x51b479(0x1e8))/0x3)+-parseInt(_0x51b479(0x1cf))/0x4+-parseInt(_0x51b479(0x1cc))/0x5*(-parseInt(_0x51b479(0x1ec))/0x6)+-parseInt(_0x51b479(0x1c6))/0x7*(-parseInt(_0x51b479(0x1cb))/0x8)+parseInt(_0x51b479(0x1d1))/0x9+parseInt(_0x51b479(0x1c8))/0xa;if(_0x4d705e===_0x1b8be0)break;else _0x2ec295['push'](_0x2ec295['shift']());}catch(_0x4794f2){_0x2ec295['push'](_0x2ec295['shift']());}}}(_0x285e,0x61a8e));var __defProp=Object[_0x32dc45(0x1dd)],__name=(_0x564769,_0x484fab)=>__defProp(_0x564769,_0x32dc45(0x1e6),{'value':_0x484fab,'configurable':!0x0});function _0x17c3(_0x538a14,_0x3543b5){var _0x285e43=_0x285e();return _0x17c3=function(_0x17c36a,_0x54477f){_0x17c36a=_0x17c36a-0x1c0;var _0x5ca8d7=_0x285e43[_0x17c36a];return _0x5ca8d7;},_0x17c3(_0x538a14,_0x3543b5);}Object[_0x32dc45(0x1dd)](exports,Symbol[_0x32dc45(0x1d0)],{'value':'Module'});var PrintPaperSize=(_0x4d64c5=>(_0x4d64c5[_0x32dc45(0x1e9)]=_0x32dc45(0x1e9),_0x4d64c5[_0x32dc45(0x1eb)]=_0x32dc45(0x1eb),_0x4d64c5[_0x32dc45(0x1e3)]=_0x32dc45(0x1e3),_0x4d64c5[_0x32dc45(0x1ca)]='Statement',_0x4d64c5[_0x32dc45(0x1cd)]=_0x32dc45(0x1cd),_0x4d64c5[_0x32dc45(0x1d8)]=_0x32dc45(0x1d8),_0x4d64c5['A3']='A3',_0x4d64c5['A4']='A4',_0x4d64c5['A5']='A5',_0x4d64c5['B4']='B4',_0x4d64c5['B5']='B5',_0x4d64c5))(PrintPaperSize||{}),PrintDirection=(_0x5812b1=>(_0x5812b1['Portrait']=_0x32dc45(0x1dc),_0x5812b1['Landscape']=_0x32dc45(0x1c1),_0x5812b1))(PrintDirection||{}),PrintScale=(_0x5eae4a=>(_0x5eae4a['Origin']=_0x32dc45(0x1c0),_0x5eae4a['FitWidth']=_0x32dc45(0x1d5),_0x5eae4a['FitHeight']='FitHeight',_0x5eae4a[_0x32dc45(0x1ea)]=_0x32dc45(0x1ea),_0x5eae4a['Custom']=_0x32dc45(0x1ed),_0x5eae4a))(PrintScale||{}),PrintAlign=(_0x2e1558=>(_0x2e1558['Start']=_0x32dc45(0x1c4),_0x2e1558[_0x32dc45(0x1c5)]=_0x32dc45(0x1c5),_0x2e1558[_0x32dc45(0x1df)]='Middle',_0x2e1558))(PrintAlign||{}),PrintPaperMargin=(_0xf8e534=>(_0xf8e534[_0x32dc45(0x1e1)]=_0x32dc45(0x1e1),_0xf8e534['Narrow']=_0x32dc45(0x1f0),_0xf8e534[_0x32dc45(0x1ce)]=_0x32dc45(0x1ce),_0xf8e534['None']=_0x32dc45(0x1ee),_0xf8e534))(PrintPaperMargin||{});function _0x285e(){var _0x3123e5=['PrintScale','Start','End','3255jObgRj','PrintPaperMargin','5920930RdJjdT','offline-printing-css','Statement','9992rBoTXN','815270fjceYq','Executive','Wide','2204748ufxoSa','toStringTag','1444203coAQmn','PaperSizePxMap','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','createPrintStyle','FitWidth','px\x20','PrintPaperSize','Folio','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','innerHTML','printing-canvas-container','Portrait','defineProperty','\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','Middle','createElement','Normal',',\x20.','Legal','519188HYRygp','204YfsmuH','name','printing-canvas','765rSFZMc','Letter','FitPage','Tabloid','6BVoNwr','Custom','None','PRINT_CANVAS_CLASS','Narrow','Origin','Landscape','PaperMarginMap'];_0x285e=function(){return _0x3123e5;};return _0x285e();}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[_0x32dc45(0x1cd)]]:{'w':0x2b8,'h':0x3f0},[PrintPaperSize[_0x32dc45(0x1d8)]]:{'w':0x330,'h':0x4e0},[PrintPaperSize[_0x32dc45(0x1e3)]]:{'w':0x330,'h':0x540},[PrintPaperSize['Letter']]:{'w':0x330,'h':0x420},[PrintPaperSize[_0x32dc45(0x1ca)]]:{'w':0x210,'h':0x330},[PrintPaperSize['Tabloid']]:{'w':0x420,'h':0x660}},PaperMarginMap={[PrintPaperMargin['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x32dc45(0x1f0)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[PrintPaperMargin['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[PrintPaperMargin[_0x32dc45(0x1ee)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS=_0x32dc45(0x1db),PRINT_CANVAS_CLASS=_0x32dc45(0x1e7);function createPrintStyle(_0x139474,_0x539285){var _0x3b685b=_0x32dc45;const {w:_0x501f11,h:_0x48db11}=PaperSizePxMap[_0x139474],_0x26af66=_0x539285===PrintDirection[_0x3b685b(0x1dc)]?_0x501f11:_0x48db11,_0x59ec04=_0x539285===PrintDirection[_0x3b685b(0x1dc)]?_0x48db11:_0x501f11,_0x37a7b1=_0x3b685b(0x1de)+_0x26af66+_0x3b685b(0x1d6)+_0x59ec04+'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+_0x3b685b(0x1e2)+PRINT_CONTAINER_CLASS+'\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.'+PRINT_CANVAS_CLASS+_0x3b685b(0x1d9)+_0x59ec04+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x26af66+_0x3b685b(0x1d3),_0x11c989=document[_0x3b685b(0x1e0)]('style');return _0x11c989[_0x3b685b(0x1da)]=_0x37a7b1,_0x11c989['className']=_0x3b685b(0x1c9),_0x11c989;}__name(createPrintStyle,'createPrintStyle'),exports[_0x32dc45(0x1ef)]=PRINT_CANVAS_CLASS,exports['PRINT_CONTAINER_CLASS']=PRINT_CONTAINER_CLASS,exports[_0x32dc45(0x1c2)]=PaperMarginMap,exports[_0x32dc45(0x1d2)]=PaperSizePxMap,exports['PrintAlign']=PrintAlign,exports['PrintDirection']=PrintDirection,exports[_0x32dc45(0x1c7)]=PrintPaperMargin,exports[_0x32dc45(0x1d7)]=PrintPaperSize,exports[_0x32dc45(0x1c3)]=PrintScale,exports[_0x32dc45(0x1d4)]=createPrintStyle;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var _0x3f98bf=_0x43c1;(function(_0x461180,_0x2fa13d){var _0x44dbab=_0x43c1,_0x51447d=_0x461180();while(!![]){try{var _0x3ffddc=-parseInt(_0x44dbab(0x1c0))/0x1+-parseInt(_0x44dbab(0x1ad))/0x2*(-parseInt(_0x44dbab(0x1ba))/0x3)+parseInt(_0x44dbab(0x1bf))/0x4+parseInt(_0x44dbab(0x1bc))/0x5+parseInt(_0x44dbab(0x1cc))/0x6*(parseInt(_0x44dbab(0x1c9))/0x7)+-parseInt(_0x44dbab(0x1b6))/0x8+-parseInt(_0x44dbab(0x1c6))/0x9;if(_0x3ffddc===_0x2fa13d)break;else _0x51447d['push'](_0x51447d['shift']());}catch(_0xbc3637){_0x51447d['push'](_0x51447d['shift']());}}}(_0x180e,0xe0bf2));function _0x43c1(_0x167f62,_0x2d5c34){var _0x180e2c=_0x180e();return _0x43c1=function(_0x43c1da,_0x2f98f3){_0x43c1da=_0x43c1da-0x1a9;var _0x16d012=_0x180e2c[_0x43c1da];return _0x16d012;},_0x43c1(_0x167f62,_0x2d5c34);}function _0x180e(){var _0x4d7351=['1290581Afwujq','Legal','Normal','className','FitHeight','createElement','9847395hjHNJT','Letter','Folio','10997yimoRB','printing-canvas','Portrait','6306bggbvh','printing-canvas-container','Wide','None','createPrintStyle','px\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Start','41758cFflPf','\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','Narrow','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.','End','Executive','style','Statement','FitPage','7805832CnKgCt','innerHTML','Origin','name','201btbgeX','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','5832960sWdwhf','Middle','offline-printing-css','257684SqhqtC'];_0x180e=function(){return _0x4d7351;};return _0x180e();}var __defProp=Object['defineProperty'],__name=(_0xc91883,_0x533178)=>__defProp(_0xc91883,_0x3f98bf(0x1b9),{'value':_0x533178,'configurable':!0x0}),PrintPaperSize=(_0x173ffa=>(_0x173ffa['Letter']=_0x3f98bf(0x1c7),_0x173ffa['Tabloid']='Tabloid',_0x173ffa['Legal']=_0x3f98bf(0x1c1),_0x173ffa[_0x3f98bf(0x1b4)]='Statement',_0x173ffa[_0x3f98bf(0x1b2)]=_0x3f98bf(0x1b2),_0x173ffa[_0x3f98bf(0x1c8)]=_0x3f98bf(0x1c8),_0x173ffa['A3']='A3',_0x173ffa['A4']='A4',_0x173ffa['A5']='A5',_0x173ffa['B4']='B4',_0x173ffa['B5']='B5',_0x173ffa))(PrintPaperSize||{}),PrintDirection=(_0x543f11=>(_0x543f11[_0x3f98bf(0x1cb)]='Portrait',_0x543f11['Landscape']='Landscape',_0x543f11))(PrintDirection||{}),PrintScale=(_0x16b27b=>(_0x16b27b[_0x3f98bf(0x1b8)]='Origin',_0x16b27b['FitWidth']='FitWidth',_0x16b27b[_0x3f98bf(0x1c4)]=_0x3f98bf(0x1c4),_0x16b27b['FitPage']=_0x3f98bf(0x1b5),_0x16b27b['Custom']='Custom',_0x16b27b))(PrintScale||{}),PrintAlign=(_0x288d76=>(_0x288d76[_0x3f98bf(0x1ac)]=_0x3f98bf(0x1ac),_0x288d76[_0x3f98bf(0x1b1)]=_0x3f98bf(0x1b1),_0x288d76[_0x3f98bf(0x1bd)]=_0x3f98bf(0x1bd),_0x288d76))(PrintAlign||{}),PrintPaperMargin=(_0x243809=>(_0x243809[_0x3f98bf(0x1c2)]=_0x3f98bf(0x1c2),_0x243809[_0x3f98bf(0x1af)]=_0x3f98bf(0x1af),_0x243809[_0x3f98bf(0x1ce)]=_0x3f98bf(0x1ce),_0x243809[_0x3f98bf(0x1cf)]=_0x3f98bf(0x1cf),_0x243809))(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[_0x3f98bf(0x1b2)]]:{'w':0x2b8,'h':0x3f0},[PrintPaperSize['Folio']]:{'w':0x330,'h':0x4e0},[PrintPaperSize[_0x3f98bf(0x1c1)]]:{'w':0x330,'h':0x540},[PrintPaperSize[_0x3f98bf(0x1c7)]]:{'w':0x330,'h':0x420},[PrintPaperSize[_0x3f98bf(0x1b4)]]:{'w':0x210,'h':0x330},[PrintPaperSize['Tabloid']]:{'w':0x420,'h':0x660}},PaperMarginMap={[PrintPaperMargin[_0x3f98bf(0x1c2)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[PrintPaperMargin['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[PrintPaperMargin[_0x3f98bf(0x1ce)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[PrintPaperMargin[_0x3f98bf(0x1cf)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},PRINT_CONTAINER_CLASS=_0x3f98bf(0x1cd),PRINT_CANVAS_CLASS=_0x3f98bf(0x1ca);function createPrintStyle(_0x219402,_0x1da065){var _0x243aac=_0x3f98bf;const {w:_0x5eb97f,h:_0x557f8f}=PaperSizePxMap[_0x219402],_0x3191ad=_0x1da065===PrintDirection['Portrait']?_0x5eb97f:_0x557f8f,_0x37d91b=_0x1da065===PrintDirection[_0x243aac(0x1cb)]?_0x557f8f:_0x5eb97f,_0x272d13=_0x243aac(0x1ae)+_0x3191ad+_0x243aac(0x1aa)+_0x37d91b+_0x243aac(0x1b0)+PRINT_CONTAINER_CLASS+',\x20.'+PRINT_CONTAINER_CLASS+'\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.'+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'+_0x37d91b+_0x243aac(0x1ab)+_0x3191ad+_0x243aac(0x1bb),_0x1d40e7=document[_0x243aac(0x1c5)](_0x243aac(0x1b3));return _0x1d40e7[_0x243aac(0x1b7)]=_0x272d13,_0x1d40e7[_0x243aac(0x1c3)]=_0x243aac(0x1be),_0x1d40e7;}__name(createPrintStyle,_0x3f98bf(0x1a9));export{PRINT_CANVAS_CLASS,PRINT_CONTAINER_CLASS,PaperMarginMap,PaperSizePxMap,PrintAlign,PrintDirection,PrintPaperMargin,PrintPaperSize,PrintScale,createPrintStyle};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x287a8a,_0x5c13a1){var _0x253955=_0x3c74,_0x4a3b4d=_0x287a8a();while(!![]){try{var _0x50ca5f=-parseInt(_0x253955(0x134))/0x1*(-parseInt(_0x253955(0x114))/0x2)+-parseInt(_0x253955(0x118))/0x3*(-parseInt(_0x253955(0x127))/0x4)+parseInt(_0x253955(0x11f))/0x5*(-parseInt(_0x253955(0x104))/0x6)+parseInt(_0x253955(0x12b))/0x7+-parseInt(_0x253955(0x105))/0x8*(parseInt(_0x253955(0x10c))/0x9)+parseInt(_0x253955(0x122))/0xa+-parseInt(_0x253955(0x130))/0xb;if(_0x50ca5f===_0x5c13a1)break;else _0x4a3b4d['push'](_0x4a3b4d['shift']());}catch(_0x124966){_0x4a3b4d['push'](_0x4a3b4d['shift']());}}}(_0x26e9,0xca60d),function(_0x4c5a3c,_0x1bc171){var _0x133146=_0x3c74;typeof exports==_0x133146(0x133)&&typeof module<'u'?_0x1bc171(exports):typeof define==_0x133146(0x112)&&define[_0x133146(0x101)]?define([_0x133146(0x119)],_0x1bc171):(_0x4c5a3c=typeof globalThis<'u'?globalThis:_0x4c5a3c||self,_0x1bc171(_0x4c5a3c[_0x133146(0x113)]={}));}(this,function(_0x2e092e){'use strict';var _0x246f5c=_0x3c74;var _0x5c27c8=Object['defineProperty'],_0x10365f=(_0x2712fe,_0x19ff3e)=>_0x5c27c8(_0x2712fe,_0x246f5c(0x10f),{'value':_0x19ff3e,'configurable':!0x0}),_0x48d1b9=(_0x12912a=>(_0x12912a[_0x246f5c(0x10a)]=_0x246f5c(0x10a),_0x12912a['Tabloid']=_0x246f5c(0x120),_0x12912a[_0x246f5c(0x10d)]='Legal',_0x12912a[_0x246f5c(0x11c)]='Statement',_0x12912a[_0x246f5c(0x129)]=_0x246f5c(0x129),_0x12912a[_0x246f5c(0x115)]=_0x246f5c(0x115),_0x12912a['A3']='A3',_0x12912a['A4']='A4',_0x12912a['A5']='A5',_0x12912a['B4']='B4',_0x12912a['B5']='B5',_0x12912a))(_0x48d1b9||{}),_0x313090=(_0x21059c=>(_0x21059c['Portrait']=_0x246f5c(0x12f),_0x21059c[_0x246f5c(0x124)]='Landscape',_0x21059c))(_0x313090||{}),_0x3491aa=(_0x1fc031=>(_0x1fc031[_0x246f5c(0x103)]=_0x246f5c(0x103),_0x1fc031[_0x246f5c(0x132)]=_0x246f5c(0x132),_0x1fc031[_0x246f5c(0x11b)]=_0x246f5c(0x11b),_0x1fc031[_0x246f5c(0x12a)]=_0x246f5c(0x12a),_0x1fc031[_0x246f5c(0x11d)]=_0x246f5c(0x11d),_0x1fc031))(_0x3491aa||{}),_0x13c2ec=(_0x521490=>(_0x521490['Start']='Start',_0x521490[_0x246f5c(0x10e)]='End',_0x521490['Middle']=_0x246f5c(0x128),_0x521490))(_0x13c2ec||{}),_0x127079=(_0x1c97e4=>(_0x1c97e4[_0x246f5c(0x110)]=_0x246f5c(0x110),_0x1c97e4[_0x246f5c(0x100)]=_0x246f5c(0x100),_0x1c97e4['Wide']=_0x246f5c(0x108),_0x1c97e4[_0x246f5c(0x123)]='None',_0x1c97e4))(_0x127079||{});const _0x10dd77={[_0x48d1b9['A3']]:{'w':0x463,'h':0x633},[_0x48d1b9['A4']]:{'w':0x31a,'h':0x464},[_0x48d1b9['A5']]:{'w':0x22f,'h':0x31a},[_0x48d1b9['B4']]:{'w':0x3b0,'h':0x540},[_0x48d1b9['B5']]:{'w':0x299,'h':0x3b0},[_0x48d1b9[_0x246f5c(0x129)]]:{'w':0x2b8,'h':0x3f0},[_0x48d1b9[_0x246f5c(0x115)]]:{'w':0x330,'h':0x4e0},[_0x48d1b9[_0x246f5c(0x10d)]]:{'w':0x330,'h':0x540},[_0x48d1b9['Letter']]:{'w':0x330,'h':0x420},[_0x48d1b9[_0x246f5c(0x11c)]]:{'w':0x210,'h':0x330},[_0x48d1b9[_0x246f5c(0x120)]]:{'w':0x420,'h':0x660}},_0x4afa5c={[_0x127079[_0x246f5c(0x110)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x127079[_0x246f5c(0x100)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x127079[_0x246f5c(0x108)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x127079['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0xd85eaf='printing-canvas-container',_0x1e93dc=_0x246f5c(0x11a);function _0x7b298a(_0x4d3482,_0x104e10){var _0x20b656=_0x246f5c;const {w:_0x2abb7c,h:_0x20ff09}=_0x10dd77[_0x4d3482],_0x56a78d=_0x104e10===_0x313090['Portrait']?_0x2abb7c:_0x20ff09,_0x422e66=_0x104e10===_0x313090[_0x20b656(0x12f)]?_0x20ff09:_0x2abb7c,_0x294158='\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'+_0x56a78d+_0x20b656(0x12e)+_0x422e66+'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.'+_0xd85eaf+',\x20.'+_0xd85eaf+_0x20b656(0x116)+_0x1e93dc+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x422e66+_0x20b656(0x109)+_0x56a78d+_0x20b656(0x117),_0x459494=document[_0x20b656(0x107)](_0x20b656(0x102));return _0x459494[_0x20b656(0x106)]=_0x294158,_0x459494[_0x20b656(0x10b)]=_0x20b656(0x12d),_0x459494;}_0x10365f(_0x7b298a,_0x246f5c(0x11e)),_0x2e092e['PRINT_CANVAS_CLASS']=_0x1e93dc,_0x2e092e[_0x246f5c(0x12c)]=_0xd85eaf,_0x2e092e[_0x246f5c(0xfe)]=_0x4afa5c,_0x2e092e[_0x246f5c(0xff)]=_0x10dd77,_0x2e092e[_0x246f5c(0x121)]=_0x13c2ec,_0x2e092e[_0x246f5c(0x111)]=_0x313090,_0x2e092e['PrintPaperMargin']=_0x127079,_0x2e092e[_0x246f5c(0x131)]=_0x48d1b9,_0x2e092e[_0x246f5c(0x126)]=_0x3491aa,_0x2e092e[_0x246f5c(0x11e)]=_0x7b298a,Object[_0x246f5c(0xfd)](_0x2e092e,Symbol[_0x246f5c(0x125)],{'value':'Module'});}));function _0x3c74(_0x184dfa,_0x29dcd3){var _0x26e9ce=_0x26e9();return _0x3c74=function(_0x3c74c4,_0x4c9e23){_0x3c74c4=_0x3c74c4-0xfd;var _0x262f96=_0x26e9ce[_0x3c74c4];return _0x262f96;},_0x3c74(_0x184dfa,_0x29dcd3);}function _0x26e9(){var _0x300c1b=['name','Normal','PrintDirection','function','UniverProPrint','2404rCeCuq','Folio','\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.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','63UaFwJh','exports','printing-canvas','FitHeight','Statement','Custom','createPrintStyle','70EKqCKm','Tabloid','PrintAlign','4514150dcqwxS','None','Landscape','toStringTag','PrintScale','286164SfPfAy','Middle','Executive','FitPage','1908788LrIKpB','PRINT_CONTAINER_CLASS','offline-printing-css','px\x20','Portrait','22459965DEeSwY','PrintPaperSize','FitWidth','object','1262oUzSIZ','defineProperty','PaperMarginMap','PaperSizePxMap','Narrow','amd','style','Origin','292074PBBktp','1528976OLuTgG','innerHTML','createElement','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Letter','className','9iauLal','Legal','End'];_0x26e9=function(){return _0x300c1b;};return _0x26e9();}
|
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.20250123-34738ff",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"lib"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"typescript": "^5.7.
|
|
45
|
+
"typescript": "^5.7.3",
|
|
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",
|