@univerjs-pro/print 0.10.9 → 0.10.10-experimental.20251010-3f807c5
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 _0x23d1(_0x41715b,_0x5e720d){const _0x2509b0=_0x2509();return _0x23d1=function(_0x23d10c,_0x15b0da){_0x23d10c=_0x23d10c-0x147;let _0x57adde=_0x2509b0[_0x23d10c];return _0x57adde;},_0x23d1(_0x41715b,_0x5e720d);}const _0x302957=_0x23d1;(function(_0x27f55f,_0x2f1c49){const _0x189302=_0x23d1,_0x471ca6=_0x27f55f();while(!![]){try{const _0x1633eb=-parseInt(_0x189302(0x16b))/0x1+-parseInt(_0x189302(0x16e))/0x2+-parseInt(_0x189302(0x149))/0x3+parseInt(_0x189302(0x160))/0x4+-parseInt(_0x189302(0x16c))/0x5*(-parseInt(_0x189302(0x157))/0x6)+-parseInt(_0x189302(0x165))/0x7*(parseInt(_0x189302(0x14d))/0x8)+parseInt(_0x189302(0x150))/0x9*(-parseInt(_0x189302(0x15a))/0xa);if(_0x1633eb===_0x2f1c49)break;else _0x471ca6['push'](_0x471ca6['shift']());}catch(_0x21a288){_0x471ca6['push'](_0x471ca6['shift']());}}}(_0x2509,0x80b86));function _0x2509(){const _0x38b539=['Wide','PrintAlign','PrintDirection','FitHeight','Custom','createElement','16356ALlTyy','FitPage','defineProperty','toStringTag','4040khvDYf','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','9684yXeAKd','px\x20','style','printing-canvas','PRINT_CONTAINER_CLASS','printing-canvas-container','Narrow','3428076EmVgkF','FitWidth','PRINT_CANVAS_CLASS','4790wphQhI','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}','Origin','\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','Middle','3410772jYiNAf','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.',',\x20.','className','1309xYsyWh','Portrait','None','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','offline-printing-css','96022vadZRU','5qozboU','\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.','370976NiqZYX'];_0x2509=function(){return _0x38b539;};return _0x2509();}Object[_0x302957(0x14b)](exports,Symbol[_0x302957(0x14c)],{'value':'Module'});var i=(_0xd9da22=>(_0xd9da22['Portrait']=_0x302957(0x166),_0xd9da22[_0x302957(0x14e)]='Landscape',_0xd9da22))(i||{}),l=(_0x201c4f=>(_0x201c4f[_0x302957(0x15c)]=_0x302957(0x15c),_0x201c4f[_0x302957(0x158)]=_0x302957(0x158),_0x201c4f[_0x302957(0x172)]='FitHeight',_0x201c4f[_0x302957(0x14a)]=_0x302957(0x14a),_0x201c4f[_0x302957(0x147)]='Custom',_0x201c4f))(l||{}),m=(_0x398e7b=>(_0x398e7b['Start']=_0x302957(0x168),_0x398e7b['End']='End',_0x398e7b[_0x302957(0x15f)]=_0x302957(0x15f),_0x398e7b))(m||{}),o=(_0x8f74ca=>(_0x8f74ca[_0x302957(0x15e)]=_0x302957(0x15e),_0x8f74ca[_0x302957(0x156)]=_0x302957(0x156),_0x8f74ca[_0x302957(0x16f)]='Wide',_0x8f74ca['None']=_0x302957(0x167),_0x8f74ca[_0x302957(0x147)]=_0x302957(0x147),_0x8f74ca))(o||{});const g={[o[_0x302957(0x15e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x302957(0x156)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x302957(0x16f)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x302957(0x167)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x302957(0x147)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x302957(0x155),n=_0x302957(0x153);function h(_0x5ddd1f,_0x4a1e98,_0x2765e3){const _0x7cd940=_0x302957,_0x273264=_0x2765e3===i[_0x7cd940(0x166)]?_0x5ddd1f:_0x4a1e98,_0x6bfe28=_0x2765e3===i[_0x7cd940(0x166)]?_0x4a1e98:_0x5ddd1f,_0x334054='\x0a\x20\x20\x20\x20.'+n+_0x7cd940(0x15d)+_0x273264+_0x7cd940(0x151)+_0x6bfe28+_0x7cd940(0x162)+r+_0x7cd940(0x163)+r+_0x7cd940(0x16d)+n+_0x7cd940(0x14f)+_0x6bfe28+_0x7cd940(0x169)+_0x273264+_0x7cd940(0x15b),_0x1b811e=document[_0x7cd940(0x148)](_0x7cd940(0x152));return _0x1b811e['innerHTML']=_0x334054,_0x1b811e[_0x7cd940(0x164)]=_0x7cd940(0x16a),_0x1b811e;}exports[_0x302957(0x159)]=n,exports[_0x302957(0x154)]=r,exports[_0x302957(0x161)]=g,exports[_0x302957(0x170)]=m,exports[_0x302957(0x171)]=i,exports['PrintPaperMargin']=o,exports['PrintScale']=l,exports['createPrintStyle']=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x5545(){const _0x5f2957=['printing-canvas-container','Landscape','Portrait','1357610TGzayN','35179AUMQKU','innerHTML','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.','Middle','8CYThhW','1302660RLVTUD','1362447rnoHJS','22qjADNv','3hXJIoA','End','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.','Origin',',\x20.','Wide','1193488eGEjoK','689382QYTBCQ','None','7ezDtpZ','px\x20','FitHeight','offline-printing-css','323110FConpA','\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','createElement','printing-canvas','Narrow','Start','Custom','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitPage'];_0x5545=function(){return _0x5f2957;};return _0x5545();}const _0x2d2c7=_0x34df;(function(_0x885ae2,_0x262f0e){const _0x51597b=_0x34df,_0x53f5c9=_0x885ae2();while(!![]){try{const _0x232e6d=parseInt(_0x51597b(0x1b1))/0x1+-parseInt(_0x51597b(0x1c8))/0x2+parseInt(_0x51597b(0x1ba))/0x3*(parseInt(_0x51597b(0x1c1))/0x4)+parseInt(_0x51597b(0x1d4))/0x5+parseInt(_0x51597b(0x1c2))/0x6*(-parseInt(_0x51597b(0x1c4))/0x7)+-parseInt(_0x51597b(0x1b6))/0x8*(-parseInt(_0x51597b(0x1b8))/0x9)+parseInt(_0x51597b(0x1b7))/0xa*(-parseInt(_0x51597b(0x1b9))/0xb);if(_0x232e6d===_0x262f0e)break;else _0x53f5c9['push'](_0x53f5c9['shift']());}catch(_0x4377da){_0x53f5c9['push'](_0x53f5c9['shift']());}}}(_0x5545,0x35950));var e=(_0x59e9e1=>(_0x59e9e1[_0x2d2c7(0x1d3)]=_0x2d2c7(0x1d3),_0x59e9e1[_0x2d2c7(0x1d2)]=_0x2d2c7(0x1d2),_0x59e9e1))(e||{}),h=(_0x569d88=>(_0x569d88[_0x2d2c7(0x1be)]='Origin',_0x569d88['FitWidth']='FitWidth',_0x569d88['FitHeight']=_0x2d2c7(0x1c6),_0x569d88[_0x2d2c7(0x1d0)]=_0x2d2c7(0x1d0),_0x569d88[_0x2d2c7(0x1ce)]=_0x2d2c7(0x1ce),_0x569d88))(h||{}),l=(_0x193005=>(_0x193005['Start']=_0x2d2c7(0x1cd),_0x193005[_0x2d2c7(0x1bb)]=_0x2d2c7(0x1bb),_0x193005[_0x2d2c7(0x1b5)]=_0x2d2c7(0x1b5),_0x193005))(l||{}),o=(_0x5a15f2=>(_0x5a15f2[_0x2d2c7(0x1b3)]=_0x2d2c7(0x1b3),_0x5a15f2[_0x2d2c7(0x1cc)]=_0x2d2c7(0x1cc),_0x5a15f2['Wide']=_0x2d2c7(0x1c0),_0x5a15f2[_0x2d2c7(0x1c3)]=_0x2d2c7(0x1c3),_0x5a15f2[_0x2d2c7(0x1ce)]=_0x2d2c7(0x1ce),_0x5a15f2))(o||{});const c={[o[_0x2d2c7(0x1b3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x2d2c7(0x1cc)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x2d2c7(0x1c0)]]:{'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=_0x2d2c7(0x1d1),d=_0x2d2c7(0x1cb);function g(_0x1ca4e5,_0x19d609,_0x3a1b9d){const _0x383291=_0x2d2c7,_0x48196f=_0x3a1b9d===e[_0x383291(0x1d3)]?_0x1ca4e5:_0x19d609,_0x321233=_0x3a1b9d===e[_0x383291(0x1d3)]?_0x19d609:_0x1ca4e5,_0x2a10cf=_0x383291(0x1bd)+d+'\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'+_0x48196f+_0x383291(0x1c5)+_0x321233+'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+_0x383291(0x1bf)+p+_0x383291(0x1b4)+d+_0x383291(0x1c9)+_0x321233+_0x383291(0x1cf)+_0x48196f+_0x383291(0x1bc),_0x849fb3=document[_0x383291(0x1ca)]('style');return _0x849fb3[_0x383291(0x1b2)]=_0x2a10cf,_0x849fb3['className']=_0x383291(0x1c7),_0x849fb3;}function _0x34df(_0x5dda73,_0x321b1e){const _0x5545ba=_0x5545();return _0x34df=function(_0x34df1a,_0x5bf7d5){_0x34df1a=_0x34df1a-0x1b1;let _0x4c08bd=_0x5545ba[_0x34df1a];return _0x4c08bd;},_0x34df(_0x5dda73,_0x321b1e);}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
|
-
const
|
|
1
|
+
function _0x5545(){const _0x5f2957=['printing-canvas-container','Landscape','Portrait','1357610TGzayN','35179AUMQKU','innerHTML','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.','Middle','8CYThhW','1302660RLVTUD','1362447rnoHJS','22qjADNv','3hXJIoA','End','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.','Origin',',\x20.','Wide','1193488eGEjoK','689382QYTBCQ','None','7ezDtpZ','px\x20','FitHeight','offline-printing-css','323110FConpA','\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','createElement','printing-canvas','Narrow','Start','Custom','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitPage'];_0x5545=function(){return _0x5f2957;};return _0x5545();}const _0x2d2c7=_0x34df;(function(_0x885ae2,_0x262f0e){const _0x51597b=_0x34df,_0x53f5c9=_0x885ae2();while(!![]){try{const _0x232e6d=parseInt(_0x51597b(0x1b1))/0x1+-parseInt(_0x51597b(0x1c8))/0x2+parseInt(_0x51597b(0x1ba))/0x3*(parseInt(_0x51597b(0x1c1))/0x4)+parseInt(_0x51597b(0x1d4))/0x5+parseInt(_0x51597b(0x1c2))/0x6*(-parseInt(_0x51597b(0x1c4))/0x7)+-parseInt(_0x51597b(0x1b6))/0x8*(-parseInt(_0x51597b(0x1b8))/0x9)+parseInt(_0x51597b(0x1b7))/0xa*(-parseInt(_0x51597b(0x1b9))/0xb);if(_0x232e6d===_0x262f0e)break;else _0x53f5c9['push'](_0x53f5c9['shift']());}catch(_0x4377da){_0x53f5c9['push'](_0x53f5c9['shift']());}}}(_0x5545,0x35950));var e=(_0x59e9e1=>(_0x59e9e1[_0x2d2c7(0x1d3)]=_0x2d2c7(0x1d3),_0x59e9e1[_0x2d2c7(0x1d2)]=_0x2d2c7(0x1d2),_0x59e9e1))(e||{}),h=(_0x569d88=>(_0x569d88[_0x2d2c7(0x1be)]='Origin',_0x569d88['FitWidth']='FitWidth',_0x569d88['FitHeight']=_0x2d2c7(0x1c6),_0x569d88[_0x2d2c7(0x1d0)]=_0x2d2c7(0x1d0),_0x569d88[_0x2d2c7(0x1ce)]=_0x2d2c7(0x1ce),_0x569d88))(h||{}),l=(_0x193005=>(_0x193005['Start']=_0x2d2c7(0x1cd),_0x193005[_0x2d2c7(0x1bb)]=_0x2d2c7(0x1bb),_0x193005[_0x2d2c7(0x1b5)]=_0x2d2c7(0x1b5),_0x193005))(l||{}),o=(_0x5a15f2=>(_0x5a15f2[_0x2d2c7(0x1b3)]=_0x2d2c7(0x1b3),_0x5a15f2[_0x2d2c7(0x1cc)]=_0x2d2c7(0x1cc),_0x5a15f2['Wide']=_0x2d2c7(0x1c0),_0x5a15f2[_0x2d2c7(0x1c3)]=_0x2d2c7(0x1c3),_0x5a15f2[_0x2d2c7(0x1ce)]=_0x2d2c7(0x1ce),_0x5a15f2))(o||{});const c={[o[_0x2d2c7(0x1b3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x2d2c7(0x1cc)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x2d2c7(0x1c0)]]:{'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=_0x2d2c7(0x1d1),d=_0x2d2c7(0x1cb);function g(_0x1ca4e5,_0x19d609,_0x3a1b9d){const _0x383291=_0x2d2c7,_0x48196f=_0x3a1b9d===e[_0x383291(0x1d3)]?_0x1ca4e5:_0x19d609,_0x321233=_0x3a1b9d===e[_0x383291(0x1d3)]?_0x19d609:_0x1ca4e5,_0x2a10cf=_0x383291(0x1bd)+d+'\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'+_0x48196f+_0x383291(0x1c5)+_0x321233+'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+_0x383291(0x1bf)+p+_0x383291(0x1b4)+d+_0x383291(0x1c9)+_0x321233+_0x383291(0x1cf)+_0x48196f+_0x383291(0x1bc),_0x849fb3=document[_0x383291(0x1ca)]('style');return _0x849fb3[_0x383291(0x1b2)]=_0x2a10cf,_0x849fb3['className']=_0x383291(0x1c7),_0x849fb3;}function _0x34df(_0x5dda73,_0x321b1e){const _0x5545ba=_0x5545();return _0x34df=function(_0x34df1a,_0x5bf7d5){_0x34df1a=_0x34df1a-0x1b1;let _0x4c08bd=_0x5545ba[_0x34df1a];return _0x4c08bd;},_0x34df(_0x5dda73,_0x321b1e);}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(_0xa15211,_0x195cd1){const _0x1ad9bf=_0x7b51,_0x52e01b=_0xa15211();while(!![]){try{const _0x3da128=-parseInt(_0x1ad9bf(0x15a))/0x1*(-parseInt(_0x1ad9bf(0x162))/0x2)+parseInt(_0x1ad9bf(0x157))/0x3*(-parseInt(_0x1ad9bf(0x15d))/0x4)+parseInt(_0x1ad9bf(0x13d))/0x5+-parseInt(_0x1ad9bf(0x161))/0x6*(parseInt(_0x1ad9bf(0x146))/0x7)+parseInt(_0x1ad9bf(0x138))/0x8+parseInt(_0x1ad9bf(0x156))/0x9+parseInt(_0x1ad9bf(0x14e))/0xa;if(_0x3da128===_0x195cd1)break;else _0x52e01b['push'](_0x52e01b['shift']());}catch(_0x501c94){_0x52e01b['push'](_0x52e01b['shift']());}}}(_0x5277,0x3a1d9),function(_0x268c1c,_0x250aec){const _0x3f62a7=_0x7b51;typeof exports=='object'&&typeof module<'u'?_0x250aec(exports):typeof define==_0x3f62a7(0x151)&&define['amd']?define([_0x3f62a7(0x137)],_0x250aec):(_0x268c1c=typeof globalThis<'u'?globalThis:_0x268c1c||self,_0x250aec(_0x268c1c['UniverProPrint']={}));}(this,function(_0x1a7a3a){'use strict';const _0x41c6e8=_0x7b51;var _0x1ca4e0=(_0x3f0be1=>(_0x3f0be1[_0x41c6e8(0x149)]='Portrait',_0x3f0be1['Landscape']=_0x41c6e8(0x15f),_0x3f0be1))(_0x1ca4e0||{}),_0x330708=(_0x3ac9df=>(_0x3ac9df[_0x41c6e8(0x153)]=_0x41c6e8(0x153),_0x3ac9df[_0x41c6e8(0x155)]=_0x41c6e8(0x155),_0x3ac9df[_0x41c6e8(0x15b)]='FitHeight',_0x3ac9df[_0x41c6e8(0x14a)]=_0x41c6e8(0x14a),_0x3ac9df[_0x41c6e8(0x160)]='Custom',_0x3ac9df))(_0x330708||{}),_0x1c661f=(_0x3803cc=>(_0x3803cc[_0x41c6e8(0x14d)]=_0x41c6e8(0x14d),_0x3803cc['End']=_0x41c6e8(0x15c),_0x3803cc[_0x41c6e8(0x163)]=_0x41c6e8(0x163),_0x3803cc))(_0x1c661f||{}),_0x139eed=(_0x54a750=>(_0x54a750[_0x41c6e8(0x13f)]=_0x41c6e8(0x13f),_0x54a750[_0x41c6e8(0x13e)]='Narrow',_0x54a750[_0x41c6e8(0x13b)]=_0x41c6e8(0x13b),_0x54a750['None']='None',_0x54a750[_0x41c6e8(0x160)]=_0x41c6e8(0x160),_0x54a750))(_0x139eed||{});const _0x2df398={[_0x139eed[_0x41c6e8(0x13f)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x139eed[_0x41c6e8(0x13e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x139eed['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x139eed[_0x41c6e8(0x141)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x139eed[_0x41c6e8(0x160)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x17c557=_0x41c6e8(0x154),_0x34e900=_0x41c6e8(0x140);function _0x4d0979(_0x10b52a,_0x1c7f51,_0x384bfa){const _0x251168=_0x41c6e8,_0x448b22=_0x384bfa===_0x1ca4e0[_0x251168(0x149)]?_0x10b52a:_0x1c7f51,_0xe57825=_0x384bfa===_0x1ca4e0[_0x251168(0x149)]?_0x1c7f51:_0x10b52a,_0x2348ed=_0x251168(0x15e)+_0x34e900+_0x251168(0x136)+_0x448b22+_0x251168(0x147)+_0xe57825+_0x251168(0x145)+_0x17c557+_0x251168(0x159)+_0x17c557+_0x251168(0x148)+_0x34e900+'\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'+_0xe57825+_0x251168(0x14c)+_0x448b22+_0x251168(0x158),_0x4b6b80=document[_0x251168(0x139)](_0x251168(0x13c));return _0x4b6b80[_0x251168(0x142)]=_0x2348ed,_0x4b6b80[_0x251168(0x14f)]='offline-printing-css',_0x4b6b80;}_0x1a7a3a[_0x41c6e8(0x134)]=_0x34e900,_0x1a7a3a[_0x41c6e8(0x135)]=_0x17c557,_0x1a7a3a['PaperMarginMap']=_0x2df398,_0x1a7a3a[_0x41c6e8(0x150)]=_0x1c661f,_0x1a7a3a[_0x41c6e8(0x164)]=_0x1ca4e0,_0x1a7a3a[_0x41c6e8(0x152)]=_0x139eed,_0x1a7a3a[_0x41c6e8(0x13a)]=_0x330708,_0x1a7a3a[_0x41c6e8(0x143)]=_0x4d0979,Object['defineProperty'](_0x1a7a3a,Symbol[_0x41c6e8(0x14b)],{'value':_0x41c6e8(0x144)});}));function _0x7b51(_0x156287,_0x3b7491){const _0x5277ab=_0x5277();return _0x7b51=function(_0x7b514d,_0x379751){_0x7b514d=_0x7b514d-0x134;let _0xee0187=_0x5277ab[_0x7b514d];return _0xee0187;},_0x7b51(_0x156287,_0x3b7491);}function _0x5277(){const _0x4e55ff=['1503232GvRStP','createElement','PrintScale','Wide','style','304690RslBlI','Narrow','Normal','printing-canvas','None','innerHTML','createPrintStyle','Module','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.','7yKSiJC','px\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.','Portrait','FitPage','toStringTag','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Start','347600nCyzGm','className','PrintAlign','function','PrintPaperMargin','Origin','printing-canvas-container','FitWidth','812952NDfHVk','51QOsPsU','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}',',\x20.','98501vwqiAr','FitHeight','End','54092JCQfsZ','\x0a\x20\x20\x20\x20.','Landscape','Custom','1800012GLTAzY','8pTwuqk','Middle','PrintDirection','PRINT_CANVAS_CLASS','PRINT_CONTAINER_CLASS','\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'];_0x5277=function(){return _0x4e55ff;};return _0x5277();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.10-experimental.20251010-3f807c5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.9.2",
|
|
46
|
-
"vite": "^7.1.
|
|
46
|
+
"vite": "^7.1.7",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.10.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.10"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|