@univerjs-pro/print 0.9.1 → 0.9.2-nightly.202507111607
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';
|
|
1
|
+
'use strict';const _0x1c044e=_0x3ece;(function(_0x50a688,_0x95f3ca){const _0x4dd53e=_0x3ece,_0x36797c=_0x50a688();while(!![]){try{const _0x1ea7ce=-parseInt(_0x4dd53e(0x200))/0x1*(parseInt(_0x4dd53e(0x1ea))/0x2)+parseInt(_0x4dd53e(0x1f5))/0x3+-parseInt(_0x4dd53e(0x1e3))/0x4+parseInt(_0x4dd53e(0x1e4))/0x5*(parseInt(_0x4dd53e(0x1e1))/0x6)+-parseInt(_0x4dd53e(0x1d9))/0x7+-parseInt(_0x4dd53e(0x1de))/0x8*(parseInt(_0x4dd53e(0x1fb))/0x9)+-parseInt(_0x4dd53e(0x1e8))/0xa*(-parseInt(_0x4dd53e(0x1f7))/0xb);if(_0x1ea7ce===_0x95f3ca)break;else _0x36797c['push'](_0x36797c['shift']());}catch(_0xe739c0){_0x36797c['push'](_0x36797c['shift']());}}}(_0x256a,0xcae68));function _0x3ece(_0xcca04,_0x3f32eb){const _0x256a85=_0x256a();return _0x3ece=function(_0x3ece4f,_0x8ad94e){_0x3ece4f=_0x3ece4f-0x1d9;let _0x3d1172=_0x256a85[_0x3ece4f];return _0x3d1172;},_0x3ece(_0xcca04,_0x3f32eb);}function _0x256a(){const _0x4cd72b=['defineProperty','743896rEigVa','Narrow','\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','13278hNWvGW','FitPage','784392QqPZMP','545ayOAMb','PrintScale','PRINT_CANVAS_CLASS','\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','12780iQDbsQ','innerHTML','195796DQmXou','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.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','\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.','End','toStringTag','PrintAlign','px\x20','Custom','Module','Normal','1614288zBTPMd','Middle','28798vuhTqA','offline-printing-css',',\x20.','style','99QGGiPS','Wide','Landscape','PaperMarginMap','FitWidth','7BBETlM','FitHeight','Start','\x0a\x20\x20\x20\x20.','None','createPrintStyle','PRINT_CONTAINER_CLASS','9728572eKRjRN','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'];_0x256a=function(){return _0x4cd72b;};return _0x256a();}Object[_0x1c044e(0x1dd)](exports,Symbol[_0x1c044e(0x1ef)],{'value':_0x1c044e(0x1f3)});var e=(_0x4b47ad=>(_0x4b47ad['Portrait']=_0x1c044e(0x1dc),_0x4b47ad[_0x1c044e(0x1fd)]='Landscape',_0x4b47ad))(e||{}),l=(_0x140cd9=>(_0x140cd9[_0x1c044e(0x1da)]=_0x1c044e(0x1da),_0x140cd9[_0x1c044e(0x1ff)]='FitWidth',_0x140cd9['FitHeight']=_0x1c044e(0x201),_0x140cd9[_0x1c044e(0x1e2)]='FitPage',_0x140cd9[_0x1c044e(0x1f2)]=_0x1c044e(0x1f2),_0x140cd9))(l||{}),c=(_0x2cad6f=>(_0x2cad6f[_0x1c044e(0x202)]=_0x1c044e(0x202),_0x2cad6f[_0x1c044e(0x1ee)]=_0x1c044e(0x1ee),_0x2cad6f[_0x1c044e(0x1f6)]=_0x1c044e(0x1f6),_0x2cad6f))(c||{}),i=(_0x3c6ad6=>(_0x3c6ad6['Normal']=_0x1c044e(0x1f4),_0x3c6ad6[_0x1c044e(0x1df)]=_0x1c044e(0x1df),_0x3c6ad6[_0x1c044e(0x1fc)]=_0x1c044e(0x1fc),_0x3c6ad6['None']=_0x1c044e(0x204),_0x3c6ad6))(i||{});const h={[i[_0x1c044e(0x1f4)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x1c044e(0x1df)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x1c044e(0x1fc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x1c044e(0x204)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n='printing-canvas';function m(_0x37c27c,_0x1f5a5e,_0x5693e6){const _0x230f1f=_0x1c044e,_0x595296=_0x5693e6===e['Portrait']?_0x37c27c:_0x1f5a5e,_0x5b6ee4=_0x5693e6===e[_0x230f1f(0x1dc)]?_0x1f5a5e:_0x37c27c,_0x33eacd=_0x230f1f(0x203)+n+_0x230f1f(0x1e7)+_0x595296+_0x230f1f(0x1f1)+_0x5b6ee4+_0x230f1f(0x1eb)+r+_0x230f1f(0x1f9)+r+_0x230f1f(0x1ed)+n+_0x230f1f(0x1e0)+_0x5b6ee4+_0x230f1f(0x1ec)+_0x595296+_0x230f1f(0x1db),_0xa6de42=document['createElement'](_0x230f1f(0x1fa));return _0xa6de42[_0x230f1f(0x1e9)]=_0x33eacd,_0xa6de42['className']=_0x230f1f(0x1f8),_0xa6de42;}exports[_0x1c044e(0x1e6)]=n,exports[_0x1c044e(0x206)]=r,exports[_0x1c044e(0x1fe)]=h,exports[_0x1c044e(0x1f0)]=c,exports['PrintDirection']=e,exports['PrintPaperMargin']=i,exports[_0x1c044e(0x1e5)]=l,exports[_0x1c044e(0x205)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3f73(){const _0x26b531=['createElement','2463624WybEgr','2NFDgGF','2057ujudaN','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}','\x0a\x20\x20\x20\x20.','\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','offline-printing-css','23769xkhLne','42370FwUGHA','Origin','Normal','Middle','13604424HUtIDf','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.','53572shjBwB','155uneTWh','Portrait','Start','\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','None','Custom','184MQvvIv','412888sqJthF','FitHeight','End','24ufzJAQ','FitWidth','px\x20','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','381492OdcqLh',',\x20.','Narrow','innerHTML','\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.','Wide'];_0x3f73=function(){return _0x26b531;};return _0x3f73();}const _0x40312f=_0x335e;(function(_0x46165d,_0x3f7d30){const _0x3f037e=_0x335e,_0x4d6d28=_0x46165d();while(!![]){try{const _0x292c6a=-parseInt(_0x3f037e(0x208))/0x1+-parseInt(_0x3f037e(0x210))/0x2*(parseInt(_0x3f037e(0x20f))/0x3)+-parseInt(_0x3f037e(0x1f7))/0x4*(parseInt(_0x3f037e(0x1f8))/0x5)+parseInt(_0x3f037e(0x202))/0x6*(parseInt(_0x3f037e(0x1ff))/0x7)+-parseInt(_0x3f037e(0x1fe))/0x8*(parseInt(_0x3f037e(0x1f0))/0x9)+-parseInt(_0x3f037e(0x1f1))/0xa*(-parseInt(_0x3f037e(0x211))/0xb)+parseInt(_0x3f037e(0x1f5))/0xc;if(_0x292c6a===_0x3f7d30)break;else _0x4d6d28['push'](_0x4d6d28['shift']());}catch(_0x3335fb){_0x4d6d28['push'](_0x4d6d28['shift']());}}}(_0x3f73,0x76003));var e=(_0x4571dc=>(_0x4571dc[_0x40312f(0x1f9)]='Portrait',_0x4571dc[_0x40312f(0x207)]=_0x40312f(0x207),_0x4571dc))(e||{}),l=(_0x38f182=>(_0x38f182[_0x40312f(0x1f2)]=_0x40312f(0x1f2),_0x38f182['FitWidth']=_0x40312f(0x203),_0x38f182[_0x40312f(0x200)]='FitHeight',_0x38f182[_0x40312f(0x205)]=_0x40312f(0x205),_0x38f182['Custom']=_0x40312f(0x1fd),_0x38f182))(l||{}),m=(_0xd48494=>(_0xd48494['Start']=_0x40312f(0x1fa),_0xd48494[_0x40312f(0x201)]=_0x40312f(0x201),_0xd48494['Middle']=_0x40312f(0x1f4),_0xd48494))(m||{}),o=(_0x14bcd9=>(_0x14bcd9[_0x40312f(0x1f3)]=_0x40312f(0x1f3),_0x14bcd9[_0x40312f(0x20a)]=_0x40312f(0x20a),_0x14bcd9[_0x40312f(0x20d)]=_0x40312f(0x20d),_0x14bcd9[_0x40312f(0x1fc)]='None',_0x14bcd9))(o||{});const c={[o[_0x40312f(0x1f3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x40312f(0x20a)]]:{'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}},p='printing-canvas-container',d='printing-canvas';function _0x335e(_0x1fc647,_0x4a52be){const _0x3f7343=_0x3f73();return _0x335e=function(_0x335e1e,_0x14ce49){_0x335e1e=_0x335e1e-0x1ec;let _0x28656c=_0x3f7343[_0x335e1e];return _0x28656c;},_0x335e(_0x1fc647,_0x4a52be);}function g(_0x505122,_0x42a78b,_0x17c20a){const _0x168b15=_0x40312f,_0x5c87c0=_0x17c20a===e[_0x168b15(0x1f9)]?_0x505122:_0x42a78b,_0x58827f=_0x17c20a===e[_0x168b15(0x1f9)]?_0x42a78b:_0x505122,_0xfda856=_0x168b15(0x1ed)+d+_0x168b15(0x1fb)+_0x5c87c0+_0x168b15(0x204)+_0x58827f+_0x168b15(0x1f6)+p+_0x168b15(0x209)+p+_0x168b15(0x20c)+d+_0x168b15(0x1ee)+_0x58827f+_0x168b15(0x206)+_0x5c87c0+_0x168b15(0x1ec),_0x49f4a6=document[_0x168b15(0x20e)]('style');return _0x49f4a6[_0x168b15(0x20b)]=_0xfda856,_0x49f4a6['className']=_0x168b15(0x1ef),_0x49f4a6;}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
|
-
function
|
|
1
|
+
function _0x3f73(){const _0x26b531=['createElement','2463624WybEgr','2NFDgGF','2057ujudaN','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}','\x0a\x20\x20\x20\x20.','\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','offline-printing-css','23769xkhLne','42370FwUGHA','Origin','Normal','Middle','13604424HUtIDf','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.','53572shjBwB','155uneTWh','Portrait','Start','\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','None','Custom','184MQvvIv','412888sqJthF','FitHeight','End','24ufzJAQ','FitWidth','px\x20','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','381492OdcqLh',',\x20.','Narrow','innerHTML','\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.','Wide'];_0x3f73=function(){return _0x26b531;};return _0x3f73();}const _0x40312f=_0x335e;(function(_0x46165d,_0x3f7d30){const _0x3f037e=_0x335e,_0x4d6d28=_0x46165d();while(!![]){try{const _0x292c6a=-parseInt(_0x3f037e(0x208))/0x1+-parseInt(_0x3f037e(0x210))/0x2*(parseInt(_0x3f037e(0x20f))/0x3)+-parseInt(_0x3f037e(0x1f7))/0x4*(parseInt(_0x3f037e(0x1f8))/0x5)+parseInt(_0x3f037e(0x202))/0x6*(parseInt(_0x3f037e(0x1ff))/0x7)+-parseInt(_0x3f037e(0x1fe))/0x8*(parseInt(_0x3f037e(0x1f0))/0x9)+-parseInt(_0x3f037e(0x1f1))/0xa*(-parseInt(_0x3f037e(0x211))/0xb)+parseInt(_0x3f037e(0x1f5))/0xc;if(_0x292c6a===_0x3f7d30)break;else _0x4d6d28['push'](_0x4d6d28['shift']());}catch(_0x3335fb){_0x4d6d28['push'](_0x4d6d28['shift']());}}}(_0x3f73,0x76003));var e=(_0x4571dc=>(_0x4571dc[_0x40312f(0x1f9)]='Portrait',_0x4571dc[_0x40312f(0x207)]=_0x40312f(0x207),_0x4571dc))(e||{}),l=(_0x38f182=>(_0x38f182[_0x40312f(0x1f2)]=_0x40312f(0x1f2),_0x38f182['FitWidth']=_0x40312f(0x203),_0x38f182[_0x40312f(0x200)]='FitHeight',_0x38f182[_0x40312f(0x205)]=_0x40312f(0x205),_0x38f182['Custom']=_0x40312f(0x1fd),_0x38f182))(l||{}),m=(_0xd48494=>(_0xd48494['Start']=_0x40312f(0x1fa),_0xd48494[_0x40312f(0x201)]=_0x40312f(0x201),_0xd48494['Middle']=_0x40312f(0x1f4),_0xd48494))(m||{}),o=(_0x14bcd9=>(_0x14bcd9[_0x40312f(0x1f3)]=_0x40312f(0x1f3),_0x14bcd9[_0x40312f(0x20a)]=_0x40312f(0x20a),_0x14bcd9[_0x40312f(0x20d)]=_0x40312f(0x20d),_0x14bcd9[_0x40312f(0x1fc)]='None',_0x14bcd9))(o||{});const c={[o[_0x40312f(0x1f3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x40312f(0x20a)]]:{'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}},p='printing-canvas-container',d='printing-canvas';function _0x335e(_0x1fc647,_0x4a52be){const _0x3f7343=_0x3f73();return _0x335e=function(_0x335e1e,_0x14ce49){_0x335e1e=_0x335e1e-0x1ec;let _0x28656c=_0x3f7343[_0x335e1e];return _0x28656c;},_0x335e(_0x1fc647,_0x4a52be);}function g(_0x505122,_0x42a78b,_0x17c20a){const _0x168b15=_0x40312f,_0x5c87c0=_0x17c20a===e[_0x168b15(0x1f9)]?_0x505122:_0x42a78b,_0x58827f=_0x17c20a===e[_0x168b15(0x1f9)]?_0x42a78b:_0x505122,_0xfda856=_0x168b15(0x1ed)+d+_0x168b15(0x1fb)+_0x5c87c0+_0x168b15(0x204)+_0x58827f+_0x168b15(0x1f6)+p+_0x168b15(0x209)+p+_0x168b15(0x20c)+d+_0x168b15(0x1ee)+_0x58827f+_0x168b15(0x206)+_0x5c87c0+_0x168b15(0x1ec),_0x49f4a6=document[_0x168b15(0x20e)]('style');return _0x49f4a6[_0x168b15(0x20b)]=_0xfda856,_0x49f4a6['className']=_0x168b15(0x1ef),_0x49f4a6;}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 _0x5188(){const _0x472201=['style','3935310cDFqli','2839590EabdJN','FitPage','\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','amd','Narrow','px\x20','\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.','FitHeight','className',',\x20.','1198236KeUEPy','Portrait','toStringTag','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}','FitWidth','Start','1432116YmDOVw','PrintScale','8telIIf','19944130YuHqqG','Origin','offline-printing-css','558233uEkGWT','Wide','7QcZIhh','PrintDirection','\x0a\x20\x20\x20\x20.','exports','3045969BsaZis','Custom','PaperMarginMap','PrintAlign','End','UniverProPrint','None','Normal','2QXPBZo','createElement','\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','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','object','Landscape','PRINT_CANVAS_CLASS','printing-canvas','printing-canvas-container','function','Module'];_0x5188=function(){return _0x472201;};return _0x5188();}function _0x4bd3(_0x531ba3,_0x547f5b){const _0x5188be=_0x5188();return _0x4bd3=function(_0x4bd309,_0x2adf25){_0x4bd309=_0x4bd309-0x1ae;let _0x8a88d0=_0x5188be[_0x4bd309];return _0x8a88d0;},_0x4bd3(_0x531ba3,_0x547f5b);}(function(_0x2617ec,_0xa68aa3){const _0x3ae791=_0x4bd3,_0x17e288=_0x2617ec();while(!![]){try{const _0x21ed14=-parseInt(_0x3ae791(0x1b6))/0x1*(-parseInt(_0x3ae791(0x1c4))/0x2)+parseInt(_0x3ae791(0x1d2))/0x3+-parseInt(_0x3ae791(0x1b0))/0x4+parseInt(_0x3ae791(0x1d1))/0x5+-parseInt(_0x3ae791(0x1dc))/0x6*(-parseInt(_0x3ae791(0x1b8))/0x7)+-parseInt(_0x3ae791(0x1b2))/0x8*(-parseInt(_0x3ae791(0x1bc))/0x9)+-parseInt(_0x3ae791(0x1b3))/0xa;if(_0x21ed14===_0xa68aa3)break;else _0x17e288['push'](_0x17e288['shift']());}catch(_0x28fc5a){_0x17e288['push'](_0x17e288['shift']());}}}(_0x5188,0x7495a),function(_0x4c34f8,_0x4e8297){const _0x40d29b=_0x4bd3;typeof exports==_0x40d29b(0x1c9)&&typeof module<'u'?_0x4e8297(exports):typeof define==_0x40d29b(0x1ce)&&define[_0x40d29b(0x1d5)]?define([_0x40d29b(0x1bb)],_0x4e8297):(_0x4c34f8=typeof globalThis<'u'?globalThis:_0x4c34f8||self,_0x4e8297(_0x4c34f8[_0x40d29b(0x1c1)]={}));}(this,function(_0x59756e){'use strict';const _0x102731=_0x4bd3;var _0x1ecf9b=(_0xe63003=>(_0xe63003['Portrait']=_0x102731(0x1dd),_0xe63003[_0x102731(0x1ca)]=_0x102731(0x1ca),_0xe63003))(_0x1ecf9b||{}),_0x4e2ae5=(_0x707272=>(_0x707272[_0x102731(0x1b4)]=_0x102731(0x1b4),_0x707272[_0x102731(0x1ae)]=_0x102731(0x1ae),_0x707272['FitHeight']=_0x102731(0x1d9),_0x707272[_0x102731(0x1d3)]=_0x102731(0x1d3),_0x707272[_0x102731(0x1bd)]=_0x102731(0x1bd),_0x707272))(_0x4e2ae5||{}),_0x2ebac5=(_0x5e54f9=>(_0x5e54f9['Start']=_0x102731(0x1af),_0x5e54f9['End']=_0x102731(0x1c0),_0x5e54f9[_0x102731(0x1c7)]='Middle',_0x5e54f9))(_0x2ebac5||{}),_0x3ec635=(_0x2a1340=>(_0x2a1340[_0x102731(0x1c3)]=_0x102731(0x1c3),_0x2a1340[_0x102731(0x1d6)]=_0x102731(0x1d6),_0x2a1340['Wide']=_0x102731(0x1b7),_0x2a1340[_0x102731(0x1c2)]='None',_0x2a1340))(_0x3ec635||{});const _0x55e630={[_0x3ec635[_0x102731(0x1c3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x3ec635[_0x102731(0x1d6)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x3ec635[_0x102731(0x1b7)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x3ec635[_0x102731(0x1c2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x428b1b=_0x102731(0x1cd),_0xce8533=_0x102731(0x1cc);function _0x5eb714(_0x4ebcda,_0x45e5ab,_0x276859){const _0x4e6cfe=_0x102731,_0x14bb7e=_0x276859===_0x1ecf9b[_0x4e6cfe(0x1dd)]?_0x4ebcda:_0x45e5ab,_0x1c2ee8=_0x276859===_0x1ecf9b[_0x4e6cfe(0x1dd)]?_0x45e5ab:_0x4ebcda,_0x28e099=_0x4e6cfe(0x1ba)+_0xce8533+_0x4e6cfe(0x1c6)+_0x14bb7e+_0x4e6cfe(0x1d7)+_0x1c2ee8+'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.'+_0x428b1b+_0x4e6cfe(0x1db)+_0x428b1b+_0x4e6cfe(0x1d8)+_0xce8533+_0x4e6cfe(0x1d4)+_0x1c2ee8+_0x4e6cfe(0x1c8)+_0x14bb7e+_0x4e6cfe(0x1df),_0x2142e6=document[_0x4e6cfe(0x1c5)](_0x4e6cfe(0x1d0));return _0x2142e6['innerHTML']=_0x28e099,_0x2142e6[_0x4e6cfe(0x1da)]=_0x4e6cfe(0x1b5),_0x2142e6;}_0x59756e[_0x102731(0x1cb)]=_0xce8533,_0x59756e['PRINT_CONTAINER_CLASS']=_0x428b1b,_0x59756e[_0x102731(0x1be)]=_0x55e630,_0x59756e[_0x102731(0x1bf)]=_0x2ebac5,_0x59756e[_0x102731(0x1b9)]=_0x1ecf9b,_0x59756e['PrintPaperMargin']=_0x3ec635,_0x59756e[_0x102731(0x1b1)]=_0x4e2ae5,_0x59756e['createPrintStyle']=_0x5eb714,Object['defineProperty'](_0x59756e,Symbol[_0x102731(0x1de)],{'value':_0x102731(0x1cf)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2-nightly.202507111607",
|
|
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": "^6.3.5",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.9.
|
|
48
|
+
"@univerjs-infra/shared": "0.9.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|