@univerjs-pro/print 0.15.2 → 0.15.3
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 _0x321bd5=_0x5393;function _0x5393(_0x43be83,_0x526cdb){_0x43be83=_0x43be83-0x160;const _0x1af9e7=_0x1af9();let _0x53938b=_0x1af9e7[_0x43be83];return _0x53938b;}function _0x1af9(){const _0x52b728=['Module','12pAULhx','Narrow','\x0a\x20\x20\x20\x20.','Wide','10MkWvXd','defineProperty','Normal','Origin','FitHeight','127722OpwuRZ','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PaperMarginMap','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}','6SSxzru','8PBTNOD','Start','End','Landscape','\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','None','printing-canvas-container','Custom','PrintScale','createElement','px\x20','1500560rZvVOk','Middle','9ufPFPi','21653970TYJgwJ','offline-printing-css','8753195DnBxCk','Portrait','3wFWuLK','style','FitPage','144411LFiIOE','2406822cUZkqR','PRINT_CONTAINER_CLASS','FitWidth','printing-canvas','className','createPrintStyle','PrintPaperMargin','PrintAlign','2813612otrWXv'];_0x1af9=function(){return _0x52b728;};return _0x1af9();}(function(_0x5eb9da,_0x134c1b){const _0x1078e5=_0x5393,_0x4142ed=_0x5eb9da();while(!![]){try{const _0x1109f1=-parseInt(_0x1078e5(0x186))/0x1*(parseInt(_0x1078e5(0x170))/0x2)+-parseInt(_0x1078e5(0x183))/0x3*(parseInt(_0x1078e5(0x161))/0x4)+parseInt(_0x1078e5(0x167))/0x5*(parseInt(_0x1078e5(0x187))/0x6)+-parseInt(_0x1078e5(0x16c))/0x7*(-parseInt(_0x1078e5(0x171))/0x8)+-parseInt(_0x1078e5(0x17e))/0x9*(parseInt(_0x1078e5(0x17c))/0xa)+-parseInt(_0x1078e5(0x181))/0xb*(parseInt(_0x1078e5(0x163))/0xc)+parseInt(_0x1078e5(0x17f))/0xd;if(_0x1109f1===_0x134c1b)break;else _0x4142ed['push'](_0x4142ed['shift']());}catch(_0x53ccd8){_0x4142ed['push'](_0x4142ed['shift']());}}}(_0x1af9,0x6293d));Object[_0x321bd5(0x168)](exports,Symbol['toStringTag'],{'value':_0x321bd5(0x162)});var i=(_0xcf1d32=>(_0xcf1d32[_0x321bd5(0x182)]=_0x321bd5(0x182),_0xcf1d32[_0x321bd5(0x174)]=_0x321bd5(0x174),_0xcf1d32))(i||{}),l=(_0x3e832c=>(_0x3e832c[_0x321bd5(0x16a)]=_0x321bd5(0x16a),_0x3e832c[_0x321bd5(0x189)]=_0x321bd5(0x189),_0x3e832c[_0x321bd5(0x16b)]=_0x321bd5(0x16b),_0x3e832c[_0x321bd5(0x185)]=_0x321bd5(0x185),_0x3e832c['Custom']=_0x321bd5(0x178),_0x3e832c))(l||{}),m=(_0xc2e4f0=>(_0xc2e4f0[_0x321bd5(0x172)]=_0x321bd5(0x172),_0xc2e4f0[_0x321bd5(0x173)]='End',_0xc2e4f0[_0x321bd5(0x17d)]=_0x321bd5(0x17d),_0xc2e4f0))(m||{}),o=(_0xfeecb4=>(_0xfeecb4[_0x321bd5(0x169)]=_0x321bd5(0x169),_0xfeecb4[_0x321bd5(0x164)]='Narrow',_0xfeecb4[_0x321bd5(0x166)]='Wide',_0xfeecb4[_0x321bd5(0x176)]=_0x321bd5(0x176),_0xfeecb4[_0x321bd5(0x178)]=_0x321bd5(0x178),_0xfeecb4))(o||{});const g={[o[_0x321bd5(0x169)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x321bd5(0x164)]]:{'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[_0x321bd5(0x178)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x321bd5(0x177),n=_0x321bd5(0x18a);function h(_0x381787,_0x52f749,_0x3e74eb){const _0x2a2add=_0x321bd5,_0x2b92ef=_0x3e74eb===i['Portrait']?_0x381787:_0x52f749,_0x509de2=_0x3e74eb===i[_0x2a2add(0x182)]?_0x52f749:_0x381787,_0x52e059=_0x2a2add(0x165)+n+_0x2a2add(0x175)+_0x2b92ef+_0x2a2add(0x17b)+_0x509de2+'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+'\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+'\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'+_0x509de2+_0x2a2add(0x16d)+_0x2b92ef+_0x2a2add(0x16f),_0x656c26=document[_0x2a2add(0x17a)](_0x2a2add(0x184));return _0x656c26['innerHTML']=_0x52e059,_0x656c26[_0x2a2add(0x18b)]=_0x2a2add(0x180),_0x656c26;}exports['PRINT_CANVAS_CLASS']=n,exports[_0x321bd5(0x188)]=r,exports[_0x321bd5(0x16e)]=g,exports[_0x321bd5(0x160)]=m,exports['PrintDirection']=i,exports[_0x321bd5(0x18d)]=o,exports[_0x321bd5(0x179)]=l,exports[_0x321bd5(0x18c)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x16fb94=_0x25d7;function _0x25d7(_0x4c1f05,_0x113a37){_0x4c1f05=_0x4c1f05-0x175;const _0x12e984=_0x12e9();let _0x25d770=_0x12e984[_0x4c1f05];return _0x25d770;}function _0x12e9(){const _0x429495=['220aqjlBb','85KOGHvQ','printing-canvas-container','createElement','None','className','printing-canvas','Origin','225564NrbwVH','offline-printing-css','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.',',\x20.','FitWidth','45WuOeEP','Portrait','px\x20','\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','FitHeight','\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','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.','2950932nvwnBC','Normal','396608QsFQLr','Custom','Start','End','Middle','Narrow','1227391gSghLT','4806914YOHElj','\x0a\x20\x20\x20\x20.','2NmuBpV','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Wide','125240eanwlA','4828140ggnbhi'];_0x12e9=function(){return _0x429495;};return _0x12e9();}(function(_0x42242d,_0x5c375c){const _0x40a046=_0x25d7,_0x3a6e2e=_0x42242d();while(!![]){try{const _0x11c5f4=parseInt(_0x40a046(0x184))/0x1+-parseInt(_0x40a046(0x177))/0x2*(-parseInt(_0x40a046(0x191))/0x3)+-parseInt(_0x40a046(0x17a))/0x4*(-parseInt(_0x40a046(0x17d))/0x5)+parseInt(_0x40a046(0x17b))/0x6+parseInt(_0x40a046(0x175))/0x7+-parseInt(_0x40a046(0x193))/0x8*(parseInt(_0x40a046(0x18a))/0x9)+parseInt(_0x40a046(0x17c))/0xa*(-parseInt(_0x40a046(0x199))/0xb);if(_0x11c5f4===_0x5c375c)break;else _0x3a6e2e['push'](_0x3a6e2e['shift']());}catch(_0x312a02){_0x3a6e2e['push'](_0x3a6e2e['shift']());}}}(_0x12e9,0x81720));var e=(_0x45e52b=>(_0x45e52b[_0x16fb94(0x18b)]=_0x16fb94(0x18b),_0x45e52b['Landscape']='Landscape',_0x45e52b))(e||{}),h=(_0x197d90=>(_0x197d90[_0x16fb94(0x183)]='Origin',_0x197d90[_0x16fb94(0x189)]=_0x16fb94(0x189),_0x197d90[_0x16fb94(0x18e)]='FitHeight',_0x197d90['FitPage']=_0x16fb94(0x186),_0x197d90['Custom']=_0x16fb94(0x194),_0x197d90))(h||{}),l=(_0x271c41=>(_0x271c41[_0x16fb94(0x195)]=_0x16fb94(0x195),_0x271c41[_0x16fb94(0x196)]=_0x16fb94(0x196),_0x271c41[_0x16fb94(0x197)]=_0x16fb94(0x197),_0x271c41))(l||{}),o=(_0x8ab653=>(_0x8ab653[_0x16fb94(0x192)]=_0x16fb94(0x192),_0x8ab653['Narrow']='Narrow',_0x8ab653[_0x16fb94(0x179)]=_0x16fb94(0x179),_0x8ab653['None']='None',_0x8ab653['Custom']='Custom',_0x8ab653))(o||{});const c={[o[_0x16fb94(0x192)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x16fb94(0x198)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x16fb94(0x179)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x16fb94(0x180)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x16fb94(0x194)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x16fb94(0x17e),d=_0x16fb94(0x182);function g(_0x58900a,_0x41f436,_0x370e5d){const _0x5b8e79=_0x16fb94,_0x283a1b=_0x370e5d===e[_0x5b8e79(0x18b)]?_0x58900a:_0x41f436,_0x576794=_0x370e5d===e[_0x5b8e79(0x18b)]?_0x41f436:_0x58900a,_0x6a73b9=_0x5b8e79(0x176)+d+_0x5b8e79(0x18f)+_0x283a1b+_0x5b8e79(0x18c)+_0x576794+_0x5b8e79(0x190)+p+_0x5b8e79(0x188)+p+_0x5b8e79(0x187)+d+_0x5b8e79(0x18d)+_0x576794+_0x5b8e79(0x178)+_0x283a1b+'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}',_0x4e057e=document[_0x5b8e79(0x17f)]('style');return _0x4e057e['innerHTML']=_0x6a73b9,_0x4e057e[_0x5b8e79(0x181)]=_0x5b8e79(0x185),_0x4e057e;}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
|
+
const _0x16fb94=_0x25d7;function _0x25d7(_0x4c1f05,_0x113a37){_0x4c1f05=_0x4c1f05-0x175;const _0x12e984=_0x12e9();let _0x25d770=_0x12e984[_0x4c1f05];return _0x25d770;}function _0x12e9(){const _0x429495=['220aqjlBb','85KOGHvQ','printing-canvas-container','createElement','None','className','printing-canvas','Origin','225564NrbwVH','offline-printing-css','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.',',\x20.','FitWidth','45WuOeEP','Portrait','px\x20','\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','FitHeight','\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','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.','2950932nvwnBC','Normal','396608QsFQLr','Custom','Start','End','Middle','Narrow','1227391gSghLT','4806914YOHElj','\x0a\x20\x20\x20\x20.','2NmuBpV','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Wide','125240eanwlA','4828140ggnbhi'];_0x12e9=function(){return _0x429495;};return _0x12e9();}(function(_0x42242d,_0x5c375c){const _0x40a046=_0x25d7,_0x3a6e2e=_0x42242d();while(!![]){try{const _0x11c5f4=parseInt(_0x40a046(0x184))/0x1+-parseInt(_0x40a046(0x177))/0x2*(-parseInt(_0x40a046(0x191))/0x3)+-parseInt(_0x40a046(0x17a))/0x4*(-parseInt(_0x40a046(0x17d))/0x5)+parseInt(_0x40a046(0x17b))/0x6+parseInt(_0x40a046(0x175))/0x7+-parseInt(_0x40a046(0x193))/0x8*(parseInt(_0x40a046(0x18a))/0x9)+parseInt(_0x40a046(0x17c))/0xa*(-parseInt(_0x40a046(0x199))/0xb);if(_0x11c5f4===_0x5c375c)break;else _0x3a6e2e['push'](_0x3a6e2e['shift']());}catch(_0x312a02){_0x3a6e2e['push'](_0x3a6e2e['shift']());}}}(_0x12e9,0x81720));var e=(_0x45e52b=>(_0x45e52b[_0x16fb94(0x18b)]=_0x16fb94(0x18b),_0x45e52b['Landscape']='Landscape',_0x45e52b))(e||{}),h=(_0x197d90=>(_0x197d90[_0x16fb94(0x183)]='Origin',_0x197d90[_0x16fb94(0x189)]=_0x16fb94(0x189),_0x197d90[_0x16fb94(0x18e)]='FitHeight',_0x197d90['FitPage']=_0x16fb94(0x186),_0x197d90['Custom']=_0x16fb94(0x194),_0x197d90))(h||{}),l=(_0x271c41=>(_0x271c41[_0x16fb94(0x195)]=_0x16fb94(0x195),_0x271c41[_0x16fb94(0x196)]=_0x16fb94(0x196),_0x271c41[_0x16fb94(0x197)]=_0x16fb94(0x197),_0x271c41))(l||{}),o=(_0x8ab653=>(_0x8ab653[_0x16fb94(0x192)]=_0x16fb94(0x192),_0x8ab653['Narrow']='Narrow',_0x8ab653[_0x16fb94(0x179)]=_0x16fb94(0x179),_0x8ab653['None']='None',_0x8ab653['Custom']='Custom',_0x8ab653))(o||{});const c={[o[_0x16fb94(0x192)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x16fb94(0x198)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x16fb94(0x179)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x16fb94(0x180)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x16fb94(0x194)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x16fb94(0x17e),d=_0x16fb94(0x182);function g(_0x58900a,_0x41f436,_0x370e5d){const _0x5b8e79=_0x16fb94,_0x283a1b=_0x370e5d===e[_0x5b8e79(0x18b)]?_0x58900a:_0x41f436,_0x576794=_0x370e5d===e[_0x5b8e79(0x18b)]?_0x41f436:_0x58900a,_0x6a73b9=_0x5b8e79(0x176)+d+_0x5b8e79(0x18f)+_0x283a1b+_0x5b8e79(0x18c)+_0x576794+_0x5b8e79(0x190)+p+_0x5b8e79(0x188)+p+_0x5b8e79(0x187)+d+_0x5b8e79(0x18d)+_0x576794+_0x5b8e79(0x178)+_0x283a1b+'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}',_0x4e057e=document[_0x5b8e79(0x17f)]('style');return _0x4e057e['innerHTML']=_0x6a73b9,_0x4e057e[_0x5b8e79(0x181)]=_0x5b8e79(0x185),_0x4e057e;}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(_0x4fc1cd,_0x12ee82){const _0x2263dd=_0x32e3,_0x5c2f74=_0x4fc1cd();while(!![]){try{const _0x24b3a2=-parseInt(_0x2263dd(0xd6))/0x1+parseInt(_0x2263dd(0xbe))/0x2+parseInt(_0x2263dd(0xda))/0x3+parseInt(_0x2263dd(0xc8))/0x4+parseInt(_0x2263dd(0xdd))/0x5+-parseInt(_0x2263dd(0xd1))/0x6+-parseInt(_0x2263dd(0xdc))/0x7;if(_0x24b3a2===_0x12ee82)break;else _0x5c2f74['push'](_0x5c2f74['shift']());}catch(_0x51d72f){_0x5c2f74['push'](_0x5c2f74['shift']());}}}(_0x4a66,0xd6507),function(_0x24724b,_0x1a9d27){const _0x366f60=_0x32e3;typeof exports==_0x366f60(0xbd)&&typeof module<'u'?_0x1a9d27(exports):typeof define=='function'&&define['amd']?define([_0x366f60(0xcc)],_0x1a9d27):(_0x24724b=typeof globalThis<'u'?globalThis:_0x24724b||self,_0x1a9d27(_0x24724b['UniverProPrint']={}));}(this,function(_0x480db7){'use strict';const _0x330097=_0x32e3;var _0x12578d=(_0x22b657=>(_0x22b657[_0x330097(0xdb)]=_0x330097(0xdb),_0x22b657[_0x330097(0xd5)]=_0x330097(0xd5),_0x22b657))(_0x12578d||{}),_0x3e9aa2=(_0x232b4a=>(_0x232b4a[_0x330097(0xcd)]=_0x330097(0xcd),_0x232b4a[_0x330097(0xe1)]=_0x330097(0xe1),_0x232b4a[_0x330097(0xce)]=_0x330097(0xce),_0x232b4a[_0x330097(0xc5)]=_0x330097(0xc5),_0x232b4a[_0x330097(0xc3)]=_0x330097(0xc3),_0x232b4a))(_0x3e9aa2||{}),_0xbd4924=(_0x43974a=>(_0x43974a[_0x330097(0xc6)]=_0x330097(0xc6),_0x43974a['End']=_0x330097(0xe0),_0x43974a[_0x330097(0xd3)]=_0x330097(0xd3),_0x43974a))(_0xbd4924||{}),_0x229708=(_0x347e10=>(_0x347e10[_0x330097(0xcb)]=_0x330097(0xcb),_0x347e10[_0x330097(0xc7)]='Narrow',_0x347e10[_0x330097(0xd7)]=_0x330097(0xd7),_0x347e10[_0x330097(0xbc)]=_0x330097(0xbc),_0x347e10[_0x330097(0xc3)]='Custom',_0x347e10))(_0x229708||{});const _0x33a408={[_0x229708['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x229708[_0x330097(0xc7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x229708[_0x330097(0xd7)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x229708['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x229708[_0x330097(0xc3)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x582b70='printing-canvas-container',_0x1ba182='printing-canvas';function _0x2bdf76(_0x13602f,_0xe47970,_0x557589){const _0x515e06=_0x330097,_0x3af8b8=_0x557589===_0x12578d['Portrait']?_0x13602f:_0xe47970,_0x10a92a=_0x557589===_0x12578d[_0x515e06(0xdb)]?_0xe47970:_0x13602f,_0x35c196=_0x515e06(0xb6)+_0x1ba182+_0x515e06(0xd0)+_0x3af8b8+_0x515e06(0xb9)+_0x10a92a+_0x515e06(0xb8)+_0x582b70+_0x515e06(0xbf)+_0x582b70+_0x515e06(0xd4)+_0x1ba182+_0x515e06(0xd9)+_0x10a92a+_0x515e06(0xdf)+_0x3af8b8+_0x515e06(0xde),_0xd99b49=document[_0x515e06(0xcf)](_0x515e06(0xb7));return _0xd99b49[_0x515e06(0xc0)]=_0x35c196,_0xd99b49[_0x515e06(0xc1)]=_0x515e06(0xca),_0xd99b49;}_0x480db7[_0x330097(0xd8)]=_0x1ba182,_0x480db7[_0x330097(0xc4)]=_0x582b70,_0x480db7['PaperMarginMap']=_0x33a408,_0x480db7[_0x330097(0xc9)]=_0xbd4924,_0x480db7[_0x330097(0xd2)]=_0x12578d,_0x480db7['PrintPaperMargin']=_0x229708,_0x480db7[_0x330097(0xbb)]=_0x3e9aa2,_0x480db7['createPrintStyle']=_0x2bdf76,Object[_0x330097(0xc2)](_0x480db7,Symbol[_0x330097(0xba)],{'value':'Module'});}));function _0x32e3(_0x1479af,_0x15e7a9){_0x1479af=_0x1479af-0xb6;const _0x4a66ff=_0x4a66();let _0x32e389=_0x4a66ff[_0x1479af];return _0x32e389;}function _0x4a66(){const _0x3b17d0=['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.','px\x20','toStringTag','PrintScale','None','object','3347816zJiHUP',',\x20.','innerHTML','className','defineProperty','Custom','PRINT_CONTAINER_CLASS','FitPage','Start','Narrow','6440440sWsihS','PrintAlign','offline-printing-css','Normal','exports','Origin','FitHeight','createElement','\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','3995094lIvzDG','PrintDirection','Middle','\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','864737ZbXCPA','Wide','PRINT_CANVAS_CLASS','\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','477114jXbjHb','Portrait','18989243pOGdEe','8390550GIqhOd','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}','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','End','FitWidth','\x0a\x20\x20\x20\x20.','style'];_0x4a66=function(){return _0x3b17d0;};return _0x4a66();}
|
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",
|
|
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.3.1",
|
|
47
47
|
"vitest": "^4.0.16",
|
|
48
|
-
"@univerjs-infra/shared": "0.15.
|
|
48
|
+
"@univerjs-infra/shared": "0.15.3"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|