@univerjs-pro/print 0.6.8 → 0.6.9-nightly.202504021607
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';
|
|
1
|
+
'use strict';function _0x5c89(){const _0x19924f=['Statement','7kCTCxz','FitWidth','\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','4447210UazsTi','style','PRINT_CONTAINER_CLASS','PrintPaperSize','\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.','printing-canvas-container','84746xPUtgl','Start','984690KaJWQg','px\x20','FitHeight','End','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.','PrintPaperMargin','className','Normal','offline-printing-css','toStringTag','Tabloid','3wRhJXX','Legal','Wide','createElement','PrintScale','13388CDmXGS','3090456oAERtY','Origin','210iNJiRe',',\x20.','Custom','FitPage','Letter','Executive','Middle','createPrintStyle','defineProperty','Module','Narrow','None','4625599jizAmT','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Folio','PRINT_CANVAS_CLASS','Portrait','183iNvWgb','PaperMarginMap','56694mzTYRP','innerHTML','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Landscape'];_0x5c89=function(){return _0x19924f;};return _0x5c89();}const _0x4e416a=_0x1190;(function(_0x30616c,_0x166bff){const _0x1fd906=_0x1190,_0x3d0725=_0x30616c();while(!![]){try{const _0x4be286=-parseInt(_0x1fd906(0x129))/0x1*(-parseInt(_0x1fd906(0x152))/0x2)+-parseInt(_0x1fd906(0x142))/0x3*(-parseInt(_0x1fd906(0x12e))/0x4)+parseInt(_0x1fd906(0x131))/0x5*(-parseInt(_0x1fd906(0x144))/0x6)+-parseInt(_0x1fd906(0x149))/0x7*(-parseInt(_0x1fd906(0x12f))/0x8)+-parseInt(_0x1fd906(0x11e))/0x9+parseInt(_0x1fd906(0x14c))/0xa+-parseInt(_0x1fd906(0x13d))/0xb;if(_0x4be286===_0x166bff)break;else _0x3d0725['push'](_0x3d0725['shift']());}catch(_0x87e333){_0x3d0725['push'](_0x3d0725['shift']());}}}(_0x5c89,0x39811));Object[_0x4e416a(0x139)](exports,Symbol[_0x4e416a(0x127)],{'value':_0x4e416a(0x13a)});var e=(_0x32f10a=>(_0x32f10a[_0x4e416a(0x135)]='Letter',_0x32f10a[_0x4e416a(0x128)]=_0x4e416a(0x128),_0x32f10a['Legal']=_0x4e416a(0x12a),_0x32f10a[_0x4e416a(0x148)]=_0x4e416a(0x148),_0x32f10a[_0x4e416a(0x136)]='Executive',_0x32f10a[_0x4e416a(0x13f)]=_0x4e416a(0x13f),_0x32f10a['A3']='A3',_0x32f10a['A4']='A4',_0x32f10a['A5']='A5',_0x32f10a['B4']='B4',_0x32f10a['B5']='B5',_0x32f10a))(e||{}),i=(_0x50f29c=>(_0x50f29c[_0x4e416a(0x141)]=_0x4e416a(0x141),_0x50f29c[_0x4e416a(0x147)]=_0x4e416a(0x147),_0x50f29c))(i||{}),c=(_0x39a16c=>(_0x39a16c[_0x4e416a(0x130)]='Origin',_0x39a16c[_0x4e416a(0x14a)]='FitWidth',_0x39a16c[_0x4e416a(0x120)]='FitHeight',_0x39a16c[_0x4e416a(0x134)]=_0x4e416a(0x134),_0x39a16c[_0x4e416a(0x133)]='Custom',_0x39a16c))(c||{}),g=(_0x173fa6=>(_0x173fa6['Start']=_0x4e416a(0x153),_0x173fa6[_0x4e416a(0x121)]=_0x4e416a(0x121),_0x173fa6[_0x4e416a(0x137)]=_0x4e416a(0x137),_0x173fa6))(g||{}),o=(_0x3aa868=>(_0x3aa868['Normal']=_0x4e416a(0x125),_0x3aa868[_0x4e416a(0x13b)]=_0x4e416a(0x13b),_0x3aa868['Wide']=_0x4e416a(0x12b),_0x3aa868[_0x4e416a(0x13c)]=_0x4e416a(0x13c),_0x3aa868))(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['Folio']]:{'w':0x330,'h':0x4e0},[e['Legal']]:{'w':0x330,'h':0x540},[e[_0x4e416a(0x135)]]:{'w':0x330,'h':0x420},[e[_0x4e416a(0x148)]]:{'w':0x210,'h':0x330},[e[_0x4e416a(0x128)]]:{'w':0x420,'h':0x660}},N={[o[_0x4e416a(0x125)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x4e416a(0x13b)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4e416a(0x12b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x4e416a(0x13c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x4e416a(0x151),p='printing-canvas';function _0x1190(_0x32e6bb,_0x22ee51){const _0x5c892f=_0x5c89();return _0x1190=function(_0x119062,_0x4eda7a){_0x119062=_0x119062-0x11e;let _0x3a63ee=_0x5c892f[_0x119062];return _0x3a63ee;},_0x1190(_0x32e6bb,_0x22ee51);}function A(_0x5d5fcc,_0x4da81d){const _0x1867d9=_0x4e416a,{w:_0x1b741e,h:_0x1026cc}=m[_0x5d5fcc],_0x4fe6e2=_0x4da81d===i[_0x1867d9(0x141)]?_0x1b741e:_0x1026cc,_0x2d909b=_0x4da81d===i['Portrait']?_0x1026cc:_0x1b741e,_0x124af5=_0x1867d9(0x14b)+_0x4fe6e2+_0x1867d9(0x11f)+_0x2d909b+_0x1867d9(0x122)+n+_0x1867d9(0x132)+n+_0x1867d9(0x150)+p+_0x1867d9(0x13e)+_0x2d909b+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4fe6e2+_0x1867d9(0x146),_0x935639=document[_0x1867d9(0x12c)](_0x1867d9(0x14d));return _0x935639[_0x1867d9(0x145)]=_0x124af5,_0x935639[_0x1867d9(0x124)]=_0x1867d9(0x126),_0x935639;}exports[_0x4e416a(0x140)]=p,exports[_0x4e416a(0x14e)]=n,exports[_0x4e416a(0x143)]=N,exports['PaperSizePxMap']=m,exports['PrintAlign']=g,exports['PrintDirection']=i,exports[_0x4e416a(0x123)]=o,exports[_0x4e416a(0x14f)]=e,exports[_0x4e416a(0x12d)]=c,exports[_0x4e416a(0x138)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0xa11d(_0x3a3732,_0x284631){const _0xd1549e=_0xd154();return _0xa11d=function(_0xa11d38,_0x426dc3){_0xa11d38=_0xa11d38-0x67;let _0x45458b=_0xd1549e[_0xa11d38];return _0x45458b;},_0xa11d(_0x3a3732,_0x284631);}function _0xd154(){const _0x1d6baa=['FitPage','242673WQyMla','Start','offline-printing-css','Custom','340ygxaUm','Tabloid','FitHeight','None','329KKzpIf','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Normal','style','15287841rEiuRb','Origin','\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.','FitWidth','\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','Letter','createElement','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.','15088slEdwx','Statement','2613160DUNldy','Landscape','End',',\x20.','Folio','467661wRmThE','848236dvZpUT','Portrait','Middle','Legal','Narrow','24972pInsCU'];_0xd154=function(){return _0x1d6baa;};return _0xd154();}const _0x5714b1=_0xa11d;(function(_0xd6e529,_0x2c0458){const _0x50846a=_0xa11d,_0x40d192=_0xd6e529();while(!![]){try{const _0x56091a=parseInt(_0x50846a(0x89))/0x1+-parseInt(_0x50846a(0x82))/0x2+-parseInt(_0x50846a(0x81))/0x3+-parseInt(_0x50846a(0x7c))/0x4+-parseInt(_0x50846a(0x68))/0x5*(parseInt(_0x50846a(0x87))/0x6)+-parseInt(_0x50846a(0x6c))/0x7*(parseInt(_0x50846a(0x7a))/0x8)+parseInt(_0x50846a(0x71))/0x9;if(_0x56091a===_0x2c0458)break;else _0x40d192['push'](_0x40d192['shift']());}catch(_0xea8efb){_0x40d192['push'](_0x40d192['shift']());}}}(_0xd154,0x521f1));var o=(_0x5140b8=>(_0x5140b8[_0x5714b1(0x77)]=_0x5714b1(0x77),_0x5140b8[_0x5714b1(0x69)]=_0x5714b1(0x69),_0x5140b8[_0x5714b1(0x85)]=_0x5714b1(0x85),_0x5140b8['Statement']=_0x5714b1(0x7b),_0x5140b8[_0x5714b1(0x76)]='Executive',_0x5140b8[_0x5714b1(0x80)]=_0x5714b1(0x80),_0x5140b8['A3']='A3',_0x5140b8['A4']='A4',_0x5140b8['A5']='A5',_0x5140b8['B4']='B4',_0x5140b8['B5']='B5',_0x5140b8))(o||{}),i=(_0x289bb9=>(_0x289bb9['Portrait']=_0x5714b1(0x83),_0x289bb9[_0x5714b1(0x7d)]='Landscape',_0x289bb9))(i||{}),w=(_0x39b6e1=>(_0x39b6e1['Origin']=_0x5714b1(0x72),_0x39b6e1['FitWidth']=_0x5714b1(0x74),_0x39b6e1['FitHeight']=_0x5714b1(0x6a),_0x39b6e1[_0x5714b1(0x88)]='FitPage',_0x39b6e1['Custom']=_0x5714b1(0x67),_0x39b6e1))(w||{}),m=(_0x593526=>(_0x593526[_0x5714b1(0x8a)]='Start',_0x593526[_0x5714b1(0x7e)]=_0x5714b1(0x7e),_0x593526[_0x5714b1(0x84)]=_0x5714b1(0x84),_0x593526))(m||{}),e=(_0x40db69=>(_0x40db69[_0x5714b1(0x6f)]='Normal',_0x40db69[_0x5714b1(0x86)]=_0x5714b1(0x86),_0x40db69[_0x5714b1(0x6d)]=_0x5714b1(0x6d),_0x40db69[_0x5714b1(0x6b)]=_0x5714b1(0x6b),_0x40db69))(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[_0x5714b1(0x76)]]:{'w':0x2b8,'h':0x3f0},[o[_0x5714b1(0x80)]]:{'w':0x330,'h':0x4e0},[o[_0x5714b1(0x85)]]:{'w':0x330,'h':0x540},[o[_0x5714b1(0x77)]]:{'w':0x330,'h':0x420},[o[_0x5714b1(0x7b)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x5714b1(0x86)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x5714b1(0x6d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x5714b1(0x6b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p='printing-canvas';function N(_0x258660,_0x5c25a7){const _0x974942=_0x5714b1,{w:_0x5b45dc,h:_0x1c4cf5}=g[_0x258660],_0x56f54e=_0x5c25a7===i[_0x974942(0x83)]?_0x5b45dc:_0x1c4cf5,_0x3fd4c9=_0x5c25a7===i[_0x974942(0x83)]?_0x1c4cf5:_0x5b45dc,_0x1c0d60='\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'+_0x56f54e+'px\x20'+_0x3fd4c9+_0x974942(0x79)+l+_0x974942(0x7f)+l+_0x974942(0x73)+p+_0x974942(0x75)+_0x3fd4c9+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x56f54e+_0x974942(0x6e),_0x149acb=document[_0x974942(0x78)](_0x974942(0x70));return _0x149acb['innerHTML']=_0x1c0d60,_0x149acb['className']=_0x974942(0x8b),_0x149acb;}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/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0xa11d(_0x3a3732,_0x284631){const _0xd1549e=_0xd154();return _0xa11d=function(_0xa11d38,_0x426dc3){_0xa11d38=_0xa11d38-0x67;let _0x45458b=_0xd1549e[_0xa11d38];return _0x45458b;},_0xa11d(_0x3a3732,_0x284631);}function _0xd154(){const _0x1d6baa=['FitPage','242673WQyMla','Start','offline-printing-css','Custom','340ygxaUm','Tabloid','FitHeight','None','329KKzpIf','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Normal','style','15287841rEiuRb','Origin','\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.','FitWidth','\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','Letter','createElement','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.','15088slEdwx','Statement','2613160DUNldy','Landscape','End',',\x20.','Folio','467661wRmThE','848236dvZpUT','Portrait','Middle','Legal','Narrow','24972pInsCU'];_0xd154=function(){return _0x1d6baa;};return _0xd154();}const _0x5714b1=_0xa11d;(function(_0xd6e529,_0x2c0458){const _0x50846a=_0xa11d,_0x40d192=_0xd6e529();while(!![]){try{const _0x56091a=parseInt(_0x50846a(0x89))/0x1+-parseInt(_0x50846a(0x82))/0x2+-parseInt(_0x50846a(0x81))/0x3+-parseInt(_0x50846a(0x7c))/0x4+-parseInt(_0x50846a(0x68))/0x5*(parseInt(_0x50846a(0x87))/0x6)+-parseInt(_0x50846a(0x6c))/0x7*(parseInt(_0x50846a(0x7a))/0x8)+parseInt(_0x50846a(0x71))/0x9;if(_0x56091a===_0x2c0458)break;else _0x40d192['push'](_0x40d192['shift']());}catch(_0xea8efb){_0x40d192['push'](_0x40d192['shift']());}}}(_0xd154,0x521f1));var o=(_0x5140b8=>(_0x5140b8[_0x5714b1(0x77)]=_0x5714b1(0x77),_0x5140b8[_0x5714b1(0x69)]=_0x5714b1(0x69),_0x5140b8[_0x5714b1(0x85)]=_0x5714b1(0x85),_0x5140b8['Statement']=_0x5714b1(0x7b),_0x5140b8[_0x5714b1(0x76)]='Executive',_0x5140b8[_0x5714b1(0x80)]=_0x5714b1(0x80),_0x5140b8['A3']='A3',_0x5140b8['A4']='A4',_0x5140b8['A5']='A5',_0x5140b8['B4']='B4',_0x5140b8['B5']='B5',_0x5140b8))(o||{}),i=(_0x289bb9=>(_0x289bb9['Portrait']=_0x5714b1(0x83),_0x289bb9[_0x5714b1(0x7d)]='Landscape',_0x289bb9))(i||{}),w=(_0x39b6e1=>(_0x39b6e1['Origin']=_0x5714b1(0x72),_0x39b6e1['FitWidth']=_0x5714b1(0x74),_0x39b6e1['FitHeight']=_0x5714b1(0x6a),_0x39b6e1[_0x5714b1(0x88)]='FitPage',_0x39b6e1['Custom']=_0x5714b1(0x67),_0x39b6e1))(w||{}),m=(_0x593526=>(_0x593526[_0x5714b1(0x8a)]='Start',_0x593526[_0x5714b1(0x7e)]=_0x5714b1(0x7e),_0x593526[_0x5714b1(0x84)]=_0x5714b1(0x84),_0x593526))(m||{}),e=(_0x40db69=>(_0x40db69[_0x5714b1(0x6f)]='Normal',_0x40db69[_0x5714b1(0x86)]=_0x5714b1(0x86),_0x40db69[_0x5714b1(0x6d)]=_0x5714b1(0x6d),_0x40db69[_0x5714b1(0x6b)]=_0x5714b1(0x6b),_0x40db69))(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[_0x5714b1(0x76)]]:{'w':0x2b8,'h':0x3f0},[o[_0x5714b1(0x80)]]:{'w':0x330,'h':0x4e0},[o[_0x5714b1(0x85)]]:{'w':0x330,'h':0x540},[o[_0x5714b1(0x77)]]:{'w':0x330,'h':0x420},[o[_0x5714b1(0x7b)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x5714b1(0x86)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x5714b1(0x6d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x5714b1(0x6b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p='printing-canvas';function N(_0x258660,_0x5c25a7){const _0x974942=_0x5714b1,{w:_0x5b45dc,h:_0x1c4cf5}=g[_0x258660],_0x56f54e=_0x5c25a7===i[_0x974942(0x83)]?_0x5b45dc:_0x1c4cf5,_0x3fd4c9=_0x5c25a7===i[_0x974942(0x83)]?_0x1c4cf5:_0x5b45dc,_0x1c0d60='\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'+_0x56f54e+'px\x20'+_0x3fd4c9+_0x974942(0x79)+l+_0x974942(0x7f)+l+_0x974942(0x73)+p+_0x974942(0x75)+_0x3fd4c9+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x56f54e+_0x974942(0x6e),_0x149acb=document[_0x974942(0x78)](_0x974942(0x70));return _0x149acb['innerHTML']=_0x1c0d60,_0x149acb['className']=_0x974942(0x8b),_0x149acb;}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
|
|
1
|
+
function _0x2285(_0x230aae,_0x35a5da){const _0x4ce2fd=_0x4ce2();return _0x2285=function(_0x22854b,_0x5ae497){_0x22854b=_0x22854b-0x153;let _0x36e2c5=_0x4ce2fd[_0x22854b];return _0x36e2c5;},_0x2285(_0x230aae,_0x35a5da);}function _0x4ce2(){const _0x10bae3=['amd','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','PrintDirection','offline-printing-css','PrintAlign','Executive','500275ZKjDmS','Wide','innerHTML','\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','1648780WJmZLa','478584PppCwy','PrintScale','End','None','exports','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Origin','Tabloid','Statement','Normal','Custom','Folio','Landscape','28AhzvbH','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.','FitWidth','3PxqRee','PaperSizePxMap','FitPage','Module',',\x20.','Legal','createElement','defineProperty','px\x20','className','FitHeight','Middle','printing-canvas-container','PaperMarginMap','toStringTag','1409292KYpmaS','2735544rorVqZ','PrintPaperMargin','Letter','createPrintStyle','\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','UniverProPrint','Start','1326904hoIZND','Portrait','style','PrintPaperSize','842622elalUJ'];_0x4ce2=function(){return _0x10bae3;};return _0x4ce2();}(function(_0x4bf260,_0x446d8b){const _0x429104=_0x2285,_0x41f0a5=_0x4bf260();while(!![]){try{const _0xf847db=-parseInt(_0x429104(0x187))/0x1+parseInt(_0x429104(0x180))/0x2*(parseInt(_0x429104(0x165))/0x3)+parseInt(_0x429104(0x174))/0x4+parseInt(_0x429104(0x154))/0x5+parseInt(_0x429104(0x175))/0x6+parseInt(_0x429104(0x162))/0x7*(-parseInt(_0x429104(0x17c))/0x8)+-parseInt(_0x429104(0x155))/0x9;if(_0xf847db===_0x446d8b)break;else _0x41f0a5['push'](_0x41f0a5['shift']());}catch(_0x36f9b9){_0x41f0a5['push'](_0x41f0a5['shift']());}}}(_0x4ce2,0x5398b),function(_0x1a331d,_0x3aa175){const _0x3942c3=_0x2285;typeof exports=='object'&&typeof module<'u'?_0x3aa175(exports):typeof define=='function'&&define[_0x3942c3(0x181)]?define([_0x3942c3(0x159)],_0x3aa175):(_0x1a331d=typeof globalThis<'u'?globalThis:_0x1a331d||self,_0x3aa175(_0x1a331d[_0x3942c3(0x17a)]={}));}(this,function(_0x50aa23){'use strict';const _0x5d4d46=_0x2285;var _0x492d86=(_0x816c6d=>(_0x816c6d[_0x5d4d46(0x177)]=_0x5d4d46(0x177),_0x816c6d[_0x5d4d46(0x15c)]='Tabloid',_0x816c6d[_0x5d4d46(0x16a)]=_0x5d4d46(0x16a),_0x816c6d['Statement']='Statement',_0x816c6d[_0x5d4d46(0x186)]='Executive',_0x816c6d['Folio']='Folio',_0x816c6d['A3']='A3',_0x816c6d['A4']='A4',_0x816c6d['A5']='A5',_0x816c6d['B4']='B4',_0x816c6d['B5']='B5',_0x816c6d))(_0x492d86||{}),_0x5c02c0=(_0x24666f=>(_0x24666f[_0x5d4d46(0x17d)]=_0x5d4d46(0x17d),_0x24666f['Landscape']=_0x5d4d46(0x161),_0x24666f))(_0x5c02c0||{}),_0x31e66c=(_0x1bf980=>(_0x1bf980[_0x5d4d46(0x15b)]=_0x5d4d46(0x15b),_0x1bf980[_0x5d4d46(0x164)]=_0x5d4d46(0x164),_0x1bf980['FitHeight']=_0x5d4d46(0x16f),_0x1bf980[_0x5d4d46(0x167)]=_0x5d4d46(0x167),_0x1bf980[_0x5d4d46(0x15f)]=_0x5d4d46(0x15f),_0x1bf980))(_0x31e66c||{}),_0x28980b=(_0x4747c4=>(_0x4747c4[_0x5d4d46(0x17b)]=_0x5d4d46(0x17b),_0x4747c4[_0x5d4d46(0x157)]=_0x5d4d46(0x157),_0x4747c4[_0x5d4d46(0x170)]=_0x5d4d46(0x170),_0x4747c4))(_0x28980b||{}),_0x523196=(_0x3f514a=>(_0x3f514a[_0x5d4d46(0x15e)]=_0x5d4d46(0x15e),_0x3f514a['Narrow']=_0x5d4d46(0x153),_0x3f514a[_0x5d4d46(0x188)]=_0x5d4d46(0x188),_0x3f514a[_0x5d4d46(0x158)]=_0x5d4d46(0x158),_0x3f514a))(_0x523196||{});const _0x1aa31e={[_0x492d86['A3']]:{'w':0x463,'h':0x633},[_0x492d86['A4']]:{'w':0x31a,'h':0x464},[_0x492d86['A5']]:{'w':0x22f,'h':0x31a},[_0x492d86['B4']]:{'w':0x3b0,'h':0x540},[_0x492d86['B5']]:{'w':0x299,'h':0x3b0},[_0x492d86[_0x5d4d46(0x186)]]:{'w':0x2b8,'h':0x3f0},[_0x492d86[_0x5d4d46(0x160)]]:{'w':0x330,'h':0x4e0},[_0x492d86[_0x5d4d46(0x16a)]]:{'w':0x330,'h':0x540},[_0x492d86[_0x5d4d46(0x177)]]:{'w':0x330,'h':0x420},[_0x492d86[_0x5d4d46(0x15d)]]:{'w':0x210,'h':0x330},[_0x492d86[_0x5d4d46(0x15c)]]:{'w':0x420,'h':0x660}},_0x467768={[_0x523196[_0x5d4d46(0x15e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x523196[_0x5d4d46(0x153)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x523196[_0x5d4d46(0x188)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x523196['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x2de694=_0x5d4d46(0x171),_0x1e1c59='printing-canvas';function _0x21d38b(_0x11af58,_0x37d847){const _0x24454c=_0x5d4d46,{w:_0xf9028f,h:_0x39d0a4}=_0x1aa31e[_0x11af58],_0x1ba5a2=_0x37d847===_0x5c02c0[_0x24454c(0x17d)]?_0xf9028f:_0x39d0a4,_0x4e58ec=_0x37d847===_0x5c02c0['Portrait']?_0x39d0a4:_0xf9028f,_0x40b9c5=_0x24454c(0x179)+_0x1ba5a2+_0x24454c(0x16d)+_0x4e58ec+_0x24454c(0x163)+_0x2de694+_0x24454c(0x169)+_0x2de694+_0x24454c(0x18a)+_0x1e1c59+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x4e58ec+_0x24454c(0x15a)+_0x1ba5a2+_0x24454c(0x182),_0x32977b=document[_0x24454c(0x16b)](_0x24454c(0x17e));return _0x32977b[_0x24454c(0x189)]=_0x40b9c5,_0x32977b[_0x24454c(0x16e)]=_0x24454c(0x184),_0x32977b;}_0x50aa23['PRINT_CANVAS_CLASS']=_0x1e1c59,_0x50aa23['PRINT_CONTAINER_CLASS']=_0x2de694,_0x50aa23[_0x5d4d46(0x172)]=_0x467768,_0x50aa23[_0x5d4d46(0x166)]=_0x1aa31e,_0x50aa23[_0x5d4d46(0x185)]=_0x28980b,_0x50aa23[_0x5d4d46(0x183)]=_0x5c02c0,_0x50aa23[_0x5d4d46(0x176)]=_0x523196,_0x50aa23[_0x5d4d46(0x17f)]=_0x492d86,_0x50aa23[_0x5d4d46(0x156)]=_0x31e66c,_0x50aa23[_0x5d4d46(0x178)]=_0x21d38b,Object[_0x5d4d46(0x16c)](_0x50aa23,Symbol[_0x5d4d46(0x173)],{'value':_0x5d4d46(0x168)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9-nightly.202504021607",
|
|
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.9"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|