@univerjs-pro/print 0.6.4 → 0.6.5
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 _0x48c45c=_0x11b6;function _0x2f2b(){const _0x3ca0b4=['7695768iTIqdj','FitHeight','7gAQVXO','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','toStringTag','Legal','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.','Portrait','offline-printing-css','printing-canvas','2gXOAWK','Wide','593425KvDYOS','\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','2507980cglFFe','Statement','Tabloid','Middle','PrintPaperMargin','PRINT_CONTAINER_CLASS',',\x20.','createPrintStyle','Folio','2247165mRIXJX','PaperSizePxMap','PrintAlign','Narrow','PrintDirection','8DQexRd','PRINT_CANVAS_CLASS','Letter','1530426dYQcpC','Normal','innerHTML','FitWidth','598740nYrtEF','Module','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','67452veGOir','Custom','PrintScale','Landscape','11wQmzHN','FitPage','createElement','PaperMarginMap','None','Executive','px\x20','4LqQAsk'];_0x2f2b=function(){return _0x3ca0b4;};return _0x2f2b();}(function(_0x4d393e,_0x8afc4b){const _0x4bb9aa=_0x11b6,_0x5897cf=_0x4d393e();while(!![]){try{const _0x43aa3a=-parseInt(_0x4bb9aa(0x97))/0x1*(parseInt(_0x4bb9aa(0x7b))/0x2)+-parseInt(_0x4bb9aa(0x94))/0x3*(-parseInt(_0x4bb9aa(0x6f))/0x4)+-parseInt(_0x4bb9aa(0x7d))/0x5+-parseInt(_0x4bb9aa(0x90))/0x6*(-parseInt(_0x4bb9aa(0x72))/0x7)+-parseInt(_0x4bb9aa(0x8d))/0x8*(-parseInt(_0x4bb9aa(0x88))/0x9)+parseInt(_0x4bb9aa(0x7f))/0xa+-parseInt(_0x4bb9aa(0x68))/0xb*(parseInt(_0x4bb9aa(0x70))/0xc);if(_0x43aa3a===_0x8afc4b)break;else _0x5897cf['push'](_0x5897cf['shift']());}catch(_0x436b81){_0x5897cf['push'](_0x5897cf['shift']());}}}(_0x2f2b,0x1f2c3));function _0x11b6(_0xa7e6f9,_0x438f95){const _0x2f2b5e=_0x2f2b();return _0x11b6=function(_0x11b6c6,_0x1fba9f){_0x11b6c6=_0x11b6c6-0x67;let _0x325b07=_0x2f2b5e[_0x11b6c6];return _0x325b07;},_0x11b6(_0xa7e6f9,_0x438f95);}Object['defineProperty'](exports,Symbol[_0x48c45c(0x74)],{'value':_0x48c45c(0x95)});var e=(_0x5a9aeb=>(_0x5a9aeb[_0x48c45c(0x8f)]=_0x48c45c(0x8f),_0x5a9aeb['Tabloid']=_0x48c45c(0x81),_0x5a9aeb['Legal']=_0x48c45c(0x75),_0x5a9aeb[_0x48c45c(0x80)]=_0x48c45c(0x80),_0x5a9aeb[_0x48c45c(0x6d)]='Executive',_0x5a9aeb[_0x48c45c(0x87)]=_0x48c45c(0x87),_0x5a9aeb['A3']='A3',_0x5a9aeb['A4']='A4',_0x5a9aeb['A5']='A5',_0x5a9aeb['B4']='B4',_0x5a9aeb['B5']='B5',_0x5a9aeb))(e||{}),i=(_0x41988e=>(_0x41988e[_0x48c45c(0x78)]=_0x48c45c(0x78),_0x41988e['Landscape']=_0x48c45c(0x67),_0x41988e))(i||{}),c=(_0x5f59cf=>(_0x5f59cf[_0x48c45c(0x76)]=_0x48c45c(0x76),_0x5f59cf[_0x48c45c(0x93)]=_0x48c45c(0x93),_0x5f59cf[_0x48c45c(0x71)]=_0x48c45c(0x71),_0x5f59cf[_0x48c45c(0x69)]=_0x48c45c(0x69),_0x5f59cf[_0x48c45c(0x98)]='Custom',_0x5f59cf))(c||{}),g=(_0x5be99c=>(_0x5be99c['Start']='Start',_0x5be99c['End']='End',_0x5be99c[_0x48c45c(0x82)]=_0x48c45c(0x82),_0x5be99c))(g||{}),o=(_0xd1dfa=>(_0xd1dfa[_0x48c45c(0x91)]=_0x48c45c(0x91),_0xd1dfa['Narrow']=_0x48c45c(0x8b),_0xd1dfa[_0x48c45c(0x7c)]=_0x48c45c(0x7c),_0xd1dfa[_0x48c45c(0x6c)]=_0x48c45c(0x6c),_0xd1dfa))(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[_0x48c45c(0x75)]]:{'w':0x330,'h':0x540},[e[_0x48c45c(0x8f)]]:{'w':0x330,'h':0x420},[e[_0x48c45c(0x80)]]:{'w':0x210,'h':0x330},[e[_0x48c45c(0x81)]]:{'w':0x420,'h':0x660}},N={[o[_0x48c45c(0x91)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x48c45c(0x8b)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x48c45c(0x6c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n='printing-canvas-container',p=_0x48c45c(0x7a);function A(_0x1dbfa4,_0x2d3ec2){const _0x513d90=_0x48c45c,{w:_0x442a0e,h:_0x5453f4}=m[_0x1dbfa4],_0x4f5be0=_0x2d3ec2===i[_0x513d90(0x78)]?_0x442a0e:_0x5453f4,_0x58a1e1=_0x2d3ec2===i[_0x513d90(0x78)]?_0x5453f4:_0x442a0e,_0x12ec42=_0x513d90(0x7e)+_0x4f5be0+_0x513d90(0x6e)+_0x58a1e1+'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+_0x513d90(0x85)+n+_0x513d90(0x77)+p+_0x513d90(0x73)+_0x58a1e1+_0x513d90(0x96)+_0x4f5be0+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x30d642=document[_0x513d90(0x6a)]('style');return _0x30d642[_0x513d90(0x92)]=_0x12ec42,_0x30d642['className']=_0x513d90(0x79),_0x30d642;}exports[_0x48c45c(0x8e)]=p,exports[_0x48c45c(0x84)]=n,exports[_0x48c45c(0x6b)]=N,exports[_0x48c45c(0x89)]=m,exports[_0x48c45c(0x8a)]=g,exports[_0x48c45c(0x8c)]=i,exports[_0x48c45c(0x83)]=o,exports['PrintPaperSize']=e,exports[_0x48c45c(0x99)]=c,exports[_0x48c45c(0x86)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x357ac2=_0x36c3;(function(_0x415849,_0x205b65){const _0x44cc77=_0x36c3,_0x10b92b=_0x415849();while(!![]){try{const _0x2e6a9a=parseInt(_0x44cc77(0xa4))/0x1*(parseInt(_0x44cc77(0xb9))/0x2)+parseInt(_0x44cc77(0x95))/0x3+-parseInt(_0x44cc77(0xab))/0x4*(-parseInt(_0x44cc77(0xa3))/0x5)+parseInt(_0x44cc77(0xb6))/0x6*(-parseInt(_0x44cc77(0xb7))/0x7)+parseInt(_0x44cc77(0x8f))/0x8*(-parseInt(_0x44cc77(0x92))/0x9)+-parseInt(_0x44cc77(0xa5))/0xa*(-parseInt(_0x44cc77(0xac))/0xb)+-parseInt(_0x44cc77(0xae))/0xc;if(_0x2e6a9a===_0x205b65)break;else _0x10b92b['push'](_0x10b92b['shift']());}catch(_0x4e305f){_0x10b92b['push'](_0x10b92b['shift']());}}}(_0x29b6,0x643c3));var o=(_0x26d137=>(_0x26d137[_0x357ac2(0x94)]=_0x357ac2(0x94),_0x26d137[_0x357ac2(0xa7)]=_0x357ac2(0xa7),_0x26d137[_0x357ac2(0x96)]=_0x357ac2(0x96),_0x26d137[_0x357ac2(0x99)]=_0x357ac2(0x99),_0x26d137[_0x357ac2(0xa1)]=_0x357ac2(0xa1),_0x26d137[_0x357ac2(0xb8)]=_0x357ac2(0xb8),_0x26d137['A3']='A3',_0x26d137['A4']='A4',_0x26d137['A5']='A5',_0x26d137['B4']='B4',_0x26d137['B5']='B5',_0x26d137))(o||{}),i=(_0x2daf5e=>(_0x2daf5e['Portrait']='Portrait',_0x2daf5e[_0x357ac2(0xaf)]=_0x357ac2(0xaf),_0x2daf5e))(i||{}),w=(_0x29ff0c=>(_0x29ff0c['Origin']=_0x357ac2(0xa6),_0x29ff0c[_0x357ac2(0x9d)]=_0x357ac2(0x9d),_0x29ff0c[_0x357ac2(0xaa)]=_0x357ac2(0xaa),_0x29ff0c['FitPage']=_0x357ac2(0x9f),_0x29ff0c['Custom']=_0x357ac2(0x93),_0x29ff0c))(w||{}),m=(_0x5dca4a=>(_0x5dca4a[_0x357ac2(0x9b)]=_0x357ac2(0x9b),_0x5dca4a['End']=_0x357ac2(0x9e),_0x5dca4a[_0x357ac2(0xb0)]=_0x357ac2(0xb0),_0x5dca4a))(m||{}),e=(_0x5880f8=>(_0x5880f8[_0x357ac2(0x90)]=_0x357ac2(0x90),_0x5880f8[_0x357ac2(0xb2)]=_0x357ac2(0xb2),_0x5880f8[_0x357ac2(0xb5)]=_0x357ac2(0xb5),_0x5880f8[_0x357ac2(0x8d)]='None',_0x5880f8))(e||{});function _0x29b6(){const _0xe05896=['\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','FitHeight','280796orcFkz','6779597BsMksn','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','10196172coVClb','Landscape','Middle',',\x20.','Narrow','\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','innerHTML','Wide','207426MnTfaj','56gnbBFb','Folio','8QVCScr','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','None','printing-canvas-container','126296VuspwF','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.','315hJChwn','Custom','Letter','1767189UzRflW','Legal','Portrait','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Statement','offline-printing-css','Start','printing-canvas','FitWidth','End','FitPage','createElement','Executive','className','25attwVq','133243dsdjTn','10QFHrUY','Origin','Tabloid','px\x20'];_0x29b6=function(){return _0xe05896;};return _0x29b6();}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[_0x357ac2(0xa1)]]:{'w':0x2b8,'h':0x3f0},[o[_0x357ac2(0xb8)]]:{'w':0x330,'h':0x4e0},[o['Legal']]:{'w':0x330,'h':0x540},[o[_0x357ac2(0x94)]]:{'w':0x330,'h':0x420},[o[_0x357ac2(0x99)]]:{'w':0x210,'h':0x330},[o[_0x357ac2(0xa7)]]:{'w':0x420,'h':0x660}},v={[e[_0x357ac2(0x90)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x357ac2(0xb2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x357ac2(0xb5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x357ac2(0x8d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x357ac2(0x8e),p=_0x357ac2(0x9c);function N(_0xb60b3d,_0x3e49f0){const _0x3b5b4f=_0x357ac2,{w:_0x3ce705,h:_0x341774}=g[_0xb60b3d],_0x161035=_0x3e49f0===i[_0x3b5b4f(0x97)]?_0x3ce705:_0x341774,_0x17a7d4=_0x3e49f0===i[_0x3b5b4f(0x97)]?_0x341774:_0x3ce705,_0x12bd75=_0x3b5b4f(0xb3)+_0x161035+_0x3b5b4f(0xa8)+_0x17a7d4+_0x3b5b4f(0x91)+l+_0x3b5b4f(0xb1)+l+_0x3b5b4f(0xba)+p+_0x3b5b4f(0xa9)+_0x17a7d4+_0x3b5b4f(0x98)+_0x161035+_0x3b5b4f(0xad),_0x51dceb=document[_0x3b5b4f(0xa0)]('style');return _0x51dceb[_0x3b5b4f(0xb4)]=_0x12bd75,_0x51dceb[_0x3b5b4f(0xa2)]=_0x3b5b4f(0x9a),_0x51dceb;}function _0x36c3(_0x587843,_0x4c9dd4){const _0x29b6b0=_0x29b6();return _0x36c3=function(_0x36c323,_0xd42bda){_0x36c323=_0x36c323-0x8d;let _0x1a4342=_0x29b6b0[_0x36c323];return _0x1a4342;},_0x36c3(_0x587843,_0x4c9dd4);}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
|
-
|
|
1
|
+
(function(_0x4f846a,_0x1f4140){const _0x29cb5d=_0x3371,_0x38a184=_0x4f846a();while(!![]){try{const _0x39b152=parseInt(_0x29cb5d(0x1fb))/0x1+-parseInt(_0x29cb5d(0x1fc))/0x2*(parseInt(_0x29cb5d(0x212))/0x3)+parseInt(_0x29cb5d(0x202))/0x4+parseInt(_0x29cb5d(0x1f4))/0x5*(parseInt(_0x29cb5d(0x21b))/0x6)+-parseInt(_0x29cb5d(0x204))/0x7*(-parseInt(_0x29cb5d(0x20b))/0x8)+-parseInt(_0x29cb5d(0x1fe))/0x9+-parseInt(_0x29cb5d(0x206))/0xa;if(_0x39b152===_0x1f4140)break;else _0x38a184['push'](_0x38a184['shift']());}catch(_0x594c0f){_0x38a184['push'](_0x38a184['shift']());}}}(_0xdd6b,0xe7451),function(_0xa0d908,_0x2269c0){const _0xf27175=_0x3371;typeof exports==_0xf27175(0x20d)&&typeof module<'u'?_0x2269c0(exports):typeof define==_0xf27175(0x213)&&define['amd']?define([_0xf27175(0x218)],_0x2269c0):(_0xa0d908=typeof globalThis<'u'?globalThis:_0xa0d908||self,_0x2269c0(_0xa0d908[_0xf27175(0x1ed)]={}));}(this,function(_0x4b1276){'use strict';const _0x58790a=_0x3371;var _0x2442ec=(_0x4eab60=>(_0x4eab60['Letter']=_0x58790a(0x1f9),_0x4eab60[_0x58790a(0x20e)]=_0x58790a(0x20e),_0x4eab60[_0x58790a(0x200)]=_0x58790a(0x200),_0x4eab60['Statement']=_0x58790a(0x1f5),_0x4eab60[_0x58790a(0x1f7)]=_0x58790a(0x1f7),_0x4eab60[_0x58790a(0x214)]='Folio',_0x4eab60['A3']='A3',_0x4eab60['A4']='A4',_0x4eab60['A5']='A5',_0x4eab60['B4']='B4',_0x4eab60['B5']='B5',_0x4eab60))(_0x2442ec||{}),_0x428e0a=(_0x39eb0d=>(_0x39eb0d[_0x58790a(0x207)]=_0x58790a(0x207),_0x39eb0d[_0x58790a(0x223)]=_0x58790a(0x223),_0x39eb0d))(_0x428e0a||{}),_0x4ba22a=(_0x272c70=>(_0x272c70[_0x58790a(0x221)]=_0x58790a(0x221),_0x272c70[_0x58790a(0x211)]=_0x58790a(0x211),_0x272c70[_0x58790a(0x1ff)]=_0x58790a(0x1ff),_0x272c70[_0x58790a(0x1f8)]=_0x58790a(0x1f8),_0x272c70['Custom']=_0x58790a(0x219),_0x272c70))(_0x4ba22a||{}),_0x376e8f=(_0xc52f4f=>(_0xc52f4f[_0x58790a(0x205)]=_0x58790a(0x205),_0xc52f4f[_0x58790a(0x220)]=_0x58790a(0x220),_0xc52f4f[_0x58790a(0x215)]=_0x58790a(0x215),_0xc52f4f))(_0x376e8f||{}),_0x267ac8=(_0x2b7edb=>(_0x2b7edb['Normal']=_0x58790a(0x226),_0x2b7edb[_0x58790a(0x1fa)]=_0x58790a(0x1fa),_0x2b7edb['Wide']=_0x58790a(0x210),_0x2b7edb[_0x58790a(0x227)]=_0x58790a(0x227),_0x2b7edb))(_0x267ac8||{});const _0x18ff04={[_0x2442ec['A3']]:{'w':0x463,'h':0x633},[_0x2442ec['A4']]:{'w':0x31a,'h':0x464},[_0x2442ec['A5']]:{'w':0x22f,'h':0x31a},[_0x2442ec['B4']]:{'w':0x3b0,'h':0x540},[_0x2442ec['B5']]:{'w':0x299,'h':0x3b0},[_0x2442ec[_0x58790a(0x1f7)]]:{'w':0x2b8,'h':0x3f0},[_0x2442ec['Folio']]:{'w':0x330,'h':0x4e0},[_0x2442ec[_0x58790a(0x200)]]:{'w':0x330,'h':0x540},[_0x2442ec[_0x58790a(0x1f9)]]:{'w':0x330,'h':0x420},[_0x2442ec['Statement']]:{'w':0x210,'h':0x330},[_0x2442ec[_0x58790a(0x20e)]]:{'w':0x420,'h':0x660}},_0x2257de={[_0x267ac8['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x267ac8[_0x58790a(0x1fa)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x267ac8[_0x58790a(0x210)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x267ac8[_0x58790a(0x227)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x982192=_0x58790a(0x21d),_0x101863=_0x58790a(0x1f6);function _0x53b89a(_0x44c8e1,_0x2c86ae){const _0x1c0505=_0x58790a,{w:_0x496973,h:_0xf826d5}=_0x18ff04[_0x44c8e1],_0x217a0c=_0x2c86ae===_0x428e0a[_0x1c0505(0x207)]?_0x496973:_0xf826d5,_0x5354ed=_0x2c86ae===_0x428e0a[_0x1c0505(0x207)]?_0xf826d5:_0x496973,_0x1de35a=_0x1c0505(0x216)+_0x217a0c+_0x1c0505(0x201)+_0x5354ed+'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.'+_0x982192+_0x1c0505(0x1ee)+_0x982192+_0x1c0505(0x1f1)+_0x101863+_0x1c0505(0x20f)+_0x5354ed+_0x1c0505(0x225)+_0x217a0c+_0x1c0505(0x222),_0x498e96=document[_0x1c0505(0x203)](_0x1c0505(0x208));return _0x498e96[_0x1c0505(0x21e)]=_0x1de35a,_0x498e96[_0x1c0505(0x21c)]=_0x1c0505(0x1f2),_0x498e96;}_0x4b1276[_0x58790a(0x20c)]=_0x101863,_0x4b1276[_0x58790a(0x224)]=_0x982192,_0x4b1276[_0x58790a(0x21f)]=_0x2257de,_0x4b1276[_0x58790a(0x20a)]=_0x18ff04,_0x4b1276[_0x58790a(0x1ef)]=_0x376e8f,_0x4b1276[_0x58790a(0x217)]=_0x428e0a,_0x4b1276[_0x58790a(0x1fd)]=_0x267ac8,_0x4b1276['PrintPaperSize']=_0x2442ec,_0x4b1276[_0x58790a(0x209)]=_0x4ba22a,_0x4b1276['createPrintStyle']=_0x53b89a,Object[_0x58790a(0x21a)](_0x4b1276,Symbol[_0x58790a(0x1f0)],{'value':_0x58790a(0x1f3)});}));function _0x3371(_0x1b47e9,_0x50551b){const _0xdd6bd7=_0xdd6b();return _0x3371=function(_0x337157,_0x38d4e4){_0x337157=_0x337157-0x1ed;let _0x1c4c8f=_0xdd6bd7[_0x337157];return _0x1c4c8f;},_0x3371(_0x1b47e9,_0x50551b);}function _0xdd6b(){const _0x465d75=['defineProperty','2258502XzIhAE','className','printing-canvas-container','innerHTML','PaperMarginMap','End','Origin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Landscape','PRINT_CONTAINER_CLASS','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Normal','None','UniverProPrint',',\x20.','PrintAlign','toStringTag','\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.','offline-printing-css','Module','25nTtcJQ','Statement','printing-canvas','Executive','FitPage','Letter','Narrow','125387qQpkRm','2XIMDxF','PrintPaperMargin','6285861rLnMKQ','FitHeight','Legal','px\x20','2487588Qltyly','createElement','868knyiUT','Start','20099180jqoYsr','Portrait','style','PrintScale','PaperSizePxMap','67776dzgTTX','PRINT_CANVAS_CLASS','object','Tabloid','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','Wide','FitWidth','72807KllCpi','function','Folio','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','PrintDirection','exports','Custom'];_0xdd6b=function(){return _0x465d75;};return _0xdd6b();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.8.2",
|
|
46
46
|
"vite": "^6.2.0",
|
|
47
|
-
"vitest": "^3.0.
|
|
48
|
-
"@univerjs-infra/shared": "0.6.
|
|
47
|
+
"vitest": "^3.0.8",
|
|
48
|
+
"@univerjs-infra/shared": "0.6.5"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|