@univerjs-pro/print 0.13.0 → 0.14.0-insiders.20251222-4efcfbb
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';
|
|
1
|
+
'use strict';const _0x55c0ab=_0x2c10;(function(_0x414d94,_0xd9cf77){const _0x289d64=_0x2c10,_0x4fc787=_0x414d94();while(!![]){try{const _0x46eb38=-parseInt(_0x289d64(0xa5))/0x1*(-parseInt(_0x289d64(0xa8))/0x2)+-parseInt(_0x289d64(0x99))/0x3*(parseInt(_0x289d64(0xb4))/0x4)+-parseInt(_0x289d64(0x9e))/0x5+-parseInt(_0x289d64(0xaf))/0x6*(-parseInt(_0x289d64(0xa2))/0x7)+-parseInt(_0x289d64(0xa9))/0x8+-parseInt(_0x289d64(0x95))/0x9*(-parseInt(_0x289d64(0xa3))/0xa)+parseInt(_0x289d64(0x94))/0xb*(parseInt(_0x289d64(0xae))/0xc);if(_0x46eb38===_0xd9cf77)break;else _0x4fc787['push'](_0x4fc787['shift']());}catch(_0x2528ef){_0x4fc787['push'](_0x4fc787['shift']());}}}(_0x416a,0x3ccda));Object['defineProperty'](exports,Symbol[_0x55c0ab(0x9b)],{'value':_0x55c0ab(0xb8)});var i=(_0x113bf7=>(_0x113bf7[_0x55c0ab(0xab)]=_0x55c0ab(0xab),_0x113bf7[_0x55c0ab(0xb1)]=_0x55c0ab(0xb1),_0x113bf7))(i||{}),l=(_0x2df2ef=>(_0x2df2ef['Origin']=_0x55c0ab(0xa7),_0x2df2ef[_0x55c0ab(0xb5)]='FitWidth',_0x2df2ef[_0x55c0ab(0xbb)]='FitHeight',_0x2df2ef[_0x55c0ab(0xaa)]='FitPage',_0x2df2ef[_0x55c0ab(0xb9)]=_0x55c0ab(0xb9),_0x2df2ef))(l||{}),m=(_0x3b5f64=>(_0x3b5f64['Start']=_0x55c0ab(0xb2),_0x3b5f64[_0x55c0ab(0xa6)]='End',_0x3b5f64[_0x55c0ab(0x9d)]='Middle',_0x3b5f64))(m||{}),o=(_0x431277=>(_0x431277[_0x55c0ab(0xb3)]=_0x55c0ab(0xb3),_0x431277[_0x55c0ab(0xbd)]='Narrow',_0x431277['Wide']=_0x55c0ab(0xa4),_0x431277[_0x55c0ab(0xb7)]='None',_0x431277[_0x55c0ab(0xb9)]=_0x55c0ab(0xb9),_0x431277))(o||{});const g={[o[_0x55c0ab(0xb3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x55c0ab(0xbd)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x55c0ab(0xa4)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x55c0ab(0xb9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x55c0ab(0x9a),n=_0x55c0ab(0x96);function h(_0x56c551,_0x260ceb,_0x198e14){const _0x2160bd=_0x55c0ab,_0x4ac74b=_0x198e14===i[_0x2160bd(0xab)]?_0x56c551:_0x260ceb,_0x230d99=_0x198e14===i['Portrait']?_0x260ceb:_0x56c551,_0xa3cd90='\x0a\x20\x20\x20\x20.'+n+_0x2160bd(0xb6)+_0x4ac74b+_0x2160bd(0x98)+_0x230d99+_0x2160bd(0x93)+r+_0x2160bd(0x91)+r+_0x2160bd(0xb0)+n+_0x2160bd(0xba)+_0x230d99+_0x2160bd(0x97)+_0x4ac74b+'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}',_0x32024d=document['createElement'](_0x2160bd(0xa1));return _0x32024d[_0x2160bd(0xa0)]=_0xa3cd90,_0x32024d['className']=_0x2160bd(0xac),_0x32024d;}function _0x416a(){const _0xf29d6e=['Landscape','Start','Normal','792364PTEEaP','FitWidth','\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','None','Module','Custom','\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','FitHeight','PrintScale','Narrow',',\x20.','PrintAlign','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.','539WccKmm','9XOuLcM','printing-canvas','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','px\x20','3AaHqUE','printing-canvas-container','toStringTag','PrintPaperMargin','Middle','111490FehdEq','createPrintStyle','innerHTML','style','29575YPXtox','1289860cIwJNu','Wide','149405DxDpRa','End','Origin','2QNGxSx','3409992dFqppB','FitPage','Portrait','offline-printing-css','PRINT_CONTAINER_CLASS','45636nzsHQZ','612IIquGC','\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.'];_0x416a=function(){return _0xf29d6e;};return _0x416a();}function _0x2c10(_0x3013cd,_0x2f4d10){_0x3013cd=_0x3013cd-0x91;const _0x416a26=_0x416a();let _0x2c104f=_0x416a26[_0x3013cd];return _0x2c104f;}exports['PRINT_CANVAS_CLASS']=n,exports[_0x55c0ab(0xad)]=r,exports['PaperMarginMap']=g,exports[_0x55c0ab(0x92)]=m,exports['PrintDirection']=i,exports[_0x55c0ab(0x9c)]=o,exports[_0x55c0ab(0xbc)]=l,exports[_0x55c0ab(0x9f)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4cc736=_0x8e6b;(function(_0x59d57c,_0x1ae86d){const _0x1f3193=_0x8e6b,_0xc58be2=_0x59d57c();while(!![]){try{const _0x1aca3e=-parseInt(_0x1f3193(0x122))/0x1*(parseInt(_0x1f3193(0x10f))/0x2)+-parseInt(_0x1f3193(0x10d))/0x3*(parseInt(_0x1f3193(0x10b))/0x4)+parseInt(_0x1f3193(0x110))/0x5+-parseInt(_0x1f3193(0x102))/0x6*(-parseInt(_0x1f3193(0xfd))/0x7)+-parseInt(_0x1f3193(0x108))/0x8+-parseInt(_0x1f3193(0x11a))/0x9+-parseInt(_0x1f3193(0x116))/0xa*(-parseInt(_0x1f3193(0x11e))/0xb);if(_0x1aca3e===_0x1ae86d)break;else _0xc58be2['push'](_0xc58be2['shift']());}catch(_0x19b8fe){_0xc58be2['push'](_0xc58be2['shift']());}}}(_0x3699,0xe5d4f));var e=(_0x356785=>(_0x356785[_0x4cc736(0x121)]=_0x4cc736(0x121),_0x356785[_0x4cc736(0x109)]=_0x4cc736(0x109),_0x356785))(e||{}),h=(_0x123bc6=>(_0x123bc6[_0x4cc736(0x11f)]='Origin',_0x123bc6[_0x4cc736(0x111)]=_0x4cc736(0x111),_0x123bc6[_0x4cc736(0x106)]='FitHeight',_0x123bc6[_0x4cc736(0x10a)]=_0x4cc736(0x10a),_0x123bc6[_0x4cc736(0x107)]=_0x4cc736(0x107),_0x123bc6))(h||{}),l=(_0x1e80e2=>(_0x1e80e2[_0x4cc736(0xff)]='Start',_0x1e80e2[_0x4cc736(0x10e)]=_0x4cc736(0x10e),_0x1e80e2[_0x4cc736(0x120)]=_0x4cc736(0x120),_0x1e80e2))(l||{}),o=(_0x56a9e8=>(_0x56a9e8[_0x4cc736(0x100)]=_0x4cc736(0x100),_0x56a9e8['Narrow']=_0x4cc736(0x11d),_0x56a9e8[_0x4cc736(0x104)]=_0x4cc736(0x104),_0x56a9e8['None']='None',_0x56a9e8['Custom']=_0x4cc736(0x107),_0x56a9e8))(o||{});function _0x3699(){const _0x224ae2=['Custom','14676384uosCwM','Landscape','FitPage','3188552qHntgc','innerHTML','6SATYkT','End','83604CjZjHH','1514525gQJiVz','FitWidth','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;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','px\x20','40sLRdHd','printing-canvas','createElement',',\x20.','11432124NOAqQd','\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.','None','Narrow','12960266fPrAUw','Origin','Middle','Portrait','8BFbiCB','6713966rkIsUl','className','Start','Normal','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.','6HRjOOb','offline-printing-css','Wide','\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','FitHeight'];_0x3699=function(){return _0x224ae2;};return _0x3699();}const c={[o[_0x4cc736(0x100)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4cc736(0x104)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x4cc736(0x11c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x4cc736(0x107)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x4cc736(0x117);function g(_0x199e61,_0x4fd6a1,_0x13637e){const _0x56094f=_0x4cc736,_0x12cdeb=_0x13637e===e[_0x56094f(0x121)]?_0x199e61:_0x4fd6a1,_0x8167e7=_0x13637e===e['Portrait']?_0x4fd6a1:_0x199e61,_0x1b804e=_0x56094f(0x113)+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'+_0x12cdeb+_0x56094f(0x115)+_0x8167e7+_0x56094f(0x101)+p+_0x56094f(0x119)+p+_0x56094f(0x11b)+d+_0x56094f(0x105)+_0x8167e7+_0x56094f(0x114)+_0x12cdeb+_0x56094f(0x112),_0x46d0e7=document[_0x56094f(0x118)]('style');return _0x46d0e7[_0x56094f(0x10c)]=_0x1b804e,_0x46d0e7[_0x56094f(0xfe)]=_0x56094f(0x103),_0x46d0e7;}function _0x8e6b(_0x3b72bd,_0x4b8a48){_0x3b72bd=_0x3b72bd-0xfd;const _0x36999b=_0x3699();let _0x8e6bce=_0x36999b[_0x3b72bd];return _0x8e6bce;}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 _0x4cc736=_0x8e6b;(function(_0x59d57c,_0x1ae86d){const _0x1f3193=_0x8e6b,_0xc58be2=_0x59d57c();while(!![]){try{const _0x1aca3e=-parseInt(_0x1f3193(0x122))/0x1*(parseInt(_0x1f3193(0x10f))/0x2)+-parseInt(_0x1f3193(0x10d))/0x3*(parseInt(_0x1f3193(0x10b))/0x4)+parseInt(_0x1f3193(0x110))/0x5+-parseInt(_0x1f3193(0x102))/0x6*(-parseInt(_0x1f3193(0xfd))/0x7)+-parseInt(_0x1f3193(0x108))/0x8+-parseInt(_0x1f3193(0x11a))/0x9+-parseInt(_0x1f3193(0x116))/0xa*(-parseInt(_0x1f3193(0x11e))/0xb);if(_0x1aca3e===_0x1ae86d)break;else _0xc58be2['push'](_0xc58be2['shift']());}catch(_0x19b8fe){_0xc58be2['push'](_0xc58be2['shift']());}}}(_0x3699,0xe5d4f));var e=(_0x356785=>(_0x356785[_0x4cc736(0x121)]=_0x4cc736(0x121),_0x356785[_0x4cc736(0x109)]=_0x4cc736(0x109),_0x356785))(e||{}),h=(_0x123bc6=>(_0x123bc6[_0x4cc736(0x11f)]='Origin',_0x123bc6[_0x4cc736(0x111)]=_0x4cc736(0x111),_0x123bc6[_0x4cc736(0x106)]='FitHeight',_0x123bc6[_0x4cc736(0x10a)]=_0x4cc736(0x10a),_0x123bc6[_0x4cc736(0x107)]=_0x4cc736(0x107),_0x123bc6))(h||{}),l=(_0x1e80e2=>(_0x1e80e2[_0x4cc736(0xff)]='Start',_0x1e80e2[_0x4cc736(0x10e)]=_0x4cc736(0x10e),_0x1e80e2[_0x4cc736(0x120)]=_0x4cc736(0x120),_0x1e80e2))(l||{}),o=(_0x56a9e8=>(_0x56a9e8[_0x4cc736(0x100)]=_0x4cc736(0x100),_0x56a9e8['Narrow']=_0x4cc736(0x11d),_0x56a9e8[_0x4cc736(0x104)]=_0x4cc736(0x104),_0x56a9e8['None']='None',_0x56a9e8['Custom']=_0x4cc736(0x107),_0x56a9e8))(o||{});function _0x3699(){const _0x224ae2=['Custom','14676384uosCwM','Landscape','FitPage','3188552qHntgc','innerHTML','6SATYkT','End','83604CjZjHH','1514525gQJiVz','FitWidth','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;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','px\x20','40sLRdHd','printing-canvas','createElement',',\x20.','11432124NOAqQd','\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.','None','Narrow','12960266fPrAUw','Origin','Middle','Portrait','8BFbiCB','6713966rkIsUl','className','Start','Normal','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.','6HRjOOb','offline-printing-css','Wide','\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','FitHeight'];_0x3699=function(){return _0x224ae2;};return _0x3699();}const c={[o[_0x4cc736(0x100)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4cc736(0x104)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x4cc736(0x11c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x4cc736(0x107)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x4cc736(0x117);function g(_0x199e61,_0x4fd6a1,_0x13637e){const _0x56094f=_0x4cc736,_0x12cdeb=_0x13637e===e[_0x56094f(0x121)]?_0x199e61:_0x4fd6a1,_0x8167e7=_0x13637e===e['Portrait']?_0x4fd6a1:_0x199e61,_0x1b804e=_0x56094f(0x113)+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'+_0x12cdeb+_0x56094f(0x115)+_0x8167e7+_0x56094f(0x101)+p+_0x56094f(0x119)+p+_0x56094f(0x11b)+d+_0x56094f(0x105)+_0x8167e7+_0x56094f(0x114)+_0x12cdeb+_0x56094f(0x112),_0x46d0e7=document[_0x56094f(0x118)]('style');return _0x46d0e7[_0x56094f(0x10c)]=_0x1b804e,_0x46d0e7[_0x56094f(0xfe)]=_0x56094f(0x103),_0x46d0e7;}function _0x8e6b(_0x3b72bd,_0x4b8a48){_0x3b72bd=_0x3b72bd-0xfd;const _0x36999b=_0x3699();let _0x8e6bce=_0x36999b[_0x3b72bd];return _0x8e6bce;}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 _0x5688(_0x3e9e5f,_0x577407){_0x3e9e5f=_0x3e9e5f-0x9c;const _0xae85e4=_0xae85();let _0x568815=_0xae85e4[_0x3e9e5f];return _0x568815;}function _0xae85(){const _0x6afb2f=['Landscape','createElement','Wide','571476OziZvk','FitPage','printing-canvas','\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','offline-printing-css','PRINT_CANVAS_CLASS','Custom','None','toStringTag','2598iQqwEe','1914nTqNxh','createPrintStyle','FitWidth','object','Module','PrintPaperMargin','style','Portrait','px\x20','3650VKiERT','Middle','Origin','1304256EHPcmD','PrintDirection','PaperMarginMap','1583981hOTBCQ','Narrow','8bZElyl',',\x20.','FitHeight','Normal','function','amd','End','\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','innerHTML','PRINT_CONTAINER_CLASS','1075505wRrCxS','103kKkfRG','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\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.','className','UniverProPrint','Start','PrintAlign','8433IOXvcW','\x0a\x20\x20\x20\x20.'];_0xae85=function(){return _0x6afb2f;};return _0xae85();}(function(_0x2bc6e3,_0x373c6e){const _0x1a5c06=_0x5688,_0x37d73b=_0x2bc6e3();while(!![]){try{const _0x46a2f8=parseInt(_0x1a5c06(0xb9))/0x1*(-parseInt(_0x1a5c06(0x9c))/0x2)+-parseInt(_0x1a5c06(0x9d))/0x3+parseInt(_0x1a5c06(0xc5))/0x4+-parseInt(_0x1a5c06(0xb8))/0x5+parseInt(_0x1a5c06(0xa9))/0x6+-parseInt(_0x1a5c06(0xac))/0x7*(parseInt(_0x1a5c06(0xae))/0x8)+parseInt(_0x1a5c06(0xc0))/0x9*(parseInt(_0x1a5c06(0xa6))/0xa);if(_0x46a2f8===_0x373c6e)break;else _0x37d73b['push'](_0x37d73b['shift']());}catch(_0x37849b){_0x37d73b['push'](_0x37d73b['shift']());}}}(_0xae85,0x1eddf),function(_0x2db452,_0x58e0d9){const _0x2c9b32=_0x5688;typeof exports==_0x2c9b32(0xa0)&&typeof module<'u'?_0x58e0d9(exports):typeof define==_0x2c9b32(0xb2)&&define[_0x2c9b32(0xb3)]?define(['exports'],_0x58e0d9):(_0x2db452=typeof globalThis<'u'?globalThis:_0x2db452||self,_0x58e0d9(_0x2db452[_0x2c9b32(0xbd)]={}));}(this,function(_0x3e37a2){'use strict';const _0x139400=_0x5688;var _0x9e6c6a=(_0x215687=>(_0x215687[_0x139400(0xa4)]=_0x139400(0xa4),_0x215687[_0x139400(0xc2)]=_0x139400(0xc2),_0x215687))(_0x9e6c6a||{}),_0x366447=(_0x3a2070=>(_0x3a2070[_0x139400(0xa8)]='Origin',_0x3a2070[_0x139400(0x9f)]=_0x139400(0x9f),_0x3a2070[_0x139400(0xb0)]=_0x139400(0xb0),_0x3a2070[_0x139400(0xc6)]=_0x139400(0xc6),_0x3a2070[_0x139400(0xcb)]='Custom',_0x3a2070))(_0x366447||{}),_0x4913db=(_0x1f5abc=>(_0x1f5abc['Start']=_0x139400(0xbe),_0x1f5abc[_0x139400(0xb4)]='End',_0x1f5abc[_0x139400(0xa7)]='Middle',_0x1f5abc))(_0x4913db||{}),_0x489440=(_0x333a7b=>(_0x333a7b[_0x139400(0xb1)]=_0x139400(0xb1),_0x333a7b[_0x139400(0xad)]=_0x139400(0xad),_0x333a7b[_0x139400(0xc4)]='Wide',_0x333a7b[_0x139400(0xcc)]=_0x139400(0xcc),_0x333a7b[_0x139400(0xcb)]=_0x139400(0xcb),_0x333a7b))(_0x489440||{});const _0x2053fd={[_0x489440['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x489440[_0x139400(0xad)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x489440['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x489440[_0x139400(0xcc)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x489440[_0x139400(0xcb)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x40bf76='printing-canvas-container',_0x9c69d9=_0x139400(0xc7);function _0x39ae98(_0x3b6c8e,_0x22a36b,_0x6cb58d){const _0x549342=_0x139400,_0x1e70b0=_0x6cb58d===_0x9e6c6a[_0x549342(0xa4)]?_0x3b6c8e:_0x22a36b,_0x10aac3=_0x6cb58d===_0x9e6c6a['Portrait']?_0x22a36b:_0x3b6c8e,_0x2447a0=_0x549342(0xc1)+_0x9c69d9+_0x549342(0xc8)+_0x1e70b0+_0x549342(0xa5)+_0x10aac3+'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.'+_0x40bf76+_0x549342(0xaf)+_0x40bf76+_0x549342(0xbb)+_0x9c69d9+_0x549342(0xb5)+_0x10aac3+_0x549342(0xba)+_0x1e70b0+'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}',_0x1309a8=document[_0x549342(0xc3)](_0x549342(0xa3));return _0x1309a8[_0x549342(0xb6)]=_0x2447a0,_0x1309a8[_0x549342(0xbc)]=_0x549342(0xc9),_0x1309a8;}_0x3e37a2[_0x139400(0xca)]=_0x9c69d9,_0x3e37a2[_0x139400(0xb7)]=_0x40bf76,_0x3e37a2[_0x139400(0xab)]=_0x2053fd,_0x3e37a2[_0x139400(0xbf)]=_0x4913db,_0x3e37a2[_0x139400(0xaa)]=_0x9e6c6a,_0x3e37a2[_0x139400(0xa2)]=_0x489440,_0x3e37a2['PrintScale']=_0x366447,_0x3e37a2[_0x139400(0x9e)]=_0x39ae98,Object['defineProperty'](_0x3e37a2,Symbol[_0x139400(0xcd)],{'value':_0x139400(0xa1)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0-insiders.20251222-4efcfbb",
|
|
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.7",
|
|
47
47
|
"vitest": "^4.0.15",
|
|
48
|
-
"@univerjs-infra/shared": "0.
|
|
48
|
+
"@univerjs-infra/shared": "0.14.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|