@univerjs-pro/print 0.10.1 → 0.10.2-nightly.202508080617
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';const
|
|
1
|
+
'use strict';const _0x1f163e=_0xe71e;(function(_0x1e656a,_0x35f452){const _0x431773=_0xe71e,_0x1cbefc=_0x1e656a();while(!![]){try{const _0x3524cc=-parseInt(_0x431773(0x14f))/0x1+-parseInt(_0x431773(0x152))/0x2*(-parseInt(_0x431773(0x145))/0x3)+-parseInt(_0x431773(0x14d))/0x4*(parseInt(_0x431773(0x12c))/0x5)+-parseInt(_0x431773(0x157))/0x6*(parseInt(_0x431773(0x13a))/0x7)+-parseInt(_0x431773(0x13f))/0x8*(-parseInt(_0x431773(0x136))/0x9)+parseInt(_0x431773(0x148))/0xa*(parseInt(_0x431773(0x13b))/0xb)+-parseInt(_0x431773(0x158))/0xc*(-parseInt(_0x431773(0x12a))/0xd);if(_0x3524cc===_0x35f452)break;else _0x1cbefc['push'](_0x1cbefc['shift']());}catch(_0xc90eac){_0x1cbefc['push'](_0x1cbefc['shift']());}}}(_0xbcc6,0x68a3a));function _0xe71e(_0x45f93b,_0x2856d9){const _0xbcc639=_0xbcc6();return _0xe71e=function(_0xe71efb,_0x4f8645){_0xe71efb=_0xe71efb-0x129;let _0x48f0c2=_0xbcc639[_0xe71efb];return _0x48f0c2;},_0xe71e(_0x45f93b,_0x2856d9);}Object[_0x1f163e(0x129)](exports,Symbol[_0x1f163e(0x149)],{'value':_0x1f163e(0x12d)});function _0xbcc6(){const _0x34e6b8=['innerHTML','41090xRXDDt','toStringTag','PRINT_CANVAS_CLASS','offline-printing-css','createPrintStyle','28CKapVb','\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.','709720xMawbJ','Start','PrintPaperMargin','38zXRIem','Custom','createElement','FitPage','Portrait','51846pNUpHH','96eCIMYj','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}','defineProperty','575081eVbQxT','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','99770MJMeoR','Module','\x0a\x20\x20\x20\x20.','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','PRINT_CONTAINER_CLASS','Normal','Wide','FitWidth','printing-canvas','144bundJk','PaperMarginMap','FitHeight','px\x20','35kpimsV','1254hiochP','style','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.','123272NvnsOc','PrintScale','PrintDirection','Middle','Origin','Landscape','39843LOiACr','printing-canvas-container'];_0xbcc6=function(){return _0x34e6b8;};return _0xbcc6();}var e=(_0x56d6f6=>(_0x56d6f6[_0x1f163e(0x156)]=_0x1f163e(0x156),_0x56d6f6[_0x1f163e(0x144)]=_0x1f163e(0x144),_0x56d6f6))(e||{}),l=(_0x546a6c=>(_0x546a6c[_0x1f163e(0x143)]=_0x1f163e(0x143),_0x546a6c[_0x1f163e(0x134)]=_0x1f163e(0x134),_0x546a6c[_0x1f163e(0x138)]=_0x1f163e(0x138),_0x546a6c[_0x1f163e(0x155)]=_0x1f163e(0x155),_0x546a6c['Custom']=_0x1f163e(0x153),_0x546a6c))(l||{}),c=(_0xe65b62=>(_0xe65b62[_0x1f163e(0x150)]=_0x1f163e(0x150),_0xe65b62['End']='End',_0xe65b62[_0x1f163e(0x142)]='Middle',_0xe65b62))(c||{}),i=(_0x235111=>(_0x235111['Normal']=_0x1f163e(0x132),_0x235111['Narrow']='Narrow',_0x235111[_0x1f163e(0x133)]=_0x1f163e(0x133),_0x235111[_0x1f163e(0x13d)]=_0x1f163e(0x13d),_0x235111))(i||{});const h={[i[_0x1f163e(0x132)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x1f163e(0x12f)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x1f163e(0x133)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x1f163e(0x146),n=_0x1f163e(0x135);function m(_0x5b53e9,_0x405f62,_0x5db461){const _0x114c92=_0x1f163e,_0x2ce83e=_0x5db461===e[_0x114c92(0x156)]?_0x5b53e9:_0x405f62,_0xa614f1=_0x5db461===e[_0x114c92(0x156)]?_0x405f62:_0x5b53e9,_0x53084c=_0x114c92(0x12e)+n+'\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'+_0x2ce83e+_0x114c92(0x139)+_0xa614f1+_0x114c92(0x13e)+r+',\x20.'+r+_0x114c92(0x14e)+n+_0x114c92(0x130)+_0xa614f1+_0x114c92(0x12b)+_0x2ce83e+_0x114c92(0x159),_0x3b81d6=document[_0x114c92(0x154)](_0x114c92(0x13c));return _0x3b81d6[_0x114c92(0x147)]=_0x53084c,_0x3b81d6['className']=_0x114c92(0x14b),_0x3b81d6;}exports[_0x1f163e(0x14a)]=n,exports[_0x1f163e(0x131)]=r,exports[_0x1f163e(0x137)]=h,exports['PrintAlign']=c,exports[_0x1f163e(0x141)]=e,exports[_0x1f163e(0x151)]=i,exports[_0x1f163e(0x140)]=l,exports[_0x1f163e(0x14c)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x5413b1=_0x3624;(function(_0x4bd1d4,_0x40b037){const _0x16eb99=_0x3624,_0x2c33dc=_0x4bd1d4();while(!![]){try{const _0x275bc7=parseInt(_0x16eb99(0x89))/0x1*(parseInt(_0x16eb99(0x82))/0x2)+-parseInt(_0x16eb99(0x92))/0x3+-parseInt(_0x16eb99(0x83))/0x4*(parseInt(_0x16eb99(0x8b))/0x5)+-parseInt(_0x16eb99(0xa1))/0x6+parseInt(_0x16eb99(0x8f))/0x7+parseInt(_0x16eb99(0x85))/0x8+parseInt(_0x16eb99(0x8d))/0x9;if(_0x275bc7===_0x40b037)break;else _0x2c33dc['push'](_0x2c33dc['shift']());}catch(_0x11bd64){_0x2c33dc['push'](_0x2c33dc['shift']());}}}(_0x22d6,0x19aed));var e=(_0x148d5e=>(_0x148d5e[_0x5413b1(0x95)]=_0x5413b1(0x95),_0x148d5e['Landscape']='Landscape',_0x148d5e))(e||{}),l=(_0x5d5920=>(_0x5d5920['Origin']=_0x5413b1(0x9f),_0x5d5920[_0x5413b1(0x99)]=_0x5413b1(0x99),_0x5d5920['FitHeight']=_0x5413b1(0xa0),_0x5d5920[_0x5413b1(0x8a)]=_0x5413b1(0x8a),_0x5d5920[_0x5413b1(0x8c)]=_0x5413b1(0x8c),_0x5d5920))(l||{}),m=(_0x134f21=>(_0x134f21[_0x5413b1(0x91)]='Start',_0x134f21['End']=_0x5413b1(0x87),_0x134f21[_0x5413b1(0x97)]=_0x5413b1(0x97),_0x134f21))(m||{}),o=(_0x266664=>(_0x266664[_0x5413b1(0x86)]=_0x5413b1(0x86),_0x266664['Narrow']=_0x5413b1(0x9d),_0x266664['Wide']=_0x5413b1(0x84),_0x266664[_0x5413b1(0x98)]=_0x5413b1(0x98),_0x266664))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5413b1(0x9d)]]:{'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}},p='printing-canvas-container',d='printing-canvas';function _0x3624(_0x5e889b,_0x35a6c3){const _0x22d68a=_0x22d6();return _0x3624=function(_0x3624f7,_0x36992b){_0x3624f7=_0x3624f7-0x82;let _0x137518=_0x22d68a[_0x3624f7];return _0x137518;},_0x3624(_0x5e889b,_0x35a6c3);}function _0x22d6(){const _0x32e489=['offline-printing-css','Origin','FitHeight','162918EcZrrF','2NEvrYo','28QdPBmN','Wide','1152120tKCxmN','Normal','End',',\x20.','112406sdVtKr','FitPage','101360RNkVuL','Custom','1630143rMfHEC','className','23779lsVRrx','createElement','Start','500073Innlfy','px\x20','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','\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','Middle','None','FitWidth','innerHTML','\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.','\x0a\x20\x20\x20\x20.','Narrow'];_0x22d6=function(){return _0x32e489;};return _0x22d6();}function g(_0x274072,_0x569c9c,_0x25dfdb){const _0x45d701=_0x5413b1,_0x3f4e0=_0x25dfdb===e[_0x45d701(0x95)]?_0x274072:_0x569c9c,_0x53a71c=_0x25dfdb===e[_0x45d701(0x95)]?_0x569c9c:_0x274072,_0x5ecc62=_0x45d701(0x9c)+d+_0x45d701(0x96)+_0x3f4e0+_0x45d701(0x93)+_0x53a71c+_0x45d701(0x94)+p+_0x45d701(0x88)+p+_0x45d701(0x9b)+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'+_0x53a71c+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3f4e0+'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}',_0x1fe02b=document[_0x45d701(0x90)]('style');return _0x1fe02b[_0x45d701(0x9a)]=_0x5ecc62,_0x1fe02b[_0x45d701(0x8e)]=_0x45d701(0x9e),_0x1fe02b;}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 _0x5413b1=_0x3624;(function(_0x4bd1d4,_0x40b037){const _0x16eb99=_0x3624,_0x2c33dc=_0x4bd1d4();while(!![]){try{const _0x275bc7=parseInt(_0x16eb99(0x89))/0x1*(parseInt(_0x16eb99(0x82))/0x2)+-parseInt(_0x16eb99(0x92))/0x3+-parseInt(_0x16eb99(0x83))/0x4*(parseInt(_0x16eb99(0x8b))/0x5)+-parseInt(_0x16eb99(0xa1))/0x6+parseInt(_0x16eb99(0x8f))/0x7+parseInt(_0x16eb99(0x85))/0x8+parseInt(_0x16eb99(0x8d))/0x9;if(_0x275bc7===_0x40b037)break;else _0x2c33dc['push'](_0x2c33dc['shift']());}catch(_0x11bd64){_0x2c33dc['push'](_0x2c33dc['shift']());}}}(_0x22d6,0x19aed));var e=(_0x148d5e=>(_0x148d5e[_0x5413b1(0x95)]=_0x5413b1(0x95),_0x148d5e['Landscape']='Landscape',_0x148d5e))(e||{}),l=(_0x5d5920=>(_0x5d5920['Origin']=_0x5413b1(0x9f),_0x5d5920[_0x5413b1(0x99)]=_0x5413b1(0x99),_0x5d5920['FitHeight']=_0x5413b1(0xa0),_0x5d5920[_0x5413b1(0x8a)]=_0x5413b1(0x8a),_0x5d5920[_0x5413b1(0x8c)]=_0x5413b1(0x8c),_0x5d5920))(l||{}),m=(_0x134f21=>(_0x134f21[_0x5413b1(0x91)]='Start',_0x134f21['End']=_0x5413b1(0x87),_0x134f21[_0x5413b1(0x97)]=_0x5413b1(0x97),_0x134f21))(m||{}),o=(_0x266664=>(_0x266664[_0x5413b1(0x86)]=_0x5413b1(0x86),_0x266664['Narrow']=_0x5413b1(0x9d),_0x266664['Wide']=_0x5413b1(0x84),_0x266664[_0x5413b1(0x98)]=_0x5413b1(0x98),_0x266664))(o||{});const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5413b1(0x9d)]]:{'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}},p='printing-canvas-container',d='printing-canvas';function _0x3624(_0x5e889b,_0x35a6c3){const _0x22d68a=_0x22d6();return _0x3624=function(_0x3624f7,_0x36992b){_0x3624f7=_0x3624f7-0x82;let _0x137518=_0x22d68a[_0x3624f7];return _0x137518;},_0x3624(_0x5e889b,_0x35a6c3);}function _0x22d6(){const _0x32e489=['offline-printing-css','Origin','FitHeight','162918EcZrrF','2NEvrYo','28QdPBmN','Wide','1152120tKCxmN','Normal','End',',\x20.','112406sdVtKr','FitPage','101360RNkVuL','Custom','1630143rMfHEC','className','23779lsVRrx','createElement','Start','500073Innlfy','px\x20','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','\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','Middle','None','FitWidth','innerHTML','\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.','\x0a\x20\x20\x20\x20.','Narrow'];_0x22d6=function(){return _0x32e489;};return _0x22d6();}function g(_0x274072,_0x569c9c,_0x25dfdb){const _0x45d701=_0x5413b1,_0x3f4e0=_0x25dfdb===e[_0x45d701(0x95)]?_0x274072:_0x569c9c,_0x53a71c=_0x25dfdb===e[_0x45d701(0x95)]?_0x569c9c:_0x274072,_0x5ecc62=_0x45d701(0x9c)+d+_0x45d701(0x96)+_0x3f4e0+_0x45d701(0x93)+_0x53a71c+_0x45d701(0x94)+p+_0x45d701(0x88)+p+_0x45d701(0x9b)+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'+_0x53a71c+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x3f4e0+'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}',_0x1fe02b=document[_0x45d701(0x90)]('style');return _0x1fe02b[_0x45d701(0x9a)]=_0x5ecc62,_0x1fe02b[_0x45d701(0x8e)]=_0x45d701(0x9e),_0x1fe02b;}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 _0x31cb(_0x3a24f2,_0x3f9df3){const _0x10dc4d=_0x10dc();return _0x31cb=function(_0x31cbb0,_0x552154){_0x31cbb0=_0x31cbb0-0x10b;let _0x52ed88=_0x10dc4d[_0x31cbb0];return _0x52ed88;},_0x31cb(_0x3a24f2,_0x3f9df3);}(function(_0x31bcac,_0x58e4d8){const _0x180302=_0x31cb,_0x56057f=_0x31bcac();while(!![]){try{const _0x297d3a=-parseInt(_0x180302(0x115))/0x1+parseInt(_0x180302(0x10f))/0x2+-parseInt(_0x180302(0x13d))/0x3+parseInt(_0x180302(0x120))/0x4*(parseInt(_0x180302(0x11c))/0x5)+parseInt(_0x180302(0x12c))/0x6*(-parseInt(_0x180302(0x12a))/0x7)+-parseInt(_0x180302(0x131))/0x8*(parseInt(_0x180302(0x123))/0x9)+parseInt(_0x180302(0x13a))/0xa*(parseInt(_0x180302(0x112))/0xb);if(_0x297d3a===_0x58e4d8)break;else _0x56057f['push'](_0x56057f['shift']());}catch(_0x472a7d){_0x56057f['push'](_0x56057f['shift']());}}}(_0x10dc,0x5a5d8),function(_0x2e98a9,_0xbc4306){const _0x331a13=_0x31cb;typeof exports==_0x331a13(0x113)&&typeof module<'u'?_0xbc4306(exports):typeof define==_0x331a13(0x129)&&define[_0x331a13(0x11a)]?define([_0x331a13(0x121)],_0xbc4306):(_0x2e98a9=typeof globalThis<'u'?globalThis:_0x2e98a9||self,_0xbc4306(_0x2e98a9[_0x331a13(0x12b)]={}));}(this,function(_0xc0bbf6){'use strict';const _0x37030c=_0x31cb;var _0x1e137a=(_0x612d1f=>(_0x612d1f[_0x37030c(0x12f)]=_0x37030c(0x12f),_0x612d1f[_0x37030c(0x139)]=_0x37030c(0x139),_0x612d1f))(_0x1e137a||{}),_0x5c3b1e=(_0x452595=>(_0x452595[_0x37030c(0x126)]=_0x37030c(0x126),_0x452595[_0x37030c(0x118)]=_0x37030c(0x118),_0x452595[_0x37030c(0x119)]=_0x37030c(0x119),_0x452595[_0x37030c(0x10d)]='FitPage',_0x452595['Custom']=_0x37030c(0x12d),_0x452595))(_0x5c3b1e||{}),_0x3e2a27=(_0x56b0f5=>(_0x56b0f5[_0x37030c(0x132)]=_0x37030c(0x132),_0x56b0f5[_0x37030c(0x117)]='End',_0x56b0f5[_0x37030c(0x11f)]='Middle',_0x56b0f5))(_0x3e2a27||{}),_0x585f09=(_0x3e3c21=>(_0x3e3c21[_0x37030c(0x125)]='Normal',_0x3e3c21[_0x37030c(0x124)]=_0x37030c(0x124),_0x3e3c21[_0x37030c(0x130)]=_0x37030c(0x130),_0x3e3c21[_0x37030c(0x110)]=_0x37030c(0x110),_0x3e3c21))(_0x585f09||{});const _0x2072cb={[_0x585f09[_0x37030c(0x125)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x585f09[_0x37030c(0x124)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x585f09['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x585f09['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0xa230e2=_0x37030c(0x111),_0x2a87cc=_0x37030c(0x10c);function _0x189fa1(_0xb2592b,_0xba0778,_0x2dc7d1){const _0x34d0f5=_0x37030c,_0x23bd51=_0x2dc7d1===_0x1e137a[_0x34d0f5(0x12f)]?_0xb2592b:_0xba0778,_0x38c985=_0x2dc7d1===_0x1e137a[_0x34d0f5(0x12f)]?_0xba0778:_0xb2592b,_0x907247=_0x34d0f5(0x122)+_0x2a87cc+_0x34d0f5(0x12e)+_0x23bd51+_0x34d0f5(0x10b)+_0x38c985+_0x34d0f5(0x127)+_0xa230e2+_0x34d0f5(0x11b)+_0xa230e2+_0x34d0f5(0x10e)+_0x2a87cc+_0x34d0f5(0x135)+_0x38c985+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x23bd51+_0x34d0f5(0x137),_0x5d4dad=document[_0x34d0f5(0x136)]('style');return _0x5d4dad[_0x34d0f5(0x11d)]=_0x907247,_0x5d4dad[_0x34d0f5(0x11e)]=_0x34d0f5(0x116),_0x5d4dad;}_0xc0bbf6['PRINT_CANVAS_CLASS']=_0x2a87cc,_0xc0bbf6['PRINT_CONTAINER_CLASS']=_0xa230e2,_0xc0bbf6[_0x37030c(0x128)]=_0x2072cb,_0xc0bbf6[_0x37030c(0x134)]=_0x3e2a27,_0xc0bbf6['PrintDirection']=_0x1e137a,_0xc0bbf6[_0x37030c(0x114)]=_0x585f09,_0xc0bbf6[_0x37030c(0x133)]=_0x5c3b1e,_0xc0bbf6[_0x37030c(0x13b)]=_0x189fa1,Object['defineProperty'](_0xc0bbf6,Symbol[_0x37030c(0x138)],{'value':_0x37030c(0x13c)});}));function _0x10dc(){const _0x15ca7a=['Module','236904kXJKlC','px\x20','printing-canvas','FitPage','\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.','1316292HXcxyl','None','printing-canvas-container','65571vMPnGa','object','PrintPaperMargin','114920dKvnXy','offline-printing-css','End','FitWidth','FitHeight','amd',',\x20.','170BAqipS','innerHTML','className','Middle','78084RPVdzM','exports','\x0a\x20\x20\x20\x20.','1278VQHvQU','Narrow','Normal','Origin','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.','PaperMarginMap','function','5180203YPsDpP','UniverProPrint','6TTGSbB','Custom','\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','Portrait','Wide','7384xOXVZH','Start','PrintScale','PrintAlign','\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','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}','toStringTag','Landscape','190nmvogK','createPrintStyle'];_0x10dc=function(){return _0x15ca7a;};return _0x10dc();}
|
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.202508080617",
|
|
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",
|