@univerjs-pro/print 0.10.1 → 0.10.2-nightly.202508071209
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';function _0x3d8c(){const _0x3f0efe=['px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','6192yqqtEA','5120BEGWyl','Start','PRINT_CONTAINER_CLASS','toStringTag','Narrow','179874tYKbGz','\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','Landscape','994018YSUXiT','Custom','18BIQTLs','Middle','printing-canvas-container','\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','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.',',\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.','createPrintStyle','style','Normal','PrintScale','PrintPaperMargin','378DPBsxN','End','FitPage','2311670ajnfCV','9728LlMrXo','FitWidth','Portrait','PrintAlign','Wide','281981XEEYxV','\x0a\x20\x20\x20\x20.','3878176gKrSow','Origin'];_0x3d8c=function(){return _0x3f0efe;};return _0x3d8c();}const _0x481f02=_0x4da3;(function(_0x43f920,_0x871624){const _0x511ae8=_0x4da3,_0x1765f4=_0x43f920();while(!![]){try{const _0x2f125b=-parseInt(_0x511ae8(0x20a))/0x1+parseInt(_0x511ae8(0x20d))/0x2+parseInt(_0x511ae8(0x1f6))/0x3*(parseInt(_0x511ae8(0x1fa))/0x4)+parseInt(_0x511ae8(0x205))/0x5*(parseInt(_0x511ae8(0x204))/0x6)+-parseInt(_0x511ae8(0x1ff))/0x7+-parseInt(_0x511ae8(0x201))/0x8+parseInt(_0x511ae8(0x20f))/0x9*(-parseInt(_0x511ae8(0x1f9))/0xa);if(_0x2f125b===_0x871624)break;else _0x1765f4['push'](_0x1765f4['shift']());}catch(_0x1a62c8){_0x1765f4['push'](_0x1765f4['shift']());}}}(_0x3d8c,0xa92d2));Object['defineProperty'](exports,Symbol[_0x481f02(0x208)],{'value':'Module'});var e=(_0x21c0b2=>(_0x21c0b2['Portrait']=_0x481f02(0x1fc),_0x21c0b2['Landscape']=_0x481f02(0x20c),_0x21c0b2))(e||{}),l=(_0x12132e=>(_0x12132e['Origin']=_0x481f02(0x202),_0x12132e[_0x481f02(0x1fb)]='FitWidth',_0x12132e['FitHeight']='FitHeight',_0x12132e[_0x481f02(0x1f8)]='FitPage',_0x12132e[_0x481f02(0x20e)]=_0x481f02(0x20e),_0x12132e))(l||{}),c=(_0x444bc8=>(_0x444bc8[_0x481f02(0x206)]=_0x481f02(0x206),_0x444bc8[_0x481f02(0x1f7)]=_0x481f02(0x1f7),_0x444bc8['Middle']=_0x481f02(0x210),_0x444bc8))(c||{}),i=(_0xa3cd21=>(_0xa3cd21[_0x481f02(0x1f3)]=_0x481f02(0x1f3),_0xa3cd21['Narrow']='Narrow',_0xa3cd21[_0x481f02(0x1fe)]=_0x481f02(0x1fe),_0xa3cd21[_0x481f02(0x213)]=_0x481f02(0x213),_0xa3cd21))(i||{});const h={[i['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x481f02(0x209)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x481f02(0x1fe)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x481f02(0x213)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x481f02(0x211),n='printing-canvas';function m(_0x4d6b56,_0x4c1ea8,_0x11ec71){const _0x449031=_0x481f02,_0x2fab1b=_0x11ec71===e[_0x449031(0x1fc)]?_0x4d6b56:_0x4c1ea8,_0x459884=_0x11ec71===e[_0x449031(0x1fc)]?_0x4c1ea8:_0x4d6b56,_0x2008ab=_0x449031(0x200)+n+_0x449031(0x212)+_0x2fab1b+'px\x20'+_0x459884+_0x449031(0x214)+r+_0x449031(0x215)+r+_0x449031(0x216)+n+_0x449031(0x20b)+_0x459884+_0x449031(0x203)+_0x2fab1b+'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}',_0x4f31b0=document['createElement'](_0x449031(0x1f2));return _0x4f31b0['innerHTML']=_0x2008ab,_0x4f31b0['className']='offline-printing-css',_0x4f31b0;}function _0x4da3(_0x2d9fb5,_0x33b9b6){const _0x3d8cda=_0x3d8c();return _0x4da3=function(_0x4da30c,_0x487f4a){_0x4da30c=_0x4da30c-0x1f2;let _0x24477f=_0x3d8cda[_0x4da30c];return _0x24477f;},_0x4da3(_0x2d9fb5,_0x33b9b6);}exports['PRINT_CANVAS_CLASS']=n,exports[_0x481f02(0x207)]=r,exports['PaperMarginMap']=h,exports[_0x481f02(0x1fd)]=c,exports['PrintDirection']=e,exports[_0x481f02(0x1f5)]=i,exports[_0x481f02(0x1f4)]=l,exports[_0x481f02(0x217)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1995b0=_0x1fcc;(function(_0x4e00f9,_0x315992){const _0x1933ff=_0x1fcc,_0x59586c=_0x4e00f9();while(!![]){try{const _0x3e8ce0=-parseInt(_0x1933ff(0x182))/0x1+parseInt(_0x1933ff(0x190))/0x2+parseInt(_0x1933ff(0x19b))/0x3+-parseInt(_0x1933ff(0x18b))/0x4*(parseInt(_0x1933ff(0x199))/0x5)+-parseInt(_0x1933ff(0x19d))/0x6+parseInt(_0x1933ff(0x1a0))/0x7+-parseInt(_0x1933ff(0x185))/0x8;if(_0x3e8ce0===_0x315992)break;else _0x59586c['push'](_0x59586c['shift']());}catch(_0x413d11){_0x59586c['push'](_0x59586c['shift']());}}}(_0x2983,0x2780e));function _0x1fcc(_0x8ca251,_0x15812c){const _0x29839c=_0x2983();return _0x1fcc=function(_0x1fccc1,_0x17fc00){_0x1fccc1=_0x1fccc1-0x181;let _0x1c33ea=_0x29839c[_0x1fccc1];return _0x1c33ea;},_0x1fcc(_0x8ca251,_0x15812c);}var e=(_0x1318bf=>(_0x1318bf[_0x1995b0(0x193)]='Portrait',_0x1318bf['Landscape']=_0x1995b0(0x196),_0x1318bf))(e||{}),l=(_0x1b3b84=>(_0x1b3b84[_0x1995b0(0x192)]=_0x1995b0(0x192),_0x1b3b84[_0x1995b0(0x191)]='FitWidth',_0x1b3b84[_0x1995b0(0x194)]=_0x1995b0(0x194),_0x1b3b84[_0x1995b0(0x197)]=_0x1995b0(0x197),_0x1b3b84[_0x1995b0(0x19e)]=_0x1995b0(0x19e),_0x1b3b84))(l||{}),m=(_0x4e21a5=>(_0x4e21a5[_0x1995b0(0x187)]=_0x1995b0(0x187),_0x4e21a5[_0x1995b0(0x19a)]=_0x1995b0(0x19a),_0x4e21a5[_0x1995b0(0x189)]=_0x1995b0(0x189),_0x4e21a5))(m||{}),o=(_0x83c8ee=>(_0x83c8ee['Normal']='Normal',_0x83c8ee[_0x1995b0(0x186)]=_0x1995b0(0x186),_0x83c8ee[_0x1995b0(0x1a1)]=_0x1995b0(0x1a1),_0x83c8ee[_0x1995b0(0x18f)]=_0x1995b0(0x18f),_0x83c8ee))(o||{});const c={[o[_0x1995b0(0x18a)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1995b0(0x186)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1995b0(0x1a1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1995b0(0x18c),d=_0x1995b0(0x18e);function _0x2983(){const _0x45988a=['End','452715WwCMDt','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.','1104210qQjkjR','Custom','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}','1072113vfuKyf','Wide','createElement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','\x0a\x20\x20\x20\x20.','28387UvjRlx','offline-printing-css','innerHTML','786416wIgmQT','Narrow','Start',',\x20.','Middle','Normal','2004ZtxEml','printing-canvas-container','px\x20','printing-canvas','None','629516jSrEJX','FitWidth','Origin','Portrait','FitHeight','className','Landscape','FitPage','\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','1460ADscfX'];_0x2983=function(){return _0x45988a;};return _0x2983();}function g(_0x4d7a8a,_0x4154e3,_0x3f97d9){const _0x444718=_0x1995b0,_0x2f461e=_0x3f97d9===e['Portrait']?_0x4d7a8a:_0x4154e3,_0x2cae3c=_0x3f97d9===e[_0x444718(0x193)]?_0x4154e3:_0x4d7a8a,_0x2dc826=_0x444718(0x181)+d+_0x444718(0x198)+_0x2f461e+_0x444718(0x18d)+_0x2cae3c+_0x444718(0x19c)+p+_0x444718(0x188)+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+'\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'+_0x2cae3c+_0x444718(0x1a3)+_0x2f461e+_0x444718(0x19f),_0x21c35a=document[_0x444718(0x1a2)]('style');return _0x21c35a[_0x444718(0x184)]=_0x2dc826,_0x21c35a[_0x444718(0x195)]=_0x444718(0x183),_0x21c35a;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1995b0=_0x1fcc;(function(_0x4e00f9,_0x315992){const _0x1933ff=_0x1fcc,_0x59586c=_0x4e00f9();while(!![]){try{const _0x3e8ce0=-parseInt(_0x1933ff(0x182))/0x1+parseInt(_0x1933ff(0x190))/0x2+parseInt(_0x1933ff(0x19b))/0x3+-parseInt(_0x1933ff(0x18b))/0x4*(parseInt(_0x1933ff(0x199))/0x5)+-parseInt(_0x1933ff(0x19d))/0x6+parseInt(_0x1933ff(0x1a0))/0x7+-parseInt(_0x1933ff(0x185))/0x8;if(_0x3e8ce0===_0x315992)break;else _0x59586c['push'](_0x59586c['shift']());}catch(_0x413d11){_0x59586c['push'](_0x59586c['shift']());}}}(_0x2983,0x2780e));function _0x1fcc(_0x8ca251,_0x15812c){const _0x29839c=_0x2983();return _0x1fcc=function(_0x1fccc1,_0x17fc00){_0x1fccc1=_0x1fccc1-0x181;let _0x1c33ea=_0x29839c[_0x1fccc1];return _0x1c33ea;},_0x1fcc(_0x8ca251,_0x15812c);}var e=(_0x1318bf=>(_0x1318bf[_0x1995b0(0x193)]='Portrait',_0x1318bf['Landscape']=_0x1995b0(0x196),_0x1318bf))(e||{}),l=(_0x1b3b84=>(_0x1b3b84[_0x1995b0(0x192)]=_0x1995b0(0x192),_0x1b3b84[_0x1995b0(0x191)]='FitWidth',_0x1b3b84[_0x1995b0(0x194)]=_0x1995b0(0x194),_0x1b3b84[_0x1995b0(0x197)]=_0x1995b0(0x197),_0x1b3b84[_0x1995b0(0x19e)]=_0x1995b0(0x19e),_0x1b3b84))(l||{}),m=(_0x4e21a5=>(_0x4e21a5[_0x1995b0(0x187)]=_0x1995b0(0x187),_0x4e21a5[_0x1995b0(0x19a)]=_0x1995b0(0x19a),_0x4e21a5[_0x1995b0(0x189)]=_0x1995b0(0x189),_0x4e21a5))(m||{}),o=(_0x83c8ee=>(_0x83c8ee['Normal']='Normal',_0x83c8ee[_0x1995b0(0x186)]=_0x1995b0(0x186),_0x83c8ee[_0x1995b0(0x1a1)]=_0x1995b0(0x1a1),_0x83c8ee[_0x1995b0(0x18f)]=_0x1995b0(0x18f),_0x83c8ee))(o||{});const c={[o[_0x1995b0(0x18a)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1995b0(0x186)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1995b0(0x1a1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1995b0(0x18c),d=_0x1995b0(0x18e);function _0x2983(){const _0x45988a=['End','452715WwCMDt','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.','1104210qQjkjR','Custom','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}','1072113vfuKyf','Wide','createElement','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','\x0a\x20\x20\x20\x20.','28387UvjRlx','offline-printing-css','innerHTML','786416wIgmQT','Narrow','Start',',\x20.','Middle','Normal','2004ZtxEml','printing-canvas-container','px\x20','printing-canvas','None','629516jSrEJX','FitWidth','Origin','Portrait','FitHeight','className','Landscape','FitPage','\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','1460ADscfX'];_0x2983=function(){return _0x45988a;};return _0x2983();}function g(_0x4d7a8a,_0x4154e3,_0x3f97d9){const _0x444718=_0x1995b0,_0x2f461e=_0x3f97d9===e['Portrait']?_0x4d7a8a:_0x4154e3,_0x2cae3c=_0x3f97d9===e[_0x444718(0x193)]?_0x4154e3:_0x4d7a8a,_0x2dc826=_0x444718(0x181)+d+_0x444718(0x198)+_0x2f461e+_0x444718(0x18d)+_0x2cae3c+_0x444718(0x19c)+p+_0x444718(0x188)+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+'\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'+_0x2cae3c+_0x444718(0x1a3)+_0x2f461e+_0x444718(0x19f),_0x21c35a=document[_0x444718(0x1a2)]('style');return _0x21c35a[_0x444718(0x184)]=_0x2dc826,_0x21c35a[_0x444718(0x195)]=_0x444718(0x183),_0x21c35a;}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2be0(_0x301ef2,_0x139792){const _0xec9588=_0xec95();return _0x2be0=function(_0x2be0d5,_0x92c9e1){_0x2be0d5=_0x2be0d5-0xf6;let _0x2f895d=_0xec9588[_0x2be0d5];return _0x2f895d;},_0x2be0(_0x301ef2,_0x139792);}(function(_0x25b701,_0x136bb4){const _0x62155f=_0x2be0,_0x5cb645=_0x25b701();while(!![]){try{const _0xb5d51c=parseInt(_0x62155f(0xfe))/0x1*(-parseInt(_0x62155f(0x10c))/0x2)+parseInt(_0x62155f(0x11a))/0x3+parseInt(_0x62155f(0x116))/0x4*(parseInt(_0x62155f(0x11d))/0x5)+parseInt(_0x62155f(0x10d))/0x6+parseInt(_0x62155f(0x117))/0x7+-parseInt(_0x62155f(0x110))/0x8+parseInt(_0x62155f(0x109))/0x9;if(_0xb5d51c===_0x136bb4)break;else _0x5cb645['push'](_0x5cb645['shift']());}catch(_0x4b07e7){_0x5cb645['push'](_0x5cb645['shift']());}}}(_0xec95,0x79474),function(_0x3d5d63,_0x5aba8a){const _0x30cfbd=_0x2be0;typeof exports==_0x30cfbd(0x11b)&&typeof module<'u'?_0x5aba8a(exports):typeof define==_0x30cfbd(0x101)&&define[_0x30cfbd(0x106)]?define([_0x30cfbd(0x11c)],_0x5aba8a):(_0x3d5d63=typeof globalThis<'u'?globalThis:_0x3d5d63||self,_0x5aba8a(_0x3d5d63['UniverProPrint']={}));}(this,function(_0x5bf3c7){'use strict';const _0x171b77=_0x2be0;var _0x3d7efe=(_0x4d84f2=>(_0x4d84f2[_0x171b77(0xff)]=_0x171b77(0xff),_0x4d84f2['Landscape']='Landscape',_0x4d84f2))(_0x3d7efe||{}),_0xf4b76c=(_0xe28241=>(_0xe28241[_0x171b77(0x11f)]='Origin',_0xe28241[_0x171b77(0x10a)]=_0x171b77(0x10a),_0xe28241[_0x171b77(0x103)]=_0x171b77(0x103),_0xe28241['FitPage']=_0x171b77(0x105),_0xe28241['Custom']=_0x171b77(0x114),_0xe28241))(_0xf4b76c||{}),_0x4b3029=(_0x108402=>(_0x108402[_0x171b77(0x111)]='Start',_0x108402[_0x171b77(0xf6)]=_0x171b77(0xf6),_0x108402['Middle']=_0x171b77(0x10f),_0x108402))(_0x4b3029||{}),_0x2f9bf2=(_0x4ff6a5=>(_0x4ff6a5[_0x171b77(0x104)]='Normal',_0x4ff6a5[_0x171b77(0x107)]=_0x171b77(0x107),_0x4ff6a5[_0x171b77(0x100)]=_0x171b77(0x100),_0x4ff6a5['None']=_0x171b77(0xf7),_0x4ff6a5))(_0x2f9bf2||{});const _0x408dcb={[_0x2f9bf2['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x2f9bf2[_0x171b77(0x107)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x2f9bf2[_0x171b77(0x100)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x2f9bf2[_0x171b77(0xf7)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x297ac9=_0x171b77(0x115),_0x227bab=_0x171b77(0xfb);function _0x4fc95e(_0x19d181,_0x88aeae,_0x3a7397){const _0x2bcc21=_0x171b77,_0xfa5b71=_0x3a7397===_0x3d7efe[_0x2bcc21(0xff)]?_0x19d181:_0x88aeae,_0x31e662=_0x3a7397===_0x3d7efe[_0x2bcc21(0xff)]?_0x88aeae:_0x19d181,_0x56fec1=_0x2bcc21(0x102)+_0x227bab+_0x2bcc21(0xfd)+_0xfa5b71+_0x2bcc21(0x119)+_0x31e662+'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.'+_0x297ac9+',\x20.'+_0x297ac9+_0x2bcc21(0x120)+_0x227bab+_0x2bcc21(0x108)+_0x31e662+_0x2bcc21(0x113)+_0xfa5b71+_0x2bcc21(0x121),_0x1359d4=document['createElement']('style');return _0x1359d4['innerHTML']=_0x56fec1,_0x1359d4[_0x2bcc21(0xfa)]=_0x2bcc21(0xfc),_0x1359d4;}_0x5bf3c7['PRINT_CANVAS_CLASS']=_0x227bab,_0x5bf3c7[_0x171b77(0x10e)]=_0x297ac9,_0x5bf3c7[_0x171b77(0x122)]=_0x408dcb,_0x5bf3c7[_0x171b77(0xf8)]=_0x4b3029,_0x5bf3c7[_0x171b77(0x10b)]=_0x3d7efe,_0x5bf3c7['PrintPaperMargin']=_0x2f9bf2,_0x5bf3c7['PrintScale']=_0xf4b76c,_0x5bf3c7[_0x171b77(0xf9)]=_0x4fc95e,Object[_0x171b77(0x11e)](_0x5bf3c7,Symbol[_0x171b77(0x118)],{'value':_0x171b77(0x112)});}));function _0xec95(){const _0x50fe65=['toStringTag','px\x20','477468ZHyEAM','object','exports','2880GsVaIc','defineProperty','Origin','\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.','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}','PaperMarginMap','End','None','PrintAlign','createPrintStyle','className','printing-canvas','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','5371IjnqDl','Portrait','Wide','function','\x0a\x20\x20\x20\x20.','FitHeight','Normal','FitPage','amd','Narrow','\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','6626304eYEwiY','FitWidth','PrintDirection','94qbFqiM','2214990vVRzYa','PRINT_CONTAINER_CLASS','Middle','7889960njRSkV','Start','Module','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','printing-canvas-container','2632zfTPTP','642971RpsAQz'];_0xec95=function(){return _0x50fe65;};return _0xec95();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2-nightly.202508071209",
|
|
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.8.3",
|
|
46
46
|
"vite": "^7.0.6",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.10.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|