@univerjs-pro/print 0.9.3 → 0.9.4-nightly.202507290713
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';function _0x26fe(_0x9a2feb,_0x2489e7){const _0x265dee=_0x265d();return _0x26fe=function(_0x26feaf,_0x4dfa90){_0x26feaf=_0x26feaf-0x1d4;let _0x564fc2=_0x265dee[_0x26feaf];return _0x564fc2;},_0x26fe(_0x9a2feb,_0x2489e7);}const _0x30dfbd=_0x26fe;(function(_0x1a1acf,_0x3978df){const _0x18bd00=_0x26fe,_0x29b09b=_0x1a1acf();while(!![]){try{const _0x4f596a=-parseInt(_0x18bd00(0x1f9))/0x1+-parseInt(_0x18bd00(0x1e5))/0x2+-parseInt(_0x18bd00(0x1e9))/0x3+parseInt(_0x18bd00(0x1df))/0x4*(parseInt(_0x18bd00(0x1f6))/0x5)+parseInt(_0x18bd00(0x1e8))/0x6+parseInt(_0x18bd00(0x1e1))/0x7+parseInt(_0x18bd00(0x1fd))/0x8;if(_0x4f596a===_0x3978df)break;else _0x29b09b['push'](_0x29b09b['shift']());}catch(_0x4c367e){_0x29b09b['push'](_0x29b09b['shift']());}}}(_0x265d,0x46e0d));function _0x265d(){const _0x507b4f=['End','Portrait','FitWidth','FitHeight','Origin','Wide','PRINT_CANVAS_CLASS',',\x20.','Custom','Narrow','PRINT_CONTAINER_CLASS','2424acfxYx','None','807079GSJXGF','\x0a\x20\x20\x20\x20.','PrintAlign','\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','348542CCjFOX','innerHTML','PrintPaperMargin','1023642vhkWGA','707406rejcAQ','PrintScale','\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','createElement','toStringTag','className','offline-printing-css','\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','FitPage','px\x20','defineProperty','style','2190CaMKpq','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','60296ZzCnNj','Start','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}','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.','1674832QFIcek','Module','Normal'];_0x265d=function(){return _0x507b4f;};return _0x265d();}Object[_0x30dfbd(0x1f4)](exports,Symbol[_0x30dfbd(0x1ed)],{'value':_0x30dfbd(0x1fe)});var e=(_0xe9eaf4=>(_0xe9eaf4[_0x30dfbd(0x1d5)]='Portrait',_0xe9eaf4[_0x30dfbd(0x1f8)]=_0x30dfbd(0x1f8),_0xe9eaf4))(e||{}),l=(_0x5e489e=>(_0x5e489e[_0x30dfbd(0x1d8)]=_0x30dfbd(0x1d8),_0x5e489e[_0x30dfbd(0x1d6)]=_0x30dfbd(0x1d6),_0x5e489e['FitHeight']=_0x30dfbd(0x1d7),_0x5e489e[_0x30dfbd(0x1f2)]=_0x30dfbd(0x1f2),_0x5e489e[_0x30dfbd(0x1dc)]=_0x30dfbd(0x1dc),_0x5e489e))(l||{}),c=(_0x31fa63=>(_0x31fa63['Start']=_0x30dfbd(0x1fa),_0x31fa63[_0x30dfbd(0x1d4)]=_0x30dfbd(0x1d4),_0x31fa63['Middle']='Middle',_0x31fa63))(c||{}),i=(_0x4c3d0b=>(_0x4c3d0b[_0x30dfbd(0x1ff)]='Normal',_0x4c3d0b[_0x30dfbd(0x1dd)]=_0x30dfbd(0x1dd),_0x4c3d0b[_0x30dfbd(0x1d9)]=_0x30dfbd(0x1d9),_0x4c3d0b['None']='None',_0x4c3d0b))(i||{});const h={[i[_0x30dfbd(0x1ff)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x30dfbd(0x1dd)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x30dfbd(0x1d9)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x30dfbd(0x1e0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n='printing-canvas';function m(_0x399d37,_0x4f6a4a,_0x4fa006){const _0x211899=_0x30dfbd,_0x279aad=_0x4fa006===e[_0x211899(0x1d5)]?_0x399d37:_0x4f6a4a,_0x2344b3=_0x4fa006===e['Portrait']?_0x4f6a4a:_0x399d37,_0x35262e=_0x211899(0x1e2)+n+_0x211899(0x1e4)+_0x279aad+_0x211899(0x1f3)+_0x2344b3+_0x211899(0x1fc)+r+_0x211899(0x1db)+r+_0x211899(0x1f0)+n+_0x211899(0x1eb)+_0x2344b3+_0x211899(0x1f7)+_0x279aad+_0x211899(0x1fb),_0x199230=document[_0x211899(0x1ec)](_0x211899(0x1f5));return _0x199230[_0x211899(0x1e6)]=_0x35262e,_0x199230[_0x211899(0x1ee)]=_0x211899(0x1ef),_0x199230;}exports[_0x30dfbd(0x1da)]=n,exports[_0x30dfbd(0x1de)]=r,exports['PaperMarginMap']=h,exports[_0x30dfbd(0x1e3)]=c,exports[_0x30dfbd(0x1f1)]=e,exports[_0x30dfbd(0x1e7)]=i,exports[_0x30dfbd(0x1ea)]=l,exports['createPrintStyle']=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x47b5cb=_0x1ac6;function _0x1ac6(_0x34db2d,_0x374b7a){const _0x223a59=_0x223a();return _0x1ac6=function(_0x1ac6af,_0xc9c4ed){_0x1ac6af=_0x1ac6af-0x1ef;let _0x417eef=_0x223a59[_0x1ac6af];return _0x417eef;},_0x1ac6(_0x34db2d,_0x374b7a);}(function(_0x2812f7,_0x57003b){const _0x35b41c=_0x1ac6,_0x16e1e3=_0x2812f7();while(!![]){try{const _0x21ea69=-parseInt(_0x35b41c(0x1f8))/0x1+-parseInt(_0x35b41c(0x200))/0x2+parseInt(_0x35b41c(0x1ef))/0x3+-parseInt(_0x35b41c(0x20a))/0x4*(parseInt(_0x35b41c(0x1f2))/0x5)+parseInt(_0x35b41c(0x20e))/0x6*(-parseInt(_0x35b41c(0x1fe))/0x7)+parseInt(_0x35b41c(0x20d))/0x8+parseInt(_0x35b41c(0x1f9))/0x9*(parseInt(_0x35b41c(0x203))/0xa);if(_0x21ea69===_0x57003b)break;else _0x16e1e3['push'](_0x16e1e3['shift']());}catch(_0x1cc709){_0x16e1e3['push'](_0x16e1e3['shift']());}}}(_0x223a,0x71dc5));var e=(_0x46f609=>(_0x46f609[_0x47b5cb(0x20c)]=_0x47b5cb(0x20c),_0x46f609[_0x47b5cb(0x201)]=_0x47b5cb(0x201),_0x46f609))(e||{}),l=(_0x310546=>(_0x310546[_0x47b5cb(0x206)]=_0x47b5cb(0x206),_0x310546[_0x47b5cb(0x1f4)]=_0x47b5cb(0x1f4),_0x310546['FitHeight']=_0x47b5cb(0x1fc),_0x310546[_0x47b5cb(0x209)]='FitPage',_0x310546[_0x47b5cb(0x1ff)]='Custom',_0x310546))(l||{}),m=(_0x291ed4=>(_0x291ed4['Start']=_0x47b5cb(0x210),_0x291ed4['End']=_0x47b5cb(0x207),_0x291ed4[_0x47b5cb(0x1f0)]=_0x47b5cb(0x1f0),_0x291ed4))(m||{}),o=(_0x5f4e2d=>(_0x5f4e2d[_0x47b5cb(0x20f)]=_0x47b5cb(0x20f),_0x5f4e2d[_0x47b5cb(0x1f7)]=_0x47b5cb(0x1f7),_0x5f4e2d[_0x47b5cb(0x1fd)]=_0x47b5cb(0x1fd),_0x5f4e2d['None']=_0x47b5cb(0x1fa),_0x5f4e2d))(o||{});const c={[o[_0x47b5cb(0x20f)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x47b5cb(0x1f7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x47b5cb(0x1fd)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x47b5cb(0x1fa)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x47b5cb(0x1f5);function g(_0x3d925d,_0x367eb0,_0x26e486){const _0x5f4b7c=_0x47b5cb,_0x23dbc8=_0x26e486===e[_0x5f4b7c(0x20c)]?_0x3d925d:_0x367eb0,_0x3893a6=_0x26e486===e['Portrait']?_0x367eb0:_0x3d925d,_0x37507c=_0x5f4b7c(0x205)+d+_0x5f4b7c(0x204)+_0x23dbc8+_0x5f4b7c(0x1fb)+_0x3893a6+_0x5f4b7c(0x1f3)+p+_0x5f4b7c(0x1f1)+p+'\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.'+d+'\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'+_0x3893a6+_0x5f4b7c(0x202)+_0x23dbc8+'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}',_0xe6c485=document['createElement'](_0x5f4b7c(0x20b));return _0xe6c485[_0x5f4b7c(0x1f6)]=_0x37507c,_0xe6c485['className']=_0x5f4b7c(0x208),_0xe6c485;}function _0x223a(){const _0x1b7e60=['6364088omtKAS','6njUgUc','Normal','Start','2021088vBmwJZ','Middle',',\x20.','385625BUglCz','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.','FitWidth','printing-canvas','innerHTML','Narrow','726961hmoMcr','729FEOWKh','None','px\x20','FitHeight','Wide','577283NemzMh','Custom','1233504NHUUxj','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','80830gbYwrt','\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','\x0a\x20\x20\x20\x20.','Origin','End','offline-printing-css','FitPage','12pzcTGc','style','Portrait'];_0x223a=function(){return _0x1b7e60;};return _0x223a();}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
|
-
const
|
|
1
|
+
const _0x47b5cb=_0x1ac6;function _0x1ac6(_0x34db2d,_0x374b7a){const _0x223a59=_0x223a();return _0x1ac6=function(_0x1ac6af,_0xc9c4ed){_0x1ac6af=_0x1ac6af-0x1ef;let _0x417eef=_0x223a59[_0x1ac6af];return _0x417eef;},_0x1ac6(_0x34db2d,_0x374b7a);}(function(_0x2812f7,_0x57003b){const _0x35b41c=_0x1ac6,_0x16e1e3=_0x2812f7();while(!![]){try{const _0x21ea69=-parseInt(_0x35b41c(0x1f8))/0x1+-parseInt(_0x35b41c(0x200))/0x2+parseInt(_0x35b41c(0x1ef))/0x3+-parseInt(_0x35b41c(0x20a))/0x4*(parseInt(_0x35b41c(0x1f2))/0x5)+parseInt(_0x35b41c(0x20e))/0x6*(-parseInt(_0x35b41c(0x1fe))/0x7)+parseInt(_0x35b41c(0x20d))/0x8+parseInt(_0x35b41c(0x1f9))/0x9*(parseInt(_0x35b41c(0x203))/0xa);if(_0x21ea69===_0x57003b)break;else _0x16e1e3['push'](_0x16e1e3['shift']());}catch(_0x1cc709){_0x16e1e3['push'](_0x16e1e3['shift']());}}}(_0x223a,0x71dc5));var e=(_0x46f609=>(_0x46f609[_0x47b5cb(0x20c)]=_0x47b5cb(0x20c),_0x46f609[_0x47b5cb(0x201)]=_0x47b5cb(0x201),_0x46f609))(e||{}),l=(_0x310546=>(_0x310546[_0x47b5cb(0x206)]=_0x47b5cb(0x206),_0x310546[_0x47b5cb(0x1f4)]=_0x47b5cb(0x1f4),_0x310546['FitHeight']=_0x47b5cb(0x1fc),_0x310546[_0x47b5cb(0x209)]='FitPage',_0x310546[_0x47b5cb(0x1ff)]='Custom',_0x310546))(l||{}),m=(_0x291ed4=>(_0x291ed4['Start']=_0x47b5cb(0x210),_0x291ed4['End']=_0x47b5cb(0x207),_0x291ed4[_0x47b5cb(0x1f0)]=_0x47b5cb(0x1f0),_0x291ed4))(m||{}),o=(_0x5f4e2d=>(_0x5f4e2d[_0x47b5cb(0x20f)]=_0x47b5cb(0x20f),_0x5f4e2d[_0x47b5cb(0x1f7)]=_0x47b5cb(0x1f7),_0x5f4e2d[_0x47b5cb(0x1fd)]=_0x47b5cb(0x1fd),_0x5f4e2d['None']=_0x47b5cb(0x1fa),_0x5f4e2d))(o||{});const c={[o[_0x47b5cb(0x20f)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x47b5cb(0x1f7)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x47b5cb(0x1fd)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x47b5cb(0x1fa)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x47b5cb(0x1f5);function g(_0x3d925d,_0x367eb0,_0x26e486){const _0x5f4b7c=_0x47b5cb,_0x23dbc8=_0x26e486===e[_0x5f4b7c(0x20c)]?_0x3d925d:_0x367eb0,_0x3893a6=_0x26e486===e['Portrait']?_0x367eb0:_0x3d925d,_0x37507c=_0x5f4b7c(0x205)+d+_0x5f4b7c(0x204)+_0x23dbc8+_0x5f4b7c(0x1fb)+_0x3893a6+_0x5f4b7c(0x1f3)+p+_0x5f4b7c(0x1f1)+p+'\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.'+d+'\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'+_0x3893a6+_0x5f4b7c(0x202)+_0x23dbc8+'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}',_0xe6c485=document['createElement'](_0x5f4b7c(0x20b));return _0xe6c485[_0x5f4b7c(0x1f6)]=_0x37507c,_0xe6c485['className']=_0x5f4b7c(0x208),_0xe6c485;}function _0x223a(){const _0x1b7e60=['6364088omtKAS','6njUgUc','Normal','Start','2021088vBmwJZ','Middle',',\x20.','385625BUglCz','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.','FitWidth','printing-canvas','innerHTML','Narrow','726961hmoMcr','729FEOWKh','None','px\x20','FitHeight','Wide','577283NemzMh','Custom','1233504NHUUxj','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','80830gbYwrt','\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','\x0a\x20\x20\x20\x20.','Origin','End','offline-printing-css','FitPage','12pzcTGc','style','Portrait'];_0x223a=function(){return _0x1b7e60;};return _0x223a();}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 _0x172c(){const _0x38750f=['innerHTML','createPrintStyle','Custom','547106dkAAIq','Origin','FitPage','PRINT_CANVAS_CLASS','amd','defineProperty','Start','px\x20','className','2309280ffMSGa','object','Wide','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}','Narrow','1041600nYlGeB','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','exports','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.','PrintDirection','PRINT_CONTAINER_CLASS','PrintAlign','Middle','5078008DoATVo','PrintScale','None','FitHeight','3025854QXbOEf','End','13779wUxzin','printing-canvas-container','FitWidth','toStringTag','Landscape','\x0a\x20\x20\x20\x20.','Portrait','4740211IepfJd','\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','createElement','style','Normal','PaperMarginMap','696bWGxUR',',\x20.'];_0x172c=function(){return _0x38750f;};return _0x172c();}function _0x372b(_0x41510b,_0x441222){const _0x172ca1=_0x172c();return _0x372b=function(_0x372b6e,_0x40f8e4){_0x372b6e=_0x372b6e-0xd7;let _0x5f51f3=_0x172ca1[_0x372b6e];return _0x5f51f3;},_0x372b(_0x41510b,_0x441222);}(function(_0x231cc8,_0x5493dc){const _0x3de961=_0x372b,_0x89df29=_0x231cc8();while(!![]){try{const _0x385964=parseInt(_0x3de961(0xdd))/0x1+-parseInt(_0x3de961(0xe6))/0x2+parseInt(_0x3de961(0xf9))/0x3*(parseInt(_0x3de961(0xd8))/0x4)+parseInt(_0x3de961(0xeb))/0x5+parseInt(_0x3de961(0xf7))/0x6+-parseInt(_0x3de961(0x100))/0x7+parseInt(_0x3de961(0xf3))/0x8;if(_0x385964===_0x5493dc)break;else _0x89df29['push'](_0x89df29['shift']());}catch(_0x11551e){_0x89df29['push'](_0x89df29['shift']());}}}(_0x172c,0xd269f),function(_0x84ead1,_0x393ff1){const _0x4d3d18=_0x372b;typeof exports==_0x4d3d18(0xe7)&&typeof module<'u'?_0x393ff1(exports):typeof define=='function'&&define[_0x4d3d18(0xe1)]?define([_0x4d3d18(0xed)],_0x393ff1):(_0x84ead1=typeof globalThis<'u'?globalThis:_0x84ead1||self,_0x393ff1(_0x84ead1['UniverProPrint']={}));}(this,function(_0x4da5d8){'use strict';const _0x3f6b2c=_0x372b;var _0x21d428=(_0x56efbb=>(_0x56efbb[_0x3f6b2c(0xff)]='Portrait',_0x56efbb[_0x3f6b2c(0xfd)]=_0x3f6b2c(0xfd),_0x56efbb))(_0x21d428||{}),_0x53307b=(_0x26fef4=>(_0x26fef4[_0x3f6b2c(0xde)]=_0x3f6b2c(0xde),_0x26fef4[_0x3f6b2c(0xfb)]=_0x3f6b2c(0xfb),_0x26fef4[_0x3f6b2c(0xf6)]=_0x3f6b2c(0xf6),_0x26fef4[_0x3f6b2c(0xdf)]=_0x3f6b2c(0xdf),_0x26fef4[_0x3f6b2c(0xdc)]=_0x3f6b2c(0xdc),_0x26fef4))(_0x53307b||{}),_0x1cc4a7=(_0x106d2e=>(_0x106d2e[_0x3f6b2c(0xe3)]=_0x3f6b2c(0xe3),_0x106d2e['End']=_0x3f6b2c(0xf8),_0x106d2e[_0x3f6b2c(0xf2)]=_0x3f6b2c(0xf2),_0x106d2e))(_0x1cc4a7||{}),_0x191bee=(_0x31b578=>(_0x31b578[_0x3f6b2c(0x104)]=_0x3f6b2c(0x104),_0x31b578['Narrow']=_0x3f6b2c(0xea),_0x31b578[_0x3f6b2c(0xe8)]=_0x3f6b2c(0xe8),_0x31b578['None']=_0x3f6b2c(0xf5),_0x31b578))(_0x191bee||{});const _0xffb57d={[_0x191bee[_0x3f6b2c(0x104)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x191bee[_0x3f6b2c(0xea)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x191bee['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x191bee[_0x3f6b2c(0xf5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x3c623b=_0x3f6b2c(0xfa),_0x234a44='printing-canvas';function _0x4962ac(_0x3f619a,_0x204263,_0x3a9a21){const _0x37fee7=_0x3f6b2c,_0x42d5ce=_0x3a9a21===_0x21d428['Portrait']?_0x3f619a:_0x204263,_0x3fc80b=_0x3a9a21===_0x21d428[_0x37fee7(0xff)]?_0x204263:_0x3f619a,_0x50cada=_0x37fee7(0xfe)+_0x234a44+'\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'+_0x42d5ce+_0x37fee7(0xe4)+_0x3fc80b+_0x37fee7(0xee)+_0x3c623b+_0x37fee7(0xd9)+_0x3c623b+'\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.'+_0x234a44+_0x37fee7(0x101)+_0x3fc80b+_0x37fee7(0xec)+_0x42d5ce+_0x37fee7(0xe9),_0x3ef3ab=document[_0x37fee7(0x102)](_0x37fee7(0x103));return _0x3ef3ab[_0x37fee7(0xda)]=_0x50cada,_0x3ef3ab[_0x37fee7(0xe5)]='offline-printing-css',_0x3ef3ab;}_0x4da5d8[_0x3f6b2c(0xe0)]=_0x234a44,_0x4da5d8[_0x3f6b2c(0xf0)]=_0x3c623b,_0x4da5d8[_0x3f6b2c(0xd7)]=_0xffb57d,_0x4da5d8[_0x3f6b2c(0xf1)]=_0x1cc4a7,_0x4da5d8[_0x3f6b2c(0xef)]=_0x21d428,_0x4da5d8['PrintPaperMargin']=_0x191bee,_0x4da5d8[_0x3f6b2c(0xf4)]=_0x53307b,_0x4da5d8[_0x3f6b2c(0xdb)]=_0x4962ac,Object[_0x3f6b2c(0xe2)](_0x4da5d8,Symbol[_0x3f6b2c(0xfc)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4-nightly.202507290713",
|
|
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.8.3",
|
|
46
|
-
"vite": "^7.0.
|
|
46
|
+
"vite": "^7.0.6",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.9.
|
|
48
|
+
"@univerjs-infra/shared": "0.9.4"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|