@univerjs-pro/print 0.10.12 → 0.10.13-nightly.202510290902
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 +3 -3
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5a7799=_0x381b;function _0x5493(){const _0x1e4f4a=['printing-canvas','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','342MWKbqe','4009614kAMkBv','Start','PRINT_CONTAINER_CLASS','FitHeight','Custom','Landscape','FitWidth','3YUkhHR','None','style','Normal','\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','Middle','6060838YEXisp','Portrait','px\x20','createPrintStyle','2489877tVVDoD','PrintAlign','\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.','PrintDirection','5113745OrBjXQ','\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','3976GTnOve','4190MFLqxJ','5422792VRnbTY','Narrow','defineProperty','39941kumaMJ','24mVwvJJ','offline-printing-css','PrintPaperMargin',',\x20.','toStringTag','FitPage','createElement','PrintScale','End','PRINT_CANVAS_CLASS'];_0x5493=function(){return _0x1e4f4a;};return _0x5493();}function _0x381b(_0x1acfd8,_0x1484e7){const _0x54938c=_0x5493();return _0x381b=function(_0x381bac,_0x5e818b){_0x381bac=_0x381bac-0x194;let _0x51f822=_0x54938c[_0x381bac];return _0x51f822;},_0x381b(_0x1acfd8,_0x1484e7);}(function(_0x517881,_0x484839){const _0x5d65dd=_0x381b,_0x411b93=_0x517881();while(!![]){try{const _0xf22bb0=parseInt(_0x5d65dd(0x1b7))/0x1*(parseInt(_0x5d65dd(0x19f))/0x2)+parseInt(_0x5d65dd(0x1a7))/0x3*(-parseInt(_0x5d65dd(0x1b9))/0x4)+-parseInt(_0x5d65dd(0x1b5))/0x5+-parseInt(_0x5d65dd(0x1a0))/0x6+parseInt(_0x5d65dd(0x1ad))/0x7+parseInt(_0x5d65dd(0x1bd))/0x8*(parseInt(_0x5d65dd(0x1b1))/0x9)+-parseInt(_0x5d65dd(0x1b8))/0xa*(-parseInt(_0x5d65dd(0x1bc))/0xb);if(_0xf22bb0===_0x484839)break;else _0x411b93['push'](_0x411b93['shift']());}catch(_0x223eaa){_0x411b93['push'](_0x411b93['shift']());}}}(_0x5493,0xcf9ba));Object[_0x5a7799(0x1bb)](exports,Symbol[_0x5a7799(0x197)],{'value':'Module'});var i=(_0x5ea40e=>(_0x5ea40e[_0x5a7799(0x1ae)]=_0x5a7799(0x1ae),_0x5ea40e[_0x5a7799(0x1a5)]=_0x5a7799(0x1a5),_0x5ea40e))(i||{}),l=(_0x5a6c7a=>(_0x5a6c7a['Origin']='Origin',_0x5a6c7a[_0x5a7799(0x1a6)]='FitWidth',_0x5a6c7a[_0x5a7799(0x1a3)]=_0x5a7799(0x1a3),_0x5a6c7a[_0x5a7799(0x198)]='FitPage',_0x5a6c7a[_0x5a7799(0x1a4)]='Custom',_0x5a6c7a))(l||{}),m=(_0x552962=>(_0x552962[_0x5a7799(0x1a1)]=_0x5a7799(0x1a1),_0x552962[_0x5a7799(0x19b)]=_0x5a7799(0x19b),_0x552962[_0x5a7799(0x1ac)]=_0x5a7799(0x1ac),_0x552962))(m||{}),o=(_0x375b4c=>(_0x375b4c[_0x5a7799(0x1aa)]=_0x5a7799(0x1aa),_0x375b4c[_0x5a7799(0x1ba)]=_0x5a7799(0x1ba),_0x375b4c['Wide']='Wide',_0x375b4c[_0x5a7799(0x1a8)]=_0x5a7799(0x1a8),_0x375b4c[_0x5a7799(0x1a4)]=_0x5a7799(0x1a4),_0x375b4c))(o||{});const g={[o[_0x5a7799(0x1aa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5a7799(0x1ba)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x5a7799(0x1a4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n=_0x5a7799(0x19d);function h(_0x35f33d,_0x29181c,_0x40bf77){const _0x4580a9=_0x5a7799,_0x26fc02=_0x40bf77===i[_0x4580a9(0x1ae)]?_0x35f33d:_0x29181c,_0x1084cd=_0x40bf77===i['Portrait']?_0x29181c:_0x35f33d,_0x48134b='\x0a\x20\x20\x20\x20.'+n+_0x4580a9(0x1ab)+_0x26fc02+_0x4580a9(0x1af)+_0x1084cd+'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.'+r+_0x4580a9(0x196)+r+_0x4580a9(0x1b3)+n+_0x4580a9(0x1b6)+_0x1084cd+_0x4580a9(0x19e)+_0x26fc02+'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}',_0x1707ac=document[_0x4580a9(0x199)](_0x4580a9(0x1a9));return _0x1707ac['innerHTML']=_0x48134b,_0x1707ac['className']=_0x4580a9(0x194),_0x1707ac;}exports[_0x5a7799(0x19c)]=n,exports[_0x5a7799(0x1a2)]=r,exports['PaperMarginMap']=g,exports[_0x5a7799(0x1b2)]=m,exports[_0x5a7799(0x1b4)]=i,exports[_0x5a7799(0x195)]=o,exports[_0x5a7799(0x19a)]=l,exports[_0x5a7799(0x1b0)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x3d1c67=_0x360f;(function(_0x3dc566,_0x10a978){const _0x26c7ff=_0x360f,_0x32f7c0=_0x3dc566();while(!![]){try{const _0x41585e=-parseInt(_0x26c7ff(0xa0))/0x1+parseInt(_0x26c7ff(0xa4))/0x2*(parseInt(_0x26c7ff(0xaa))/0x3)+-parseInt(_0x26c7ff(0xb7))/0x4+parseInt(_0x26c7ff(0xa9))/0x5*(-parseInt(_0x26c7ff(0xb4))/0x6)+-parseInt(_0x26c7ff(0xb2))/0x7+parseInt(_0x26c7ff(0xa1))/0x8+-parseInt(_0x26c7ff(0xaf))/0x9;if(_0x41585e===_0x10a978)break;else _0x32f7c0['push'](_0x32f7c0['shift']());}catch(_0x1d56fe){_0x32f7c0['push'](_0x32f7c0['shift']());}}}(_0x5622,0xa5b69));function _0x360f(_0x2cd6f4,_0x64fcf5){const _0x56222f=_0x5622();return _0x360f=function(_0x360f49,_0x1fe0c7){_0x360f49=_0x360f49-0x9b;let _0x2d25f5=_0x56222f[_0x360f49];return _0x2d25f5;},_0x360f(_0x2cd6f4,_0x64fcf5);}var e=(_0x4588e3=>(_0x4588e3['Portrait']=_0x3d1c67(0x9e),_0x4588e3[_0x3d1c67(0xbe)]=_0x3d1c67(0xbe),_0x4588e3))(e||{}),h=(_0x41b53c=>(_0x41b53c['Origin']=_0x3d1c67(0x9c),_0x41b53c['FitWidth']=_0x3d1c67(0xba),_0x41b53c[_0x3d1c67(0xb0)]=_0x3d1c67(0xb0),_0x41b53c[_0x3d1c67(0xb3)]='FitPage',_0x41b53c[_0x3d1c67(0xbb)]=_0x3d1c67(0xbb),_0x41b53c))(h||{}),l=(_0x556109=>(_0x556109[_0x3d1c67(0xbf)]='Start',_0x556109['End']=_0x3d1c67(0xa8),_0x556109[_0x3d1c67(0xae)]=_0x3d1c67(0xae),_0x556109))(l||{}),o=(_0x4bc021=>(_0x4bc021['Normal']='Normal',_0x4bc021['Narrow']='Narrow',_0x4bc021[_0x3d1c67(0xb5)]=_0x3d1c67(0xb5),_0x4bc021[_0x3d1c67(0xbc)]=_0x3d1c67(0xbc),_0x4bc021['Custom']='Custom',_0x4bc021))(o||{});function _0x5622(){const _0x24eaed=['Landscape','Start','createElement','Origin','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}','Portrait','\x0a\x20\x20\x20\x20.','145052XxPyyL','10466760umvtOf','style','px\x20','160774FreUez','innerHTML','className','Narrow','End','1165SRhvSu','39FcOhIt','\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.','offline-printing-css','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.','Middle','2625300GQBDqh','FitHeight','Normal','391874psXunK','FitPage','29742uVEsBO','Wide','printing-canvas','107600DXrPPr','\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','FitWidth','Custom','None',',\x20.'];_0x5622=function(){return _0x24eaed;};return _0x5622();}const c={[o[_0x3d1c67(0xb1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3d1c67(0xa7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3d1c67(0xb5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3d1c67(0xbc)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x3d1c67(0xbb)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x3d1c67(0xb9),d=_0x3d1c67(0xb6);function g(_0x7df9c3,_0x1c842c,_0x2cdb6e){const _0x4696fb=_0x3d1c67,_0x29f144=_0x2cdb6e===e['Portrait']?_0x7df9c3:_0x1c842c,_0x4221ba=_0x2cdb6e===e[_0x4696fb(0x9e)]?_0x1c842c:_0x7df9c3,_0x34b23e=_0x4696fb(0x9f)+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'+_0x29f144+_0x4696fb(0xa3)+_0x4221ba+_0x4696fb(0xad)+p+_0x4696fb(0xbd)+p+_0x4696fb(0xab)+d+_0x4696fb(0xb8)+_0x4221ba+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x29f144+_0x4696fb(0x9d),_0x4a0634=document[_0x4696fb(0x9b)](_0x4696fb(0xa2));return _0x4a0634[_0x4696fb(0xa5)]=_0x34b23e,_0x4a0634[_0x4696fb(0xa6)]=_0x4696fb(0xac),_0x4a0634;}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};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x3d1c67=_0x360f;(function(_0x3dc566,_0x10a978){const _0x26c7ff=_0x360f,_0x32f7c0=_0x3dc566();while(!![]){try{const _0x41585e=-parseInt(_0x26c7ff(0xa0))/0x1+parseInt(_0x26c7ff(0xa4))/0x2*(parseInt(_0x26c7ff(0xaa))/0x3)+-parseInt(_0x26c7ff(0xb7))/0x4+parseInt(_0x26c7ff(0xa9))/0x5*(-parseInt(_0x26c7ff(0xb4))/0x6)+-parseInt(_0x26c7ff(0xb2))/0x7+parseInt(_0x26c7ff(0xa1))/0x8+-parseInt(_0x26c7ff(0xaf))/0x9;if(_0x41585e===_0x10a978)break;else _0x32f7c0['push'](_0x32f7c0['shift']());}catch(_0x1d56fe){_0x32f7c0['push'](_0x32f7c0['shift']());}}}(_0x5622,0xa5b69));function _0x360f(_0x2cd6f4,_0x64fcf5){const _0x56222f=_0x5622();return _0x360f=function(_0x360f49,_0x1fe0c7){_0x360f49=_0x360f49-0x9b;let _0x2d25f5=_0x56222f[_0x360f49];return _0x2d25f5;},_0x360f(_0x2cd6f4,_0x64fcf5);}var e=(_0x4588e3=>(_0x4588e3['Portrait']=_0x3d1c67(0x9e),_0x4588e3[_0x3d1c67(0xbe)]=_0x3d1c67(0xbe),_0x4588e3))(e||{}),h=(_0x41b53c=>(_0x41b53c['Origin']=_0x3d1c67(0x9c),_0x41b53c['FitWidth']=_0x3d1c67(0xba),_0x41b53c[_0x3d1c67(0xb0)]=_0x3d1c67(0xb0),_0x41b53c[_0x3d1c67(0xb3)]='FitPage',_0x41b53c[_0x3d1c67(0xbb)]=_0x3d1c67(0xbb),_0x41b53c))(h||{}),l=(_0x556109=>(_0x556109[_0x3d1c67(0xbf)]='Start',_0x556109['End']=_0x3d1c67(0xa8),_0x556109[_0x3d1c67(0xae)]=_0x3d1c67(0xae),_0x556109))(l||{}),o=(_0x4bc021=>(_0x4bc021['Normal']='Normal',_0x4bc021['Narrow']='Narrow',_0x4bc021[_0x3d1c67(0xb5)]=_0x3d1c67(0xb5),_0x4bc021[_0x3d1c67(0xbc)]=_0x3d1c67(0xbc),_0x4bc021['Custom']='Custom',_0x4bc021))(o||{});function _0x5622(){const _0x24eaed=['Landscape','Start','createElement','Origin','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}','Portrait','\x0a\x20\x20\x20\x20.','145052XxPyyL','10466760umvtOf','style','px\x20','160774FreUez','innerHTML','className','Narrow','End','1165SRhvSu','39FcOhIt','\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.','offline-printing-css','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.','Middle','2625300GQBDqh','FitHeight','Normal','391874psXunK','FitPage','29742uVEsBO','Wide','printing-canvas','107600DXrPPr','\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','FitWidth','Custom','None',',\x20.'];_0x5622=function(){return _0x24eaed;};return _0x5622();}const c={[o[_0x3d1c67(0xb1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3d1c67(0xa7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3d1c67(0xb5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3d1c67(0xbc)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x3d1c67(0xbb)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x3d1c67(0xb9),d=_0x3d1c67(0xb6);function g(_0x7df9c3,_0x1c842c,_0x2cdb6e){const _0x4696fb=_0x3d1c67,_0x29f144=_0x2cdb6e===e['Portrait']?_0x7df9c3:_0x1c842c,_0x4221ba=_0x2cdb6e===e[_0x4696fb(0x9e)]?_0x1c842c:_0x7df9c3,_0x34b23e=_0x4696fb(0x9f)+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'+_0x29f144+_0x4696fb(0xa3)+_0x4221ba+_0x4696fb(0xad)+p+_0x4696fb(0xbd)+p+_0x4696fb(0xab)+d+_0x4696fb(0xb8)+_0x4221ba+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x29f144+_0x4696fb(0x9d),_0x4a0634=document[_0x4696fb(0x9b)](_0x4696fb(0xa2));return _0x4a0634[_0x4696fb(0xa5)]=_0x34b23e,_0x4a0634[_0x4696fb(0xa6)]=_0x4696fb(0xac),_0x4a0634;}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};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5094(_0x5dcbfa,_0x4f347e){const _0x3f8b13=_0x3f8b();return _0x5094=function(_0x509490,_0x3fa148){_0x509490=_0x509490-0x155;let _0x3dc14b=_0x3f8b13[_0x509490];return _0x3dc14b;},_0x5094(_0x5dcbfa,_0x4f347e);}(function(_0x1c80bf,_0x5cf814){const _0x545c38=_0x5094,_0x6216e9=_0x1c80bf();while(!![]){try{const _0x38f047=-parseInt(_0x545c38(0x17d))/0x1+parseInt(_0x545c38(0x172))/0x2*(parseInt(_0x545c38(0x15f))/0x3)+-parseInt(_0x545c38(0x156))/0x4*(parseInt(_0x545c38(0x15a))/0x5)+parseInt(_0x545c38(0x169))/0x6+parseInt(_0x545c38(0x157))/0x7*(-parseInt(_0x545c38(0x159))/0x8)+-parseInt(_0x545c38(0x16a))/0x9*(parseInt(_0x545c38(0x180))/0xa)+parseInt(_0x545c38(0x171))/0xb;if(_0x38f047===_0x5cf814)break;else _0x6216e9['push'](_0x6216e9['shift']());}catch(_0x3b693a){_0x6216e9['push'](_0x6216e9['shift']());}}}(_0x3f8b,0xb1cec),function(_0x5da810,_0x44e682){const _0x40048c=_0x5094;typeof exports==_0x40048c(0x166)&&typeof module<'u'?_0x44e682(exports):typeof define=='function'&&define[_0x40048c(0x175)]?define([_0x40048c(0x164)],_0x44e682):(_0x5da810=typeof globalThis<'u'?globalThis:_0x5da810||self,_0x44e682(_0x5da810[_0x40048c(0x181)]={}));}(this,function(_0x5673b8){'use strict';const _0x49f275=_0x5094;var _0xad3197=(_0x387c3e=>(_0x387c3e[_0x49f275(0x177)]=_0x49f275(0x177),_0x387c3e[_0x49f275(0x155)]=_0x49f275(0x155),_0x387c3e))(_0xad3197||{}),_0x57a567=(_0x535401=>(_0x535401[_0x49f275(0x16f)]=_0x49f275(0x16f),_0x535401['FitWidth']=_0x49f275(0x158),_0x535401[_0x49f275(0x17e)]='FitHeight',_0x535401['FitPage']=_0x49f275(0x161),_0x535401['Custom']=_0x49f275(0x15b),_0x535401))(_0x57a567||{}),_0x1399ce=(_0x484411=>(_0x484411[_0x49f275(0x182)]=_0x49f275(0x182),_0x484411[_0x49f275(0x176)]='End',_0x484411['Middle']=_0x49f275(0x16e),_0x484411))(_0x1399ce||{}),_0x1f517f=(_0x5818fa=>(_0x5818fa[_0x49f275(0x167)]=_0x49f275(0x167),_0x5818fa[_0x49f275(0x15e)]=_0x49f275(0x15e),_0x5818fa['Wide']=_0x49f275(0x15d),_0x5818fa['None']='None',_0x5818fa[_0x49f275(0x15b)]='Custom',_0x5818fa))(_0x1f517f||{});const _0x404d86={[_0x1f517f[_0x49f275(0x167)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1f517f['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1f517f[_0x49f275(0x15d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1f517f[_0x49f275(0x168)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x1f517f[_0x49f275(0x15b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x34246c='printing-canvas-container',_0x3da6c9=_0x49f275(0x160);function _0x45bc5b(_0x3fd64d,_0x555d55,_0xffa732){const _0x3c6472=_0x49f275,_0x530323=_0xffa732===_0xad3197['Portrait']?_0x3fd64d:_0x555d55,_0x2b4b1f=_0xffa732===_0xad3197['Portrait']?_0x555d55:_0x3fd64d,_0x557a8d=_0x3c6472(0x170)+_0x3da6c9+'\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'+_0x530323+_0x3c6472(0x17a)+_0x2b4b1f+_0x3c6472(0x173)+_0x34246c+',\x20.'+_0x34246c+'\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.'+_0x3da6c9+_0x3c6472(0x15c)+_0x2b4b1f+_0x3c6472(0x165)+_0x530323+_0x3c6472(0x185),_0xbc2dae=document['createElement'](_0x3c6472(0x178));return _0xbc2dae[_0x3c6472(0x16c)]=_0x557a8d,_0xbc2dae[_0x3c6472(0x174)]='offline-printing-css',_0xbc2dae;}_0x5673b8[_0x49f275(0x163)]=_0x3da6c9,_0x5673b8[_0x49f275(0x179)]=_0x34246c,_0x5673b8[_0x49f275(0x17b)]=_0x404d86,_0x5673b8['PrintAlign']=_0x1399ce,_0x5673b8[_0x49f275(0x162)]=_0xad3197,_0x5673b8[_0x49f275(0x17c)]=_0x1f517f,_0x5673b8[_0x49f275(0x183)]=_0x57a567,_0x5673b8[_0x49f275(0x17f)]=_0x45bc5b,Object[_0x49f275(0x184)](_0x5673b8,Symbol[_0x49f275(0x16b)],{'value':_0x49f275(0x16d)});}));function _0x3f8b(){const _0x22ff5c=['px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','object','Normal','None','6120240gOKIlE','45djaXNG','toStringTag','innerHTML','Module','Middle','Origin','\x0a\x20\x20\x20\x20.','27965652braCsX','54Nwbbyz','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.','className','amd','End','Portrait','style','PRINT_CONTAINER_CLASS','px\x20','PaperMarginMap','PrintPaperMargin','379894WdYQnH','FitHeight','createPrintStyle','1434930oMONTr','UniverProPrint','Start','PrintScale','defineProperty','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}','Landscape','16648XrYTFB','7GxnlMl','FitWidth','8827792FsKCuw','1360FaGUph','Custom','\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','Narrow','55425GOMffZ','printing-canvas','FitPage','PrintDirection','PRINT_CANVAS_CLASS','exports'];_0x3f8b=function(){return _0x22ff5c;};return _0x3f8b();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.13-nightly.202510290902",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Print module for UniverJS",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.9.3",
|
|
46
|
-
"vite": "^7.1.
|
|
46
|
+
"vite": "^7.1.12",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.10.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.13"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|