@univerjs-pro/print 0.6.0-alpha.0 → 0.6.0-experimental.20250212-dbe9830
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/umd/index.js +1 -1
- package/package.json +3 -3
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5d36=_0x477f;function _0x2e25(){const _0x5bbd97=['defineProperty','End','FitWidth','PrintPaperSize','1068YVtkAl','6465933wBPgcK','PaperMarginMap','15LVxlvt','createElement','6YVZVkT','301778DYqWaB','None','Tabloid','Wide','Middle','toStringTag','Statement','\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','Letter','Executive','1010610wqeKoZ','8839040bSXaWU','PrintScale','Landscape','7162827NsKxeg','Narrow','11397wRBEpL','FitHeight','Portrait','createPrintStyle','Start','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.','PRINT_CONTAINER_CLASS','FitPage','innerHTML','Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Folio','printing-canvas','Custom','Normal','\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','2588576YTXEve','offline-printing-css'];_0x2e25=function(){return _0x5bbd97;};return _0x2e25();}(function(_0xc3dbd8,_0x5b0427){const _0x4db740=_0x477f,_0xf39ca2=_0xc3dbd8();while(!![]){try{const _0x1bceda=parseInt(_0x4db740(0x1a9))/0x1*(parseInt(_0x4db740(0x1a8))/0x2)+parseInt(_0x4db740(0x18c))/0x3*(parseInt(_0x4db740(0x1a3))/0x4)+-parseInt(_0x4db740(0x1a6))/0x5*(parseInt(_0x4db740(0x186))/0x6)+parseInt(_0x4db740(0x18a))/0x7+-parseInt(_0x4db740(0x19d))/0x8+-parseInt(_0x4db740(0x1a4))/0x9+-parseInt(_0x4db740(0x187))/0xa;if(_0x1bceda===_0x5b0427)break;else _0xf39ca2['push'](_0xf39ca2['shift']());}catch(_0x136a03){_0xf39ca2['push'](_0xf39ca2['shift']());}}}(_0x2e25,0x7cede));Object[_0x5d36(0x19f)](exports,Symbol[_0x5d36(0x180)],{'value':'Module'});var e=(_0x25e79f=>(_0x25e79f[_0x5d36(0x184)]='Letter',_0x25e79f[_0x5d36(0x17d)]=_0x5d36(0x17d),_0x25e79f[_0x5d36(0x191)]='Legal',_0x25e79f[_0x5d36(0x181)]=_0x5d36(0x181),_0x25e79f[_0x5d36(0x185)]=_0x5d36(0x185),_0x25e79f['Folio']=_0x5d36(0x198),_0x25e79f['A3']='A3',_0x25e79f['A4']='A4',_0x25e79f['A5']='A5',_0x25e79f['B4']='B4',_0x25e79f['B5']='B5',_0x25e79f))(e||{}),i=(_0x535660=>(_0x535660['Portrait']='Portrait',_0x535660[_0x5d36(0x189)]=_0x5d36(0x189),_0x535660))(i||{}),c=(_0x21904c=>(_0x21904c[_0x5d36(0x196)]=_0x5d36(0x196),_0x21904c[_0x5d36(0x1a1)]=_0x5d36(0x1a1),_0x21904c[_0x5d36(0x18d)]=_0x5d36(0x18d),_0x21904c[_0x5d36(0x194)]=_0x5d36(0x194),_0x21904c[_0x5d36(0x19a)]=_0x5d36(0x19a),_0x21904c))(c||{}),g=(_0x5141b6=>(_0x5141b6[_0x5d36(0x190)]=_0x5d36(0x190),_0x5141b6[_0x5d36(0x1a0)]=_0x5d36(0x1a0),_0x5141b6['Middle']=_0x5d36(0x17f),_0x5141b6))(g||{}),o=(_0x3e4601=>(_0x3e4601[_0x5d36(0x19b)]='Normal',_0x3e4601['Narrow']=_0x5d36(0x18b),_0x3e4601[_0x5d36(0x17e)]=_0x5d36(0x17e),_0x3e4601['None']='None',_0x3e4601))(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[_0x5d36(0x198)]]:{'w':0x330,'h':0x4e0},[e[_0x5d36(0x191)]]:{'w':0x330,'h':0x540},[e[_0x5d36(0x184)]]:{'w':0x330,'h':0x420},[e[_0x5d36(0x181)]]:{'w':0x210,'h':0x330},[e[_0x5d36(0x17d)]]:{'w':0x420,'h':0x660}},N={[o[_0x5d36(0x19b)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5d36(0x18b)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5d36(0x17e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x5d36(0x1aa)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p=_0x5d36(0x199);function _0x477f(_0x1caa05,_0x5cd544){const _0x2e2529=_0x2e25();return _0x477f=function(_0x477f3c,_0x421bcd){_0x477f3c=_0x477f3c-0x17d;let _0x5e6897=_0x2e2529[_0x477f3c];return _0x5e6897;},_0x477f(_0x1caa05,_0x5cd544);}function A(_0x3895db,_0x256b5f){const _0x56e67a=_0x5d36,{w:_0x42f6c4,h:_0x313cd7}=m[_0x3895db],_0x131883=_0x256b5f===i[_0x56e67a(0x18e)]?_0x42f6c4:_0x313cd7,_0x3368f0=_0x256b5f===i[_0x56e67a(0x18e)]?_0x313cd7:_0x42f6c4,_0x38026b=_0x56e67a(0x19c)+_0x131883+'px\x20'+_0x3368f0+'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+',\x20.'+n+_0x56e67a(0x192)+p+_0x56e67a(0x182)+_0x3368f0+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x131883+_0x56e67a(0x197),_0x474ab4=document[_0x56e67a(0x1a7)]('style');return _0x474ab4[_0x56e67a(0x195)]=_0x38026b,_0x474ab4['className']=_0x56e67a(0x19e),_0x474ab4;}exports['PRINT_CANVAS_CLASS']=p,exports[_0x5d36(0x193)]=n,exports[_0x5d36(0x1a5)]=N,exports['PaperSizePxMap']=m,exports['PrintAlign']=g,exports[_0x5d36(0x183)]=i,exports['PrintPaperMargin']=o,exports[_0x5d36(0x1a2)]=e,exports[_0x5d36(0x188)]=c,exports[_0x5d36(0x18f)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0xb08818=_0x5dee;(function(_0xca4fc6,_0xe3e36e){const _0x509def=_0x5dee,_0x57c9ec=_0xca4fc6();while(!![]){try{const _0x27e6aa=parseInt(_0x509def(0x9b))/0x1+-parseInt(_0x509def(0x97))/0x2+-parseInt(_0x509def(0x85))/0x3+parseInt(_0x509def(0x98))/0x4+-parseInt(_0x509def(0x88))/0x5*(-parseInt(_0x509def(0x87))/0x6)+-parseInt(_0x509def(0x9c))/0x7*(-parseInt(_0x509def(0x9d))/0x8)+parseInt(_0x509def(0x86))/0x9*(-parseInt(_0x509def(0x8b))/0xa);if(_0x27e6aa===_0xe3e36e)break;else _0x57c9ec['push'](_0x57c9ec['shift']());}catch(_0x1a9dfc){_0x57c9ec['push'](_0x57c9ec['shift']());}}}(_0x181f,0xea98a));var o=(_0x1cfcb3=>(_0x1cfcb3[_0xb08818(0x94)]=_0xb08818(0x94),_0x1cfcb3[_0xb08818(0x91)]=_0xb08818(0x91),_0x1cfcb3[_0xb08818(0x81)]='Legal',_0x1cfcb3[_0xb08818(0x80)]=_0xb08818(0x80),_0x1cfcb3['Executive']=_0xb08818(0x83),_0x1cfcb3['Folio']=_0xb08818(0x89),_0x1cfcb3['A3']='A3',_0x1cfcb3['A4']='A4',_0x1cfcb3['A5']='A5',_0x1cfcb3['B4']='B4',_0x1cfcb3['B5']='B5',_0x1cfcb3))(o||{}),i=(_0x488557=>(_0x488557['Portrait']=_0xb08818(0x9f),_0x488557[_0xb08818(0x7b)]=_0xb08818(0x7b),_0x488557))(i||{}),w=(_0x4b8241=>(_0x4b8241['Origin']=_0xb08818(0x99),_0x4b8241['FitWidth']='FitWidth',_0x4b8241['FitHeight']=_0xb08818(0x92),_0x4b8241[_0xb08818(0x8e)]=_0xb08818(0x8e),_0x4b8241[_0xb08818(0x84)]='Custom',_0x4b8241))(w||{}),m=(_0x1af721=>(_0x1af721['Start']=_0xb08818(0x8d),_0x1af721[_0xb08818(0x9e)]='End',_0x1af721['Middle']=_0xb08818(0xa0),_0x1af721))(m||{}),e=(_0x397f85=>(_0x397f85[_0xb08818(0x8c)]=_0xb08818(0x8c),_0x397f85[_0xb08818(0x90)]=_0xb08818(0x90),_0x397f85[_0xb08818(0x7c)]=_0xb08818(0x7c),_0x397f85[_0xb08818(0x93)]=_0xb08818(0x93),_0x397f85))(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[_0xb08818(0x83)]]:{'w':0x2b8,'h':0x3f0},[o[_0xb08818(0x89)]]:{'w':0x330,'h':0x4e0},[o[_0xb08818(0x81)]]:{'w':0x330,'h':0x540},[o[_0xb08818(0x94)]]:{'w':0x330,'h':0x420},[o[_0xb08818(0x80)]]:{'w':0x210,'h':0x330},[o['Tabloid']]:{'w':0x420,'h':0x660}},v={[e[_0xb08818(0x8c)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0xb08818(0x90)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0xb08818(0x93)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l='printing-canvas-container',p=_0xb08818(0x7e);function _0x5dee(_0x274cdc,_0x2550c9){const _0x181ff7=_0x181f();return _0x5dee=function(_0x5deec7,_0x267d46){_0x5deec7=_0x5deec7-0x7b;let _0x1b27ab=_0x181ff7[_0x5deec7];return _0x1b27ab;},_0x5dee(_0x274cdc,_0x2550c9);}function N(_0x52478a,_0x342a1e){const _0x56d4b2=_0xb08818,{w:_0x56a3cd,h:_0x1b1874}=g[_0x52478a],_0x2e811c=_0x342a1e===i[_0x56d4b2(0x9f)]?_0x56a3cd:_0x1b1874,_0x554d17=_0x342a1e===i[_0x56d4b2(0x9f)]?_0x1b1874:_0x56a3cd,_0x1f31e0=_0x56d4b2(0xa1)+_0x2e811c+_0x56d4b2(0x96)+_0x554d17+_0x56d4b2(0x82)+l+',\x20.'+l+_0x56d4b2(0x7d)+p+_0x56d4b2(0xa2)+_0x554d17+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x2e811c+_0x56d4b2(0x8f),_0x4f568a=document[_0x56d4b2(0x9a)](_0x56d4b2(0x95));return _0x4f568a[_0x56d4b2(0x7f)]=_0x1f31e0,_0x4f568a['className']=_0x56d4b2(0x8a),_0x4f568a;}function _0x181f(){const _0x2b47c8=['Landscape','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.','printing-canvas','innerHTML','Statement','Legal','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.','Executive','Custom','3481644anpiCA','40554ptldeJ','3894UjtTIh','7885MslRGX','Folio','offline-printing-css','740yxyjeK','Normal','Start','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Narrow','Tabloid','FitHeight','None','Letter','style','px\x20','3102836ooxDmZ','2921924xksLNP','Origin','createElement','1325155LkyjIp','240387SwYFpU','216VvTzAl','End','Portrait','Middle','\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','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'];_0x181f=function(){return _0x2b47c8;};return _0x181f();}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 _0x1730(){const _0x7a7595=['FitPage','1059128MNiEQx','object','Start','innerHTML','FitWidth','956718HhUhIx','45nSrCqa','createElement','Module','Normal','Landscape','Statement','PrintScale','Legal','\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','amd','printing-canvas-container','Tabloid','px\x20','287JbCfSi','offline-printing-css','Folio','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','1223000DaVGvJ','printing-canvas','207cuJXEe','UniverProPrint','exports','PrintPaperMargin','1236768qusoYE','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Origin','Middle','873339SIazZJ',',\x20.','defineProperty','Portrait','None','Letter','className','Narrow','Wide','Custom','Executive','PaperMarginMap','PRINT_CONTAINER_CLASS','276384qneRUo','PrintDirection','FitHeight','6612480oUCham','function','style','toStringTag'];_0x1730=function(){return _0x7a7595;};return _0x1730();}function _0x5c52(_0x225022,_0x1aabcc){const _0x173095=_0x1730();return _0x5c52=function(_0x5c5273,_0x21af00){_0x5c5273=_0x5c5273-0xb0;let _0x597103=_0x173095[_0x5c5273];return _0x597103;},_0x5c52(_0x225022,_0x1aabcc);}(function(_0xbac89,_0x2d8f5c){const _0x16d337=_0x5c52,_0xc018ec=_0xbac89();while(!![]){try{const _0x14294e=-parseInt(_0x16d337(0xb5))/0x1+parseInt(_0x16d337(0xd2))/0x2+-parseInt(_0x16d337(0xd6))/0x3+parseInt(_0x16d337(0xb0))/0x4+parseInt(_0x16d337(0xbb))/0x5*(-parseInt(_0x16d337(0xba))/0x6)+-parseInt(_0x16d337(0xc8))/0x7*(parseInt(_0x16d337(0xe3))/0x8)+-parseInt(_0x16d337(0xce))/0x9*(-parseInt(_0x16d337(0xcc))/0xa);if(_0x14294e===_0x2d8f5c)break;else _0xc018ec['push'](_0xc018ec['shift']());}catch(_0x1c8ff4){_0xc018ec['push'](_0xc018ec['shift']());}}}(_0x1730,0xd77ba),function(_0x5d2c29,_0x5a5c99){const _0x506a2c=_0x5c52;typeof exports==_0x506a2c(0xb6)&&typeof module<'u'?_0x5a5c99(exports):typeof define==_0x506a2c(0xb1)&&define[_0x506a2c(0xc4)]?define([_0x506a2c(0xd0)],_0x5a5c99):(_0x5d2c29=typeof globalThis<'u'?globalThis:_0x5d2c29||self,_0x5a5c99(_0x5d2c29[_0x506a2c(0xcf)]={}));}(this,function(_0x36b00f){'use strict';const _0x5cafc1=_0x5c52;var _0x26cec9=(_0x1d8f66=>(_0x1d8f66[_0x5cafc1(0xdb)]=_0x5cafc1(0xdb),_0x1d8f66['Tabloid']=_0x5cafc1(0xc6),_0x1d8f66['Legal']='Legal',_0x1d8f66[_0x5cafc1(0xc0)]='Statement',_0x1d8f66['Executive']='Executive',_0x1d8f66[_0x5cafc1(0xca)]=_0x5cafc1(0xca),_0x1d8f66['A3']='A3',_0x1d8f66['A4']='A4',_0x1d8f66['A5']='A5',_0x1d8f66['B4']='B4',_0x1d8f66['B5']='B5',_0x1d8f66))(_0x26cec9||{}),_0x50bcc3=(_0x66d042=>(_0x66d042[_0x5cafc1(0xd9)]='Portrait',_0x66d042['Landscape']=_0x5cafc1(0xbf),_0x66d042))(_0x50bcc3||{}),_0x5ca9b6=(_0x3a94e6=>(_0x3a94e6[_0x5cafc1(0xd4)]=_0x5cafc1(0xd4),_0x3a94e6[_0x5cafc1(0xb9)]=_0x5cafc1(0xb9),_0x3a94e6[_0x5cafc1(0xe5)]='FitHeight',_0x3a94e6[_0x5cafc1(0xb4)]=_0x5cafc1(0xb4),_0x3a94e6[_0x5cafc1(0xdf)]=_0x5cafc1(0xdf),_0x3a94e6))(_0x5ca9b6||{}),_0x128949=(_0x31169a=>(_0x31169a[_0x5cafc1(0xb7)]=_0x5cafc1(0xb7),_0x31169a['End']='End',_0x31169a[_0x5cafc1(0xd5)]=_0x5cafc1(0xd5),_0x31169a))(_0x128949||{}),_0xda486f=(_0x52ac3a=>(_0x52ac3a[_0x5cafc1(0xbe)]=_0x5cafc1(0xbe),_0x52ac3a[_0x5cafc1(0xdd)]=_0x5cafc1(0xdd),_0x52ac3a[_0x5cafc1(0xde)]='Wide',_0x52ac3a[_0x5cafc1(0xda)]=_0x5cafc1(0xda),_0x52ac3a))(_0xda486f||{});const _0x4b3770={[_0x26cec9['A3']]:{'w':0x463,'h':0x633},[_0x26cec9['A4']]:{'w':0x31a,'h':0x464},[_0x26cec9['A5']]:{'w':0x22f,'h':0x31a},[_0x26cec9['B4']]:{'w':0x3b0,'h':0x540},[_0x26cec9['B5']]:{'w':0x299,'h':0x3b0},[_0x26cec9[_0x5cafc1(0xe0)]]:{'w':0x2b8,'h':0x3f0},[_0x26cec9[_0x5cafc1(0xca)]]:{'w':0x330,'h':0x4e0},[_0x26cec9[_0x5cafc1(0xc2)]]:{'w':0x330,'h':0x540},[_0x26cec9[_0x5cafc1(0xdb)]]:{'w':0x330,'h':0x420},[_0x26cec9[_0x5cafc1(0xc0)]]:{'w':0x210,'h':0x330},[_0x26cec9['Tabloid']]:{'w':0x420,'h':0x660}},_0x38caf1={[_0xda486f[_0x5cafc1(0xbe)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0xda486f[_0x5cafc1(0xdd)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0xda486f[_0x5cafc1(0xde)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0xda486f[_0x5cafc1(0xda)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1ac217=_0x5cafc1(0xc5),_0x312ea9=_0x5cafc1(0xcd);function _0x177b71(_0x41031d,_0xf4cba8){const _0xd4009a=_0x5cafc1,{w:_0x597b7d,h:_0x255ef1}=_0x4b3770[_0x41031d],_0x3e4321=_0xf4cba8===_0x50bcc3[_0xd4009a(0xd9)]?_0x597b7d:_0x255ef1,_0x4d32ae=_0xf4cba8===_0x50bcc3['Portrait']?_0x255ef1:_0x597b7d,_0x1b4a53=_0xd4009a(0xc3)+_0x3e4321+_0xd4009a(0xc7)+_0x4d32ae+'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.'+_0x1ac217+_0xd4009a(0xd7)+_0x1ac217+'\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.'+_0x312ea9+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x4d32ae+_0xd4009a(0xd3)+_0x3e4321+_0xd4009a(0xcb),_0xf18be=document[_0xd4009a(0xbc)](_0xd4009a(0xb2));return _0xf18be[_0xd4009a(0xb8)]=_0x1b4a53,_0xf18be[_0xd4009a(0xdc)]=_0xd4009a(0xc9),_0xf18be;}_0x36b00f['PRINT_CANVAS_CLASS']=_0x312ea9,_0x36b00f[_0x5cafc1(0xe2)]=_0x1ac217,_0x36b00f[_0x5cafc1(0xe1)]=_0x38caf1,_0x36b00f['PaperSizePxMap']=_0x4b3770,_0x36b00f['PrintAlign']=_0x128949,_0x36b00f[_0x5cafc1(0xe4)]=_0x50bcc3,_0x36b00f[_0x5cafc1(0xd1)]=_0xda486f,_0x36b00f['PrintPaperSize']=_0x26cec9,_0x36b00f[_0x5cafc1(0xc1)]=_0x5ca9b6,_0x36b00f['createPrintStyle']=_0x177b71,Object[_0x5cafc1(0xd8)](_0x36b00f,Symbol[_0x5cafc1(0xb3)],{'value':_0x5cafc1(0xbd)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.0-
|
|
3
|
+
"version": "0.6.0-experimental.20250212-dbe9830",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.7.3",
|
|
46
|
-
"vite": "^6.0.
|
|
47
|
-
"vitest": "^
|
|
46
|
+
"vite": "^6.0.11",
|
|
47
|
+
"vitest": "^3.0.4",
|
|
48
48
|
"@univerjs-infra/shared": "0.6.0-alpha.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|