@univerjs-pro/print 0.4.0-alpha.0 → 0.4.0-alpha.1

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x22a6c0=_0x1806;function _0x1806(_0x37ebf8,_0x511323){const _0x1042a7=_0x1042();return _0x1806=function(_0x1806c4,_0x461a30){_0x1806c4=_0x1806c4-0x76;let _0x352f88=_0x1042a7[_0x1806c4];return _0x352f88;},_0x1806(_0x37ebf8,_0x511323);}(function(_0x3f17da,_0x2ca9c6){const _0x5551e3=_0x1806,_0x4115e9=_0x3f17da();while(!![]){try{const _0x1451dd=parseInt(_0x5551e3(0x79))/0x1*(parseInt(_0x5551e3(0xa4))/0x2)+-parseInt(_0x5551e3(0x87))/0x3*(-parseInt(_0x5551e3(0x77))/0x4)+-parseInt(_0x5551e3(0x99))/0x5+parseInt(_0x5551e3(0x7f))/0x6*(parseInt(_0x5551e3(0x96))/0x7)+-parseInt(_0x5551e3(0x85))/0x8+parseInt(_0x5551e3(0x93))/0x9+parseInt(_0x5551e3(0x80))/0xa*(-parseInt(_0x5551e3(0x86))/0xb);if(_0x1451dd===_0x2ca9c6)break;else _0x4115e9['push'](_0x4115e9['shift']());}catch(_0x271825){_0x4115e9['push'](_0x4115e9['shift']());}}}(_0x1042,0x89b75));Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x22a6c0(0x94)});var e=(_0x10a9f1=>(_0x10a9f1[_0x22a6c0(0x8b)]='Letter',_0x10a9f1[_0x22a6c0(0x9d)]=_0x22a6c0(0x9d),_0x10a9f1[_0x22a6c0(0x9a)]=_0x22a6c0(0x9a),_0x10a9f1[_0x22a6c0(0x8e)]='Statement',_0x10a9f1['Executive']=_0x22a6c0(0x7d),_0x10a9f1[_0x22a6c0(0xa1)]='Folio',_0x10a9f1['A3']='A3',_0x10a9f1['A4']='A4',_0x10a9f1['A5']='A5',_0x10a9f1['B4']='B4',_0x10a9f1['B5']='B5',_0x10a9f1))(e||{}),i=(_0x42a752=>(_0x42a752[_0x22a6c0(0xa7)]=_0x22a6c0(0xa7),_0x42a752[_0x22a6c0(0xaa)]=_0x22a6c0(0xaa),_0x42a752))(i||{}),c=(_0x47bfed=>(_0x47bfed['Origin']=_0x22a6c0(0x89),_0x47bfed['FitWidth']=_0x22a6c0(0x82),_0x47bfed[_0x22a6c0(0x98)]=_0x22a6c0(0x98),_0x47bfed['FitPage']=_0x22a6c0(0x9c),_0x47bfed[_0x22a6c0(0x81)]=_0x22a6c0(0x81),_0x47bfed))(c||{}),g=(_0x1f841a=>(_0x1f841a[_0x22a6c0(0x95)]='Start',_0x1f841a['End']='End',_0x1f841a[_0x22a6c0(0x90)]=_0x22a6c0(0x90),_0x1f841a))(g||{}),o=(_0x5aa68f=>(_0x5aa68f[_0x22a6c0(0xa2)]='Normal',_0x5aa68f['Narrow']='Narrow',_0x5aa68f['Wide']=_0x22a6c0(0x9b),_0x5aa68f['None']='None',_0x5aa68f))(o||{});function _0x1042(){const _0x1a1136=['offline-printing-css','164935vdvNmD','createPrintStyle','printing-canvas','innerHTML','Executive','PrintPaperMargin','5022aFRsLf','50wAaoYV','Custom','FitWidth','None','PaperSizePxMap','7456792xYzDRW','2994629wfkTPt','624396lsLahE','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Origin','style','Letter','PRINT_CANVAS_CLASS','PrintAlign','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.','Middle','\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.','px\x20','8766648CyuSCo','Module','Start','8743mGyTUb','\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','FitHeight','2447195PkXbjs','Legal','Wide','FitPage','Tabloid','createElement','PRINT_CONTAINER_CLASS','PrintScale','Folio','Normal','PrintPaperSize','6Rbvjxw','PaperMarginMap','className','Portrait','PrintDirection',',\x20.','Landscape','printing-canvas-container','16WYLpFZ'];_0x1042=function(){return _0x1a1136;};return _0x1042();}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['Executive']]:{'w':0x2b8,'h':0x3f0},[e[_0x22a6c0(0xa1)]]:{'w':0x330,'h':0x4e0},[e[_0x22a6c0(0x9a)]]:{'w':0x330,'h':0x540},[e[_0x22a6c0(0x8b)]]:{'w':0x330,'h':0x420},[e[_0x22a6c0(0x8e)]]:{'w':0x210,'h':0x330},[e['Tabloid']]:{'w':0x420,'h':0x660}},N={[o[_0x22a6c0(0xa2)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x22a6c0(0x9b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x22a6c0(0x83)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x22a6c0(0x76),p=_0x22a6c0(0x7b);function A(_0x3ce860,_0x3aace1){const _0x5cb86d=_0x22a6c0,{w:_0x145f49,h:_0x5b4314}=m[_0x3ce860],_0x1919dd=_0x3aace1===i[_0x5cb86d(0xa7)]?_0x145f49:_0x5b4314,_0x4c8e15=_0x3aace1===i[_0x5cb86d(0xa7)]?_0x5b4314:_0x145f49,_0x4d887f=_0x5cb86d(0x97)+_0x1919dd+_0x5cb86d(0x92)+_0x4c8e15+_0x5cb86d(0x8f)+n+_0x5cb86d(0xa9)+n+_0x5cb86d(0x91)+p+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x4c8e15+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x1919dd+_0x5cb86d(0x88),_0xc685f=document[_0x5cb86d(0x9e)](_0x5cb86d(0x8a));return _0xc685f[_0x5cb86d(0x7c)]=_0x4d887f,_0xc685f[_0x5cb86d(0xa6)]=_0x5cb86d(0x78),_0xc685f;}exports[_0x22a6c0(0x8c)]=p,exports[_0x22a6c0(0x9f)]=n,exports[_0x22a6c0(0xa5)]=N,exports[_0x22a6c0(0x84)]=m,exports[_0x22a6c0(0x8d)]=g,exports[_0x22a6c0(0xa8)]=i,exports[_0x22a6c0(0x7e)]=o,exports[_0x22a6c0(0xa3)]=e,exports[_0x22a6c0(0xa0)]=c,exports[_0x22a6c0(0x7a)]=A;
1
+ 'use strict';const _0x458611=_0x4f43;function _0x54e5(){const _0x235271=['1677892qOLHSb','\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','50WDScTN','252biPqpQ','createPrintStyle','PRINT_CANVAS_CLASS','End','Landscape','1721401MttMkL','Legal','\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.','Narrow','style','None','Statement','Portrait','Middle','Normal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','FitPage','Start','Letter','Wide','5EUrFSC','FitHeight','3413835gzVJgh','offline-printing-css','PrintAlign','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','PrintDirection','toStringTag','printing-canvas-container','createElement','28uMJUrV','className','439860Ufryyt','FitWidth','PaperMarginMap','Origin','PrintPaperSize','Custom','PrintScale','91488pNbyfo','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Folio','PaperSizePxMap','7506ssjFDB','px\x20',',\x20.','428940SFAsxb','Tabloid','innerHTML'];_0x54e5=function(){return _0x235271;};return _0x54e5();}(function(_0x338fe1,_0x6504e9){const _0x1af5c3=_0x4f43,_0x35210a=_0x338fe1();while(!![]){try{const _0x2f45da=parseInt(_0x1af5c3(0x152))/0x1+-parseInt(_0x1af5c3(0x124))/0x2*(parseInt(_0x1af5c3(0x14f))/0x3)+parseInt(_0x1af5c3(0x155))/0x4*(-parseInt(_0x1af5c3(0x138))/0x5)+parseInt(_0x1af5c3(0x144))/0x6+parseInt(_0x1af5c3(0x142))/0x7*(parseInt(_0x1af5c3(0x14b))/0x8)+-parseInt(_0x1af5c3(0x13a))/0x9+parseInt(_0x1af5c3(0x123))/0xa*(parseInt(_0x1af5c3(0x129))/0xb);if(_0x2f45da===_0x6504e9)break;else _0x35210a['push'](_0x35210a['shift']());}catch(_0x2bc303){_0x35210a['push'](_0x35210a['shift']());}}}(_0x54e5,0x34d59));Object['defineProperty'](exports,Symbol[_0x458611(0x13f)],{'value':'Module'});var e=(_0x4654fc=>(_0x4654fc[_0x458611(0x136)]='Letter',_0x4654fc[_0x458611(0x153)]=_0x458611(0x153),_0x4654fc[_0x458611(0x12a)]='Legal',_0x4654fc[_0x458611(0x12f)]=_0x458611(0x12f),_0x4654fc['Executive']='Executive',_0x4654fc[_0x458611(0x14d)]=_0x458611(0x14d),_0x4654fc['A3']='A3',_0x4654fc['A4']='A4',_0x4654fc['A5']='A5',_0x4654fc['B4']='B4',_0x4654fc['B5']='B5',_0x4654fc))(e||{}),i=(_0x3303c5=>(_0x3303c5[_0x458611(0x130)]=_0x458611(0x130),_0x3303c5['Landscape']=_0x458611(0x128),_0x3303c5))(i||{}),c=(_0x18e75d=>(_0x18e75d[_0x458611(0x147)]=_0x458611(0x147),_0x18e75d[_0x458611(0x145)]=_0x458611(0x145),_0x18e75d[_0x458611(0x139)]=_0x458611(0x139),_0x18e75d[_0x458611(0x134)]=_0x458611(0x134),_0x18e75d['Custom']=_0x458611(0x149),_0x18e75d))(c||{}),g=(_0x121e07=>(_0x121e07[_0x458611(0x135)]='Start',_0x121e07[_0x458611(0x127)]=_0x458611(0x127),_0x121e07[_0x458611(0x131)]=_0x458611(0x131),_0x121e07))(g||{}),o=(_0x5df4b8=>(_0x5df4b8[_0x458611(0x132)]=_0x458611(0x132),_0x5df4b8[_0x458611(0x12c)]=_0x458611(0x12c),_0x5df4b8['Wide']='Wide',_0x5df4b8[_0x458611(0x12e)]='None',_0x5df4b8))(o||{});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['Executive']]:{'w':0x2b8,'h':0x3f0},[e[_0x458611(0x14d)]]:{'w':0x330,'h':0x4e0},[e[_0x458611(0x12a)]]:{'w':0x330,'h':0x540},[e[_0x458611(0x136)]]:{'w':0x330,'h':0x420},[e[_0x458611(0x12f)]]:{'w':0x210,'h':0x330},[e[_0x458611(0x153)]]:{'w':0x420,'h':0x660}},N={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x458611(0x137)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x458611(0x12e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x458611(0x140),p='printing-canvas';function A(_0x129f33,_0x1724ed){const _0x534a23=_0x458611,{w:_0x61437f,h:_0x5020d8}=m[_0x129f33],_0x20391f=_0x1724ed===i[_0x534a23(0x130)]?_0x61437f:_0x5020d8,_0x333f74=_0x1724ed===i[_0x534a23(0x130)]?_0x5020d8:_0x61437f,_0x38ae5d=_0x534a23(0x122)+_0x20391f+_0x534a23(0x150)+_0x333f74+'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+_0x534a23(0x151)+n+_0x534a23(0x12b)+p+_0x534a23(0x13d)+_0x333f74+_0x534a23(0x14c)+_0x20391f+_0x534a23(0x133),_0x10d32f=document[_0x534a23(0x141)](_0x534a23(0x12d));return _0x10d32f[_0x534a23(0x154)]=_0x38ae5d,_0x10d32f[_0x534a23(0x143)]=_0x534a23(0x13b),_0x10d32f;}function _0x4f43(_0x33dd2f,_0x5a629f){const _0x54e51a=_0x54e5();return _0x4f43=function(_0x4f431e,_0x12d7cc){_0x4f431e=_0x4f431e-0x122;let _0x293455=_0x54e51a[_0x4f431e];return _0x293455;},_0x4f43(_0x33dd2f,_0x5a629f);}exports[_0x458611(0x126)]=p,exports['PRINT_CONTAINER_CLASS']=n,exports[_0x458611(0x146)]=N,exports[_0x458611(0x14e)]=m,exports[_0x458611(0x13c)]=g,exports[_0x458611(0x13e)]=i,exports['PrintPaperMargin']=o,exports[_0x458611(0x148)]=e,exports[_0x458611(0x14a)]=c,exports[_0x458611(0x125)]=A;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x493a15=_0x5a8d;(function(_0xa47bcd,_0x4fa512){const _0x4b30fe=_0x5a8d,_0x1eca16=_0xa47bcd();while(!![]){try{const _0x1972f0=parseInt(_0x4b30fe(0x176))/0x1*(parseInt(_0x4b30fe(0x192))/0x2)+parseInt(_0x4b30fe(0x18d))/0x3*(parseInt(_0x4b30fe(0x175))/0x4)+parseInt(_0x4b30fe(0x199))/0x5*(-parseInt(_0x4b30fe(0x190))/0x6)+-parseInt(_0x4b30fe(0x18b))/0x7*(parseInt(_0x4b30fe(0x17b))/0x8)+parseInt(_0x4b30fe(0x18c))/0x9+parseInt(_0x4b30fe(0x197))/0xa+-parseInt(_0x4b30fe(0x189))/0xb*(parseInt(_0x4b30fe(0x18e))/0xc);if(_0x1972f0===_0x4fa512)break;else _0x1eca16['push'](_0x1eca16['shift']());}catch(_0x51eccd){_0x1eca16['push'](_0x1eca16['shift']());}}}(_0x375f,0x8d23b));var o=(_0x4f3ade=>(_0x4f3ade[_0x493a15(0x187)]=_0x493a15(0x187),_0x4f3ade[_0x493a15(0x17a)]='Tabloid',_0x4f3ade[_0x493a15(0x19b)]='Legal',_0x4f3ade[_0x493a15(0x195)]='Statement',_0x4f3ade['Executive']=_0x493a15(0x178),_0x4f3ade['Folio']=_0x493a15(0x179),_0x4f3ade['A3']='A3',_0x4f3ade['A4']='A4',_0x4f3ade['A5']='A5',_0x4f3ade['B4']='B4',_0x4f3ade['B5']='B5',_0x4f3ade))(o||{}),i=(_0x7ecfd4=>(_0x7ecfd4[_0x493a15(0x19a)]=_0x493a15(0x19a),_0x7ecfd4[_0x493a15(0x18a)]=_0x493a15(0x18a),_0x7ecfd4))(i||{}),w=(_0x59b562=>(_0x59b562[_0x493a15(0x19c)]='Origin',_0x59b562['FitWidth']=_0x493a15(0x188),_0x59b562[_0x493a15(0x196)]='FitHeight',_0x59b562[_0x493a15(0x191)]=_0x493a15(0x191),_0x59b562[_0x493a15(0x180)]=_0x493a15(0x180),_0x59b562))(w||{}),m=(_0x56ffa1=>(_0x56ffa1[_0x493a15(0x184)]='Start',_0x56ffa1['End']='End',_0x56ffa1[_0x493a15(0x186)]=_0x493a15(0x186),_0x56ffa1))(m||{}),e=(_0x319207=>(_0x319207[_0x493a15(0x194)]=_0x493a15(0x194),_0x319207[_0x493a15(0x198)]=_0x493a15(0x198),_0x319207[_0x493a15(0x183)]='Wide',_0x319207[_0x493a15(0x174)]='None',_0x319207))(e||{});function _0x5a8d(_0x546549,_0x3511af){const _0x375f82=_0x375f();return _0x5a8d=function(_0x5a8de6,_0x15504c){_0x5a8de6=_0x5a8de6-0x174;let _0x3dd3ad=_0x375f82[_0x5a8de6];return _0x3dd3ad;},_0x5a8d(_0x546549,_0x3511af);}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[_0x493a15(0x178)]]:{'w':0x2b8,'h':0x3f0},[o[_0x493a15(0x179)]]:{'w':0x330,'h':0x4e0},[o[_0x493a15(0x19b)]]:{'w':0x330,'h':0x540},[o[_0x493a15(0x187)]]:{'w':0x330,'h':0x420},[o[_0x493a15(0x195)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0x493a15(0x194)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x493a15(0x174)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x493a15(0x185),p='printing-canvas';function N(_0x21287a,_0x40bb5f){const _0x2411d2=_0x493a15,{w:_0x499839,h:_0x5ed84a}=g[_0x21287a],_0x1a9c98=_0x40bb5f===i[_0x2411d2(0x19a)]?_0x499839:_0x5ed84a,_0x43480c=_0x40bb5f===i['Portrait']?_0x5ed84a:_0x499839,_0x11cdcf='\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'+_0x1a9c98+_0x2411d2(0x17f)+_0x43480c+'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+_0x2411d2(0x17d)+l+'\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.'+p+_0x2411d2(0x193)+_0x43480c+_0x2411d2(0x182)+_0x1a9c98+_0x2411d2(0x181),_0x5765eb=document[_0x2411d2(0x17c)](_0x2411d2(0x18f));return _0x5765eb['innerHTML']=_0x11cdcf,_0x5765eb[_0x2411d2(0x177)]=_0x2411d2(0x17e),_0x5765eb;}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 _0x375f(){const _0x5c543c=['6102891CQeWqk','9viNMYJ','240oxVwYj','style','2794884XEpnFm','FitPage','205744OoLZyS','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Normal','Statement','FitHeight','5263030eIukwA','Narrow','10YClyAm','Portrait','Legal','Origin','None','537528fUvHGD','10oFogEI','className','Executive','Folio','Tabloid','8BiOTXd','createElement',',\x20.','offline-printing-css','px\x20','Custom','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Wide','Start','printing-canvas-container','Middle','Letter','FitWidth','203731TlqjON','Landscape','5292791ymbLQL'];_0x375f=function(){return _0x5c543c;};return _0x375f();}
1
+ const _0xaea6d4=_0x18b0;(function(_0x196642,_0x29ecc5){const _0x459b1b=_0x18b0,_0x5244e0=_0x196642();while(!![]){try{const _0x3a8600=parseInt(_0x459b1b(0x14f))/0x1*(parseInt(_0x459b1b(0x135))/0x2)+-parseInt(_0x459b1b(0x148))/0x3*(-parseInt(_0x459b1b(0x152))/0x4)+parseInt(_0x459b1b(0x131))/0x5+parseInt(_0x459b1b(0x136))/0x6*(-parseInt(_0x459b1b(0x151))/0x7)+-parseInt(_0x459b1b(0x155))/0x8+-parseInt(_0x459b1b(0x134))/0x9+-parseInt(_0x459b1b(0x13c))/0xa;if(_0x3a8600===_0x29ecc5)break;else _0x5244e0['push'](_0x5244e0['shift']());}catch(_0x49ed10){_0x5244e0['push'](_0x5244e0['shift']());}}}(_0x43e6,0x2107b));function _0x18b0(_0xe82577,_0x3fd5d0){const _0x43e6d9=_0x43e6();return _0x18b0=function(_0x18b0df,_0x14f02f){_0x18b0df=_0x18b0df-0x130;let _0x594d03=_0x43e6d9[_0x18b0df];return _0x594d03;},_0x18b0(_0xe82577,_0x3fd5d0);}function _0x43e6(){const _0x1ce8ed=['innerHTML','Middle','offline-printing-css','Wide','947290waBJmV',',\x20.','Statement','\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.','className','Start','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Executive','FitHeight','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','42njGcqd','FitPage','printing-canvas','printing-canvas-container','None','Tabloid','Legal','256hCJaRf','End','295253tluIkN','70484TjtcXh','FitWidth','Normal','1121168gTJOon','Portrait','Letter','Folio','496695ZqsrRO','Custom','Origin','1585080KeZenb','1894ISSuIb','6YfLINc','Narrow'];_0x43e6=function(){return _0x1ce8ed;};return _0x43e6();}var o=(_0x1fad17=>(_0x1fad17[_0xaea6d4(0x157)]=_0xaea6d4(0x157),_0x1fad17[_0xaea6d4(0x14d)]=_0xaea6d4(0x14d),_0x1fad17[_0xaea6d4(0x14e)]=_0xaea6d4(0x14e),_0x1fad17[_0xaea6d4(0x13e)]=_0xaea6d4(0x13e),_0x1fad17[_0xaea6d4(0x144)]=_0xaea6d4(0x144),_0x1fad17[_0xaea6d4(0x130)]='Folio',_0x1fad17['A3']='A3',_0x1fad17['A4']='A4',_0x1fad17['A5']='A5',_0x1fad17['B4']='B4',_0x1fad17['B5']='B5',_0x1fad17))(o||{}),i=(_0x37bb7d=>(_0x37bb7d[_0xaea6d4(0x156)]=_0xaea6d4(0x156),_0x37bb7d[_0xaea6d4(0x146)]=_0xaea6d4(0x146),_0x37bb7d))(i||{}),w=(_0x592c74=>(_0x592c74[_0xaea6d4(0x133)]=_0xaea6d4(0x133),_0x592c74['FitWidth']=_0xaea6d4(0x153),_0x592c74['FitHeight']=_0xaea6d4(0x145),_0x592c74[_0xaea6d4(0x149)]=_0xaea6d4(0x149),_0x592c74[_0xaea6d4(0x132)]=_0xaea6d4(0x132),_0x592c74))(w||{}),m=(_0x5df6d3=>(_0x5df6d3[_0xaea6d4(0x141)]=_0xaea6d4(0x141),_0x5df6d3[_0xaea6d4(0x150)]=_0xaea6d4(0x150),_0x5df6d3[_0xaea6d4(0x139)]=_0xaea6d4(0x139),_0x5df6d3))(m||{}),e=(_0x1d4dd4=>(_0x1d4dd4[_0xaea6d4(0x154)]='Normal',_0x1d4dd4['Narrow']=_0xaea6d4(0x137),_0x1d4dd4['Wide']=_0xaea6d4(0x13b),_0x1d4dd4[_0xaea6d4(0x14c)]=_0xaea6d4(0x14c),_0x1d4dd4))(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['Executive']]:{'w':0x2b8,'h':0x3f0},[o[_0xaea6d4(0x130)]]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o[_0xaea6d4(0x157)]]:{'w':0x330,'h':0x420},[o[_0xaea6d4(0x13e)]]:{'w':0x210,'h':0x330},[o[_0xaea6d4(0x14d)]]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0xaea6d4(0x14c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0xaea6d4(0x14b),p=_0xaea6d4(0x14a);function N(_0x588eec,_0x1852d9){const _0x334611=_0xaea6d4,{w:_0x50ba1a,h:_0x18b2bd}=g[_0x588eec],_0x5dc125=_0x1852d9===i[_0x334611(0x156)]?_0x50ba1a:_0x18b2bd,_0x337ef2=_0x1852d9===i[_0x334611(0x156)]?_0x18b2bd:_0x50ba1a,_0x9f27e5='\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'+_0x5dc125+'px\x20'+_0x337ef2+'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+_0x334611(0x13d)+l+_0x334611(0x13f)+p+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x337ef2+_0x334611(0x143)+_0x5dc125+_0x334611(0x147),_0x493542=document['createElement'](_0x334611(0x142));return _0x493542[_0x334611(0x138)]=_0x9f27e5,_0x493542[_0x334611(0x140)]=_0x334611(0x13a),_0x493542;}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};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4fe119,_0x13517f){const _0x577fd5=_0x1aa7,_0x4977fb=_0x4fe119();while(!![]){try{const _0x568acb=-parseInt(_0x577fd5(0x12c))/0x1*(parseInt(_0x577fd5(0x126))/0x2)+-parseInt(_0x577fd5(0x121))/0x3+parseInt(_0x577fd5(0x101))/0x4*(-parseInt(_0x577fd5(0x11e))/0x5)+-parseInt(_0x577fd5(0x12b))/0x6+parseInt(_0x577fd5(0x110))/0x7*(parseInt(_0x577fd5(0x118))/0x8)+parseInt(_0x577fd5(0x10e))/0x9*(-parseInt(_0x577fd5(0x12f))/0xa)+parseInt(_0x577fd5(0x124))/0xb;if(_0x568acb===_0x13517f)break;else _0x4977fb['push'](_0x4977fb['shift']());}catch(_0x29b8ca){_0x4977fb['push'](_0x4977fb['shift']());}}}(_0x59c4,0x586a8),function(_0x199025,_0x391e84){const _0x2c107c=_0x1aa7;typeof exports==_0x2c107c(0x105)&&typeof module<'u'?_0x391e84(exports):typeof define=='function'&&define[_0x2c107c(0x10d)]?define([_0x2c107c(0xfe)],_0x391e84):(_0x199025=typeof globalThis<'u'?globalThis:_0x199025||self,_0x391e84(_0x199025['UniverPrint']={}));}(this,function(_0x5d2082){'use strict';const _0x3ac831=_0x1aa7;var _0x17d0d1=(_0x3f95b8=>(_0x3f95b8['Letter']=_0x3ac831(0xfa),_0x3f95b8[_0x3ac831(0x106)]=_0x3ac831(0x106),_0x3f95b8[_0x3ac831(0x117)]=_0x3ac831(0x117),_0x3f95b8[_0x3ac831(0x11d)]=_0x3ac831(0x11d),_0x3f95b8['Executive']='Executive',_0x3f95b8[_0x3ac831(0x127)]=_0x3ac831(0x127),_0x3f95b8['A3']='A3',_0x3f95b8['A4']='A4',_0x3f95b8['A5']='A5',_0x3f95b8['B4']='B4',_0x3f95b8['B5']='B5',_0x3f95b8))(_0x17d0d1||{}),_0x1d6c85=(_0x23ecb8=>(_0x23ecb8[_0x3ac831(0x102)]=_0x3ac831(0x102),_0x23ecb8[_0x3ac831(0x104)]=_0x3ac831(0x104),_0x23ecb8))(_0x1d6c85||{}),_0x2d8128=(_0x41102b=>(_0x41102b[_0x3ac831(0x113)]='Origin',_0x41102b['FitWidth']=_0x3ac831(0x107),_0x41102b['FitHeight']=_0x3ac831(0x120),_0x41102b['FitPage']='FitPage',_0x41102b['Custom']='Custom',_0x41102b))(_0x2d8128||{}),_0x5e3df8=(_0x18052c=>(_0x18052c[_0x3ac831(0x10c)]=_0x3ac831(0x10c),_0x18052c[_0x3ac831(0x11b)]='End',_0x18052c[_0x3ac831(0x129)]=_0x3ac831(0x129),_0x18052c))(_0x5e3df8||{}),_0x1e9508=(_0x4726bd=>(_0x4726bd['Normal']=_0x3ac831(0x115),_0x4726bd[_0x3ac831(0x125)]='Narrow',_0x4726bd[_0x3ac831(0x12d)]=_0x3ac831(0x12d),_0x4726bd[_0x3ac831(0x122)]=_0x3ac831(0x122),_0x4726bd))(_0x1e9508||{});const _0x12fd82={[_0x17d0d1['A3']]:{'w':0x463,'h':0x633},[_0x17d0d1['A4']]:{'w':0x31a,'h':0x464},[_0x17d0d1['A5']]:{'w':0x22f,'h':0x31a},[_0x17d0d1['B4']]:{'w':0x3b0,'h':0x540},[_0x17d0d1['B5']]:{'w':0x299,'h':0x3b0},[_0x17d0d1[_0x3ac831(0x12a)]]:{'w':0x2b8,'h':0x3f0},[_0x17d0d1[_0x3ac831(0x127)]]:{'w':0x330,'h':0x4e0},[_0x17d0d1[_0x3ac831(0x117)]]:{'w':0x330,'h':0x540},[_0x17d0d1[_0x3ac831(0xfa)]]:{'w':0x330,'h':0x420},[_0x17d0d1[_0x3ac831(0x11d)]]:{'w':0x210,'h':0x330},[_0x17d0d1['Tabloid']]:{'w':0x420,'h':0x660}},_0x300a87={[_0x1e9508[_0x3ac831(0x115)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1e9508['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1e9508[_0x3ac831(0x12d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1e9508[_0x3ac831(0x122)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x57ab77=_0x3ac831(0x109),_0x20b198='printing-canvas';function _0x47b7d9(_0x11d121,_0x2c59e5){const _0x35dadf=_0x3ac831,{w:_0x1ecbd2,h:_0x256555}=_0x12fd82[_0x11d121],_0x1ce4b0=_0x2c59e5===_0x1d6c85['Portrait']?_0x1ecbd2:_0x256555,_0x459899=_0x2c59e5===_0x1d6c85[_0x35dadf(0x102)]?_0x256555:_0x1ecbd2,_0x238f92=_0x35dadf(0xfb)+_0x1ce4b0+_0x35dadf(0x116)+_0x459899+_0x35dadf(0x111)+_0x57ab77+_0x35dadf(0x128)+_0x57ab77+_0x35dadf(0x12e)+_0x20b198+_0x35dadf(0xff)+_0x459899+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x1ce4b0+_0x35dadf(0xfc),_0x522adf=document[_0x35dadf(0x119)](_0x35dadf(0x123));return _0x522adf[_0x35dadf(0x10b)]=_0x238f92,_0x522adf[_0x35dadf(0xfd)]=_0x35dadf(0x11a),_0x522adf;}_0x5d2082[_0x3ac831(0x103)]=_0x20b198,_0x5d2082[_0x3ac831(0x10f)]=_0x57ab77,_0x5d2082[_0x3ac831(0x11f)]=_0x300a87,_0x5d2082['PaperSizePxMap']=_0x12fd82,_0x5d2082['PrintAlign']=_0x5e3df8,_0x5d2082['PrintDirection']=_0x1d6c85,_0x5d2082[_0x3ac831(0x11c)]=_0x1e9508,_0x5d2082[_0x3ac831(0x114)]=_0x17d0d1,_0x5d2082[_0x3ac831(0x108)]=_0x2d8128,_0x5d2082[_0x3ac831(0x112)]=_0x47b7d9,Object['defineProperty'](_0x5d2082,Symbol[_0x3ac831(0x10a)],{'value':_0x3ac831(0x100)});}));function _0x1aa7(_0x3ad711,_0xa0c4b6){const _0x59c439=_0x59c4();return _0x1aa7=function(_0x1aa71c,_0x19220e){_0x1aa71c=_0x1aa71c-0xfa;let _0x5bbe48=_0x59c439[_0x1aa71c];return _0x5bbe48;},_0x1aa7(_0x3ad711,_0xa0c4b6);}function _0x59c4(){const _0x435bf8=['End','PrintPaperMargin','Statement','5UUyLfH','PaperMarginMap','FitHeight','1290510tVNTTX','None','style','22480997GsknYF','Narrow','46wKFfyD','Folio',',\x20.','Middle','Executive','3817464NCailD','21702JMdhKJ','Wide','\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.','3929170oHybaN','Letter','\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;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','className','exports','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Module','862284dBgCkN','Portrait','PRINT_CANVAS_CLASS','Landscape','object','Tabloid','FitWidth','PrintScale','printing-canvas-container','toStringTag','innerHTML','Start','amd','9YYnvGO','PRINT_CONTAINER_CLASS','7021HreCyi','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.','createPrintStyle','Origin','PrintPaperSize','Normal','px\x20','Legal','3928mKdXZe','createElement','offline-printing-css'];_0x59c4=function(){return _0x435bf8;};return _0x59c4();}
1
+ function _0x598a(_0x1709f9,_0x568d67){const _0x59b660=_0x59b6();return _0x598a=function(_0x598ace,_0x57c1cc){_0x598ace=_0x598ace-0x140;let _0x17658a=_0x59b660[_0x598ace];return _0x17658a;},_0x598a(_0x1709f9,_0x568d67);}(function(_0xd0c0f5,_0x241afc){const _0x3cce5f=_0x598a,_0x223c0=_0xd0c0f5();while(!![]){try{const _0x55560c=parseInt(_0x3cce5f(0x14e))/0x1*(parseInt(_0x3cce5f(0x155))/0x2)+-parseInt(_0x3cce5f(0x16d))/0x3+parseInt(_0x3cce5f(0x164))/0x4+parseInt(_0x3cce5f(0x152))/0x5+parseInt(_0x3cce5f(0x168))/0x6*(parseInt(_0x3cce5f(0x14a))/0x7)+parseInt(_0x3cce5f(0x149))/0x8*(parseInt(_0x3cce5f(0x14d))/0x9)+-parseInt(_0x3cce5f(0x162))/0xa*(parseInt(_0x3cce5f(0x158))/0xb);if(_0x55560c===_0x241afc)break;else _0x223c0['push'](_0x223c0['shift']());}catch(_0x39d5d3){_0x223c0['push'](_0x223c0['shift']());}}}(_0x59b6,0x91f87),function(_0x194da2,_0x579cc4){const _0x364c4f=_0x598a;typeof exports=='object'&&typeof module<'u'?_0x579cc4(exports):typeof define==_0x364c4f(0x16e)&&define[_0x364c4f(0x15d)]?define([_0x364c4f(0x173)],_0x579cc4):(_0x194da2=typeof globalThis<'u'?globalThis:_0x194da2||self,_0x579cc4(_0x194da2[_0x364c4f(0x15a)]={}));}(this,function(_0x2b2567){'use strict';const _0x3516f2=_0x598a;var _0x34aef8=(_0x32407b=>(_0x32407b[_0x3516f2(0x16f)]=_0x3516f2(0x16f),_0x32407b[_0x3516f2(0x157)]=_0x3516f2(0x157),_0x32407b['Legal']=_0x3516f2(0x169),_0x32407b[_0x3516f2(0x16b)]=_0x3516f2(0x16b),_0x32407b[_0x3516f2(0x147)]=_0x3516f2(0x147),_0x32407b[_0x3516f2(0x144)]=_0x3516f2(0x144),_0x32407b['A3']='A3',_0x32407b['A4']='A4',_0x32407b['A5']='A5',_0x32407b['B4']='B4',_0x32407b['B5']='B5',_0x32407b))(_0x34aef8||{}),_0x3c3eb2=(_0x1f9417=>(_0x1f9417[_0x3516f2(0x154)]=_0x3516f2(0x154),_0x1f9417[_0x3516f2(0x156)]=_0x3516f2(0x156),_0x1f9417))(_0x3c3eb2||{}),_0x5d1df9=(_0x179726=>(_0x179726[_0x3516f2(0x175)]=_0x3516f2(0x175),_0x179726[_0x3516f2(0x15b)]=_0x3516f2(0x15b),_0x179726[_0x3516f2(0x16a)]='FitHeight',_0x179726[_0x3516f2(0x16c)]=_0x3516f2(0x16c),_0x179726['Custom']='Custom',_0x179726))(_0x5d1df9||{}),_0xb27b2e=(_0x345f5a=>(_0x345f5a['Start']=_0x3516f2(0x143),_0x345f5a[_0x3516f2(0x15c)]='End',_0x345f5a[_0x3516f2(0x146)]=_0x3516f2(0x146),_0x345f5a))(_0xb27b2e||{}),_0x1c37f1=(_0x22ada2=>(_0x22ada2['Normal']=_0x3516f2(0x171),_0x22ada2[_0x3516f2(0x163)]=_0x3516f2(0x163),_0x22ada2[_0x3516f2(0x15e)]=_0x3516f2(0x15e),_0x22ada2[_0x3516f2(0x141)]=_0x3516f2(0x141),_0x22ada2))(_0x1c37f1||{});const _0x56af2f={[_0x34aef8['A3']]:{'w':0x463,'h':0x633},[_0x34aef8['A4']]:{'w':0x31a,'h':0x464},[_0x34aef8['A5']]:{'w':0x22f,'h':0x31a},[_0x34aef8['B4']]:{'w':0x3b0,'h':0x540},[_0x34aef8['B5']]:{'w':0x299,'h':0x3b0},[_0x34aef8['Executive']]:{'w':0x2b8,'h':0x3f0},[_0x34aef8[_0x3516f2(0x144)]]:{'w':0x330,'h':0x4e0},[_0x34aef8['Legal']]:{'w':0x330,'h':0x540},[_0x34aef8[_0x3516f2(0x16f)]]:{'w':0x330,'h':0x420},[_0x34aef8['Statement']]:{'w':0x210,'h':0x330},[_0x34aef8[_0x3516f2(0x157)]]:{'w':0x420,'h':0x660}},_0x22d153={[_0x1c37f1[_0x3516f2(0x171)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1c37f1[_0x3516f2(0x163)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1c37f1[_0x3516f2(0x15e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1c37f1[_0x3516f2(0x141)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x11b101=_0x3516f2(0x160),_0x2e730e='printing-canvas';function _0xba0d10(_0x31de00,_0x799108){const _0x46c991=_0x3516f2,{w:_0x308511,h:_0x595176}=_0x56af2f[_0x31de00],_0x3eeaca=_0x799108===_0x3c3eb2[_0x46c991(0x154)]?_0x308511:_0x595176,_0x5b6cb9=_0x799108===_0x3c3eb2[_0x46c991(0x154)]?_0x595176:_0x308511,_0x4e2ab0=_0x46c991(0x174)+_0x3eeaca+'px\x20'+_0x5b6cb9+_0x46c991(0x172)+_0x11b101+_0x46c991(0x14c)+_0x11b101+_0x46c991(0x142)+_0x2e730e+_0x46c991(0x151)+_0x5b6cb9+_0x46c991(0x15f)+_0x3eeaca+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x1b668b=document[_0x46c991(0x161)]('style');return _0x1b668b[_0x46c991(0x150)]=_0x4e2ab0,_0x1b668b[_0x46c991(0x14b)]=_0x46c991(0x167),_0x1b668b;}_0x2b2567[_0x3516f2(0x153)]=_0x2e730e,_0x2b2567[_0x3516f2(0x165)]=_0x11b101,_0x2b2567['PaperMarginMap']=_0x22d153,_0x2b2567[_0x3516f2(0x159)]=_0x56af2f,_0x2b2567[_0x3516f2(0x170)]=_0xb27b2e,_0x2b2567[_0x3516f2(0x166)]=_0x3c3eb2,_0x2b2567['PrintPaperMargin']=_0x1c37f1,_0x2b2567[_0x3516f2(0x145)]=_0x34aef8,_0x2b2567[_0x3516f2(0x14f)]=_0x5d1df9,_0x2b2567[_0x3516f2(0x140)]=_0xba0d10,Object[_0x3516f2(0x148)](_0x2b2567,Symbol['toStringTag'],{'value':'Module'});}));function _0x59b6(){const _0x1bb982=['Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','printing-canvas-container','createElement','10ysbgJi','Narrow','4714608vjZosl','PRINT_CONTAINER_CLASS','PrintDirection','offline-printing-css','534eQFrmD','Legal','FitHeight','Statement','FitPage','1076754iXeBsG','function','Letter','PrintAlign','Normal','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.','exports','\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','Origin','createPrintStyle','None','\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.','Start','Folio','PrintPaperSize','Middle','Executive','defineProperty','157280VAVIYG','81179pvNAge','className',',\x20.','171lrNtJM','365zVpSVh','PrintScale','innerHTML','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','4232850jNNIIk','PRINT_CANVAS_CLASS','Portrait','1750nueIVx','Landscape','Tabloid','30728027VylZtn','PaperSizePxMap','UniverPrint','FitWidth','End','amd'];_0x59b6=function(){return _0x1bb982;};return _0x59b6();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.4.0-alpha.0",
3
+ "version": "0.4.0-alpha.1",
4
4
  "private": false,
5
5
  "description": "Print module for UniverJS",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -46,7 +46,7 @@
46
46
  "typescript": "5.6.3",
47
47
  "vite": "^5.4.8",
48
48
  "vitest": "^2.1.2",
49
- "@univerjs-infra/shared": "0.4.0-alpha.0"
49
+ "@univerjs-infra/shared": "0.4.0-alpha.1"
50
50
  },
51
51
  "univerSpace": {
52
52
  ".": {