@univerjs-pro/print 0.6.7 → 0.6.8
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 -0
- 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 _0x3277f1=_0x5ac5;(function(_0x18da23,_0x41638b){const _0x484786=_0x5ac5,_0x2ec422=_0x18da23();while(!![]){try{const _0x5c2acd=-parseInt(_0x484786(0x130))/0x1*(parseInt(_0x484786(0x13f))/0x2)+parseInt(_0x484786(0x142))/0x3*(-parseInt(_0x484786(0x12b))/0x4)+parseInt(_0x484786(0x119))/0x5*(parseInt(_0x484786(0x111))/0x6)+-parseInt(_0x484786(0x137))/0x7+parseInt(_0x484786(0x12e))/0x8*(parseInt(_0x484786(0x120))/0x9)+-parseInt(_0x484786(0x12a))/0xa+-parseInt(_0x484786(0x144))/0xb*(-parseInt(_0x484786(0x12c))/0xc);if(_0x5c2acd===_0x41638b)break;else _0x2ec422['push'](_0x2ec422['shift']());}catch(_0x293218){_0x2ec422['push'](_0x2ec422['shift']());}}}(_0x2efc,0xacac9));Object[_0x3277f1(0x116)](exports,Symbol[_0x3277f1(0x122)],{'value':_0x3277f1(0x118)});function _0x5ac5(_0x369095,_0x3a42bf){const _0x2efc51=_0x2efc();return _0x5ac5=function(_0x5ac531,_0x2bef2c){_0x5ac531=_0x5ac531-0x111;let _0x4714f1=_0x2efc51[_0x5ac531];return _0x4714f1;},_0x5ac5(_0x369095,_0x3a42bf);}var e=(_0x47472e=>(_0x47472e['Letter']=_0x3277f1(0x12d),_0x47472e[_0x3277f1(0x140)]=_0x3277f1(0x140),_0x47472e[_0x3277f1(0x13c)]=_0x3277f1(0x13c),_0x47472e[_0x3277f1(0x132)]=_0x3277f1(0x132),_0x47472e[_0x3277f1(0x11c)]=_0x3277f1(0x11c),_0x47472e[_0x3277f1(0x11a)]=_0x3277f1(0x11a),_0x47472e['A3']='A3',_0x47472e['A4']='A4',_0x47472e['A5']='A5',_0x47472e['B4']='B4',_0x47472e['B5']='B5',_0x47472e))(e||{}),i=(_0x4d90dd=>(_0x4d90dd[_0x3277f1(0x136)]=_0x3277f1(0x136),_0x4d90dd[_0x3277f1(0x13e)]=_0x3277f1(0x13e),_0x4d90dd))(i||{}),c=(_0x4caabb=>(_0x4caabb[_0x3277f1(0x128)]=_0x3277f1(0x128),_0x4caabb[_0x3277f1(0x124)]=_0x3277f1(0x124),_0x4caabb['FitHeight']=_0x3277f1(0x125),_0x4caabb[_0x3277f1(0x133)]=_0x3277f1(0x133),_0x4caabb[_0x3277f1(0x135)]=_0x3277f1(0x135),_0x4caabb))(c||{}),g=(_0x10da79=>(_0x10da79[_0x3277f1(0x143)]=_0x3277f1(0x143),_0x10da79['End']='End',_0x10da79['Middle']=_0x3277f1(0x112),_0x10da79))(g||{}),o=(_0x2c61d1=>(_0x2c61d1[_0x3277f1(0x12f)]=_0x3277f1(0x12f),_0x2c61d1['Narrow']='Narrow',_0x2c61d1[_0x3277f1(0x139)]=_0x3277f1(0x139),_0x2c61d1[_0x3277f1(0x127)]='None',_0x2c61d1))(o||{});function _0x2efc(){const _0x48ae23=['Legal','Narrow','Landscape','14KPSEsT','Tabloid','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','3PFPbvT','Start','5786AYtblb','6hLkgLt','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','offline-printing-css','createElement','defineProperty','PrintAlign','Module','6609715kMKTww','Folio','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Executive',',\x20.','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','px\x20','1785096dJeePd','PaperSizePxMap','toStringTag','className','FitWidth','FitHeight','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','None','Origin','innerHTML','14061140OEnxQe','4761244HAIemV','46740heZBTl','Letter','48bGjiHL','Normal','48347GsoRuz','PrintPaperSize','Statement','FitPage','style','Custom','Portrait','6430550VEoUuQ','PRINT_CONTAINER_CLASS','Wide','PrintPaperMargin','PRINT_CANVAS_CLASS'];_0x2efc=function(){return _0x48ae23;};return _0x2efc();}const m={[e['A3']]:{'w':0x463,'h':0x633},[e['A4']]:{'w':0x31a,'h':0x464},[e['A5']]:{'w':0x22f,'h':0x31a},[e['B4']]:{'w':0x3b0,'h':0x540},[e['B5']]:{'w':0x299,'h':0x3b0},[e[_0x3277f1(0x11c)]]:{'w':0x2b8,'h':0x3f0},[e[_0x3277f1(0x11a)]]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x3277f1(0x12d)]]:{'w':0x330,'h':0x420},[e[_0x3277f1(0x132)]]:{'w':0x210,'h':0x330},[e[_0x3277f1(0x140)]]:{'w':0x420,'h':0x660}},N={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3277f1(0x13d)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3277f1(0x139)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3277f1(0x127)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p='printing-canvas';function A(_0x27f471,_0xc21e7c){const _0x4fbbc8=_0x3277f1,{w:_0x39e303,h:_0x48ccf5}=m[_0x27f471],_0x4db157=_0xc21e7c===i[_0x4fbbc8(0x136)]?_0x39e303:_0x48ccf5,_0x57c3f7=_0xc21e7c===i[_0x4fbbc8(0x136)]?_0x48ccf5:_0x39e303,_0x3e5c2e=_0x4fbbc8(0x11e)+_0x4db157+_0x4fbbc8(0x11f)+_0x57c3f7+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+n+_0x4fbbc8(0x11d)+n+_0x4fbbc8(0x126)+p+_0x4fbbc8(0x11b)+_0x57c3f7+_0x4fbbc8(0x141)+_0x4db157+_0x4fbbc8(0x113),_0x1f82cd=document[_0x4fbbc8(0x115)](_0x4fbbc8(0x134));return _0x1f82cd[_0x4fbbc8(0x129)]=_0x3e5c2e,_0x1f82cd[_0x4fbbc8(0x123)]=_0x4fbbc8(0x114),_0x1f82cd;}exports[_0x3277f1(0x13b)]=p,exports[_0x3277f1(0x138)]=n,exports['PaperMarginMap']=N,exports[_0x3277f1(0x121)]=m,exports[_0x3277f1(0x117)]=g,exports['PrintDirection']=i,exports[_0x3277f1(0x13a)]=o,exports[_0x3277f1(0x131)]=e,exports['PrintScale']=c,exports['createPrintStyle']=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x321643=_0x130c;(function(_0x5e2995,_0x584841){const _0x457c9e=_0x130c,_0x46c104=_0x5e2995();while(!![]){try{const _0x1807bc=parseInt(_0x457c9e(0x1a6))/0x1*(-parseInt(_0x457c9e(0x1b2))/0x2)+parseInt(_0x457c9e(0x1b0))/0x3+parseInt(_0x457c9e(0x1a8))/0x4+parseInt(_0x457c9e(0x1b8))/0x5+parseInt(_0x457c9e(0x1b1))/0x6+parseInt(_0x457c9e(0x1be))/0x7*(parseInt(_0x457c9e(0x1c6))/0x8)+parseInt(_0x457c9e(0x1bc))/0x9*(-parseInt(_0x457c9e(0x1c2))/0xa);if(_0x1807bc===_0x584841)break;else _0x46c104['push'](_0x46c104['shift']());}catch(_0x1fa6b5){_0x46c104['push'](_0x46c104['shift']());}}}(_0x5abc,0x631b1));var o=(_0x4946ce=>(_0x4946ce[_0x321643(0x1c4)]=_0x321643(0x1c4),_0x4946ce['Tabloid']=_0x321643(0x1bb),_0x4946ce[_0x321643(0x1c3)]=_0x321643(0x1c3),_0x4946ce[_0x321643(0x1ac)]=_0x321643(0x1ac),_0x4946ce['Executive']=_0x321643(0x1a9),_0x4946ce['Folio']=_0x321643(0x1ba),_0x4946ce['A3']='A3',_0x4946ce['A4']='A4',_0x4946ce['A5']='A5',_0x4946ce['B4']='B4',_0x4946ce['B5']='B5',_0x4946ce))(o||{}),i=(_0x10f92b=>(_0x10f92b[_0x321643(0x1c0)]=_0x321643(0x1c0),_0x10f92b['Landscape']=_0x321643(0x1a4),_0x10f92b))(i||{}),w=(_0x2701e4=>(_0x2701e4[_0x321643(0x1b4)]=_0x321643(0x1b4),_0x2701e4[_0x321643(0x1a7)]=_0x321643(0x1a7),_0x2701e4[_0x321643(0x1bf)]=_0x321643(0x1bf),_0x2701e4[_0x321643(0x1a3)]='FitPage',_0x2701e4['Custom']='Custom',_0x2701e4))(w||{}),m=(_0x4056c2=>(_0x4056c2['Start']=_0x321643(0x1aa),_0x4056c2['End']=_0x321643(0x1c5),_0x4056c2['Middle']=_0x321643(0x1ad),_0x4056c2))(m||{}),e=(_0x319779=>(_0x319779[_0x321643(0x1af)]='Normal',_0x319779[_0x321643(0x1c1)]=_0x321643(0x1c1),_0x319779[_0x321643(0x1b6)]=_0x321643(0x1b6),_0x319779['None']='None',_0x319779))(e||{});const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o[_0x321643(0x1a9)]]:{'w':0x2b8,'h':0x3f0},[o[_0x321643(0x1ba)]]:{'w':0x330,'h':0x4e0},[o[_0x321643(0x1c3)]]:{'w':0x330,'h':0x540},[o[_0x321643(0x1c4)]]:{'w':0x330,'h':0x420},[o[_0x321643(0x1ac)]]:{'w':0x210,'h':0x330},[o[_0x321643(0x1bb)]]:{'w':0x420,'h':0x660}},v={[e[_0x321643(0x1af)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x321643(0x1c1)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x321643(0x1bd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x321643(0x1a5),p=_0x321643(0x1b9);function _0x130c(_0x264836,_0x25948a){const _0x5abc4e=_0x5abc();return _0x130c=function(_0x130cfe,_0x5c8bbd){_0x130cfe=_0x130cfe-0x1a3;let _0x2b4fee=_0x5abc4e[_0x130cfe];return _0x2b4fee;},_0x130c(_0x264836,_0x25948a);}function N(_0x4fc711,_0x1b5656){const _0x5a4026=_0x321643,{w:_0x3ffdc7,h:_0x216ada}=g[_0x4fc711],_0x1a4dc7=_0x1b5656===i[_0x5a4026(0x1c0)]?_0x3ffdc7:_0x216ada,_0x5a9b1a=_0x1b5656===i[_0x5a4026(0x1c0)]?_0x216ada:_0x3ffdc7,_0x670365=_0x5a4026(0x1b7)+_0x1a4dc7+'px\x20'+_0x5a9b1a+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+l+',\x20.'+l+_0x5a4026(0x1b5)+p+_0x5a4026(0x1ab)+_0x5a9b1a+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x1a4dc7+_0x5a4026(0x1ae),_0x492056=document[_0x5a4026(0x1b3)]('style');return _0x492056['innerHTML']=_0x670365,_0x492056['className']='offline-printing-css',_0x492056;}export{p as PRINT_CANVAS_CLASS,l as PRINT_CONTAINER_CLASS,v as PaperMarginMap,g as PaperSizePxMap,m as PrintAlign,i as PrintDirection,e as PrintPaperMargin,o as PrintPaperSize,w as PrintScale,N as createPrintStyle};function _0x5abc(){const _0x3b280b=['\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Wide','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','2665790hMabWI','printing-canvas','Folio','Tabloid','9qJghHc','None','956683pvgFzj','FitHeight','Portrait','Narrow','2624360jljsVR','Legal','Letter','End','24jVsiag','FitPage','Landscape','printing-canvas-container','773113qxXpiQ','FitWidth','951612ekZBxM','Executive','Start','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Statement','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Normal','176472HDrrYx','1209564sABLQk','2WFjaVw','createElement','Origin'];_0x5abc=function(){return _0x3b280b;};return _0x5abc();}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x321643=_0x130c;(function(_0x5e2995,_0x584841){const _0x457c9e=_0x130c,_0x46c104=_0x5e2995();while(!![]){try{const _0x1807bc=parseInt(_0x457c9e(0x1a6))/0x1*(-parseInt(_0x457c9e(0x1b2))/0x2)+parseInt(_0x457c9e(0x1b0))/0x3+parseInt(_0x457c9e(0x1a8))/0x4+parseInt(_0x457c9e(0x1b8))/0x5+parseInt(_0x457c9e(0x1b1))/0x6+parseInt(_0x457c9e(0x1be))/0x7*(parseInt(_0x457c9e(0x1c6))/0x8)+parseInt(_0x457c9e(0x1bc))/0x9*(-parseInt(_0x457c9e(0x1c2))/0xa);if(_0x1807bc===_0x584841)break;else _0x46c104['push'](_0x46c104['shift']());}catch(_0x1fa6b5){_0x46c104['push'](_0x46c104['shift']());}}}(_0x5abc,0x631b1));var o=(_0x4946ce=>(_0x4946ce[_0x321643(0x1c4)]=_0x321643(0x1c4),_0x4946ce['Tabloid']=_0x321643(0x1bb),_0x4946ce[_0x321643(0x1c3)]=_0x321643(0x1c3),_0x4946ce[_0x321643(0x1ac)]=_0x321643(0x1ac),_0x4946ce['Executive']=_0x321643(0x1a9),_0x4946ce['Folio']=_0x321643(0x1ba),_0x4946ce['A3']='A3',_0x4946ce['A4']='A4',_0x4946ce['A5']='A5',_0x4946ce['B4']='B4',_0x4946ce['B5']='B5',_0x4946ce))(o||{}),i=(_0x10f92b=>(_0x10f92b[_0x321643(0x1c0)]=_0x321643(0x1c0),_0x10f92b['Landscape']=_0x321643(0x1a4),_0x10f92b))(i||{}),w=(_0x2701e4=>(_0x2701e4[_0x321643(0x1b4)]=_0x321643(0x1b4),_0x2701e4[_0x321643(0x1a7)]=_0x321643(0x1a7),_0x2701e4[_0x321643(0x1bf)]=_0x321643(0x1bf),_0x2701e4[_0x321643(0x1a3)]='FitPage',_0x2701e4['Custom']='Custom',_0x2701e4))(w||{}),m=(_0x4056c2=>(_0x4056c2['Start']=_0x321643(0x1aa),_0x4056c2['End']=_0x321643(0x1c5),_0x4056c2['Middle']=_0x321643(0x1ad),_0x4056c2))(m||{}),e=(_0x319779=>(_0x319779[_0x321643(0x1af)]='Normal',_0x319779[_0x321643(0x1c1)]=_0x321643(0x1c1),_0x319779[_0x321643(0x1b6)]=_0x321643(0x1b6),_0x319779['None']='None',_0x319779))(e||{});const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o[_0x321643(0x1a9)]]:{'w':0x2b8,'h':0x3f0},[o[_0x321643(0x1ba)]]:{'w':0x330,'h':0x4e0},[o[_0x321643(0x1c3)]]:{'w':0x330,'h':0x540},[o[_0x321643(0x1c4)]]:{'w':0x330,'h':0x420},[o[_0x321643(0x1ac)]]:{'w':0x210,'h':0x330},[o[_0x321643(0x1bb)]]:{'w':0x420,'h':0x660}},v={[e[_0x321643(0x1af)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x321643(0x1c1)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x321643(0x1bd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x321643(0x1a5),p=_0x321643(0x1b9);function _0x130c(_0x264836,_0x25948a){const _0x5abc4e=_0x5abc();return _0x130c=function(_0x130cfe,_0x5c8bbd){_0x130cfe=_0x130cfe-0x1a3;let _0x2b4fee=_0x5abc4e[_0x130cfe];return _0x2b4fee;},_0x130c(_0x264836,_0x25948a);}function N(_0x4fc711,_0x1b5656){const _0x5a4026=_0x321643,{w:_0x3ffdc7,h:_0x216ada}=g[_0x4fc711],_0x1a4dc7=_0x1b5656===i[_0x5a4026(0x1c0)]?_0x3ffdc7:_0x216ada,_0x5a9b1a=_0x1b5656===i[_0x5a4026(0x1c0)]?_0x216ada:_0x3ffdc7,_0x670365=_0x5a4026(0x1b7)+_0x1a4dc7+'px\x20'+_0x5a9b1a+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+l+',\x20.'+l+_0x5a4026(0x1b5)+p+_0x5a4026(0x1ab)+_0x5a9b1a+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x1a4dc7+_0x5a4026(0x1ae),_0x492056=document[_0x5a4026(0x1b3)]('style');return _0x492056['innerHTML']=_0x670365,_0x492056['className']='offline-printing-css',_0x492056;}export{p as PRINT_CANVAS_CLASS,l as PRINT_CONTAINER_CLASS,v as PaperMarginMap,g as PaperSizePxMap,m as PrintAlign,i as PrintDirection,e as PrintPaperMargin,o as PrintPaperSize,w as PrintScale,N as createPrintStyle};function _0x5abc(){const _0x3b280b=['\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Wide','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','2665790hMabWI','printing-canvas','Folio','Tabloid','9qJghHc','None','956683pvgFzj','FitHeight','Portrait','Narrow','2624360jljsVR','Legal','Letter','End','24jVsiag','FitPage','Landscape','printing-canvas-container','773113qxXpiQ','FitWidth','951612ekZBxM','Executive','Start','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Statement','Middle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Normal','176472HDrrYx','1209564sABLQk','2WFjaVw','createElement','Origin'];_0x5abc=function(){return _0x3b280b;};return _0x5abc();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3155(_0x47ed98,_0x2fe15d){const _0x46ae08=_0x46ae();return _0x3155=function(_0x315558,_0x29b207){_0x315558=_0x315558-0xd0;let _0x135ff9=_0x46ae08[_0x315558];return _0x135ff9;},_0x3155(_0x47ed98,_0x2fe15d);}function _0x46ae(){const _0x3b62c9=['Landscape','toStringTag','PrintPaperMargin','Wide','FitPage','function','innerHTML','object','Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','printing-canvas','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','printing-canvas-container','Legal','PaperMarginMap','UniverProPrint','3657zKCyNP','Module','None','Letter','createElement','1055153aptTnq','Statement','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','1780755KqKFGd','px\x20','PrintPaperSize','Executive','2241428fUsBqj','PRINT_CONTAINER_CLASS','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','FitWidth','Normal','6iipayk','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Portrait','defineProperty','PrintAlign',',\x20.','End','17032fQrCUu','style','Tabloid','2682XuKzHb','FitHeight','Folio','Start','amd','Middle','36780870sLmjIl','76yvksTD','Narrow','7751569OtxGyN'];_0x46ae=function(){return _0x3b62c9;};return _0x46ae();}(function(_0x207d41,_0xa8eb80){const _0x3b5072=_0x3155,_0x7cdbac=_0x207d41();while(!![]){try{const _0x3ea047=parseInt(_0x3b5072(0x105))/0x1+parseInt(_0x3b5072(0xd6))/0x2+parseInt(_0x3b5072(0x100))/0x3*(-parseInt(_0x3b5072(0xec))/0x4)+parseInt(_0x3b5072(0xd2))/0x5*(parseInt(_0x3b5072(0xdb))/0x6)+parseInt(_0x3b5072(0xee))/0x7+parseInt(_0x3b5072(0xe2))/0x8*(parseInt(_0x3b5072(0xe5))/0x9)+-parseInt(_0x3b5072(0xeb))/0xa;if(_0x3ea047===_0xa8eb80)break;else _0x7cdbac['push'](_0x7cdbac['shift']());}catch(_0x2b03e8){_0x7cdbac['push'](_0x7cdbac['shift']());}}}(_0x46ae,0x8bca3),function(_0x9fd49,_0x41fd75){const _0x4ad1bf=_0x3155;typeof exports==_0x4ad1bf(0xf6)&&typeof module<'u'?_0x41fd75(exports):typeof define==_0x4ad1bf(0xf4)&&define[_0x4ad1bf(0xe9)]?define(['exports'],_0x41fd75):(_0x9fd49=typeof globalThis<'u'?globalThis:_0x9fd49||self,_0x41fd75(_0x9fd49[_0x4ad1bf(0xff)]={}));}(this,function(_0x52c3be){'use strict';const _0x695180=_0x3155;var _0x53c5b0=(_0x5d76ae=>(_0x5d76ae[_0x695180(0x103)]=_0x695180(0x103),_0x5d76ae[_0x695180(0xe4)]=_0x695180(0xe4),_0x5d76ae[_0x695180(0xfd)]=_0x695180(0xfd),_0x5d76ae[_0x695180(0x106)]=_0x695180(0x106),_0x5d76ae[_0x695180(0xd5)]=_0x695180(0xd5),_0x5d76ae[_0x695180(0xe7)]='Folio',_0x5d76ae['A3']='A3',_0x5d76ae['A4']='A4',_0x5d76ae['A5']='A5',_0x5d76ae['B4']='B4',_0x5d76ae['B5']='B5',_0x5d76ae))(_0x53c5b0||{}),_0x4e181b=(_0x2c1698=>(_0x2c1698['Portrait']=_0x695180(0xdd),_0x2c1698[_0x695180(0xef)]=_0x695180(0xef),_0x2c1698))(_0x4e181b||{}),_0x11f773=(_0x10ac14=>(_0x10ac14[_0x695180(0xf7)]='Origin',_0x10ac14[_0x695180(0xd9)]=_0x695180(0xd9),_0x10ac14[_0x695180(0xe6)]=_0x695180(0xe6),_0x10ac14['FitPage']=_0x695180(0xf3),_0x10ac14[_0x695180(0xfb)]=_0x695180(0xfb),_0x10ac14))(_0x11f773||{}),_0xa89b23=(_0x5402d9=>(_0x5402d9[_0x695180(0xe8)]=_0x695180(0xe8),_0x5402d9[_0x695180(0xe1)]=_0x695180(0xe1),_0x5402d9[_0x695180(0xea)]=_0x695180(0xea),_0x5402d9))(_0xa89b23||{}),_0x41969a=(_0x3665f8=>(_0x3665f8[_0x695180(0xda)]=_0x695180(0xda),_0x3665f8[_0x695180(0xed)]='Narrow',_0x3665f8[_0x695180(0xf2)]='Wide',_0x3665f8['None']=_0x695180(0x102),_0x3665f8))(_0x41969a||{});const _0x598203={[_0x53c5b0['A3']]:{'w':0x463,'h':0x633},[_0x53c5b0['A4']]:{'w':0x31a,'h':0x464},[_0x53c5b0['A5']]:{'w':0x22f,'h':0x31a},[_0x53c5b0['B4']]:{'w':0x3b0,'h':0x540},[_0x53c5b0['B5']]:{'w':0x299,'h':0x3b0},[_0x53c5b0[_0x695180(0xd5)]]:{'w':0x2b8,'h':0x3f0},[_0x53c5b0[_0x695180(0xe7)]]:{'w':0x330,'h':0x4e0},[_0x53c5b0[_0x695180(0xfd)]]:{'w':0x330,'h':0x540},[_0x53c5b0['Letter']]:{'w':0x330,'h':0x420},[_0x53c5b0[_0x695180(0x106)]]:{'w':0x210,'h':0x330},[_0x53c5b0[_0x695180(0xe4)]]:{'w':0x420,'h':0x660}},_0x220a0c={[_0x41969a[_0x695180(0xda)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x41969a[_0x695180(0xed)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x41969a['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x41969a[_0x695180(0x102)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x5b7de7=_0x695180(0xfc),_0x151d78=_0x695180(0xf9);function _0x5a39cc(_0x52c0bf,_0x386ba3){const _0x2d4654=_0x695180,{w:_0x5842d9,h:_0x476dd1}=_0x598203[_0x52c0bf],_0x4f87a9=_0x386ba3===_0x4e181b[_0x2d4654(0xdd)]?_0x5842d9:_0x476dd1,_0x56a7bd=_0x386ba3===_0x4e181b[_0x2d4654(0xdd)]?_0x476dd1:_0x5842d9,_0x2ce7e7=_0x2d4654(0xd1)+_0x4f87a9+_0x2d4654(0xd3)+_0x56a7bd+_0x2d4654(0xd0)+_0x5b7de7+_0x2d4654(0xe0)+_0x5b7de7+_0x2d4654(0xdc)+_0x151d78+_0x2d4654(0xd8)+_0x56a7bd+_0x2d4654(0xfa)+_0x4f87a9+_0x2d4654(0xf8),_0x255edf=document[_0x2d4654(0x104)](_0x2d4654(0xe3));return _0x255edf[_0x2d4654(0xf5)]=_0x2ce7e7,_0x255edf['className']='offline-printing-css',_0x255edf;}_0x52c3be['PRINT_CANVAS_CLASS']=_0x151d78,_0x52c3be[_0x695180(0xd7)]=_0x5b7de7,_0x52c3be[_0x695180(0xfe)]=_0x220a0c,_0x52c3be['PaperSizePxMap']=_0x598203,_0x52c3be[_0x695180(0xdf)]=_0xa89b23,_0x52c3be['PrintDirection']=_0x4e181b,_0x52c3be[_0x695180(0xf1)]=_0x41969a,_0x52c3be[_0x695180(0xd4)]=_0x53c5b0,_0x52c3be['PrintScale']=_0x11f773,_0x52c3be['createPrintStyle']=_0x5a39cc,Object[_0x695180(0xde)](_0x52c3be,Symbol[_0x695180(0xf0)],{'value':_0x695180(0x101)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.8",
|
|
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.2",
|
|
46
46
|
"vite": "^6.2.2",
|
|
47
47
|
"vitest": "^3.0.9",
|
|
48
|
-
"@univerjs-infra/shared": "0.6.
|
|
48
|
+
"@univerjs-infra/shared": "0.6.8"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|