@univerjs-pro/print 0.13.0 → 0.14.0
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';function
|
|
1
|
+
'use strict';function _0x152e(_0x4567e1,_0x1f1fce){_0x4567e1=_0x4567e1-0xa8;const _0x466a6f=_0x466a();let _0x152ea7=_0x466a6f[_0x4567e1];return _0x152ea7;}const _0x33e1e0=_0x152e;(function(_0x328ab9,_0x423824){const _0x2bf0ad=_0x152e,_0x39bc9c=_0x328ab9();while(!![]){try{const _0x53c5fc=parseInt(_0x2bf0ad(0xc3))/0x1*(parseInt(_0x2bf0ad(0xc7))/0x2)+-parseInt(_0x2bf0ad(0xc6))/0x3+parseInt(_0x2bf0ad(0xd0))/0x4*(-parseInt(_0x2bf0ad(0xcc))/0x5)+parseInt(_0x2bf0ad(0xbc))/0x6+parseInt(_0x2bf0ad(0xb0))/0x7*(-parseInt(_0x2bf0ad(0xc2))/0x8)+-parseInt(_0x2bf0ad(0xbf))/0x9+parseInt(_0x2bf0ad(0xd1))/0xa;if(_0x53c5fc===_0x423824)break;else _0x39bc9c['push'](_0x39bc9c['shift']());}catch(_0x261250){_0x39bc9c['push'](_0x39bc9c['shift']());}}}(_0x466a,0x7f8eb));function _0x466a(){const _0x276076=['End','PrintAlign','\x0a\x20\x20\x20\x20.','7AfAddY','style','PrintScale','FitWidth','PaperMarginMap','offline-printing-css','Landscape','className','Module','createPrintStyle','Wide','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}','654804lGgkPB','printing-canvas','Middle','2536812sYfdoD','None','\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','7933432CaoVpD','1UnznFJ','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','1978833yfCrKF','1237582GuKYvO','PRINT_CANVAS_CLASS','Narrow','PrintPaperMargin','Start','5eMbmAg','FitHeight','\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.','printing-canvas-container','1846436FlEBFg','21893170OaEWfX','PRINT_CONTAINER_CLASS','PrintDirection','Normal','defineProperty','Custom','Portrait'];_0x466a=function(){return _0x276076;};return _0x466a();}Object[_0x33e1e0(0xaa)](exports,Symbol['toStringTag'],{'value':_0x33e1e0(0xb8)});var i=(_0x44f452=>(_0x44f452[_0x33e1e0(0xac)]=_0x33e1e0(0xac),_0x44f452[_0x33e1e0(0xb6)]=_0x33e1e0(0xb6),_0x44f452))(i||{}),l=(_0x5abe6b=>(_0x5abe6b['Origin']='Origin',_0x5abe6b[_0x33e1e0(0xb3)]='FitWidth',_0x5abe6b['FitHeight']=_0x33e1e0(0xcd),_0x5abe6b[_0x33e1e0(0xc4)]='FitPage',_0x5abe6b['Custom']=_0x33e1e0(0xab),_0x5abe6b))(l||{}),m=(_0x2aced9=>(_0x2aced9['Start']=_0x33e1e0(0xcb),_0x2aced9['End']=_0x33e1e0(0xad),_0x2aced9['Middle']=_0x33e1e0(0xbe),_0x2aced9))(m||{}),o=(_0x100170=>(_0x100170['Normal']=_0x33e1e0(0xa9),_0x100170[_0x33e1e0(0xc9)]=_0x33e1e0(0xc9),_0x100170[_0x33e1e0(0xba)]=_0x33e1e0(0xba),_0x100170[_0x33e1e0(0xc0)]=_0x33e1e0(0xc0),_0x100170[_0x33e1e0(0xab)]='Custom',_0x100170))(o||{});const g={[o[_0x33e1e0(0xa9)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x33e1e0(0xc9)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x33e1e0(0xba)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x33e1e0(0xab)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x33e1e0(0xcf),n=_0x33e1e0(0xbd);function h(_0x1e1e54,_0x5bbe6b,_0x38ef61){const _0x43e622=_0x33e1e0,_0x56a24c=_0x38ef61===i[_0x43e622(0xac)]?_0x1e1e54:_0x5bbe6b,_0x569e48=_0x38ef61===i[_0x43e622(0xac)]?_0x5bbe6b:_0x1e1e54,_0x36f931=_0x43e622(0xaf)+n+_0x43e622(0xc5)+_0x56a24c+'px\x20'+_0x569e48+'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+_0x43e622(0xce)+n+_0x43e622(0xc1)+_0x569e48+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x56a24c+_0x43e622(0xbb),_0x36fb4b=document['createElement'](_0x43e622(0xb1));return _0x36fb4b['innerHTML']=_0x36f931,_0x36fb4b[_0x43e622(0xb7)]=_0x43e622(0xb5),_0x36fb4b;}exports[_0x33e1e0(0xc8)]=n,exports[_0x33e1e0(0xd2)]=r,exports[_0x33e1e0(0xb4)]=g,exports[_0x33e1e0(0xae)]=m,exports[_0x33e1e0(0xa8)]=i,exports[_0x33e1e0(0xca)]=o,exports[_0x33e1e0(0xb2)]=l,exports[_0x33e1e0(0xb9)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x18d263=_0x1c20;(function(_0x2b4a78,_0x3ead08){const _0x18aa3d=_0x1c20,_0x1f5f16=_0x2b4a78();while(!![]){try{const _0x3a8d14=parseInt(_0x18aa3d(0x1a1))/0x1+parseInt(_0x18aa3d(0x1a3))/0x2+parseInt(_0x18aa3d(0x1a5))/0x3*(parseInt(_0x18aa3d(0x18f))/0x4)+-parseInt(_0x18aa3d(0x18d))/0x5*(parseInt(_0x18aa3d(0x18c))/0x6)+parseInt(_0x18aa3d(0x194))/0x7*(parseInt(_0x18aa3d(0x1ac))/0x8)+parseInt(_0x18aa3d(0x186))/0x9+-parseInt(_0x18aa3d(0x189))/0xa*(parseInt(_0x18aa3d(0x192))/0xb);if(_0x3a8d14===_0x3ead08)break;else _0x1f5f16['push'](_0x1f5f16['shift']());}catch(_0x145eae){_0x1f5f16['push'](_0x1f5f16['shift']());}}}(_0x37a7,0x1d003));var e=(_0x25697e=>(_0x25697e[_0x18d263(0x19b)]=_0x18d263(0x19b),_0x25697e[_0x18d263(0x1a6)]=_0x18d263(0x1a6),_0x25697e))(e||{}),h=(_0x5464cc=>(_0x5464cc[_0x18d263(0x19c)]=_0x18d263(0x19c),_0x5464cc[_0x18d263(0x185)]=_0x18d263(0x185),_0x5464cc[_0x18d263(0x18a)]='FitHeight',_0x5464cc[_0x18d263(0x191)]=_0x18d263(0x191),_0x5464cc[_0x18d263(0x193)]=_0x18d263(0x193),_0x5464cc))(h||{}),l=(_0xc8a18e=>(_0xc8a18e[_0x18d263(0x19d)]=_0x18d263(0x19d),_0xc8a18e[_0x18d263(0x199)]=_0x18d263(0x199),_0xc8a18e['Middle']=_0x18d263(0x1a8),_0xc8a18e))(l||{}),o=(_0x396f33=>(_0x396f33[_0x18d263(0x1a0)]='Normal',_0x396f33[_0x18d263(0x19e)]='Narrow',_0x396f33[_0x18d263(0x1aa)]='Wide',_0x396f33['None']=_0x18d263(0x18e),_0x396f33[_0x18d263(0x193)]=_0x18d263(0x193),_0x396f33))(o||{});const c={[o[_0x18d263(0x1a0)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x18d263(0x19e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x18d263(0x1aa)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x18d263(0x18e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x18d263(0x1ab),d=_0x18d263(0x197);function g(_0x222ad8,_0x32879e,_0x935c3e){const _0x1e1d67=_0x18d263,_0x36d04f=_0x935c3e===e[_0x1e1d67(0x19b)]?_0x222ad8:_0x32879e,_0x15d7ea=_0x935c3e===e[_0x1e1d67(0x19b)]?_0x32879e:_0x222ad8,_0x1050b2=_0x1e1d67(0x1a9)+d+_0x1e1d67(0x19f)+_0x36d04f+_0x1e1d67(0x196)+_0x15d7ea+_0x1e1d67(0x19a)+p+_0x1e1d67(0x1a4)+p+_0x1e1d67(0x190)+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'+_0x15d7ea+_0x1e1d67(0x1a7)+_0x36d04f+_0x1e1d67(0x187),_0x4da4e9=document[_0x1e1d67(0x188)](_0x1e1d67(0x18b));return _0x4da4e9[_0x1e1d67(0x198)]=_0x1050b2,_0x4da4e9[_0x1e1d67(0x1a2)]=_0x1e1d67(0x195),_0x4da4e9;}function _0x1c20(_0x5b3960,_0x90bc25){_0x5b3960=_0x5b3960-0x185;const _0x37a7dd=_0x37a7();let _0x1c2099=_0x37a7dd[_0x5b3960];return _0x1c2099;}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};function _0x37a7(){const _0x23179e=['Narrow','\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','Normal','53283vQfdXl','className','468002SiIDVj',',\x20.','21WnUqCw','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','\x0a\x20\x20\x20\x20.','Wide','printing-canvas-container','557624dUQxfC','FitWidth','2078811DdODcT','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}','createElement','4750730QRCYeC','FitHeight','style','126EffyEL','6460TeimPq','None','18872btezeF','\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.','FitPage','11UigYyO','Custom','7EFVNSV','offline-printing-css','px\x20','printing-canvas','innerHTML','End','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','Origin','Start'];_0x37a7=function(){return _0x23179e;};return _0x37a7();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x18d263=_0x1c20;(function(_0x2b4a78,_0x3ead08){const _0x18aa3d=_0x1c20,_0x1f5f16=_0x2b4a78();while(!![]){try{const _0x3a8d14=parseInt(_0x18aa3d(0x1a1))/0x1+parseInt(_0x18aa3d(0x1a3))/0x2+parseInt(_0x18aa3d(0x1a5))/0x3*(parseInt(_0x18aa3d(0x18f))/0x4)+-parseInt(_0x18aa3d(0x18d))/0x5*(parseInt(_0x18aa3d(0x18c))/0x6)+parseInt(_0x18aa3d(0x194))/0x7*(parseInt(_0x18aa3d(0x1ac))/0x8)+parseInt(_0x18aa3d(0x186))/0x9+-parseInt(_0x18aa3d(0x189))/0xa*(parseInt(_0x18aa3d(0x192))/0xb);if(_0x3a8d14===_0x3ead08)break;else _0x1f5f16['push'](_0x1f5f16['shift']());}catch(_0x145eae){_0x1f5f16['push'](_0x1f5f16['shift']());}}}(_0x37a7,0x1d003));var e=(_0x25697e=>(_0x25697e[_0x18d263(0x19b)]=_0x18d263(0x19b),_0x25697e[_0x18d263(0x1a6)]=_0x18d263(0x1a6),_0x25697e))(e||{}),h=(_0x5464cc=>(_0x5464cc[_0x18d263(0x19c)]=_0x18d263(0x19c),_0x5464cc[_0x18d263(0x185)]=_0x18d263(0x185),_0x5464cc[_0x18d263(0x18a)]='FitHeight',_0x5464cc[_0x18d263(0x191)]=_0x18d263(0x191),_0x5464cc[_0x18d263(0x193)]=_0x18d263(0x193),_0x5464cc))(h||{}),l=(_0xc8a18e=>(_0xc8a18e[_0x18d263(0x19d)]=_0x18d263(0x19d),_0xc8a18e[_0x18d263(0x199)]=_0x18d263(0x199),_0xc8a18e['Middle']=_0x18d263(0x1a8),_0xc8a18e))(l||{}),o=(_0x396f33=>(_0x396f33[_0x18d263(0x1a0)]='Normal',_0x396f33[_0x18d263(0x19e)]='Narrow',_0x396f33[_0x18d263(0x1aa)]='Wide',_0x396f33['None']=_0x18d263(0x18e),_0x396f33[_0x18d263(0x193)]=_0x18d263(0x193),_0x396f33))(o||{});const c={[o[_0x18d263(0x1a0)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x18d263(0x19e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x18d263(0x1aa)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x18d263(0x18e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x18d263(0x1ab),d=_0x18d263(0x197);function g(_0x222ad8,_0x32879e,_0x935c3e){const _0x1e1d67=_0x18d263,_0x36d04f=_0x935c3e===e[_0x1e1d67(0x19b)]?_0x222ad8:_0x32879e,_0x15d7ea=_0x935c3e===e[_0x1e1d67(0x19b)]?_0x32879e:_0x222ad8,_0x1050b2=_0x1e1d67(0x1a9)+d+_0x1e1d67(0x19f)+_0x36d04f+_0x1e1d67(0x196)+_0x15d7ea+_0x1e1d67(0x19a)+p+_0x1e1d67(0x1a4)+p+_0x1e1d67(0x190)+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'+_0x15d7ea+_0x1e1d67(0x1a7)+_0x36d04f+_0x1e1d67(0x187),_0x4da4e9=document[_0x1e1d67(0x188)](_0x1e1d67(0x18b));return _0x4da4e9[_0x1e1d67(0x198)]=_0x1050b2,_0x4da4e9[_0x1e1d67(0x1a2)]=_0x1e1d67(0x195),_0x4da4e9;}function _0x1c20(_0x5b3960,_0x90bc25){_0x5b3960=_0x5b3960-0x185;const _0x37a7dd=_0x37a7();let _0x1c2099=_0x37a7dd[_0x5b3960];return _0x1c2099;}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};function _0x37a7(){const _0x23179e=['Narrow','\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','Normal','53283vQfdXl','className','468002SiIDVj',',\x20.','21WnUqCw','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','\x0a\x20\x20\x20\x20.','Wide','printing-canvas-container','557624dUQxfC','FitWidth','2078811DdODcT','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}','createElement','4750730QRCYeC','FitHeight','style','126EffyEL','6460TeimPq','None','18872btezeF','\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.','FitPage','11UigYyO','Custom','7EFVNSV','offline-printing-css','px\x20','printing-canvas','innerHTML','End','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','Origin','Start'];_0x37a7=function(){return _0x23179e;};return _0x37a7();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x45a2(){const _0xf46684=['px\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.','Landscape','Wide','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','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitHeight','20EyuxxZ','Start','3039534zoySjl','2014856DziXnD','UniverProPrint','Module','createPrintStyle','style','FitPage','PrintScale','className','\x0a\x20\x20\x20\x20.','printing-canvas-container','object','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.','567189fvllWi','1618720YREFQM','721879IsPGTO','None','printing-canvas','Origin','PRINT_CANVAS_CLASS','36281otseqS','Narrow','PrintDirection','Custom','Middle','5261694xLVpwL','defineProperty','256HGPEAj','toStringTag','PaperMarginMap','exports','Portrait','createElement','function','End','innerHTML','PrintAlign','Normal','4xvmmNB'];_0x45a2=function(){return _0xf46684;};return _0x45a2();}function _0x43dc(_0x58f0bd,_0x351301){_0x58f0bd=_0x58f0bd-0x1a0;const _0x45a27f=_0x45a2();let _0x43dcc2=_0x45a27f[_0x58f0bd];return _0x43dcc2;}(function(_0x39210c,_0x341f92){const _0x1a54f5=_0x43dc,_0x23a66a=_0x39210c();while(!![]){try{const _0x15cb3c=-parseInt(_0x1a54f5(0x1c4))/0x1+parseInt(_0x1a54f5(0x1b6))/0x2+parseInt(_0x1a54f5(0x1c2))/0x3*(parseInt(_0x1a54f5(0x1a9))/0x4)+-parseInt(_0x1a54f5(0x1c3))/0x5+parseInt(_0x1a54f5(0x1ce))/0x6+-parseInt(_0x1a54f5(0x1c9))/0x7*(-parseInt(_0x1a54f5(0x1d0))/0x8)+-parseInt(_0x1a54f5(0x1b5))/0x9*(parseInt(_0x1a54f5(0x1b3))/0xa);if(_0x15cb3c===_0x341f92)break;else _0x23a66a['push'](_0x23a66a['shift']());}catch(_0x1a3127){_0x23a66a['push'](_0x23a66a['shift']());}}}(_0x45a2,0x7e84d),function(_0x176bf6,_0xa6b909){const _0x117a0b=_0x43dc;typeof exports==_0x117a0b(0x1c0)&&typeof module<'u'?_0xa6b909(exports):typeof define==_0x117a0b(0x1a4)&&define['amd']?define([_0x117a0b(0x1a1)],_0xa6b909):(_0x176bf6=typeof globalThis<'u'?globalThis:_0x176bf6||self,_0xa6b909(_0x176bf6[_0x117a0b(0x1b7)]={}));}(this,function(_0x5a5e64){'use strict';const _0x3c28a9=_0x43dc;var _0x22dd94=(_0x34cd1d=>(_0x34cd1d['Portrait']=_0x3c28a9(0x1a2),_0x34cd1d[_0x3c28a9(0x1ad)]=_0x3c28a9(0x1ad),_0x34cd1d))(_0x22dd94||{}),_0x36275f=(_0x184620=>(_0x184620[_0x3c28a9(0x1c7)]=_0x3c28a9(0x1c7),_0x184620[_0x3c28a9(0x1b0)]=_0x3c28a9(0x1b0),_0x184620[_0x3c28a9(0x1b2)]=_0x3c28a9(0x1b2),_0x184620['FitPage']=_0x3c28a9(0x1bb),_0x184620[_0x3c28a9(0x1cc)]=_0x3c28a9(0x1cc),_0x184620))(_0x36275f||{}),_0x180a09=(_0x20b3e4=>(_0x20b3e4[_0x3c28a9(0x1b4)]='Start',_0x20b3e4[_0x3c28a9(0x1a5)]=_0x3c28a9(0x1a5),_0x20b3e4[_0x3c28a9(0x1cd)]=_0x3c28a9(0x1cd),_0x20b3e4))(_0x180a09||{}),_0x84a547=(_0x164cdd=>(_0x164cdd[_0x3c28a9(0x1a8)]=_0x3c28a9(0x1a8),_0x164cdd[_0x3c28a9(0x1ca)]=_0x3c28a9(0x1ca),_0x164cdd['Wide']='Wide',_0x164cdd[_0x3c28a9(0x1c5)]=_0x3c28a9(0x1c5),_0x164cdd[_0x3c28a9(0x1cc)]=_0x3c28a9(0x1cc),_0x164cdd))(_0x84a547||{});const _0x3a76f1={[_0x84a547['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x84a547[_0x3c28a9(0x1ca)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x84a547[_0x3c28a9(0x1ae)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x84a547[_0x3c28a9(0x1c5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x84a547[_0x3c28a9(0x1cc)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x26a1cd=_0x3c28a9(0x1bf),_0x54b6c2=_0x3c28a9(0x1c6);function _0x86fa05(_0x2249b0,_0x471e96,_0x146826){const _0x5b4aa2=_0x3c28a9,_0x43e980=_0x146826===_0x22dd94[_0x5b4aa2(0x1a2)]?_0x2249b0:_0x471e96,_0xdccd8a=_0x146826===_0x22dd94[_0x5b4aa2(0x1a2)]?_0x471e96:_0x2249b0,_0x139f40=_0x5b4aa2(0x1be)+_0x54b6c2+'\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'+_0x43e980+_0x5b4aa2(0x1aa)+_0xdccd8a+_0x5b4aa2(0x1c1)+_0x26a1cd+',\x20.'+_0x26a1cd+_0x5b4aa2(0x1ac)+_0x54b6c2+'\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'+_0xdccd8a+_0x5b4aa2(0x1b1)+_0x43e980+_0x5b4aa2(0x1af),_0x2d9af4=document[_0x5b4aa2(0x1a3)](_0x5b4aa2(0x1ba));return _0x2d9af4[_0x5b4aa2(0x1a6)]=_0x139f40,_0x2d9af4[_0x5b4aa2(0x1bd)]=_0x5b4aa2(0x1ab),_0x2d9af4;}_0x5a5e64[_0x3c28a9(0x1c8)]=_0x54b6c2,_0x5a5e64['PRINT_CONTAINER_CLASS']=_0x26a1cd,_0x5a5e64[_0x3c28a9(0x1a0)]=_0x3a76f1,_0x5a5e64[_0x3c28a9(0x1a7)]=_0x180a09,_0x5a5e64[_0x3c28a9(0x1cb)]=_0x22dd94,_0x5a5e64['PrintPaperMargin']=_0x84a547,_0x5a5e64[_0x3c28a9(0x1bc)]=_0x36275f,_0x5a5e64[_0x3c28a9(0x1b9)]=_0x86fa05,Object[_0x3c28a9(0x1cf)](_0x5a5e64,Symbol[_0x3c28a9(0x1d1)],{'value':_0x3c28a9(0x1b8)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
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",
|