@univerjs-pro/print 0.10.12 → 0.10.13
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 _0x22ce4e=_0x5600;(function(_0x43b1d4,_0x36f2d1){const _0x5a79db=_0x5600,_0x4657ff=_0x43b1d4();while(!![]){try{const _0x4f860d=parseInt(_0x5a79db(0xbb))/0x1+parseInt(_0x5a79db(0xb0))/0x2*(parseInt(_0x5a79db(0xaa))/0x3)+-parseInt(_0x5a79db(0xc0))/0x4*(-parseInt(_0x5a79db(0xb5))/0x5)+-parseInt(_0x5a79db(0xc3))/0x6*(parseInt(_0x5a79db(0x9f))/0x7)+parseInt(_0x5a79db(0xba))/0x8+parseInt(_0x5a79db(0xb1))/0x9*(parseInt(_0x5a79db(0xa0))/0xa)+-parseInt(_0x5a79db(0xb3))/0xb;if(_0x4f860d===_0x36f2d1)break;else _0x4657ff['push'](_0x4657ff['shift']());}catch(_0x5eb5b0){_0x4657ff['push'](_0x4657ff['shift']());}}}(_0x2f3b,0x91ecb));function _0x5600(_0xcb6db,_0x46285b){const _0x2f3b37=_0x2f3b();return _0x5600=function(_0x560093,_0x4e27cf){_0x560093=_0x560093-0x99;let _0x3d5d2f=_0x2f3b37[_0x560093];return _0x3d5d2f;},_0x5600(_0xcb6db,_0x46285b);}function _0x2f3b(){const _0x3a30d6=['PaperMarginMap','\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.','Portrait','Narrow','FitWidth','26mMijRj','2615256jaWElR','PrintScale','12958924DswrNq','Normal','695xfdRPK','PRINT_CANVAS_CLASS','End','style','createElement','2681704ZykHqW','801194jMsVVQ','Origin','Wide','className','printing-canvas-container','12332SkSBhW','Middle','FitPage','865398RrMfBI','printing-canvas','\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','PrintDirection','None','Landscape','PRINT_CONTAINER_CLASS','innerHTML','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','35DjkNpU','20voGZrm','\x0a\x20\x20\x20\x20.','createPrintStyle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','offline-printing-css','FitHeight','\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','px\x20','Module','80964ctIJcB'];_0x2f3b=function(){return _0x3a30d6;};return _0x2f3b();}Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x22ce4e(0xa9)});var i=(_0x42f2f6=>(_0x42f2f6[_0x22ce4e(0xad)]=_0x22ce4e(0xad),_0x42f2f6[_0x22ce4e(0x9a)]='Landscape',_0x42f2f6))(i||{}),l=(_0x3963ee=>(_0x3963ee[_0x22ce4e(0xbc)]='Origin',_0x3963ee[_0x22ce4e(0xaf)]=_0x22ce4e(0xaf),_0x3963ee[_0x22ce4e(0xa6)]=_0x22ce4e(0xa6),_0x3963ee[_0x22ce4e(0xc2)]='FitPage',_0x3963ee['Custom']=_0x22ce4e(0xa4),_0x3963ee))(l||{}),m=(_0xd24446=>(_0xd24446[_0x22ce4e(0x9e)]=_0x22ce4e(0x9e),_0xd24446[_0x22ce4e(0xb7)]=_0x22ce4e(0xb7),_0xd24446[_0x22ce4e(0xc1)]='Middle',_0xd24446))(m||{}),o=(_0x13ad75=>(_0x13ad75[_0x22ce4e(0xb4)]=_0x22ce4e(0xb4),_0x13ad75[_0x22ce4e(0xae)]=_0x22ce4e(0xae),_0x13ad75[_0x22ce4e(0xbd)]=_0x22ce4e(0xbd),_0x13ad75[_0x22ce4e(0x99)]=_0x22ce4e(0x99),_0x13ad75[_0x22ce4e(0xa4)]=_0x22ce4e(0xa4),_0x13ad75))(o||{});const g={[o[_0x22ce4e(0xb4)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x22ce4e(0xae)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x22ce4e(0xbd)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x22ce4e(0x99)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x22ce4e(0xa4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x22ce4e(0xbf),n=_0x22ce4e(0xc4);function h(_0x555ac1,_0x1d2964,_0x20acf5){const _0x4739ff=_0x22ce4e,_0x5ce0ac=_0x20acf5===i['Portrait']?_0x555ac1:_0x1d2964,_0x14c989=_0x20acf5===i[_0x4739ff(0xad)]?_0x1d2964:_0x555ac1,_0x274a1d=_0x4739ff(0xa1)+n+_0x4739ff(0xa7)+_0x5ce0ac+_0x4739ff(0xa8)+_0x14c989+'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.'+r+',\x20.'+r+_0x4739ff(0xac)+n+_0x4739ff(0xc5)+_0x14c989+_0x4739ff(0xa3)+_0x5ce0ac+_0x4739ff(0x9d),_0x196c44=document[_0x4739ff(0xb9)](_0x4739ff(0xb8));return _0x196c44[_0x4739ff(0x9c)]=_0x274a1d,_0x196c44[_0x4739ff(0xbe)]=_0x4739ff(0xa5),_0x196c44;}exports[_0x22ce4e(0xb6)]=n,exports[_0x22ce4e(0x9b)]=r,exports[_0x22ce4e(0xab)]=g,exports['PrintAlign']=m,exports[_0x22ce4e(0xc6)]=i,exports['PrintPaperMargin']=o,exports[_0x22ce4e(0xb2)]=l,exports[_0x22ce4e(0xa2)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2f25(_0x576a28,_0x27a4b3){const _0x468fa8=_0x468f();return _0x2f25=function(_0x2f2530,_0x333e71){_0x2f2530=_0x2f2530-0xfc;let _0x5a54a4=_0x468fa8[_0x2f2530];return _0x5a54a4;},_0x2f25(_0x576a28,_0x27a4b3);}const _0x5e3dfb=_0x2f25;(function(_0x63374f,_0xc4e60a){const _0x1a811d=_0x2f25,_0x5eaeb8=_0x63374f();while(!![]){try{const _0x3a5c1a=-parseInt(_0x1a811d(0x106))/0x1*(-parseInt(_0x1a811d(0x118))/0x2)+parseInt(_0x1a811d(0x10d))/0x3*(-parseInt(_0x1a811d(0x10f))/0x4)+-parseInt(_0x1a811d(0x108))/0x5+-parseInt(_0x1a811d(0x107))/0x6+-parseInt(_0x1a811d(0x116))/0x7+-parseInt(_0x1a811d(0x104))/0x8*(-parseInt(_0x1a811d(0x119))/0x9)+parseInt(_0x1a811d(0xfc))/0xa;if(_0x3a5c1a===_0xc4e60a)break;else _0x5eaeb8['push'](_0x5eaeb8['shift']());}catch(_0x22f50f){_0x5eaeb8['push'](_0x5eaeb8['shift']());}}}(_0x468f,0x80986));var e=(_0x31b8cf=>(_0x31b8cf['Portrait']=_0x5e3dfb(0x103),_0x31b8cf['Landscape']=_0x5e3dfb(0x11d),_0x31b8cf))(e||{}),h=(_0x4bfbaf=>(_0x4bfbaf['Origin']=_0x5e3dfb(0x113),_0x4bfbaf['FitWidth']=_0x5e3dfb(0x10a),_0x4bfbaf[_0x5e3dfb(0x112)]=_0x5e3dfb(0x112),_0x4bfbaf[_0x5e3dfb(0xff)]=_0x5e3dfb(0xff),_0x4bfbaf['Custom']=_0x5e3dfb(0x100),_0x4bfbaf))(h||{}),l=(_0x1f887e=>(_0x1f887e[_0x5e3dfb(0x114)]='Start',_0x1f887e['End']='End',_0x1f887e[_0x5e3dfb(0xfe)]=_0x5e3dfb(0xfe),_0x1f887e))(l||{}),o=(_0x5bbf53=>(_0x5bbf53[_0x5e3dfb(0x11e)]=_0x5e3dfb(0x11e),_0x5bbf53[_0x5e3dfb(0x101)]=_0x5e3dfb(0x101),_0x5bbf53['Wide']=_0x5e3dfb(0x10c),_0x5bbf53['None']='None',_0x5bbf53[_0x5e3dfb(0x100)]=_0x5e3dfb(0x100),_0x5bbf53))(o||{});const c={[o[_0x5e3dfb(0x11e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5e3dfb(0x101)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5e3dfb(0x10c)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5e3dfb(0x11a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x5e3dfb(0x100)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x5e3dfb(0x11b);function g(_0x7e7da0,_0x46924d,_0x4f34fc){const _0x3f96c7=_0x5e3dfb,_0x38d659=_0x4f34fc===e[_0x3f96c7(0x103)]?_0x7e7da0:_0x46924d,_0x347298=_0x4f34fc===e['Portrait']?_0x46924d:_0x7e7da0,_0x292e59=_0x3f96c7(0x11c)+d+_0x3f96c7(0x110)+_0x38d659+_0x3f96c7(0x10e)+_0x347298+_0x3f96c7(0x102)+p+_0x3f96c7(0x111)+p+'\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.'+d+_0x3f96c7(0x10b)+_0x347298+_0x3f96c7(0xfd)+_0x38d659+_0x3f96c7(0x109),_0x532d67=document[_0x3f96c7(0x105)]('style');return _0x532d67['innerHTML']=_0x292e59,_0x532d67[_0x3f96c7(0x117)]=_0x3f96c7(0x115),_0x532d67;}function _0x468f(){const _0x538c95=['Normal','18249260DpgCcv','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','FitPage','Custom','Narrow','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.','Portrait','134024lahiir','createElement','2AyOGSu','2935842UdkXMt','3960160gWHoXE','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}','FitWidth','\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','Wide','56766yvRmMU','px\x20','104qyakiF','\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',',\x20.','FitHeight','Origin','Start','offline-printing-css','4966073jFsmgF','className','950008cBtMTQ','126igaOEs','None','printing-canvas','\x0a\x20\x20\x20\x20.','Landscape'];_0x468f=function(){return _0x538c95;};return _0x468f();}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
|
-
function
|
|
1
|
+
function _0x2f25(_0x576a28,_0x27a4b3){const _0x468fa8=_0x468f();return _0x2f25=function(_0x2f2530,_0x333e71){_0x2f2530=_0x2f2530-0xfc;let _0x5a54a4=_0x468fa8[_0x2f2530];return _0x5a54a4;},_0x2f25(_0x576a28,_0x27a4b3);}const _0x5e3dfb=_0x2f25;(function(_0x63374f,_0xc4e60a){const _0x1a811d=_0x2f25,_0x5eaeb8=_0x63374f();while(!![]){try{const _0x3a5c1a=-parseInt(_0x1a811d(0x106))/0x1*(-parseInt(_0x1a811d(0x118))/0x2)+parseInt(_0x1a811d(0x10d))/0x3*(-parseInt(_0x1a811d(0x10f))/0x4)+-parseInt(_0x1a811d(0x108))/0x5+-parseInt(_0x1a811d(0x107))/0x6+-parseInt(_0x1a811d(0x116))/0x7+-parseInt(_0x1a811d(0x104))/0x8*(-parseInt(_0x1a811d(0x119))/0x9)+parseInt(_0x1a811d(0xfc))/0xa;if(_0x3a5c1a===_0xc4e60a)break;else _0x5eaeb8['push'](_0x5eaeb8['shift']());}catch(_0x22f50f){_0x5eaeb8['push'](_0x5eaeb8['shift']());}}}(_0x468f,0x80986));var e=(_0x31b8cf=>(_0x31b8cf['Portrait']=_0x5e3dfb(0x103),_0x31b8cf['Landscape']=_0x5e3dfb(0x11d),_0x31b8cf))(e||{}),h=(_0x4bfbaf=>(_0x4bfbaf['Origin']=_0x5e3dfb(0x113),_0x4bfbaf['FitWidth']=_0x5e3dfb(0x10a),_0x4bfbaf[_0x5e3dfb(0x112)]=_0x5e3dfb(0x112),_0x4bfbaf[_0x5e3dfb(0xff)]=_0x5e3dfb(0xff),_0x4bfbaf['Custom']=_0x5e3dfb(0x100),_0x4bfbaf))(h||{}),l=(_0x1f887e=>(_0x1f887e[_0x5e3dfb(0x114)]='Start',_0x1f887e['End']='End',_0x1f887e[_0x5e3dfb(0xfe)]=_0x5e3dfb(0xfe),_0x1f887e))(l||{}),o=(_0x5bbf53=>(_0x5bbf53[_0x5e3dfb(0x11e)]=_0x5e3dfb(0x11e),_0x5bbf53[_0x5e3dfb(0x101)]=_0x5e3dfb(0x101),_0x5bbf53['Wide']=_0x5e3dfb(0x10c),_0x5bbf53['None']='None',_0x5bbf53[_0x5e3dfb(0x100)]=_0x5e3dfb(0x100),_0x5bbf53))(o||{});const c={[o[_0x5e3dfb(0x11e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5e3dfb(0x101)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5e3dfb(0x10c)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5e3dfb(0x11a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x5e3dfb(0x100)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x5e3dfb(0x11b);function g(_0x7e7da0,_0x46924d,_0x4f34fc){const _0x3f96c7=_0x5e3dfb,_0x38d659=_0x4f34fc===e[_0x3f96c7(0x103)]?_0x7e7da0:_0x46924d,_0x347298=_0x4f34fc===e['Portrait']?_0x46924d:_0x7e7da0,_0x292e59=_0x3f96c7(0x11c)+d+_0x3f96c7(0x110)+_0x38d659+_0x3f96c7(0x10e)+_0x347298+_0x3f96c7(0x102)+p+_0x3f96c7(0x111)+p+'\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.'+d+_0x3f96c7(0x10b)+_0x347298+_0x3f96c7(0xfd)+_0x38d659+_0x3f96c7(0x109),_0x532d67=document[_0x3f96c7(0x105)]('style');return _0x532d67['innerHTML']=_0x292e59,_0x532d67[_0x3f96c7(0x117)]=_0x3f96c7(0x115),_0x532d67;}function _0x468f(){const _0x538c95=['Normal','18249260DpgCcv','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','FitPage','Custom','Narrow','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.','Portrait','134024lahiir','createElement','2AyOGSu','2935842UdkXMt','3960160gWHoXE','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}','FitWidth','\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','Wide','56766yvRmMU','px\x20','104qyakiF','\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',',\x20.','FitHeight','Origin','Start','offline-printing-css','4966073jFsmgF','className','950008cBtMTQ','126igaOEs','None','printing-canvas','\x0a\x20\x20\x20\x20.','Landscape'];_0x468f=function(){return _0x538c95;};return _0x468f();}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 _0x228c(_0x1bb5d8,_0x5c9481){const _0x16322e=_0x1632();return _0x228c=function(_0x228c20,_0x137ddd){_0x228c20=_0x228c20-0x12e;let _0x36b5e6=_0x16322e[_0x228c20];return _0x36b5e6;},_0x228c(_0x1bb5d8,_0x5c9481);}(function(_0x41f45b,_0xf5d59b){const _0xeee8c2=_0x228c,_0x18b582=_0x41f45b();while(!![]){try{const _0x5cde76=parseInt(_0xeee8c2(0x149))/0x1+parseInt(_0xeee8c2(0x130))/0x2*(parseInt(_0xeee8c2(0x157))/0x3)+parseInt(_0xeee8c2(0x14e))/0x4*(parseInt(_0xeee8c2(0x131))/0x5)+parseInt(_0xeee8c2(0x136))/0x6+parseInt(_0xeee8c2(0x133))/0x7+parseInt(_0xeee8c2(0x14b))/0x8+-parseInt(_0xeee8c2(0x13b))/0x9*(parseInt(_0xeee8c2(0x147))/0xa);if(_0x5cde76===_0xf5d59b)break;else _0x18b582['push'](_0x18b582['shift']());}catch(_0x237e1b){_0x18b582['push'](_0x18b582['shift']());}}}(_0x1632,0x36582),function(_0x1efd51,_0x306f94){const _0x3c1cbe=_0x228c;typeof exports=='object'&&typeof module<'u'?_0x306f94(exports):typeof define==_0x3c1cbe(0x14f)&&define[_0x3c1cbe(0x13a)]?define([_0x3c1cbe(0x13c)],_0x306f94):(_0x1efd51=typeof globalThis<'u'?globalThis:_0x1efd51||self,_0x306f94(_0x1efd51['UniverProPrint']={}));}(this,function(_0x219e81){'use strict';const _0x177437=_0x228c;var _0x487339=(_0x48eb0b=>(_0x48eb0b[_0x177437(0x15c)]=_0x177437(0x15c),_0x48eb0b[_0x177437(0x148)]='Landscape',_0x48eb0b))(_0x487339||{}),_0x49c882=(_0x357002=>(_0x357002[_0x177437(0x154)]=_0x177437(0x154),_0x357002[_0x177437(0x14a)]=_0x177437(0x14a),_0x357002[_0x177437(0x12f)]=_0x177437(0x12f),_0x357002[_0x177437(0x142)]=_0x177437(0x142),_0x357002[_0x177437(0x152)]=_0x177437(0x152),_0x357002))(_0x49c882||{}),_0x1a1bc7=(_0x506ce7=>(_0x506ce7[_0x177437(0x156)]=_0x177437(0x156),_0x506ce7[_0x177437(0x13f)]='End',_0x506ce7[_0x177437(0x135)]=_0x177437(0x135),_0x506ce7))(_0x1a1bc7||{}),_0x63623e=(_0x55b40d=>(_0x55b40d[_0x177437(0x12e)]=_0x177437(0x12e),_0x55b40d[_0x177437(0x151)]=_0x177437(0x151),_0x55b40d[_0x177437(0x145)]=_0x177437(0x145),_0x55b40d[_0x177437(0x144)]=_0x177437(0x144),_0x55b40d[_0x177437(0x152)]=_0x177437(0x152),_0x55b40d))(_0x63623e||{});const _0x43d9e3={[_0x63623e[_0x177437(0x12e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x63623e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x63623e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x63623e['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x63623e['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x5cdd02=_0x177437(0x132),_0x3d1ba5=_0x177437(0x150);function _0xc61754(_0x5bc88d,_0x3acd3e,_0x1f97dd){const _0x20dbef=_0x177437,_0x4a4305=_0x1f97dd===_0x487339[_0x20dbef(0x15c)]?_0x5bc88d:_0x3acd3e,_0x570311=_0x1f97dd===_0x487339[_0x20dbef(0x15c)]?_0x3acd3e:_0x5bc88d,_0x7c401b=_0x20dbef(0x155)+_0x3d1ba5+_0x20dbef(0x146)+_0x4a4305+_0x20dbef(0x140)+_0x570311+_0x20dbef(0x138)+_0x5cdd02+',\x20.'+_0x5cdd02+_0x20dbef(0x134)+_0x3d1ba5+_0x20dbef(0x137)+_0x570311+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4a4305+_0x20dbef(0x15a),_0x1eaab8=document[_0x20dbef(0x14c)](_0x20dbef(0x158));return _0x1eaab8[_0x20dbef(0x153)]=_0x7c401b,_0x1eaab8['className']=_0x20dbef(0x141),_0x1eaab8;}_0x219e81[_0x177437(0x15e)]=_0x3d1ba5,_0x219e81[_0x177437(0x13e)]=_0x5cdd02,_0x219e81[_0x177437(0x13d)]=_0x43d9e3,_0x219e81[_0x177437(0x159)]=_0x1a1bc7,_0x219e81[_0x177437(0x15b)]=_0x487339,_0x219e81['PrintPaperMargin']=_0x63623e,_0x219e81[_0x177437(0x143)]=_0x49c882,_0x219e81[_0x177437(0x15d)]=_0xc61754,Object['defineProperty'](_0x219e81,Symbol[_0x177437(0x139)],{'value':_0x177437(0x14d)});}));function _0x1632(){const _0x4affac=['function','printing-canvas','Narrow','Custom','innerHTML','Origin','\x0a\x20\x20\x20\x20.','Start','1161195NwyNhe','style','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}','PrintDirection','Portrait','createPrintStyle','PRINT_CANVAS_CLASS','Normal','FitHeight','2sIWQzu','10ydeALH','printing-canvas-container','673589CnHsMz','\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.','Middle','1237170FAcdsB','\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\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.','toStringTag','amd','7532451gfvQAm','exports','PaperMarginMap','PRINT_CONTAINER_CLASS','End','px\x20','offline-printing-css','FitPage','PrintScale','None','Wide','\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','10PnQviY','Landscape','170686jKqpRG','FitWidth','1375952oBsXRm','createElement','Module','54732AoZvan'];_0x1632=function(){return _0x4affac;};return _0x1632();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.13",
|
|
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.1.10",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.10.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.13"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|