@univerjs-pro/print 0.15.5 → 0.16.0
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 _0x5aeafc=_0x465e;(function(_0x1e3fd6,_0x27d2a1){const _0x5ee352=_0x465e,_0x2f6803=_0x1e3fd6();while(!![]){try{const _0x4cb486=-parseInt(_0x5ee352(0x134))/0x1+-parseInt(_0x5ee352(0x12e))/0x2+-parseInt(_0x5ee352(0x144))/0x3+parseInt(_0x5ee352(0x135))/0x4+-parseInt(_0x5ee352(0x123))/0x5+parseInt(_0x5ee352(0x13f))/0x6+-parseInt(_0x5ee352(0x124))/0x7*(-parseInt(_0x5ee352(0x140))/0x8);if(_0x4cb486===_0x27d2a1)break;else _0x2f6803['push'](_0x2f6803['shift']());}catch(_0x382f83){_0x2f6803['push'](_0x2f6803['shift']());}}}(_0x1c22,0xeeb8d));function _0x1c22(){const _0x210c82=['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}','FitWidth','createElement','2023998rekSWs','6454424bWbSfJ','toStringTag','End','PRINT_CANVAS_CLASS','163950cuhFGD','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.','Wide','innerHTML','Narrow','\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','Landscape','PRINT_CONTAINER_CLASS','7979380dCHYXy','35xzpFGu','PaperMarginMap','PrintPaperMargin','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.','PrintAlign','Module','Start','PrintScale','None','offline-printing-css','2043418Lbpupm','Normal','\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','createPrintStyle','className','PrintDirection','864204gWavcI','571584OQkHbN','Origin','Portrait','FitPage','FitHeight','Custom','printing-canvas-container'];_0x1c22=function(){return _0x210c82;};return _0x1c22();}Object['defineProperty'](exports,Symbol[_0x5aeafc(0x141)],{'value':_0x5aeafc(0x129)});var i=(_0x26c84b=>(_0x26c84b[_0x5aeafc(0x137)]=_0x5aeafc(0x137),_0x26c84b['Landscape']=_0x5aeafc(0x121),_0x26c84b))(i||{}),l=(_0x1eb648=>(_0x1eb648['Origin']=_0x5aeafc(0x136),_0x1eb648[_0x5aeafc(0x13d)]=_0x5aeafc(0x13d),_0x1eb648[_0x5aeafc(0x139)]=_0x5aeafc(0x139),_0x1eb648['FitPage']=_0x5aeafc(0x138),_0x1eb648[_0x5aeafc(0x13a)]=_0x5aeafc(0x13a),_0x1eb648))(l||{}),m=(_0x4a326a=>(_0x4a326a[_0x5aeafc(0x12a)]=_0x5aeafc(0x12a),_0x4a326a['End']=_0x5aeafc(0x142),_0x4a326a['Middle']=_0x5aeafc(0x145),_0x4a326a))(m||{}),o=(_0xfcef8a=>(_0xfcef8a[_0x5aeafc(0x12f)]='Normal',_0xfcef8a[_0x5aeafc(0x11e)]=_0x5aeafc(0x11e),_0xfcef8a['Wide']=_0x5aeafc(0x147),_0xfcef8a[_0x5aeafc(0x12c)]=_0x5aeafc(0x12c),_0xfcef8a['Custom']='Custom',_0xfcef8a))(o||{});const g={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5aeafc(0x11e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5aeafc(0x147)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5aeafc(0x12c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x5aeafc(0x13a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x5aeafc(0x13b),n='printing-canvas';function _0x465e(_0x2ca9f7,_0x3a357e){_0x2ca9f7=_0x2ca9f7-0x11e;const _0x1c2270=_0x1c22();let _0x465ef9=_0x1c2270[_0x2ca9f7];return _0x465ef9;}function h(_0x402679,_0x2c0db5,_0x1d2ce5){const _0x4537d9=_0x5aeafc,_0x4fb03a=_0x1d2ce5===i['Portrait']?_0x402679:_0x2c0db5,_0x201f75=_0x1d2ce5===i['Portrait']?_0x2c0db5:_0x402679,_0x50aea7='\x0a\x20\x20\x20\x20.'+n+_0x4537d9(0x11f)+_0x4fb03a+_0x4537d9(0x120)+_0x201f75+_0x4537d9(0x127)+r+',\x20.'+r+_0x4537d9(0x146)+n+_0x4537d9(0x130)+_0x201f75+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4fb03a+_0x4537d9(0x13c),_0x14de6a=document[_0x4537d9(0x13e)]('style');return _0x14de6a[_0x4537d9(0x148)]=_0x50aea7,_0x14de6a[_0x4537d9(0x132)]=_0x4537d9(0x12d),_0x14de6a;}exports[_0x5aeafc(0x143)]=n,exports[_0x5aeafc(0x122)]=r,exports[_0x5aeafc(0x125)]=g,exports[_0x5aeafc(0x128)]=m,exports[_0x5aeafc(0x133)]=i,exports[_0x5aeafc(0x126)]=o,exports[_0x5aeafc(0x12b)]=l,exports[_0x5aeafc(0x131)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4502(_0x744354,_0x459cb0){_0x744354=_0x744354-0x1e0;const _0x33c233=_0x33c2();let _0x4502d5=_0x33c233[_0x744354];return _0x4502d5;}const _0xb770fb=_0x4502;(function(_0xbaa400,_0x3a6906){const _0x5d43fd=_0x4502,_0x431cd7=_0xbaa400();while(!![]){try{const _0x54f7f1=parseInt(_0x5d43fd(0x1ef))/0x1*(parseInt(_0x5d43fd(0x1f1))/0x2)+parseInt(_0x5d43fd(0x1f0))/0x3*(parseInt(_0x5d43fd(0x1e7))/0x4)+-parseInt(_0x5d43fd(0x1f7))/0x5*(-parseInt(_0x5d43fd(0x201))/0x6)+-parseInt(_0x5d43fd(0x1e3))/0x7*(-parseInt(_0x5d43fd(0x200))/0x8)+parseInt(_0x5d43fd(0x1e4))/0x9+-parseInt(_0x5d43fd(0x1eb))/0xa+parseInt(_0x5d43fd(0x1ea))/0xb*(-parseInt(_0x5d43fd(0x1fb))/0xc);if(_0x54f7f1===_0x3a6906)break;else _0x431cd7['push'](_0x431cd7['shift']());}catch(_0x17f12d){_0x431cd7['push'](_0x431cd7['shift']());}}}(_0x33c2,0x3cdd5));var e=(_0x37559a=>(_0x37559a[_0xb770fb(0x202)]='Portrait',_0x37559a[_0xb770fb(0x1f9)]=_0xb770fb(0x1f9),_0x37559a))(e||{}),h=(_0x122168=>(_0x122168[_0xb770fb(0x1e2)]=_0xb770fb(0x1e2),_0x122168[_0xb770fb(0x1ff)]=_0xb770fb(0x1ff),_0x122168[_0xb770fb(0x1fa)]=_0xb770fb(0x1fa),_0x122168[_0xb770fb(0x1e9)]=_0xb770fb(0x1e9),_0x122168[_0xb770fb(0x1f2)]=_0xb770fb(0x1f2),_0x122168))(h||{}),l=(_0x306584=>(_0x306584['Start']='Start',_0x306584[_0xb770fb(0x1fc)]=_0xb770fb(0x1fc),_0x306584['Middle']=_0xb770fb(0x1e0),_0x306584))(l||{}),o=(_0x4d3167=>(_0x4d3167[_0xb770fb(0x1f5)]='Normal',_0x4d3167[_0xb770fb(0x1f8)]=_0xb770fb(0x1f8),_0x4d3167['Wide']='Wide',_0x4d3167[_0xb770fb(0x1e1)]='None',_0x4d3167['Custom']='Custom',_0x4d3167))(o||{});const c={[o[_0xb770fb(0x1f5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0xb770fb(0x1f8)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0xb770fb(0x1e6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0xb770fb(0x1e1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0xb770fb(0x1f2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0xb770fb(0x1ec),d='printing-canvas';function g(_0x463a3a,_0x26a728,_0x225099){const _0x432150=_0xb770fb,_0x36cbf7=_0x225099===e[_0x432150(0x202)]?_0x463a3a:_0x26a728,_0x6ee77=_0x225099===e[_0x432150(0x202)]?_0x26a728:_0x463a3a,_0x550c93='\x0a\x20\x20\x20\x20.'+d+'\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'+_0x36cbf7+_0x432150(0x1f3)+_0x6ee77+_0x432150(0x1e8)+p+',\x20.'+p+_0x432150(0x1ed)+d+_0x432150(0x1e5)+_0x6ee77+_0x432150(0x1fe)+_0x36cbf7+_0x432150(0x1f6),_0x642d40=document['createElement'](_0x432150(0x1fd));return _0x642d40[_0x432150(0x1f4)]=_0x550c93,_0x642d40[_0x432150(0x1ee)]='offline-printing-css',_0x642d40;}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};function _0x33c2(){const _0x3ec91e=['20RWArwH','Narrow','Landscape','FitHeight','3715788bIaIIG','End','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitWidth','10776BzfnIl','257748PRKYuQ','Portrait','Middle','None','Origin','224QTcIVE','203157LWDGgX','\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','Wide','12tIrfmA','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.','FitPage','22QgwnkB','2778090tezJpt','printing-canvas-container','\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.','className','41171dGklcR','456018geQAyS','22yYDDvL','Custom','px\x20','innerHTML','Normal','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}'];_0x33c2=function(){return _0x3ec91e;};return _0x33c2();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4502(_0x744354,_0x459cb0){_0x744354=_0x744354-0x1e0;const _0x33c233=_0x33c2();let _0x4502d5=_0x33c233[_0x744354];return _0x4502d5;}const _0xb770fb=_0x4502;(function(_0xbaa400,_0x3a6906){const _0x5d43fd=_0x4502,_0x431cd7=_0xbaa400();while(!![]){try{const _0x54f7f1=parseInt(_0x5d43fd(0x1ef))/0x1*(parseInt(_0x5d43fd(0x1f1))/0x2)+parseInt(_0x5d43fd(0x1f0))/0x3*(parseInt(_0x5d43fd(0x1e7))/0x4)+-parseInt(_0x5d43fd(0x1f7))/0x5*(-parseInt(_0x5d43fd(0x201))/0x6)+-parseInt(_0x5d43fd(0x1e3))/0x7*(-parseInt(_0x5d43fd(0x200))/0x8)+parseInt(_0x5d43fd(0x1e4))/0x9+-parseInt(_0x5d43fd(0x1eb))/0xa+parseInt(_0x5d43fd(0x1ea))/0xb*(-parseInt(_0x5d43fd(0x1fb))/0xc);if(_0x54f7f1===_0x3a6906)break;else _0x431cd7['push'](_0x431cd7['shift']());}catch(_0x17f12d){_0x431cd7['push'](_0x431cd7['shift']());}}}(_0x33c2,0x3cdd5));var e=(_0x37559a=>(_0x37559a[_0xb770fb(0x202)]='Portrait',_0x37559a[_0xb770fb(0x1f9)]=_0xb770fb(0x1f9),_0x37559a))(e||{}),h=(_0x122168=>(_0x122168[_0xb770fb(0x1e2)]=_0xb770fb(0x1e2),_0x122168[_0xb770fb(0x1ff)]=_0xb770fb(0x1ff),_0x122168[_0xb770fb(0x1fa)]=_0xb770fb(0x1fa),_0x122168[_0xb770fb(0x1e9)]=_0xb770fb(0x1e9),_0x122168[_0xb770fb(0x1f2)]=_0xb770fb(0x1f2),_0x122168))(h||{}),l=(_0x306584=>(_0x306584['Start']='Start',_0x306584[_0xb770fb(0x1fc)]=_0xb770fb(0x1fc),_0x306584['Middle']=_0xb770fb(0x1e0),_0x306584))(l||{}),o=(_0x4d3167=>(_0x4d3167[_0xb770fb(0x1f5)]='Normal',_0x4d3167[_0xb770fb(0x1f8)]=_0xb770fb(0x1f8),_0x4d3167['Wide']='Wide',_0x4d3167[_0xb770fb(0x1e1)]='None',_0x4d3167['Custom']='Custom',_0x4d3167))(o||{});const c={[o[_0xb770fb(0x1f5)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0xb770fb(0x1f8)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0xb770fb(0x1e6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0xb770fb(0x1e1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0xb770fb(0x1f2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0xb770fb(0x1ec),d='printing-canvas';function g(_0x463a3a,_0x26a728,_0x225099){const _0x432150=_0xb770fb,_0x36cbf7=_0x225099===e[_0x432150(0x202)]?_0x463a3a:_0x26a728,_0x6ee77=_0x225099===e[_0x432150(0x202)]?_0x26a728:_0x463a3a,_0x550c93='\x0a\x20\x20\x20\x20.'+d+'\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'+_0x36cbf7+_0x432150(0x1f3)+_0x6ee77+_0x432150(0x1e8)+p+',\x20.'+p+_0x432150(0x1ed)+d+_0x432150(0x1e5)+_0x6ee77+_0x432150(0x1fe)+_0x36cbf7+_0x432150(0x1f6),_0x642d40=document['createElement'](_0x432150(0x1fd));return _0x642d40[_0x432150(0x1f4)]=_0x550c93,_0x642d40[_0x432150(0x1ee)]='offline-printing-css',_0x642d40;}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};function _0x33c2(){const _0x3ec91e=['20RWArwH','Narrow','Landscape','FitHeight','3715788bIaIIG','End','style','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitWidth','10776BzfnIl','257748PRKYuQ','Portrait','Middle','None','Origin','224QTcIVE','203157LWDGgX','\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','Wide','12tIrfmA','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.','FitPage','22QgwnkB','2778090tezJpt','printing-canvas-container','\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.','className','41171dGklcR','456018geQAyS','22yYDDvL','Custom','px\x20','innerHTML','Normal','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}'];_0x33c2=function(){return _0x3ec91e;};return _0x33c2();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xb966(_0x4ac0bb,_0x642343){_0x4ac0bb=_0x4ac0bb-0x189;const _0x4a0420=_0x4a04();let _0xb966a0=_0x4a0420[_0x4ac0bb];return _0xb966a0;}function _0x4a04(){const _0x210680=['230IEjeeF','Normal','End','FitPage','FitWidth','Narrow','17638911reSJSd','12704200cpOMFK','44431150lwjdOw','Custom','7CGzySh','offline-printing-css','PrintScale','amd','\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','printing-canvas-container','Start','PrintDirection','className','printing-canvas','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}','Module','Middle','PRINT_CANVAS_CLASS','42531VMYkuo',',\x20.','Origin','Portrait','None','3158956tBTObf','54537xzLqlD','defineProperty','toStringTag','function','px\x20','FitHeight','createElement','12085PnpoLM','1716uvEMcx','Wide','object','PaperMarginMap','UniverProPrint'];_0x4a04=function(){return _0x210680;};return _0x4a04();}(function(_0x12ef9c,_0x439574){const _0x5d851c=_0xb966,_0x4cb02b=_0x12ef9c();while(!![]){try{const _0x1e19af=-parseInt(_0x5d851c(0x1a3))/0x1+-parseInt(_0x5d851c(0x1b0))/0x2*(-parseInt(_0x5d851c(0x19d))/0x3)+-parseInt(_0x5d851c(0x1a2))/0x4+parseInt(_0x5d851c(0x1aa))/0x5*(-parseInt(_0x5d851c(0x1ab))/0x6)+-parseInt(_0x5d851c(0x18f))/0x7*(parseInt(_0x5d851c(0x18c))/0x8)+-parseInt(_0x5d851c(0x18b))/0x9+parseInt(_0x5d851c(0x18d))/0xa;if(_0x1e19af===_0x439574)break;else _0x4cb02b['push'](_0x4cb02b['shift']());}catch(_0x191797){_0x4cb02b['push'](_0x4cb02b['shift']());}}}(_0x4a04,0xf1b4c),function(_0x297a14,_0x280628){const _0x427234=_0xb966;typeof exports==_0x427234(0x1ad)&&typeof module<'u'?_0x280628(exports):typeof define==_0x427234(0x1a6)&&define[_0x427234(0x192)]?define(['exports'],_0x280628):(_0x297a14=typeof globalThis<'u'?globalThis:_0x297a14||self,_0x280628(_0x297a14[_0x427234(0x1af)]={}));}(this,function(_0x4283f8){'use strict';const _0xd27e7c=_0xb966;var _0x93551d=(_0x35f6ba=>(_0x35f6ba[_0xd27e7c(0x1a0)]=_0xd27e7c(0x1a0),_0x35f6ba['Landscape']='Landscape',_0x35f6ba))(_0x93551d||{}),_0x49dc5a=(_0x156d7e=>(_0x156d7e[_0xd27e7c(0x19f)]='Origin',_0x156d7e[_0xd27e7c(0x189)]=_0xd27e7c(0x189),_0x156d7e[_0xd27e7c(0x1a8)]='FitHeight',_0x156d7e['FitPage']=_0xd27e7c(0x1b3),_0x156d7e['Custom']=_0xd27e7c(0x18e),_0x156d7e))(_0x49dc5a||{}),_0x2eb104=(_0x42220c=>(_0x42220c[_0xd27e7c(0x195)]=_0xd27e7c(0x195),_0x42220c[_0xd27e7c(0x1b2)]='End',_0x42220c[_0xd27e7c(0x19b)]=_0xd27e7c(0x19b),_0x42220c))(_0x2eb104||{}),_0xd634eb=(_0x235a2d=>(_0x235a2d[_0xd27e7c(0x1b1)]=_0xd27e7c(0x1b1),_0x235a2d[_0xd27e7c(0x18a)]=_0xd27e7c(0x18a),_0x235a2d[_0xd27e7c(0x1ac)]='Wide',_0x235a2d[_0xd27e7c(0x1a1)]=_0xd27e7c(0x1a1),_0x235a2d[_0xd27e7c(0x18e)]=_0xd27e7c(0x18e),_0x235a2d))(_0xd634eb||{});const _0x44d612={[_0xd634eb[_0xd27e7c(0x1b1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0xd634eb[_0xd27e7c(0x18a)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0xd634eb[_0xd27e7c(0x1ac)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0xd634eb[_0xd27e7c(0x1a1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0xd634eb['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4ec151=_0xd27e7c(0x194),_0x5cdf79=_0xd27e7c(0x198);function _0xc95bd1(_0x424f18,_0xff2bf1,_0xe89ef0){const _0x137b92=_0xd27e7c,_0x383784=_0xe89ef0===_0x93551d['Portrait']?_0x424f18:_0xff2bf1,_0x544d2d=_0xe89ef0===_0x93551d[_0x137b92(0x1a0)]?_0xff2bf1:_0x424f18,_0x3fdd4e='\x0a\x20\x20\x20\x20.'+_0x5cdf79+'\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'+_0x383784+_0x137b92(0x1a7)+_0x544d2d+'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.'+_0x4ec151+_0x137b92(0x19e)+_0x4ec151+'\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.'+_0x5cdf79+_0x137b92(0x193)+_0x544d2d+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x383784+_0x137b92(0x199),_0x433cb6=document[_0x137b92(0x1a9)]('style');return _0x433cb6['innerHTML']=_0x3fdd4e,_0x433cb6[_0x137b92(0x197)]=_0x137b92(0x190),_0x433cb6;}_0x4283f8[_0xd27e7c(0x19c)]=_0x5cdf79,_0x4283f8['PRINT_CONTAINER_CLASS']=_0x4ec151,_0x4283f8[_0xd27e7c(0x1ae)]=_0x44d612,_0x4283f8['PrintAlign']=_0x2eb104,_0x4283f8[_0xd27e7c(0x196)]=_0x93551d,_0x4283f8['PrintPaperMargin']=_0xd634eb,_0x4283f8[_0xd27e7c(0x191)]=_0x49dc5a,_0x4283f8['createPrintStyle']=_0xc95bd1,Object[_0xd27e7c(0x1a4)](_0x4283f8,Symbol[_0xd27e7c(0x1a5)],{'value':_0xd27e7c(0x19a)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
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.18",
|
|
48
|
-
"@univerjs-infra/shared": "0.
|
|
48
|
+
"@univerjs-infra/shared": "0.16.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|