@univerjs-pro/print 0.16.0 → 0.16.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 _0x643484=_0x2048;(function(_0x46f6de,_0x123b99){const _0x318c91=_0x2048,_0x5f4b90=_0x46f6de();while(!![]){try{const _0x204b2c=-parseInt(_0x318c91(0xf6))/0x1+parseInt(_0x318c91(0x109))/0x2+-parseInt(_0x318c91(0xff))/0x3+-parseInt(_0x318c91(0x103))/0x4+parseInt(_0x318c91(0xe6))/0x5*(-parseInt(_0x318c91(0xe2))/0x6)+-parseInt(_0x318c91(0x108))/0x7*(-parseInt(_0x318c91(0xe1))/0x8)+parseInt(_0x318c91(0xf2))/0x9;if(_0x204b2c===_0x123b99)break;else _0x5f4b90['push'](_0x5f4b90['shift']());}catch(_0x4b1bf5){_0x5f4b90['push'](_0x5f4b90['shift']());}}}(_0x520d,0x7e4ca));function _0x2048(_0x47d051,_0x27b0e5){_0x47d051=_0x47d051-0xde;const _0x520d73=_0x520d();let _0x2048da=_0x520d73[_0x47d051];return _0x2048da;}Object[_0x643484(0xfc)](exports,Symbol[_0x643484(0xe5)],{'value':_0x643484(0xf8)});var i=(_0x494a42=>(_0x494a42[_0x643484(0x105)]=_0x643484(0x105),_0x494a42[_0x643484(0x101)]='Landscape',_0x494a42))(i||{}),l=(_0x33e1e7=>(_0x33e1e7[_0x643484(0x104)]=_0x643484(0x104),_0x33e1e7['FitWidth']='FitWidth',_0x33e1e7['FitHeight']=_0x643484(0xed),_0x33e1e7['FitPage']=_0x643484(0xfb),_0x33e1e7[_0x643484(0xf3)]=_0x643484(0xf3),_0x33e1e7))(l||{}),m=(_0xac9a2e=>(_0xac9a2e[_0x643484(0xe9)]=_0x643484(0xe9),_0xac9a2e[_0x643484(0xe0)]=_0x643484(0xe0),_0xac9a2e[_0x643484(0x102)]=_0x643484(0x102),_0xac9a2e))(m||{}),o=(_0x3ceae9=>(_0x3ceae9[_0x643484(0xf9)]=_0x643484(0xf9),_0x3ceae9[_0x643484(0xef)]=_0x643484(0xef),_0x3ceae9['Wide']=_0x643484(0xee),_0x3ceae9['None']=_0x643484(0x106),_0x3ceae9[_0x643484(0xf3)]=_0x643484(0xf3),_0x3ceae9))(o||{});const g={[o[_0x643484(0xf9)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x643484(0xef)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x643484(0xee)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n=_0x643484(0x107);function _0x520d(){const _0x399f1a=['offline-printing-css','toStringTag','17715ZjiugK','PrintAlign','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}','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PRINT_CANVAS_CLASS',',\x20.','FitHeight','Wide','Narrow','PRINT_CONTAINER_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','14339880TLnEiM','Custom','PrintDirection','\x0a\x20\x20\x20\x20.','744641nQEizQ','innerHTML','Module','Normal','PrintPaperMargin','FitPage','defineProperty','className','px\x20','1954542zRizhH','createElement','Landscape','Middle','3210512UErHnu','Origin','Portrait','None','printing-canvas','693miUWwO','1759570vfhXHs','style','PaperMarginMap','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.','End','51416cVoXSJ','666avOutL','createPrintStyle'];_0x520d=function(){return _0x399f1a;};return _0x520d();}function h(_0xbf196d,_0x2f2f8c,_0x3a1103){const _0x45898e=_0x643484,_0x1c4b88=_0x3a1103===i['Portrait']?_0xbf196d:_0x2f2f8c,_0x421e81=_0x3a1103===i[_0x45898e(0x105)]?_0x2f2f8c:_0xbf196d,_0x521959=_0x45898e(0xf5)+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'+_0x1c4b88+_0x45898e(0xfe)+_0x421e81+_0x45898e(0xdf)+r+_0x45898e(0xec)+r+'\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.'+n+_0x45898e(0xf1)+_0x421e81+_0x45898e(0xea)+_0x1c4b88+_0x45898e(0xe8),_0x1966f1=document[_0x45898e(0x100)](_0x45898e(0x10a));return _0x1966f1[_0x45898e(0xf7)]=_0x521959,_0x1966f1[_0x45898e(0xfd)]=_0x45898e(0xe4),_0x1966f1;}exports[_0x643484(0xeb)]=n,exports[_0x643484(0xf0)]=r,exports[_0x643484(0xde)]=g,exports[_0x643484(0xe7)]=m,exports[_0x643484(0xf4)]=i,exports[_0x643484(0xfa)]=o,exports['PrintScale']=l,exports[_0x643484(0xe3)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x561645=_0x5808;(function(_0x42c34f,_0x53dfb1){const _0x3a04d6=_0x5808,_0x475bed=_0x42c34f();while(!![]){try{const _0x50492a=parseInt(_0x3a04d6(0xf2))/0x1+parseInt(_0x3a04d6(0xdb))/0x2+-parseInt(_0x3a04d6(0xee))/0x3*(-parseInt(_0x3a04d6(0xe1))/0x4)+parseInt(_0x3a04d6(0xea))/0x5+parseInt(_0x3a04d6(0xf0))/0x6+-parseInt(_0x3a04d6(0xeb))/0x7+-parseInt(_0x3a04d6(0xe7))/0x8*(parseInt(_0x3a04d6(0xe9))/0x9);if(_0x50492a===_0x53dfb1)break;else _0x475bed['push'](_0x475bed['shift']());}catch(_0x3bce1c){_0x475bed['push'](_0x475bed['shift']());}}}(_0x26f6,0x57312));var e=(_0x5a7b3f=>(_0x5a7b3f[_0x561645(0xe6)]='Portrait',_0x5a7b3f['Landscape']='Landscape',_0x5a7b3f))(e||{}),h=(_0x5b7aaf=>(_0x5b7aaf[_0x561645(0xdc)]=_0x561645(0xdc),_0x5b7aaf[_0x561645(0xde)]=_0x561645(0xde),_0x5b7aaf[_0x561645(0xe5)]=_0x561645(0xe5),_0x5b7aaf[_0x561645(0xed)]=_0x561645(0xed),_0x5b7aaf[_0x561645(0xe4)]=_0x561645(0xe4),_0x5b7aaf))(h||{}),l=(_0x2d273c=>(_0x2d273c[_0x561645(0xec)]='Start',_0x2d273c[_0x561645(0xf6)]='End',_0x2d273c[_0x561645(0xd7)]=_0x561645(0xd7),_0x2d273c))(l||{}),o=(_0x2683d9=>(_0x2683d9[_0x561645(0xef)]=_0x561645(0xef),_0x2683d9[_0x561645(0xd8)]=_0x561645(0xd8),_0x2683d9[_0x561645(0xd5)]=_0x561645(0xd5),_0x2683d9[_0x561645(0xd9)]=_0x561645(0xd9),_0x2683d9[_0x561645(0xe4)]=_0x561645(0xe4),_0x2683d9))(o||{});const c={[o[_0x561645(0xef)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x561645(0xd8)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x561645(0xd5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x561645(0xd9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x561645(0xe4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x561645(0xf3),d=_0x561645(0xe3);function g(_0x3faf9a,_0x5bb4b2,_0x3d1809){const _0x5588e1=_0x561645,_0x10f8c8=_0x3d1809===e[_0x5588e1(0xe6)]?_0x3faf9a:_0x5bb4b2,_0x3f26d0=_0x3d1809===e['Portrait']?_0x5bb4b2:_0x3faf9a,_0x55e9cc=_0x5588e1(0xe0)+d+_0x5588e1(0xf5)+_0x10f8c8+_0x5588e1(0xda)+_0x3f26d0+_0x5588e1(0xdf)+p+_0x5588e1(0xe8)+p+_0x5588e1(0xf1)+d+'\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'+_0x3f26d0+_0x5588e1(0xe2)+_0x10f8c8+'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}',_0x119e07=document[_0x5588e1(0xd6)]('style');return _0x119e07[_0x5588e1(0xdd)]=_0x55e9cc,_0x119e07['className']=_0x5588e1(0xf4),_0x119e07;}function _0x26f6(){const _0x1511fb=['Narrow','None','px\x20','672792GdPYWk','Origin','innerHTML','FitWidth','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.','\x0a\x20\x20\x20\x20.','208JfCvbv','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','printing-canvas','Custom','FitHeight','Portrait','7736neXkBk',',\x20.','18396ZRoBYx','3205410NqbSRG','1381492SYXJXd','Start','FitPage','40002BMZWde','Normal','2425098BlkcHw','\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.','456013INLWQs','printing-canvas-container','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','Wide','createElement','Middle'];_0x26f6=function(){return _0x1511fb;};return _0x26f6();}function _0x5808(_0x5752d0,_0x842c4b){_0x5752d0=_0x5752d0-0xd5;const _0x26f69a=_0x26f6();let _0x580827=_0x26f69a[_0x5752d0];return _0x580827;}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
|
-
|
|
1
|
+
const _0x561645=_0x5808;(function(_0x42c34f,_0x53dfb1){const _0x3a04d6=_0x5808,_0x475bed=_0x42c34f();while(!![]){try{const _0x50492a=parseInt(_0x3a04d6(0xf2))/0x1+parseInt(_0x3a04d6(0xdb))/0x2+-parseInt(_0x3a04d6(0xee))/0x3*(-parseInt(_0x3a04d6(0xe1))/0x4)+parseInt(_0x3a04d6(0xea))/0x5+parseInt(_0x3a04d6(0xf0))/0x6+-parseInt(_0x3a04d6(0xeb))/0x7+-parseInt(_0x3a04d6(0xe7))/0x8*(parseInt(_0x3a04d6(0xe9))/0x9);if(_0x50492a===_0x53dfb1)break;else _0x475bed['push'](_0x475bed['shift']());}catch(_0x3bce1c){_0x475bed['push'](_0x475bed['shift']());}}}(_0x26f6,0x57312));var e=(_0x5a7b3f=>(_0x5a7b3f[_0x561645(0xe6)]='Portrait',_0x5a7b3f['Landscape']='Landscape',_0x5a7b3f))(e||{}),h=(_0x5b7aaf=>(_0x5b7aaf[_0x561645(0xdc)]=_0x561645(0xdc),_0x5b7aaf[_0x561645(0xde)]=_0x561645(0xde),_0x5b7aaf[_0x561645(0xe5)]=_0x561645(0xe5),_0x5b7aaf[_0x561645(0xed)]=_0x561645(0xed),_0x5b7aaf[_0x561645(0xe4)]=_0x561645(0xe4),_0x5b7aaf))(h||{}),l=(_0x2d273c=>(_0x2d273c[_0x561645(0xec)]='Start',_0x2d273c[_0x561645(0xf6)]='End',_0x2d273c[_0x561645(0xd7)]=_0x561645(0xd7),_0x2d273c))(l||{}),o=(_0x2683d9=>(_0x2683d9[_0x561645(0xef)]=_0x561645(0xef),_0x2683d9[_0x561645(0xd8)]=_0x561645(0xd8),_0x2683d9[_0x561645(0xd5)]=_0x561645(0xd5),_0x2683d9[_0x561645(0xd9)]=_0x561645(0xd9),_0x2683d9[_0x561645(0xe4)]=_0x561645(0xe4),_0x2683d9))(o||{});const c={[o[_0x561645(0xef)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x561645(0xd8)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x561645(0xd5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x561645(0xd9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x561645(0xe4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x561645(0xf3),d=_0x561645(0xe3);function g(_0x3faf9a,_0x5bb4b2,_0x3d1809){const _0x5588e1=_0x561645,_0x10f8c8=_0x3d1809===e[_0x5588e1(0xe6)]?_0x3faf9a:_0x5bb4b2,_0x3f26d0=_0x3d1809===e['Portrait']?_0x5bb4b2:_0x3faf9a,_0x55e9cc=_0x5588e1(0xe0)+d+_0x5588e1(0xf5)+_0x10f8c8+_0x5588e1(0xda)+_0x3f26d0+_0x5588e1(0xdf)+p+_0x5588e1(0xe8)+p+_0x5588e1(0xf1)+d+'\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'+_0x3f26d0+_0x5588e1(0xe2)+_0x10f8c8+'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}',_0x119e07=document[_0x5588e1(0xd6)]('style');return _0x119e07[_0x5588e1(0xdd)]=_0x55e9cc,_0x119e07['className']=_0x5588e1(0xf4),_0x119e07;}function _0x26f6(){const _0x1511fb=['Narrow','None','px\x20','672792GdPYWk','Origin','innerHTML','FitWidth','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.','\x0a\x20\x20\x20\x20.','208JfCvbv','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','printing-canvas','Custom','FitHeight','Portrait','7736neXkBk',',\x20.','18396ZRoBYx','3205410NqbSRG','1381492SYXJXd','Start','FitPage','40002BMZWde','Normal','2425098BlkcHw','\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.','456013INLWQs','printing-canvas-container','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','Wide','createElement','Middle'];_0x26f6=function(){return _0x1511fb;};return _0x26f6();}function _0x5808(_0x5752d0,_0x842c4b){_0x5752d0=_0x5752d0-0xd5;const _0x26f69a=_0x26f6();let _0x580827=_0x26f69a[_0x5752d0];return _0x580827;}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 _0xf55d(_0x19c505,_0x4d0e23){_0x19c505=_0x19c505-0xd6;const _0x1c44c6=_0x1c44();let _0xf55d2b=_0x1c44c6[_0x19c505];return _0xf55d2b;}(function(_0x20d6d3,_0x5b9ef8){const _0x3d22ba=_0xf55d,_0x10e0ac=_0x20d6d3();while(!![]){try{const _0x4f1e99=parseInt(_0x3d22ba(0x103))/0x1+-parseInt(_0x3d22ba(0xf4))/0x2+-parseInt(_0x3d22ba(0xf9))/0x3+parseInt(_0x3d22ba(0x102))/0x4*(parseInt(_0x3d22ba(0xdd))/0x5)+parseInt(_0x3d22ba(0xf2))/0x6+parseInt(_0x3d22ba(0xfe))/0x7*(-parseInt(_0x3d22ba(0xeb))/0x8)+-parseInt(_0x3d22ba(0xfc))/0x9;if(_0x4f1e99===_0x5b9ef8)break;else _0x10e0ac['push'](_0x10e0ac['shift']());}catch(_0xe13374){_0x10e0ac['push'](_0x10e0ac['shift']());}}}(_0x1c44,0x86d99),function(_0x190b10,_0x418650){const _0x582163=_0xf55d;typeof exports==_0x582163(0xf3)&&typeof module<'u'?_0x418650(exports):typeof define=='function'&&define['amd']?define([_0x582163(0xfd)],_0x418650):(_0x190b10=typeof globalThis<'u'?globalThis:_0x190b10||self,_0x418650(_0x190b10[_0x582163(0xff)]={}));}(this,function(_0x1c80a9){'use strict';const _0xebe56=_0xf55d;var _0x1b9a81=(_0x2eb457=>(_0x2eb457['Portrait']=_0xebe56(0xe3),_0x2eb457[_0xebe56(0xd9)]=_0xebe56(0xd9),_0x2eb457))(_0x1b9a81||{}),_0x5e8bf3=(_0x1accb3=>(_0x1accb3[_0xebe56(0xf5)]=_0xebe56(0xf5),_0x1accb3[_0xebe56(0xf1)]=_0xebe56(0xf1),_0x1accb3[_0xebe56(0xef)]='FitHeight',_0x1accb3[_0xebe56(0xde)]=_0xebe56(0xde),_0x1accb3[_0xebe56(0xe7)]='Custom',_0x1accb3))(_0x5e8bf3||{}),_0x402164=(_0xabbefe=>(_0xabbefe[_0xebe56(0xd6)]=_0xebe56(0xd6),_0xabbefe['End']='End',_0xabbefe[_0xebe56(0xe4)]=_0xebe56(0xe4),_0xabbefe))(_0x402164||{}),_0x322b34=(_0x58dcb9=>(_0x58dcb9[_0xebe56(0xf6)]=_0xebe56(0xf6),_0x58dcb9[_0xebe56(0xf0)]=_0xebe56(0xf0),_0x58dcb9[_0xebe56(0xe2)]=_0xebe56(0xe2),_0x58dcb9['None']=_0xebe56(0xfa),_0x58dcb9[_0xebe56(0xe7)]=_0xebe56(0xe7),_0x58dcb9))(_0x322b34||{});const _0xa79d1={[_0x322b34['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x322b34[_0xebe56(0xf0)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x322b34[_0xebe56(0xe2)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x322b34[_0xebe56(0xfa)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x322b34[_0xebe56(0xe7)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x3630d7=_0xebe56(0xfb),_0x27f65e='printing-canvas';function _0x3c5c41(_0x4ed80e,_0x475768,_0x2fedb9){const _0x13d11a=_0xebe56,_0x1118c1=_0x2fedb9===_0x1b9a81[_0x13d11a(0xe3)]?_0x4ed80e:_0x475768,_0x1cf355=_0x2fedb9===_0x1b9a81[_0x13d11a(0xe3)]?_0x475768:_0x4ed80e,_0x425222=_0x13d11a(0xdf)+_0x27f65e+_0x13d11a(0xdb)+_0x1118c1+_0x13d11a(0xe8)+_0x1cf355+'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.'+_0x3630d7+_0x13d11a(0xea)+_0x3630d7+_0x13d11a(0xee)+_0x27f65e+_0x13d11a(0xec)+_0x1cf355+_0x13d11a(0x101)+_0x1118c1+'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}',_0x4deeef=document[_0x13d11a(0xe0)](_0x13d11a(0xf8));return _0x4deeef[_0x13d11a(0xe1)]=_0x425222,_0x4deeef[_0x13d11a(0xd8)]=_0x13d11a(0xed),_0x4deeef;}_0x1c80a9[_0xebe56(0xe5)]=_0x27f65e,_0x1c80a9['PRINT_CONTAINER_CLASS']=_0x3630d7,_0x1c80a9['PaperMarginMap']=_0xa79d1,_0x1c80a9[_0xebe56(0xd7)]=_0x402164,_0x1c80a9[_0xebe56(0xe9)]=_0x1b9a81,_0x1c80a9[_0xebe56(0xdc)]=_0x322b34,_0x1c80a9[_0xebe56(0xf7)]=_0x5e8bf3,_0x1c80a9[_0xebe56(0xda)]=_0x3c5c41,Object[_0xebe56(0xe6)](_0x1c80a9,Symbol['toStringTag'],{'value':_0xebe56(0x100)});}));function _0x1c44(){const _0x8d3e19=['\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','PrintPaperMargin','15nMIGea','FitPage','\x0a\x20\x20\x20\x20.','createElement','innerHTML','Wide','Portrait','Middle','PRINT_CANVAS_CLASS','defineProperty','Custom','px\x20','PrintDirection',',\x20.','2282960vdDivG','\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','offline-printing-css','\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','Narrow','FitWidth','5127726uTwNil','object','389072hiMxtM','Origin','Normal','PrintScale','style','452001SwQhMt','None','printing-canvas-container','5805135tVGXTv','exports','7KyjrBg','UniverProPrint','Module','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','538332GeFQQa','569563GTQEKM','Start','PrintAlign','className','Landscape','createPrintStyle'];_0x1c44=function(){return _0x8d3e19;};return _0x1c44();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.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.3.1",
|
|
47
47
|
"vitest": "^4.0.18",
|
|
48
|
-
"@univerjs-infra/shared": "0.16.
|
|
48
|
+
"@univerjs-infra/shared": "0.16.1"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|