@univerjs-pro/print 0.10.0 → 0.10.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';function
|
|
1
|
+
'use strict';const _0x54ad9e=_0x7c33;function _0x7c33(_0xf73cc1,_0x8d4836){const _0x1f88e7=_0x1f88();return _0x7c33=function(_0x7c333f,_0x58226d){_0x7c333f=_0x7c333f-0x1bd;let _0x5146f1=_0x1f88e7[_0x7c333f];return _0x5146f1;},_0x7c33(_0xf73cc1,_0x8d4836);}function _0x1f88(){const _0x1e3931=['2128114ncbllZ','Narrow','px\x20','toStringTag','4836VNXVlI','1832998UTyfOM','8YDoKnR','style','7532483DkYdUr','PrintPaperMargin','Wide','Normal','Start','2021889ZJtOKY','FitHeight','createElement',',\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}','FitWidth','Module','13864113yRHQoF','2145OkYrTL','End','Middle','\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','PaperMarginMap','PrintAlign','Portrait','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','Origin','Custom','PrintScale','FitPage','PRINT_CANVAS_CLASS','1571220LEqsLb','defineProperty','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.','None','createPrintStyle','printing-canvas','PrintDirection'];_0x1f88=function(){return _0x1e3931;};return _0x1f88();}(function(_0x143765,_0x3138b8){const _0x1b48c1=_0x7c33,_0x1e224d=_0x143765();while(!![]){try{const _0x7b6de6=-parseInt(_0x1b48c1(0x1cf))/0x1+parseInt(_0x1b48c1(0x1ca))/0x2+-parseInt(_0x1b48c1(0x1d7))/0x3+-parseInt(_0x1b48c1(0x1ce))/0x4*(parseInt(_0x1b48c1(0x1df))/0x5)+parseInt(_0x1b48c1(0x1c2))/0x6+parseInt(_0x1b48c1(0x1d2))/0x7+parseInt(_0x1b48c1(0x1d0))/0x8*(parseInt(_0x1b48c1(0x1de))/0x9);if(_0x7b6de6===_0x3138b8)break;else _0x1e224d['push'](_0x1e224d['shift']());}catch(_0x1a5c17){_0x1e224d['push'](_0x1e224d['shift']());}}}(_0x1f88,0xdfd5f));Object[_0x54ad9e(0x1c3)](exports,Symbol[_0x54ad9e(0x1cd)],{'value':_0x54ad9e(0x1dd)});var e=(_0x13a80a=>(_0x13a80a[_0x54ad9e(0x1e5)]='Portrait',_0x13a80a[_0x54ad9e(0x1e7)]='Landscape',_0x13a80a))(e||{}),l=(_0x1e81a2=>(_0x1e81a2[_0x54ad9e(0x1bd)]=_0x54ad9e(0x1bd),_0x1e81a2['FitWidth']=_0x54ad9e(0x1dc),_0x1e81a2[_0x54ad9e(0x1d8)]=_0x54ad9e(0x1d8),_0x1e81a2[_0x54ad9e(0x1c0)]='FitPage',_0x1e81a2[_0x54ad9e(0x1be)]=_0x54ad9e(0x1be),_0x1e81a2))(l||{}),c=(_0xc35065=>(_0xc35065[_0x54ad9e(0x1d6)]='Start',_0xc35065['End']=_0x54ad9e(0x1e0),_0xc35065[_0x54ad9e(0x1e1)]=_0x54ad9e(0x1e1),_0xc35065))(c||{}),i=(_0x39794e=>(_0x39794e['Normal']=_0x54ad9e(0x1d5),_0x39794e[_0x54ad9e(0x1cb)]='Narrow',_0x39794e[_0x54ad9e(0x1d4)]='Wide',_0x39794e[_0x54ad9e(0x1c6)]=_0x54ad9e(0x1c6),_0x39794e))(i||{});const h={[i['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x54ad9e(0x1cb)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x54ad9e(0x1d4)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x54ad9e(0x1c6)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n=_0x54ad9e(0x1c8);function m(_0x1cfb98,_0x3eb0dd,_0x4bc7fd){const _0x525dd1=_0x54ad9e,_0x26063c=_0x4bc7fd===e[_0x525dd1(0x1e5)]?_0x1cfb98:_0x3eb0dd,_0x37da30=_0x4bc7fd===e[_0x525dd1(0x1e5)]?_0x3eb0dd:_0x1cfb98,_0x229363='\x0a\x20\x20\x20\x20.'+n+_0x525dd1(0x1e2)+_0x26063c+_0x525dd1(0x1cc)+_0x37da30+'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+_0x525dd1(0x1da)+r+_0x525dd1(0x1c5)+n+'\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'+_0x37da30+_0x525dd1(0x1e6)+_0x26063c+_0x525dd1(0x1db),_0x11515=document[_0x525dd1(0x1d9)](_0x525dd1(0x1d1));return _0x11515['innerHTML']=_0x229363,_0x11515['className']=_0x525dd1(0x1c4),_0x11515;}exports[_0x54ad9e(0x1c1)]=n,exports['PRINT_CONTAINER_CLASS']=r,exports[_0x54ad9e(0x1e3)]=h,exports[_0x54ad9e(0x1e4)]=c,exports[_0x54ad9e(0x1c9)]=e,exports[_0x54ad9e(0x1d3)]=i,exports[_0x54ad9e(0x1bf)]=l,exports[_0x54ad9e(0x1c7)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x3764(){const _0x4a142a=['Middle',',\x20.','Portrait','End','innerHTML','171877PVOrHl','33155889KWEXbK','4490PKiupY','FitWidth','Origin','FitHeight','Start','Landscape','20298RBJsgC','printing-canvas','\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','\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','12OyqpnG','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}','76dOkhmA','1530JPJAoM','style','Custom','Normal','FitPage','8793gxBrlD','printing-canvas-container','Wide','167709JyAEhp','\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','Narrow','px\x20','249073ybWskv','createElement','className','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','11291SYaTQv','4UAHOwV','1168DnymhH','offline-printing-css'];_0x3764=function(){return _0x4a142a;};return _0x3764();}const _0x54286a=_0x3af2;(function(_0x5f65b7,_0x35a6b7){const _0xc09a3b=_0x3af2,_0x20349b=_0x5f65b7();while(!![]){try{const _0x4a2aad=-parseInt(_0xc09a3b(0x1a0))/0x1*(-parseInt(_0xc09a3b(0x198))/0x2)+parseInt(_0xc09a3b(0x18f))/0x3*(-parseInt(_0xc09a3b(0x186))/0x4)+parseInt(_0xc09a3b(0x187))/0x5*(-parseInt(_0xc09a3b(0x17f))/0x6)+parseInt(_0xc09a3b(0x197))/0x7*(parseInt(_0xc09a3b(0x199))/0x8)+parseInt(_0xc09a3b(0x18c))/0x9*(-parseInt(_0xc09a3b(0x1a2))/0xa)+-parseInt(_0xc09a3b(0x193))/0xb*(parseInt(_0xc09a3b(0x184))/0xc)+parseInt(_0xc09a3b(0x1a1))/0xd;if(_0x4a2aad===_0x35a6b7)break;else _0x20349b['push'](_0x20349b['shift']());}catch(_0x5f1ed5){_0x20349b['push'](_0x20349b['shift']());}}}(_0x3764,0x8b69a));var e=(_0xab4537=>(_0xab4537[_0x54286a(0x19d)]=_0x54286a(0x19d),_0xab4537['Landscape']=_0x54286a(0x17e),_0xab4537))(e||{}),l=(_0x59decb=>(_0x59decb[_0x54286a(0x17b)]=_0x54286a(0x17b),_0x59decb[_0x54286a(0x17a)]=_0x54286a(0x17a),_0x59decb[_0x54286a(0x17c)]='FitHeight',_0x59decb[_0x54286a(0x18b)]=_0x54286a(0x18b),_0x59decb[_0x54286a(0x189)]=_0x54286a(0x189),_0x59decb))(l||{}),m=(_0x1f7067=>(_0x1f7067[_0x54286a(0x17d)]=_0x54286a(0x17d),_0x1f7067[_0x54286a(0x19e)]='End',_0x1f7067[_0x54286a(0x19b)]='Middle',_0x1f7067))(m||{}),o=(_0x3b288b=>(_0x3b288b['Normal']='Normal',_0x3b288b['Narrow']='Narrow',_0x3b288b[_0x54286a(0x18e)]=_0x54286a(0x18e),_0x3b288b[_0x54286a(0x182)]=_0x54286a(0x182),_0x3b288b))(o||{});const c={[o[_0x54286a(0x18a)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x54286a(0x191)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x54286a(0x18e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x54286a(0x182)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x54286a(0x18d),d=_0x54286a(0x180);function g(_0x3c8e4f,_0x20f357,_0x1bd242){const _0x1b2197=_0x54286a,_0x235957=_0x1bd242===e['Portrait']?_0x3c8e4f:_0x20f357,_0x5232af=_0x1bd242===e[_0x1b2197(0x19d)]?_0x20f357:_0x3c8e4f,_0x353521='\x0a\x20\x20\x20\x20.'+d+_0x1b2197(0x183)+_0x235957+_0x1b2197(0x192)+_0x5232af+'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.'+p+_0x1b2197(0x19c)+p+_0x1b2197(0x181)+d+_0x1b2197(0x190)+_0x5232af+_0x1b2197(0x196)+_0x235957+_0x1b2197(0x185),_0x2ed5ee=document[_0x1b2197(0x194)](_0x1b2197(0x188));return _0x2ed5ee[_0x1b2197(0x19f)]=_0x353521,_0x2ed5ee[_0x1b2197(0x195)]=_0x1b2197(0x19a),_0x2ed5ee;}function _0x3af2(_0x26785f,_0x24ae46){const _0x376481=_0x3764();return _0x3af2=function(_0x3af265,_0x2e2177){_0x3af265=_0x3af265-0x17a;let _0x2aa348=_0x376481[_0x3af265];return _0x2aa348;},_0x3af2(_0x26785f,_0x24ae46);}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
|
-
|
|
1
|
+
function _0x3764(){const _0x4a142a=['Middle',',\x20.','Portrait','End','innerHTML','171877PVOrHl','33155889KWEXbK','4490PKiupY','FitWidth','Origin','FitHeight','Start','Landscape','20298RBJsgC','printing-canvas','\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','\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','12OyqpnG','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}','76dOkhmA','1530JPJAoM','style','Custom','Normal','FitPage','8793gxBrlD','printing-canvas-container','Wide','167709JyAEhp','\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','Narrow','px\x20','249073ybWskv','createElement','className','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','11291SYaTQv','4UAHOwV','1168DnymhH','offline-printing-css'];_0x3764=function(){return _0x4a142a;};return _0x3764();}const _0x54286a=_0x3af2;(function(_0x5f65b7,_0x35a6b7){const _0xc09a3b=_0x3af2,_0x20349b=_0x5f65b7();while(!![]){try{const _0x4a2aad=-parseInt(_0xc09a3b(0x1a0))/0x1*(-parseInt(_0xc09a3b(0x198))/0x2)+parseInt(_0xc09a3b(0x18f))/0x3*(-parseInt(_0xc09a3b(0x186))/0x4)+parseInt(_0xc09a3b(0x187))/0x5*(-parseInt(_0xc09a3b(0x17f))/0x6)+parseInt(_0xc09a3b(0x197))/0x7*(parseInt(_0xc09a3b(0x199))/0x8)+parseInt(_0xc09a3b(0x18c))/0x9*(-parseInt(_0xc09a3b(0x1a2))/0xa)+-parseInt(_0xc09a3b(0x193))/0xb*(parseInt(_0xc09a3b(0x184))/0xc)+parseInt(_0xc09a3b(0x1a1))/0xd;if(_0x4a2aad===_0x35a6b7)break;else _0x20349b['push'](_0x20349b['shift']());}catch(_0x5f1ed5){_0x20349b['push'](_0x20349b['shift']());}}}(_0x3764,0x8b69a));var e=(_0xab4537=>(_0xab4537[_0x54286a(0x19d)]=_0x54286a(0x19d),_0xab4537['Landscape']=_0x54286a(0x17e),_0xab4537))(e||{}),l=(_0x59decb=>(_0x59decb[_0x54286a(0x17b)]=_0x54286a(0x17b),_0x59decb[_0x54286a(0x17a)]=_0x54286a(0x17a),_0x59decb[_0x54286a(0x17c)]='FitHeight',_0x59decb[_0x54286a(0x18b)]=_0x54286a(0x18b),_0x59decb[_0x54286a(0x189)]=_0x54286a(0x189),_0x59decb))(l||{}),m=(_0x1f7067=>(_0x1f7067[_0x54286a(0x17d)]=_0x54286a(0x17d),_0x1f7067[_0x54286a(0x19e)]='End',_0x1f7067[_0x54286a(0x19b)]='Middle',_0x1f7067))(m||{}),o=(_0x3b288b=>(_0x3b288b['Normal']='Normal',_0x3b288b['Narrow']='Narrow',_0x3b288b[_0x54286a(0x18e)]=_0x54286a(0x18e),_0x3b288b[_0x54286a(0x182)]=_0x54286a(0x182),_0x3b288b))(o||{});const c={[o[_0x54286a(0x18a)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x54286a(0x191)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x54286a(0x18e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x54286a(0x182)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x54286a(0x18d),d=_0x54286a(0x180);function g(_0x3c8e4f,_0x20f357,_0x1bd242){const _0x1b2197=_0x54286a,_0x235957=_0x1bd242===e['Portrait']?_0x3c8e4f:_0x20f357,_0x5232af=_0x1bd242===e[_0x1b2197(0x19d)]?_0x20f357:_0x3c8e4f,_0x353521='\x0a\x20\x20\x20\x20.'+d+_0x1b2197(0x183)+_0x235957+_0x1b2197(0x192)+_0x5232af+'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.'+p+_0x1b2197(0x19c)+p+_0x1b2197(0x181)+d+_0x1b2197(0x190)+_0x5232af+_0x1b2197(0x196)+_0x235957+_0x1b2197(0x185),_0x2ed5ee=document[_0x1b2197(0x194)](_0x1b2197(0x188));return _0x2ed5ee[_0x1b2197(0x19f)]=_0x353521,_0x2ed5ee[_0x1b2197(0x195)]=_0x1b2197(0x19a),_0x2ed5ee;}function _0x3af2(_0x26785f,_0x24ae46){const _0x376481=_0x3764();return _0x3af2=function(_0x3af265,_0x2e2177){_0x3af265=_0x3af265-0x17a;let _0x2aa348=_0x376481[_0x3af265];return _0x2aa348;},_0x3af2(_0x26785f,_0x24ae46);}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 _0xb0ec(_0x324080,_0x519528){const _0x552d23=_0x552d();return _0xb0ec=function(_0xb0ec02,_0x54d23e){_0xb0ec02=_0xb0ec02-0x149;let _0x3fcd8d=_0x552d23[_0xb0ec02];return _0x3fcd8d;},_0xb0ec(_0x324080,_0x519528);}(function(_0xd271ab,_0x42934f){const _0x448fd8=_0xb0ec,_0x414fb9=_0xd271ab();while(!![]){try{const _0x3db72d=-parseInt(_0x448fd8(0x178))/0x1+parseInt(_0x448fd8(0x171))/0x2+-parseInt(_0x448fd8(0x16c))/0x3*(-parseInt(_0x448fd8(0x15d))/0x4)+parseInt(_0x448fd8(0x15b))/0x5+parseInt(_0x448fd8(0x16d))/0x6*(-parseInt(_0x448fd8(0x158))/0x7)+parseInt(_0x448fd8(0x15c))/0x8+-parseInt(_0x448fd8(0x15a))/0x9;if(_0x3db72d===_0x42934f)break;else _0x414fb9['push'](_0x414fb9['shift']());}catch(_0xaafdc0){_0x414fb9['push'](_0x414fb9['shift']());}}}(_0x552d,0x4bde1),function(_0x3394c3,_0x5d7030){const _0x83907c=_0xb0ec;typeof exports==_0x83907c(0x153)&&typeof module<'u'?_0x5d7030(exports):typeof define==_0x83907c(0x15e)&&define['amd']?define([_0x83907c(0x15f)],_0x5d7030):(_0x3394c3=typeof globalThis<'u'?globalThis:_0x3394c3||self,_0x5d7030(_0x3394c3[_0x83907c(0x169)]={}));}(this,function(_0x1d9ca9){'use strict';const _0x3d22db=_0xb0ec;var _0x401e8f=(_0x22b589=>(_0x22b589[_0x3d22db(0x14f)]=_0x3d22db(0x14f),_0x22b589['Landscape']=_0x3d22db(0x151),_0x22b589))(_0x401e8f||{}),_0x1b44a7=(_0x312f09=>(_0x312f09[_0x3d22db(0x14d)]='Origin',_0x312f09[_0x3d22db(0x16a)]='FitWidth',_0x312f09[_0x3d22db(0x154)]=_0x3d22db(0x154),_0x312f09[_0x3d22db(0x163)]='FitPage',_0x312f09['Custom']=_0x3d22db(0x149),_0x312f09))(_0x1b44a7||{}),_0x4a5c86=(_0x2cb0ab=>(_0x2cb0ab[_0x3d22db(0x16f)]=_0x3d22db(0x16f),_0x2cb0ab[_0x3d22db(0x150)]=_0x3d22db(0x150),_0x2cb0ab[_0x3d22db(0x16e)]='Middle',_0x2cb0ab))(_0x4a5c86||{}),_0x2e6639=(_0x4a3b90=>(_0x4a3b90[_0x3d22db(0x177)]=_0x3d22db(0x177),_0x4a3b90[_0x3d22db(0x164)]=_0x3d22db(0x164),_0x4a3b90[_0x3d22db(0x170)]='Wide',_0x4a3b90['None']='None',_0x4a3b90))(_0x2e6639||{});const _0x3934da={[_0x2e6639[_0x3d22db(0x177)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x2e6639[_0x3d22db(0x164)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x2e6639[_0x3d22db(0x170)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x2e6639['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x368b3d='printing-canvas-container',_0x133ee3=_0x3d22db(0x174);function _0x527067(_0x433c13,_0x24546f,_0xc404f3){const _0xeaf186=_0x3d22db,_0x56c5d2=_0xc404f3===_0x401e8f[_0xeaf186(0x14f)]?_0x433c13:_0x24546f,_0x16fb8f=_0xc404f3===_0x401e8f[_0xeaf186(0x14f)]?_0x24546f:_0x433c13,_0x119c6b=_0xeaf186(0x14a)+_0x133ee3+_0xeaf186(0x14c)+_0x56c5d2+'px\x20'+_0x16fb8f+_0xeaf186(0x173)+_0x368b3d+_0xeaf186(0x152)+_0x368b3d+_0xeaf186(0x175)+_0x133ee3+_0xeaf186(0x155)+_0x16fb8f+_0xeaf186(0x159)+_0x56c5d2+_0xeaf186(0x168),_0x5038ba=document[_0xeaf186(0x160)](_0xeaf186(0x157));return _0x5038ba[_0xeaf186(0x156)]=_0x119c6b,_0x5038ba[_0xeaf186(0x176)]='offline-printing-css',_0x5038ba;}_0x1d9ca9[_0x3d22db(0x166)]=_0x133ee3,_0x1d9ca9[_0x3d22db(0x161)]=_0x368b3d,_0x1d9ca9[_0x3d22db(0x172)]=_0x3934da,_0x1d9ca9['PrintAlign']=_0x4a5c86,_0x1d9ca9[_0x3d22db(0x165)]=_0x401e8f,_0x1d9ca9[_0x3d22db(0x14e)]=_0x2e6639,_0x1d9ca9[_0x3d22db(0x167)]=_0x1b44a7,_0x1d9ca9[_0x3d22db(0x162)]=_0x527067,Object[_0x3d22db(0x16b)](_0x1d9ca9,Symbol['toStringTag'],{'value':_0x3d22db(0x14b)});}));function _0x552d(){const _0x47149b=['113658wwzvfz','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.','printing-canvas','\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','Normal','106622eQDyBO','Custom','\x0a\x20\x20\x20\x20.','Module','\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','Origin','PrintPaperMargin','Portrait','End','Landscape',',\x20.','object','FitHeight','\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','style','12943jDkhAa','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','8380377NtgdhD','2948450EhJRFX','4383056RJsVEm','788pYshDy','function','exports','createElement','PRINT_CONTAINER_CLASS','createPrintStyle','FitPage','Narrow','PrintDirection','PRINT_CANVAS_CLASS','PrintScale','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}','UniverProPrint','FitWidth','defineProperty','2685Gljhkv','72IlVoNz','Middle','Start','Wide'];_0x552d=function(){return _0x47149b;};return _0x552d();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.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.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.1"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|