@univerjs-pro/print 0.10.2 → 0.10.3-experimental.20250812-b4b6f1a
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 _0x25bc2a=_0x5c71;(function(_0x4a9407,_0x3d3518){const _0x15bdbb=_0x5c71,_0x273d82=_0x4a9407();while(!![]){try{const _0x1d7cb0=parseInt(_0x15bdbb(0x1fc))/0x1*(parseInt(_0x15bdbb(0x1f6))/0x2)+parseInt(_0x15bdbb(0x1f8))/0x3+-parseInt(_0x15bdbb(0x1f7))/0x4+-parseInt(_0x15bdbb(0x1f5))/0x5*(-parseInt(_0x15bdbb(0x1db))/0x6)+parseInt(_0x15bdbb(0x1de))/0x7+parseInt(_0x15bdbb(0x205))/0x8+-parseInt(_0x15bdbb(0x1e3))/0x9;if(_0x1d7cb0===_0x3d3518)break;else _0x273d82['push'](_0x273d82['shift']());}catch(_0x461b73){_0x273d82['push'](_0x273d82['shift']());}}}(_0x21c1,0x79e6b));function _0x5c71(_0x15549a,_0x4caece){const _0x21c12f=_0x21c1();return _0x5c71=function(_0x5c7181,_0x47bea0){_0x5c7181=_0x5c7181-0x1d9;let _0x4129db=_0x21c12f[_0x5c7181];return _0x4129db;},_0x5c71(_0x15549a,_0x4caece);}Object[_0x25bc2a(0x202)](exports,Symbol[_0x25bc2a(0x1fe)],{'value':_0x25bc2a(0x1f9)});var e=(_0x4cafc7=>(_0x4cafc7[_0x25bc2a(0x200)]=_0x25bc2a(0x200),_0x4cafc7[_0x25bc2a(0x1f1)]=_0x25bc2a(0x1f1),_0x4cafc7))(e||{}),l=(_0x717705=>(_0x717705[_0x25bc2a(0x1df)]=_0x25bc2a(0x1df),_0x717705[_0x25bc2a(0x1e5)]=_0x25bc2a(0x1e5),_0x717705[_0x25bc2a(0x1ff)]='FitHeight',_0x717705[_0x25bc2a(0x1dc)]=_0x25bc2a(0x1dc),_0x717705[_0x25bc2a(0x201)]='Custom',_0x717705))(l||{}),c=(_0x553cc4=>(_0x553cc4[_0x25bc2a(0x1ee)]='Start',_0x553cc4['End']=_0x25bc2a(0x1fd),_0x553cc4['Middle']=_0x25bc2a(0x1dd),_0x553cc4))(c||{}),i=(_0x185549=>(_0x185549[_0x25bc2a(0x1e4)]='Normal',_0x185549['Narrow']=_0x25bc2a(0x1e2),_0x185549[_0x25bc2a(0x1ef)]='Wide',_0x185549[_0x25bc2a(0x1e0)]=_0x25bc2a(0x1e0),_0x185549))(i||{});const h={[i[_0x25bc2a(0x1e4)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x25bc2a(0x1e2)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x25bc2a(0x1e0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x25bc2a(0x1e9),n=_0x25bc2a(0x1f3);function _0x21c1(){const _0x507d6f=['PrintDirection','px\x20','printing-canvas-container',',\x20.','PRINT_CONTAINER_CLASS','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintScale','Start','Wide','\x0a\x20\x20\x20\x20.','Landscape','PrintAlign','printing-canvas','className','40HedCtp','12LTxqpx','183132nXOUJD','537282vFJLvy','Module','style','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}','76293ZtsuzP','End','toStringTag','FitHeight','Portrait','Custom','defineProperty','innerHTML','PrintPaperMargin','7000792VsSfvw','PaperMarginMap','offline-printing-css','553866CPlAOf','FitPage','Middle','2192722MlOBGP','Origin','None','\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','Narrow','18167355zjSQow','Normal','FitWidth','createElement'];_0x21c1=function(){return _0x507d6f;};return _0x21c1();}function m(_0x2d6d1f,_0xea6b24,_0x460681){const _0x4f450e=_0x25bc2a,_0x37d909=_0x460681===e['Portrait']?_0x2d6d1f:_0xea6b24,_0x1982aa=_0x460681===e[_0x4f450e(0x200)]?_0xea6b24:_0x2d6d1f,_0x4a0dba=_0x4f450e(0x1f0)+n+_0x4f450e(0x1e1)+_0x37d909+_0x4f450e(0x1e8)+_0x1982aa+'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+_0x4f450e(0x1ea)+r+'\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.'+n+'\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'+_0x1982aa+_0x4f450e(0x1ec)+_0x37d909+_0x4f450e(0x1fb),_0x3f4f9d=document[_0x4f450e(0x1e6)](_0x4f450e(0x1fa));return _0x3f4f9d[_0x4f450e(0x203)]=_0x4a0dba,_0x3f4f9d[_0x4f450e(0x1f4)]=_0x4f450e(0x1da),_0x3f4f9d;}exports['PRINT_CANVAS_CLASS']=n,exports[_0x25bc2a(0x1eb)]=r,exports[_0x25bc2a(0x1d9)]=h,exports[_0x25bc2a(0x1f2)]=c,exports[_0x25bc2a(0x1e7)]=e,exports[_0x25bc2a(0x204)]=i,exports[_0x25bc2a(0x1ed)]=l,exports['createPrintStyle']=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x29f701=_0x1a93;(function(_0x4b6122,_0x62f87f){const _0x59d16e=_0x1a93,_0x24e1ad=_0x4b6122();while(!![]){try{const _0x3cfdce=-parseInt(_0x59d16e(0x109))/0x1*(-parseInt(_0x59d16e(0x11a))/0x2)+-parseInt(_0x59d16e(0x116))/0x3+-parseInt(_0x59d16e(0x106))/0x4+-parseInt(_0x59d16e(0x121))/0x5*(parseInt(_0x59d16e(0x10f))/0x6)+-parseInt(_0x59d16e(0xff))/0x7+parseInt(_0x59d16e(0x10a))/0x8+parseInt(_0x59d16e(0x103))/0x9;if(_0x3cfdce===_0x62f87f)break;else _0x24e1ad['push'](_0x24e1ad['shift']());}catch(_0xc488fc){_0x24e1ad['push'](_0x24e1ad['shift']());}}}(_0x49e6,0xd5a7c));function _0x1a93(_0x49220d,_0x38ed3b){const _0x49e6ad=_0x49e6();return _0x1a93=function(_0x1a93bb,_0x4a7887){_0x1a93bb=_0x1a93bb-0xfe;let _0x2f0907=_0x49e6ad[_0x1a93bb];return _0x2f0907;},_0x1a93(_0x49220d,_0x38ed3b);}var e=(_0x4bd2d4=>(_0x4bd2d4[_0x29f701(0x11f)]=_0x29f701(0x11f),_0x4bd2d4['Landscape']=_0x29f701(0x10d),_0x4bd2d4))(e||{}),l=(_0x772c85=>(_0x772c85[_0x29f701(0x119)]=_0x29f701(0x119),_0x772c85[_0x29f701(0x113)]=_0x29f701(0x113),_0x772c85[_0x29f701(0x115)]='FitHeight',_0x772c85[_0x29f701(0x120)]=_0x29f701(0x120),_0x772c85[_0x29f701(0x117)]=_0x29f701(0x117),_0x772c85))(l||{}),m=(_0x4e4ae3=>(_0x4e4ae3['Start']=_0x29f701(0x10e),_0x4e4ae3[_0x29f701(0x101)]='End',_0x4e4ae3[_0x29f701(0x110)]=_0x29f701(0x110),_0x4e4ae3))(m||{}),o=(_0x4e2e14=>(_0x4e2e14[_0x29f701(0x104)]=_0x29f701(0x104),_0x4e2e14[_0x29f701(0x11e)]=_0x29f701(0x11e),_0x4e2e14[_0x29f701(0x100)]=_0x29f701(0x100),_0x4e2e14[_0x29f701(0x111)]='None',_0x4e2e14))(o||{});const c={[o[_0x29f701(0x104)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x29f701(0x11e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x29f701(0x100)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x29f701(0x111)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x29f701(0x10c),d=_0x29f701(0x112);function g(_0x3c6d74,_0x589b5d,_0xfabc8a){const _0xebc414=_0x29f701,_0x429aac=_0xfabc8a===e[_0xebc414(0x11f)]?_0x3c6d74:_0x589b5d,_0x5c4fb1=_0xfabc8a===e[_0xebc414(0x11f)]?_0x589b5d:_0x3c6d74,_0x2964c2=_0xebc414(0x105)+d+_0xebc414(0x11d)+_0x429aac+_0xebc414(0x118)+_0x5c4fb1+_0xebc414(0x11c)+p+_0xebc414(0x10b)+p+_0xebc414(0x102)+d+_0xebc414(0x11b)+_0x5c4fb1+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x429aac+_0xebc414(0x114),_0x55a326=document['createElement'](_0xebc414(0x108));return _0x55a326[_0xebc414(0xfe)]=_0x2964c2,_0x55a326[_0xebc414(0x122)]=_0xebc414(0x107),_0x55a326;}function _0x49e6(){const _0x32974e=['offline-printing-css','style','22247rWDNyD','11380408PdJAMv',',\x20.','printing-canvas-container','Landscape','Start','1176018BUJdwh','Middle','None','printing-canvas','FitWidth','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}','FitHeight','696816CzNarw','Custom','px\x20','Origin','26OnCPQv','\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','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.','\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','Narrow','Portrait','FitPage','5dUsouS','className','innerHTML','10209808RvUexY','Wide','End','\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.','14921406HKPDzx','Normal','\x0a\x20\x20\x20\x20.','2430980rtUOKf'];_0x49e6=function(){return _0x32974e;};return _0x49e6();}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x29f701=_0x1a93;(function(_0x4b6122,_0x62f87f){const _0x59d16e=_0x1a93,_0x24e1ad=_0x4b6122();while(!![]){try{const _0x3cfdce=-parseInt(_0x59d16e(0x109))/0x1*(-parseInt(_0x59d16e(0x11a))/0x2)+-parseInt(_0x59d16e(0x116))/0x3+-parseInt(_0x59d16e(0x106))/0x4+-parseInt(_0x59d16e(0x121))/0x5*(parseInt(_0x59d16e(0x10f))/0x6)+-parseInt(_0x59d16e(0xff))/0x7+parseInt(_0x59d16e(0x10a))/0x8+parseInt(_0x59d16e(0x103))/0x9;if(_0x3cfdce===_0x62f87f)break;else _0x24e1ad['push'](_0x24e1ad['shift']());}catch(_0xc488fc){_0x24e1ad['push'](_0x24e1ad['shift']());}}}(_0x49e6,0xd5a7c));function _0x1a93(_0x49220d,_0x38ed3b){const _0x49e6ad=_0x49e6();return _0x1a93=function(_0x1a93bb,_0x4a7887){_0x1a93bb=_0x1a93bb-0xfe;let _0x2f0907=_0x49e6ad[_0x1a93bb];return _0x2f0907;},_0x1a93(_0x49220d,_0x38ed3b);}var e=(_0x4bd2d4=>(_0x4bd2d4[_0x29f701(0x11f)]=_0x29f701(0x11f),_0x4bd2d4['Landscape']=_0x29f701(0x10d),_0x4bd2d4))(e||{}),l=(_0x772c85=>(_0x772c85[_0x29f701(0x119)]=_0x29f701(0x119),_0x772c85[_0x29f701(0x113)]=_0x29f701(0x113),_0x772c85[_0x29f701(0x115)]='FitHeight',_0x772c85[_0x29f701(0x120)]=_0x29f701(0x120),_0x772c85[_0x29f701(0x117)]=_0x29f701(0x117),_0x772c85))(l||{}),m=(_0x4e4ae3=>(_0x4e4ae3['Start']=_0x29f701(0x10e),_0x4e4ae3[_0x29f701(0x101)]='End',_0x4e4ae3[_0x29f701(0x110)]=_0x29f701(0x110),_0x4e4ae3))(m||{}),o=(_0x4e2e14=>(_0x4e2e14[_0x29f701(0x104)]=_0x29f701(0x104),_0x4e2e14[_0x29f701(0x11e)]=_0x29f701(0x11e),_0x4e2e14[_0x29f701(0x100)]=_0x29f701(0x100),_0x4e2e14[_0x29f701(0x111)]='None',_0x4e2e14))(o||{});const c={[o[_0x29f701(0x104)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x29f701(0x11e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x29f701(0x100)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x29f701(0x111)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x29f701(0x10c),d=_0x29f701(0x112);function g(_0x3c6d74,_0x589b5d,_0xfabc8a){const _0xebc414=_0x29f701,_0x429aac=_0xfabc8a===e[_0xebc414(0x11f)]?_0x3c6d74:_0x589b5d,_0x5c4fb1=_0xfabc8a===e[_0xebc414(0x11f)]?_0x589b5d:_0x3c6d74,_0x2964c2=_0xebc414(0x105)+d+_0xebc414(0x11d)+_0x429aac+_0xebc414(0x118)+_0x5c4fb1+_0xebc414(0x11c)+p+_0xebc414(0x10b)+p+_0xebc414(0x102)+d+_0xebc414(0x11b)+_0x5c4fb1+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x429aac+_0xebc414(0x114),_0x55a326=document['createElement'](_0xebc414(0x108));return _0x55a326[_0xebc414(0xfe)]=_0x2964c2,_0x55a326[_0xebc414(0x122)]=_0xebc414(0x107),_0x55a326;}function _0x49e6(){const _0x32974e=['offline-printing-css','style','22247rWDNyD','11380408PdJAMv',',\x20.','printing-canvas-container','Landscape','Start','1176018BUJdwh','Middle','None','printing-canvas','FitWidth','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}','FitHeight','696816CzNarw','Custom','px\x20','Origin','26OnCPQv','\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','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.','\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','Narrow','Portrait','FitPage','5dUsouS','className','innerHTML','10209808RvUexY','Wide','End','\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.','14921406HKPDzx','Normal','\x0a\x20\x20\x20\x20.','2430980rtUOKf'];_0x49e6=function(){return _0x32974e;};return _0x49e6();}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4ae3(_0x1e725b,_0x4e8fa1){const _0x54c54d=_0x54c5();return _0x4ae3=function(_0x4ae3ed,_0x12ec41){_0x4ae3ed=_0x4ae3ed-0x127;let _0x2732fd=_0x54c54d[_0x4ae3ed];return _0x2732fd;},_0x4ae3(_0x1e725b,_0x4e8fa1);}function _0x54c5(){const _0x4cad8b=['Start','\x0a\x20\x20\x20\x20.','Normal','printing-canvas','FitHeight','None','PRINT_CANVAS_CLASS','createElement','Origin','Middle','91RqHXkz','3709754imUUja','1458585mKtDSj','UniverProPrint','End','\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','Narrow',',\x20.','px\x20','5130292BUNUAO','6mCdPrC','19120DHNIwu','9637105FnYxHg','Wide','PrintScale','\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','innerHTML','PrintPaperMargin','className','PrintDirection','toStringTag','Portrait','printing-canvas-container','7691000LEzvZw','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}','1qCvGOt','3707400VauLTp','function','FitWidth','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape'];_0x54c5=function(){return _0x4cad8b;};return _0x54c5();}(function(_0x3b5815,_0x5dc0a0){const _0x4fd7f6=_0x4ae3,_0x5821a0=_0x3b5815();while(!![]){try{const _0x5f08f6=parseInt(_0x4fd7f6(0x14f))/0x1*(-parseInt(_0x4fd7f6(0x136))/0x2)+parseInt(_0x4fd7f6(0x150))/0x3+-parseInt(_0x4fd7f6(0x13f))/0x4+-parseInt(_0x4fd7f6(0x142))/0x5*(-parseInt(_0x4fd7f6(0x140))/0x6)+-parseInt(_0x4fd7f6(0x135))/0x7*(-parseInt(_0x4fd7f6(0x141))/0x8)+parseInt(_0x4fd7f6(0x137))/0x9+parseInt(_0x4fd7f6(0x14d))/0xa;if(_0x5f08f6===_0x5dc0a0)break;else _0x5821a0['push'](_0x5821a0['shift']());}catch(_0x155e52){_0x5821a0['push'](_0x5821a0['shift']());}}}(_0x54c5,0xf1366),function(_0x5b7442,_0xd68444){const _0x24b4f0=_0x4ae3;typeof exports=='object'&&typeof module<'u'?_0xd68444(exports):typeof define==_0x24b4f0(0x151)&&define['amd']?define(['exports'],_0xd68444):(_0x5b7442=typeof globalThis<'u'?globalThis:_0x5b7442||self,_0xd68444(_0x5b7442[_0x24b4f0(0x138)]={}));}(this,function(_0x4d6a78){'use strict';const _0x1aadae=_0x4ae3;var _0xcbb4a0=(_0x4e3430=>(_0x4e3430[_0x1aadae(0x14b)]=_0x1aadae(0x14b),_0x4e3430[_0x1aadae(0x12a)]=_0x1aadae(0x12a),_0x4e3430))(_0xcbb4a0||{}),_0xa890ce=(_0x5b325e=>(_0x5b325e[_0x1aadae(0x133)]=_0x1aadae(0x133),_0x5b325e[_0x1aadae(0x127)]=_0x1aadae(0x127),_0x5b325e[_0x1aadae(0x12f)]=_0x1aadae(0x12f),_0x5b325e[_0x1aadae(0x128)]=_0x1aadae(0x128),_0x5b325e['Custom']='Custom',_0x5b325e))(_0xa890ce||{}),_0x3ef32f=(_0x359f79=>(_0x359f79['Start']=_0x1aadae(0x12b),_0x359f79['End']=_0x1aadae(0x139),_0x359f79[_0x1aadae(0x134)]=_0x1aadae(0x134),_0x359f79))(_0x3ef32f||{}),_0x5c3dde=(_0x36495f=>(_0x36495f[_0x1aadae(0x12d)]=_0x1aadae(0x12d),_0x36495f[_0x1aadae(0x13c)]=_0x1aadae(0x13c),_0x36495f[_0x1aadae(0x143)]=_0x1aadae(0x143),_0x36495f[_0x1aadae(0x130)]='None',_0x36495f))(_0x5c3dde||{});const _0x333e2c={[_0x5c3dde[_0x1aadae(0x12d)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x5c3dde[_0x1aadae(0x13c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x5c3dde[_0x1aadae(0x143)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x5c3dde[_0x1aadae(0x130)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4f1d14=_0x1aadae(0x14c),_0xfcd16=_0x1aadae(0x12e);function _0x476fd7(_0x55e841,_0x23266c,_0x266098){const _0x3ffae4=_0x1aadae,_0x4cd3d4=_0x266098===_0xcbb4a0['Portrait']?_0x55e841:_0x23266c,_0x52a143=_0x266098===_0xcbb4a0[_0x3ffae4(0x14b)]?_0x23266c:_0x55e841,_0x24dcdd=_0x3ffae4(0x12c)+_0xfcd16+_0x3ffae4(0x145)+_0x4cd3d4+_0x3ffae4(0x13e)+_0x52a143+'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.'+_0x4f1d14+_0x3ffae4(0x13d)+_0x4f1d14+'\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.'+_0xfcd16+_0x3ffae4(0x13a)+_0x52a143+_0x3ffae4(0x129)+_0x4cd3d4+_0x3ffae4(0x14e),_0x36ab51=document[_0x3ffae4(0x132)]('style');return _0x36ab51[_0x3ffae4(0x146)]=_0x24dcdd,_0x36ab51[_0x3ffae4(0x148)]='offline-printing-css',_0x36ab51;}_0x4d6a78[_0x1aadae(0x131)]=_0xfcd16,_0x4d6a78['PRINT_CONTAINER_CLASS']=_0x4f1d14,_0x4d6a78['PaperMarginMap']=_0x333e2c,_0x4d6a78['PrintAlign']=_0x3ef32f,_0x4d6a78[_0x1aadae(0x149)]=_0xcbb4a0,_0x4d6a78[_0x1aadae(0x147)]=_0x5c3dde,_0x4d6a78[_0x1aadae(0x144)]=_0xa890ce,_0x4d6a78[_0x1aadae(0x13b)]=_0x476fd7,Object['defineProperty'](_0x4d6a78,Symbol[_0x1aadae(0x14a)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3-experimental.20250812-b4b6f1a",
|
|
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.3",
|
|
46
46
|
"vite": "^7.0.6",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.10.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.3"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|