@univerjs-pro/print 0.15.2 → 0.15.3-insiders.20260131-cbd5fac
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 +3 -3
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x4d25(){const _0x2a5e6e=['className','Custom','createPrintStyle','Portrait','PrintDirection','162LCqDSy','1107296BhAQZY','Normal','Middle','Origin','End','px\x20','None','defineProperty','offline-printing-css','FitPage','1101066wqwXpM','Narrow','PrintAlign',',\x20.','Wide','PaperMarginMap','PrintPaperMargin','7DHKQnA','709882jRctvc','1115060WvlhTa','3662530QfecAu','PRINT_CONTAINER_CLASS','Landscape','\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','3227894EdTJBq','11761296xckeuk','\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','15MrLNqi','FitWidth','PrintScale'];_0x4d25=function(){return _0x2a5e6e;};return _0x4d25();}const _0x4f7837=_0x424f;(function(_0x363b0b,_0x97779a){const _0x1e9f67=_0x424f,_0x5353e7=_0x363b0b();while(!![]){try{const _0x53c558=parseInt(_0x1e9f67(0xa6))/0x1+parseInt(_0x1e9f67(0xac))/0x2+-parseInt(_0x1e9f67(0x8b))/0x3*(parseInt(_0x1e9f67(0x94))/0x4)+parseInt(_0x1e9f67(0xa8))/0x5+parseInt(_0x1e9f67(0x9e))/0x6*(-parseInt(_0x1e9f67(0xa5))/0x7)+parseInt(_0x1e9f67(0x89))/0x8+-parseInt(_0x1e9f67(0x93))/0x9*(parseInt(_0x1e9f67(0xa7))/0xa);if(_0x53c558===_0x97779a)break;else _0x5353e7['push'](_0x5353e7['shift']());}catch(_0x4a44e1){_0x5353e7['push'](_0x5353e7['shift']());}}}(_0x4d25,0xe85ce));Object[_0x4f7837(0x9b)](exports,Symbol['toStringTag'],{'value':'Module'});var i=(_0x21fe16=>(_0x21fe16[_0x4f7837(0x91)]=_0x4f7837(0x91),_0x21fe16[_0x4f7837(0xaa)]=_0x4f7837(0xaa),_0x21fe16))(i||{}),l=(_0x269861=>(_0x269861[_0x4f7837(0x97)]=_0x4f7837(0x97),_0x269861[_0x4f7837(0x8c)]=_0x4f7837(0x8c),_0x269861['FitHeight']='FitHeight',_0x269861['FitPage']=_0x4f7837(0x9d),_0x269861[_0x4f7837(0x8f)]=_0x4f7837(0x8f),_0x269861))(l||{}),m=(_0x24528c=>(_0x24528c['Start']='Start',_0x24528c[_0x4f7837(0x98)]=_0x4f7837(0x98),_0x24528c[_0x4f7837(0x96)]=_0x4f7837(0x96),_0x24528c))(m||{}),o=(_0x40dd91=>(_0x40dd91[_0x4f7837(0x95)]=_0x4f7837(0x95),_0x40dd91[_0x4f7837(0x9f)]=_0x4f7837(0x9f),_0x40dd91['Wide']=_0x4f7837(0xa2),_0x40dd91[_0x4f7837(0x9a)]=_0x4f7837(0x9a),_0x40dd91[_0x4f7837(0x8f)]=_0x4f7837(0x8f),_0x40dd91))(o||{});const g={[o[_0x4f7837(0x95)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x4f7837(0x9f)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x4f7837(0x9a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x4f7837(0x8f)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n='printing-canvas';function h(_0x360cb9,_0x53c1dd,_0x3c1639){const _0x4f4243=_0x4f7837,_0x4a69e4=_0x3c1639===i[_0x4f4243(0x91)]?_0x360cb9:_0x53c1dd,_0x4099a9=_0x3c1639===i[_0x4f4243(0x91)]?_0x53c1dd:_0x360cb9,_0x3771cf='\x0a\x20\x20\x20\x20.'+n+_0x4f4243(0x8a)+_0x4a69e4+_0x4f4243(0x99)+_0x4099a9+'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+_0x4f4243(0xa1)+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+_0x4f4243(0xab)+_0x4099a9+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4a69e4+'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}',_0x4038c2=document['createElement']('style');return _0x4038c2['innerHTML']=_0x3771cf,_0x4038c2[_0x4f4243(0x8e)]=_0x4f4243(0x9c),_0x4038c2;}function _0x424f(_0x21dcb7,_0x379e94){_0x21dcb7=_0x21dcb7-0x89;const _0x4d253b=_0x4d25();let _0x424f5b=_0x4d253b[_0x21dcb7];return _0x424f5b;}exports['PRINT_CANVAS_CLASS']=n,exports[_0x4f7837(0xa9)]=r,exports[_0x4f7837(0xa3)]=g,exports[_0x4f7837(0xa0)]=m,exports[_0x4f7837(0x92)]=i,exports[_0x4f7837(0xa4)]=o,exports[_0x4f7837(0x8d)]=l,exports[_0x4f7837(0x90)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x66ce29=_0x5226;(function(_0x5c570c,_0x310eb4){const _0x1b7012=_0x5226,_0x5cafc0=_0x5c570c();while(!![]){try{const _0x2203d2=-parseInt(_0x1b7012(0x1a4))/0x1*(-parseInt(_0x1b7012(0x1a2))/0x2)+-parseInt(_0x1b7012(0x19f))/0x3*(parseInt(_0x1b7012(0x1c5))/0x4)+-parseInt(_0x1b7012(0x1c1))/0x5*(parseInt(_0x1b7012(0x1bf))/0x6)+parseInt(_0x1b7012(0x1c2))/0x7*(-parseInt(_0x1b7012(0x1ac))/0x8)+-parseInt(_0x1b7012(0x1c3))/0x9*(parseInt(_0x1b7012(0x1ba))/0xa)+parseInt(_0x1b7012(0x1a1))/0xb*(parseInt(_0x1b7012(0x1ae))/0xc)+parseInt(_0x1b7012(0x1a0))/0xd;if(_0x2203d2===_0x310eb4)break;else _0x5cafc0['push'](_0x5cafc0['shift']());}catch(_0x3fd24a){_0x5cafc0['push'](_0x5cafc0['shift']());}}}(_0x7f90,0xef7db));var e=(_0x9aa898=>(_0x9aa898['Portrait']=_0x66ce29(0x1b3),_0x9aa898['Landscape']=_0x66ce29(0x1a5),_0x9aa898))(e||{}),h=(_0x5ebd04=>(_0x5ebd04[_0x66ce29(0x1b4)]=_0x66ce29(0x1b4),_0x5ebd04[_0x66ce29(0x1bc)]=_0x66ce29(0x1bc),_0x5ebd04[_0x66ce29(0x1b0)]=_0x66ce29(0x1b0),_0x5ebd04[_0x66ce29(0x1b9)]='FitPage',_0x5ebd04['Custom']=_0x66ce29(0x1ad),_0x5ebd04))(h||{}),l=(_0xe004a7=>(_0xe004a7[_0x66ce29(0x1b7)]='Start',_0xe004a7[_0x66ce29(0x1a9)]=_0x66ce29(0x1a9),_0xe004a7['Middle']='Middle',_0xe004a7))(l||{}),o=(_0x595ae1=>(_0x595ae1[_0x66ce29(0x1af)]=_0x66ce29(0x1af),_0x595ae1[_0x66ce29(0x1a6)]='Narrow',_0x595ae1[_0x66ce29(0x1c0)]='Wide',_0x595ae1['None']=_0x66ce29(0x1bd),_0x595ae1[_0x66ce29(0x1ad)]=_0x66ce29(0x1ad),_0x595ae1))(o||{});function _0x5226(_0x2308e7,_0x4eb109){_0x2308e7=_0x2308e7-0x19f;const _0x7f9064=_0x7f90();let _0x5226c2=_0x7f9064[_0x2308e7];return _0x5226c2;}const c={[o[_0x66ce29(0x1af)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'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}},p='printing-canvas-container',d=_0x66ce29(0x1be);function g(_0x3c2835,_0xb032c0,_0x5a9a19){const _0x8a48de=_0x66ce29,_0x13f891=_0x5a9a19===e[_0x8a48de(0x1b3)]?_0x3c2835:_0xb032c0,_0x3123c1=_0x5a9a19===e[_0x8a48de(0x1b3)]?_0xb032c0:_0x3c2835,_0x50f158=_0x8a48de(0x1aa)+d+_0x8a48de(0x1b8)+_0x13f891+_0x8a48de(0x1a7)+_0x3123c1+_0x8a48de(0x1bb)+p+_0x8a48de(0x1b1)+p+_0x8a48de(0x1ab)+d+_0x8a48de(0x1c6)+_0x3123c1+_0x8a48de(0x1b2)+_0x13f891+_0x8a48de(0x1b6),_0x2422ac=document[_0x8a48de(0x1a8)](_0x8a48de(0x1c4));return _0x2422ac['innerHTML']=_0x50f158,_0x2422ac[_0x8a48de(0x1a3)]=_0x8a48de(0x1b5),_0x2422ac;}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 _0x7f90(){const _0x5aba8f=['32917404yWXdHq','1309022ArkeIq','26pzmRmn','className','130997lwfzRp','Landscape','Narrow','px\x20','createElement','End','\x0a\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.','64pAbxgI','Custom','24Tjgsgv','Normal','FitHeight',',\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Portrait','Origin','offline-printing-css','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','\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','FitPage','40rzdZNl','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.','FitWidth','None','printing-canvas','6qCuWqQ','Wide','715535VtJukW','130445WcGKiF','3739113BiEjqf','style','12THZbFt','\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','1538103XuUqSz'];_0x7f90=function(){return _0x5aba8f;};return _0x7f90();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x66ce29=_0x5226;(function(_0x5c570c,_0x310eb4){const _0x1b7012=_0x5226,_0x5cafc0=_0x5c570c();while(!![]){try{const _0x2203d2=-parseInt(_0x1b7012(0x1a4))/0x1*(-parseInt(_0x1b7012(0x1a2))/0x2)+-parseInt(_0x1b7012(0x19f))/0x3*(parseInt(_0x1b7012(0x1c5))/0x4)+-parseInt(_0x1b7012(0x1c1))/0x5*(parseInt(_0x1b7012(0x1bf))/0x6)+parseInt(_0x1b7012(0x1c2))/0x7*(-parseInt(_0x1b7012(0x1ac))/0x8)+-parseInt(_0x1b7012(0x1c3))/0x9*(parseInt(_0x1b7012(0x1ba))/0xa)+parseInt(_0x1b7012(0x1a1))/0xb*(parseInt(_0x1b7012(0x1ae))/0xc)+parseInt(_0x1b7012(0x1a0))/0xd;if(_0x2203d2===_0x310eb4)break;else _0x5cafc0['push'](_0x5cafc0['shift']());}catch(_0x3fd24a){_0x5cafc0['push'](_0x5cafc0['shift']());}}}(_0x7f90,0xef7db));var e=(_0x9aa898=>(_0x9aa898['Portrait']=_0x66ce29(0x1b3),_0x9aa898['Landscape']=_0x66ce29(0x1a5),_0x9aa898))(e||{}),h=(_0x5ebd04=>(_0x5ebd04[_0x66ce29(0x1b4)]=_0x66ce29(0x1b4),_0x5ebd04[_0x66ce29(0x1bc)]=_0x66ce29(0x1bc),_0x5ebd04[_0x66ce29(0x1b0)]=_0x66ce29(0x1b0),_0x5ebd04[_0x66ce29(0x1b9)]='FitPage',_0x5ebd04['Custom']=_0x66ce29(0x1ad),_0x5ebd04))(h||{}),l=(_0xe004a7=>(_0xe004a7[_0x66ce29(0x1b7)]='Start',_0xe004a7[_0x66ce29(0x1a9)]=_0x66ce29(0x1a9),_0xe004a7['Middle']='Middle',_0xe004a7))(l||{}),o=(_0x595ae1=>(_0x595ae1[_0x66ce29(0x1af)]=_0x66ce29(0x1af),_0x595ae1[_0x66ce29(0x1a6)]='Narrow',_0x595ae1[_0x66ce29(0x1c0)]='Wide',_0x595ae1['None']=_0x66ce29(0x1bd),_0x595ae1[_0x66ce29(0x1ad)]=_0x66ce29(0x1ad),_0x595ae1))(o||{});function _0x5226(_0x2308e7,_0x4eb109){_0x2308e7=_0x2308e7-0x19f;const _0x7f9064=_0x7f90();let _0x5226c2=_0x7f9064[_0x2308e7];return _0x5226c2;}const c={[o[_0x66ce29(0x1af)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'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}},p='printing-canvas-container',d=_0x66ce29(0x1be);function g(_0x3c2835,_0xb032c0,_0x5a9a19){const _0x8a48de=_0x66ce29,_0x13f891=_0x5a9a19===e[_0x8a48de(0x1b3)]?_0x3c2835:_0xb032c0,_0x3123c1=_0x5a9a19===e[_0x8a48de(0x1b3)]?_0xb032c0:_0x3c2835,_0x50f158=_0x8a48de(0x1aa)+d+_0x8a48de(0x1b8)+_0x13f891+_0x8a48de(0x1a7)+_0x3123c1+_0x8a48de(0x1bb)+p+_0x8a48de(0x1b1)+p+_0x8a48de(0x1ab)+d+_0x8a48de(0x1c6)+_0x3123c1+_0x8a48de(0x1b2)+_0x13f891+_0x8a48de(0x1b6),_0x2422ac=document[_0x8a48de(0x1a8)](_0x8a48de(0x1c4));return _0x2422ac['innerHTML']=_0x50f158,_0x2422ac[_0x8a48de(0x1a3)]=_0x8a48de(0x1b5),_0x2422ac;}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 _0x7f90(){const _0x5aba8f=['32917404yWXdHq','1309022ArkeIq','26pzmRmn','className','130997lwfzRp','Landscape','Narrow','px\x20','createElement','End','\x0a\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.','64pAbxgI','Custom','24Tjgsgv','Normal','FitHeight',',\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Portrait','Origin','offline-printing-css','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','\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','FitPage','40rzdZNl','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.','FitWidth','None','printing-canvas','6qCuWqQ','Wide','715535VtJukW','130445WcGKiF','3739113BiEjqf','style','12THZbFt','\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','1538103XuUqSz'];_0x7f90=function(){return _0x5aba8f;};return _0x7f90();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5368(_0x20a66e,_0x220837){_0x20a66e=_0x20a66e-0x78;const _0x3636ea=_0x3636();let _0x53684f=_0x3636ea[_0x20a66e];return _0x53684f;}(function(_0x1fa7fd,_0x5b5d17){const _0x2add81=_0x5368,_0x2c22a7=_0x1fa7fd();while(!![]){try{const _0x26ef32=parseInt(_0x2add81(0x7f))/0x1+-parseInt(_0x2add81(0xa6))/0x2*(-parseInt(_0x2add81(0x94))/0x3)+-parseInt(_0x2add81(0xa7))/0x4*(-parseInt(_0x2add81(0xa9))/0x5)+-parseInt(_0x2add81(0x89))/0x6*(-parseInt(_0x2add81(0x8d))/0x7)+parseInt(_0x2add81(0xa2))/0x8*(parseInt(_0x2add81(0x8e))/0x9)+parseInt(_0x2add81(0x9a))/0xa+-parseInt(_0x2add81(0xa1))/0xb;if(_0x26ef32===_0x5b5d17)break;else _0x2c22a7['push'](_0x2c22a7['shift']());}catch(_0x3cad38){_0x2c22a7['push'](_0x2c22a7['shift']());}}}(_0x3636,0xa6ffa),function(_0x2fb0da,_0xdb0ae3){const _0x43f5cd=_0x5368;typeof exports==_0x43f5cd(0x8f)&&typeof module<'u'?_0xdb0ae3(exports):typeof define==_0x43f5cd(0x9e)&&define['amd']?define([_0x43f5cd(0x84)],_0xdb0ae3):(_0x2fb0da=typeof globalThis<'u'?globalThis:_0x2fb0da||self,_0xdb0ae3(_0x2fb0da[_0x43f5cd(0x87)]={}));}(this,function(_0x491b5d){'use strict';const _0x2b8463=_0x5368;var _0x493e56=(_0x3af6c2=>(_0x3af6c2[_0x2b8463(0x93)]='Portrait',_0x3af6c2[_0x2b8463(0x90)]=_0x2b8463(0x90),_0x3af6c2))(_0x493e56||{}),_0x1d6711=(_0x522d3e=>(_0x522d3e[_0x2b8463(0x8c)]='Origin',_0x522d3e['FitWidth']=_0x2b8463(0x79),_0x522d3e['FitHeight']='FitHeight',_0x522d3e['FitPage']=_0x2b8463(0x99),_0x522d3e[_0x2b8463(0x95)]='Custom',_0x522d3e))(_0x1d6711||{}),_0x22f81a=(_0x4e609b=>(_0x4e609b[_0x2b8463(0x92)]=_0x2b8463(0x92),_0x4e609b[_0x2b8463(0x7e)]=_0x2b8463(0x7e),_0x4e609b['Middle']=_0x2b8463(0xa3),_0x4e609b))(_0x22f81a||{}),_0x3bf113=(_0x8ca876=>(_0x8ca876['Normal']=_0x2b8463(0x7c),_0x8ca876[_0x2b8463(0x9c)]='Narrow',_0x8ca876[_0x2b8463(0xa4)]=_0x2b8463(0xa4),_0x8ca876['None']=_0x2b8463(0x96),_0x8ca876['Custom']=_0x2b8463(0x95),_0x8ca876))(_0x3bf113||{});const _0x36b4f3={[_0x3bf113[_0x2b8463(0x7c)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3bf113['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3bf113['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3bf113[_0x2b8463(0x96)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x3bf113[_0x2b8463(0x95)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4e6301='printing-canvas-container',_0x1e5f99=_0x2b8463(0x8a);function _0x24842b(_0xf907c7,_0x394bdb,_0x36ba7b){const _0x4eebc9=_0x2b8463,_0x300ab6=_0x36ba7b===_0x493e56[_0x4eebc9(0x93)]?_0xf907c7:_0x394bdb,_0x2931c0=_0x36ba7b===_0x493e56[_0x4eebc9(0x93)]?_0x394bdb:_0xf907c7,_0x2ab568=_0x4eebc9(0x86)+_0x1e5f99+_0x4eebc9(0x83)+_0x300ab6+_0x4eebc9(0x98)+_0x2931c0+_0x4eebc9(0x9d)+_0x4e6301+',\x20.'+_0x4e6301+_0x4eebc9(0x7d)+_0x1e5f99+_0x4eebc9(0x78)+_0x2931c0+_0x4eebc9(0x81)+_0x300ab6+_0x4eebc9(0x85),_0x14e1a9=document['createElement'](_0x4eebc9(0x8b));return _0x14e1a9[_0x4eebc9(0x88)]=_0x2ab568,_0x14e1a9[_0x4eebc9(0xa5)]=_0x4eebc9(0x7a),_0x14e1a9;}_0x491b5d['PRINT_CANVAS_CLASS']=_0x1e5f99,_0x491b5d[_0x2b8463(0x80)]=_0x4e6301,_0x491b5d[_0x2b8463(0xa8)]=_0x36b4f3,_0x491b5d['PrintAlign']=_0x22f81a,_0x491b5d[_0x2b8463(0xa0)]=_0x493e56,_0x491b5d[_0x2b8463(0x9f)]=_0x3bf113,_0x491b5d[_0x2b8463(0x9b)]=_0x1d6711,_0x491b5d[_0x2b8463(0x82)]=_0x24842b,Object[_0x2b8463(0x97)](_0x491b5d,Symbol[_0x2b8463(0x91)],{'value':_0x2b8463(0x7b)});}));function _0x3636(){const _0x4d0753=['PrintScale','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.','function','PrintPaperMargin','PrintDirection','47289693vHSzKL','3544448qPxUxe','Middle','Wide','className','257258PHuIgh','3204004IRUuqV','PaperMarginMap','5kHqwvy','\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','FitWidth','offline-printing-css','Module','Normal','\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.','End','508724bCLFDZ','PRINT_CONTAINER_CLASS','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','createPrintStyle','\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','exports','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}','\x0a\x20\x20\x20\x20.','UniverProPrint','innerHTML','12OFeTfW','printing-canvas','style','Origin','2862454sYOKic','18ioyQlv','object','Landscape','toStringTag','Start','Portrait','21ClwySZ','Custom','None','defineProperty','px\x20','FitPage','10690050uaJENw'];_0x3636=function(){return _0x4d0753;};return _0x3636();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.3-insiders.20260131-cbd5fac",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.9.3",
|
|
46
46
|
"vite": "^7.3.1",
|
|
47
|
-
"vitest": "^4.0.
|
|
48
|
-
"@univerjs-infra/shared": "0.15.
|
|
47
|
+
"vitest": "^4.0.18",
|
|
48
|
+
"@univerjs-infra/shared": "0.15.3"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|