@univerjs-pro/print 0.12.3 → 0.12.4
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 +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x215134=_0x3d10;function _0x3d10(_0x24005e,_0x162136){_0x24005e=_0x24005e-0xee;const _0x200554=_0x2005();let _0x3d1016=_0x200554[_0x24005e];return _0x3d1016;}(function(_0x19540e,_0x45d3c1){const _0x5352cd=_0x3d10,_0x3f54c8=_0x19540e();while(!![]){try{const _0x28a4fd=-parseInt(_0x5352cd(0x116))/0x1*(-parseInt(_0x5352cd(0xf6))/0x2)+parseInt(_0x5352cd(0x10a))/0x3*(parseInt(_0x5352cd(0xfc))/0x4)+parseInt(_0x5352cd(0xf5))/0x5*(parseInt(_0x5352cd(0xf2))/0x6)+parseInt(_0x5352cd(0x11c))/0x7*(-parseInt(_0x5352cd(0xf0))/0x8)+-parseInt(_0x5352cd(0xff))/0x9+-parseInt(_0x5352cd(0x10d))/0xa+parseInt(_0x5352cd(0x103))/0xb;if(_0x28a4fd===_0x45d3c1)break;else _0x3f54c8['push'](_0x3f54c8['shift']());}catch(_0x5bf067){_0x3f54c8['push'](_0x3f54c8['shift']());}}}(_0x2005,0x790ab));Object[_0x215134(0x114)](exports,Symbol[_0x215134(0x110)],{'value':_0x215134(0xfa)});var i=(_0x1e51ea=>(_0x1e51ea[_0x215134(0xee)]=_0x215134(0xee),_0x1e51ea[_0x215134(0xf7)]=_0x215134(0xf7),_0x1e51ea))(i||{}),l=(_0xac33fe=>(_0xac33fe[_0x215134(0xfb)]=_0x215134(0xfb),_0xac33fe['FitWidth']=_0x215134(0x105),_0xac33fe['FitHeight']=_0x215134(0x115),_0xac33fe[_0x215134(0xf8)]=_0x215134(0xf8),_0xac33fe['Custom']=_0x215134(0x113),_0xac33fe))(l||{}),m=(_0x56b935=>(_0x56b935[_0x215134(0x10e)]=_0x215134(0x10e),_0x56b935[_0x215134(0xfd)]=_0x215134(0xfd),_0x56b935[_0x215134(0x117)]='Middle',_0x56b935))(m||{}),o=(_0x20244a=>(_0x20244a[_0x215134(0xf9)]=_0x215134(0xf9),_0x20244a[_0x215134(0x11a)]=_0x215134(0x11a),_0x20244a[_0x215134(0x119)]=_0x215134(0x119),_0x20244a[_0x215134(0xf4)]=_0x215134(0xf4),_0x20244a[_0x215134(0x113)]=_0x215134(0x113),_0x20244a))(o||{});const g={[o[_0x215134(0xf9)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x215134(0x11a)]]:{'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[_0x215134(0x113)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x215134(0x111),n=_0x215134(0x112);function h(_0x582e56,_0x206c3,_0xf9af08){const _0x3aea4d=_0x215134,_0xc1e47a=_0xf9af08===i[_0x3aea4d(0xee)]?_0x582e56:_0x206c3,_0x197076=_0xf9af08===i[_0x3aea4d(0xee)]?_0x206c3:_0x582e56,_0x14c905=_0x3aea4d(0x10c)+n+'\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'+_0xc1e47a+_0x3aea4d(0x100)+_0x197076+_0x3aea4d(0x102)+r+_0x3aea4d(0x109)+r+_0x3aea4d(0x107)+n+_0x3aea4d(0x104)+_0x197076+_0x3aea4d(0x101)+_0xc1e47a+'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}',_0xbb61ce=document[_0x3aea4d(0xfe)](_0x3aea4d(0x106));return _0xbb61ce[_0x3aea4d(0x10b)]=_0x14c905,_0xbb61ce[_0x3aea4d(0xef)]=_0x3aea4d(0xf3),_0xbb61ce;}function _0x2005(){const _0x20c022=[',\x20.','1322259tciUDz','innerHTML','\x0a\x20\x20\x20\x20.','3706810axeUxW','Start','PrintAlign','toStringTag','printing-canvas-container','printing-canvas','Custom','defineProperty','FitHeight','25799okaulv','Middle','PrintDirection','Wide','Narrow','createPrintStyle','23366IndHfH','Portrait','className','16dVpaWX','PRINT_CONTAINER_CLASS','60cbqkAI','offline-printing-css','None','14895RPJqMI','56VvPMhF','Landscape','FitPage','Normal','Module','Origin','4lAkjzH','End','createElement','4553946SqJSGV','px\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\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.','2048453WPndnY','\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','FitWidth','style','\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.','PRINT_CANVAS_CLASS'];_0x2005=function(){return _0x20c022;};return _0x2005();}exports[_0x215134(0x108)]=n,exports[_0x215134(0xf1)]=r,exports['PaperMarginMap']=g,exports[_0x215134(0x10f)]=m,exports[_0x215134(0x118)]=i,exports['PrintPaperMargin']=o,exports['PrintScale']=l,exports[_0x215134(0x11b)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x157efc=_0xe390;function _0xe390(_0x4b644f,_0x5d093a){_0x4b644f=_0x4b644f-0xcc;const _0x481c3b=_0x481c();let _0xe39001=_0x481c3b[_0x4b644f];return _0xe39001;}(function(_0x5f3218,_0x37d957){const _0x1bd2dd=_0xe390,_0x1f7455=_0x5f3218();while(!![]){try{const _0x53c785=-parseInt(_0x1bd2dd(0xea))/0x1+parseInt(_0x1bd2dd(0xde))/0x2*(parseInt(_0x1bd2dd(0xd0))/0x3)+parseInt(_0x1bd2dd(0xd9))/0x4*(parseInt(_0x1bd2dd(0xe9))/0x5)+parseInt(_0x1bd2dd(0xec))/0x6+parseInt(_0x1bd2dd(0xe5))/0x7+-parseInt(_0x1bd2dd(0xe0))/0x8*(-parseInt(_0x1bd2dd(0xe6))/0x9)+-parseInt(_0x1bd2dd(0xcd))/0xa;if(_0x53c785===_0x37d957)break;else _0x1f7455['push'](_0x1f7455['shift']());}catch(_0x378fe5){_0x1f7455['push'](_0x1f7455['shift']());}}}(_0x481c,0x29d49));var e=(_0x44bf3c=>(_0x44bf3c[_0x157efc(0xd4)]=_0x157efc(0xd4),_0x44bf3c[_0x157efc(0xd3)]=_0x157efc(0xd3),_0x44bf3c))(e||{}),h=(_0x150271=>(_0x150271['Origin']=_0x157efc(0xd2),_0x150271['FitWidth']=_0x157efc(0xdd),_0x150271['FitHeight']=_0x157efc(0xe1),_0x150271[_0x157efc(0xed)]=_0x157efc(0xed),_0x150271[_0x157efc(0xdf)]=_0x157efc(0xdf),_0x150271))(h||{}),l=(_0x586a8b=>(_0x586a8b[_0x157efc(0xe7)]=_0x157efc(0xe7),_0x586a8b[_0x157efc(0xda)]=_0x157efc(0xda),_0x586a8b[_0x157efc(0xcf)]='Middle',_0x586a8b))(l||{}),o=(_0x56bbfd=>(_0x56bbfd[_0x157efc(0xce)]=_0x157efc(0xce),_0x56bbfd['Narrow']='Narrow',_0x56bbfd[_0x157efc(0xd6)]=_0x157efc(0xd6),_0x56bbfd[_0x157efc(0xe4)]='None',_0x56bbfd[_0x157efc(0xdf)]=_0x157efc(0xdf),_0x56bbfd))(o||{});const c={[o[_0x157efc(0xce)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x157efc(0xd5)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x157efc(0xd6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x157efc(0xe4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x157efc(0xee),d=_0x157efc(0xe2);function _0x481c(){const _0x413684=['1144703LQRfDh','1103688QZNhyc','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}','142635OubfDH','197464Qzusql','createElement','934938RhgPUN','FitPage','printing-canvas-container','\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.','5034720yeKsnJ','Normal','Middle','349476eCALPm','\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.','Origin','Landscape','Portrait','Narrow','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','offline-printing-css','44qUwBer','End','innerHTML','style','FitWidth','2bvngoJ','Custom','8ftgfBj','FitHeight','printing-canvas',',\x20.','None'];_0x481c=function(){return _0x413684;};return _0x481c();}function g(_0x5ea7f0,_0x28a575,_0x5987b4){const _0x10cbec=_0x157efc,_0x52bf15=_0x5987b4===e[_0x10cbec(0xd4)]?_0x5ea7f0:_0x28a575,_0x328ac1=_0x5987b4===e[_0x10cbec(0xd4)]?_0x28a575:_0x5ea7f0,_0x2655ea=_0x10cbec(0xef)+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'+_0x52bf15+'px\x20'+_0x328ac1+_0x10cbec(0xcc)+p+_0x10cbec(0xe3)+p+_0x10cbec(0xd1)+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'+_0x328ac1+_0x10cbec(0xd7)+_0x52bf15+_0x10cbec(0xe8),_0x36ea08=document[_0x10cbec(0xeb)](_0x10cbec(0xdc));return _0x36ea08[_0x10cbec(0xdb)]=_0x2655ea,_0x36ea08['className']=_0x10cbec(0xd8),_0x36ea08;}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
|
-
const
|
|
1
|
+
const _0x157efc=_0xe390;function _0xe390(_0x4b644f,_0x5d093a){_0x4b644f=_0x4b644f-0xcc;const _0x481c3b=_0x481c();let _0xe39001=_0x481c3b[_0x4b644f];return _0xe39001;}(function(_0x5f3218,_0x37d957){const _0x1bd2dd=_0xe390,_0x1f7455=_0x5f3218();while(!![]){try{const _0x53c785=-parseInt(_0x1bd2dd(0xea))/0x1+parseInt(_0x1bd2dd(0xde))/0x2*(parseInt(_0x1bd2dd(0xd0))/0x3)+parseInt(_0x1bd2dd(0xd9))/0x4*(parseInt(_0x1bd2dd(0xe9))/0x5)+parseInt(_0x1bd2dd(0xec))/0x6+parseInt(_0x1bd2dd(0xe5))/0x7+-parseInt(_0x1bd2dd(0xe0))/0x8*(-parseInt(_0x1bd2dd(0xe6))/0x9)+-parseInt(_0x1bd2dd(0xcd))/0xa;if(_0x53c785===_0x37d957)break;else _0x1f7455['push'](_0x1f7455['shift']());}catch(_0x378fe5){_0x1f7455['push'](_0x1f7455['shift']());}}}(_0x481c,0x29d49));var e=(_0x44bf3c=>(_0x44bf3c[_0x157efc(0xd4)]=_0x157efc(0xd4),_0x44bf3c[_0x157efc(0xd3)]=_0x157efc(0xd3),_0x44bf3c))(e||{}),h=(_0x150271=>(_0x150271['Origin']=_0x157efc(0xd2),_0x150271['FitWidth']=_0x157efc(0xdd),_0x150271['FitHeight']=_0x157efc(0xe1),_0x150271[_0x157efc(0xed)]=_0x157efc(0xed),_0x150271[_0x157efc(0xdf)]=_0x157efc(0xdf),_0x150271))(h||{}),l=(_0x586a8b=>(_0x586a8b[_0x157efc(0xe7)]=_0x157efc(0xe7),_0x586a8b[_0x157efc(0xda)]=_0x157efc(0xda),_0x586a8b[_0x157efc(0xcf)]='Middle',_0x586a8b))(l||{}),o=(_0x56bbfd=>(_0x56bbfd[_0x157efc(0xce)]=_0x157efc(0xce),_0x56bbfd['Narrow']='Narrow',_0x56bbfd[_0x157efc(0xd6)]=_0x157efc(0xd6),_0x56bbfd[_0x157efc(0xe4)]='None',_0x56bbfd[_0x157efc(0xdf)]=_0x157efc(0xdf),_0x56bbfd))(o||{});const c={[o[_0x157efc(0xce)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x157efc(0xd5)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x157efc(0xd6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x157efc(0xe4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x157efc(0xee),d=_0x157efc(0xe2);function _0x481c(){const _0x413684=['1144703LQRfDh','1103688QZNhyc','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}','142635OubfDH','197464Qzusql','createElement','934938RhgPUN','FitPage','printing-canvas-container','\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.','5034720yeKsnJ','Normal','Middle','349476eCALPm','\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.','Origin','Landscape','Portrait','Narrow','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','offline-printing-css','44qUwBer','End','innerHTML','style','FitWidth','2bvngoJ','Custom','8ftgfBj','FitHeight','printing-canvas',',\x20.','None'];_0x481c=function(){return _0x413684;};return _0x481c();}function g(_0x5ea7f0,_0x28a575,_0x5987b4){const _0x10cbec=_0x157efc,_0x52bf15=_0x5987b4===e[_0x10cbec(0xd4)]?_0x5ea7f0:_0x28a575,_0x328ac1=_0x5987b4===e[_0x10cbec(0xd4)]?_0x28a575:_0x5ea7f0,_0x2655ea=_0x10cbec(0xef)+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'+_0x52bf15+'px\x20'+_0x328ac1+_0x10cbec(0xcc)+p+_0x10cbec(0xe3)+p+_0x10cbec(0xd1)+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'+_0x328ac1+_0x10cbec(0xd7)+_0x52bf15+_0x10cbec(0xe8),_0x36ea08=document[_0x10cbec(0xeb)](_0x10cbec(0xdc));return _0x36ea08[_0x10cbec(0xdb)]=_0x2655ea,_0x36ea08['className']=_0x10cbec(0xd8),_0x36ea08;}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(_0x44d4f6,_0x1e5bdb){const _0x4c58c1=_0x465b,_0x43f64f=_0x44d4f6();while(!![]){try{const _0x31c7ba=parseInt(_0x4c58c1(0x1ac))/0x1*(parseInt(_0x4c58c1(0x191))/0x2)+parseInt(_0x4c58c1(0x1bc))/0x3*(-parseInt(_0x4c58c1(0x1b1))/0x4)+-parseInt(_0x4c58c1(0x1a5))/0x5+-parseInt(_0x4c58c1(0x1b8))/0x6*(-parseInt(_0x4c58c1(0x1ba))/0x7)+parseInt(_0x4c58c1(0x1b4))/0x8*(parseInt(_0x4c58c1(0x198))/0x9)+parseInt(_0x4c58c1(0x1b5))/0xa*(parseInt(_0x4c58c1(0x199))/0xb)+parseInt(_0x4c58c1(0x196))/0xc;if(_0x31c7ba===_0x1e5bdb)break;else _0x43f64f['push'](_0x43f64f['shift']());}catch(_0x28433e){_0x43f64f['push'](_0x43f64f['shift']());}}}(_0x3311,0x7549c),function(_0x33a10f,_0x1bc2a1){const _0xfbb320=_0x465b;typeof exports=='object'&&typeof module<'u'?_0x1bc2a1(exports):typeof define==_0xfbb320(0x192)&&define['amd']?define([_0xfbb320(0x1bd)],_0x1bc2a1):(_0x33a10f=typeof globalThis<'u'?globalThis:_0x33a10f||self,_0x1bc2a1(_0x33a10f[_0xfbb320(0x19f)]={}));}(this,function(_0x5257e9){'use strict';const _0x5af141=_0x465b;var _0x46327d=(_0x23e91a=>(_0x23e91a[_0x5af141(0x1a3)]=_0x5af141(0x1a3),_0x23e91a[_0x5af141(0x1aa)]=_0x5af141(0x1aa),_0x23e91a))(_0x46327d||{}),_0x4b63db=(_0x152b14=>(_0x152b14['Origin']=_0x5af141(0x1b3),_0x152b14[_0x5af141(0x1a2)]='FitWidth',_0x152b14[_0x5af141(0x1a9)]=_0x5af141(0x1a9),_0x152b14[_0x5af141(0x1ab)]=_0x5af141(0x1ab),_0x152b14[_0x5af141(0x1a0)]=_0x5af141(0x1a0),_0x152b14))(_0x4b63db||{}),_0x333fee=(_0xd5eabc=>(_0xd5eabc['Start']=_0x5af141(0x19a),_0xd5eabc[_0x5af141(0x1b2)]='End',_0xd5eabc['Middle']=_0x5af141(0x1a1),_0xd5eabc))(_0x333fee||{}),_0x11ba87=(_0xb78591=>(_0xb78591['Normal']='Normal',_0xb78591[_0x5af141(0x197)]=_0x5af141(0x197),_0xb78591[_0x5af141(0x19b)]=_0x5af141(0x19b),_0xb78591[_0x5af141(0x1b7)]=_0x5af141(0x1b7),_0xb78591['Custom']=_0x5af141(0x1a0),_0xb78591))(_0x11ba87||{});const _0x5319d8={[_0x11ba87[_0x5af141(0x1a8)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x11ba87['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x11ba87[_0x5af141(0x19b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x11ba87['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x11ba87['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4144b2='printing-canvas-container',_0x1878f5=_0x5af141(0x1b9);function _0x4189b7(_0x37b9c7,_0x506b32,_0x39c3b8){const _0x36dab6=_0x5af141,_0x1f3758=_0x39c3b8===_0x46327d['Portrait']?_0x37b9c7:_0x506b32,_0x7316f7=_0x39c3b8===_0x46327d['Portrait']?_0x506b32:_0x37b9c7,_0x16dcb0='\x0a\x20\x20\x20\x20.'+_0x1878f5+_0x36dab6(0x195)+_0x1f3758+_0x36dab6(0x1b0)+_0x7316f7+'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.'+_0x4144b2+',\x20.'+_0x4144b2+_0x36dab6(0x1a7)+_0x1878f5+'\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'+_0x7316f7+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x1f3758+_0x36dab6(0x19d),_0x1971a4=document['createElement']('style');return _0x1971a4[_0x36dab6(0x1b6)]=_0x16dcb0,_0x1971a4[_0x36dab6(0x19c)]=_0x36dab6(0x1a6),_0x1971a4;}_0x5257e9[_0x5af141(0x193)]=_0x1878f5,_0x5257e9['PRINT_CONTAINER_CLASS']=_0x4144b2,_0x5257e9[_0x5af141(0x1ad)]=_0x5319d8,_0x5257e9[_0x5af141(0x1bb)]=_0x333fee,_0x5257e9[_0x5af141(0x1af)]=_0x46327d,_0x5257e9['PrintPaperMargin']=_0x11ba87,_0x5257e9[_0x5af141(0x1a4)]=_0x4b63db,_0x5257e9[_0x5af141(0x1ae)]=_0x4189b7,Object[_0x5af141(0x19e)](_0x5257e9,Symbol[_0x5af141(0x194)],{'value':'Module'});}));function _0x465b(_0x4ed20c,_0x3cbbee){_0x4ed20c=_0x4ed20c-0x191;const _0x3311be=_0x3311();let _0x465b20=_0x3311be[_0x4ed20c];return _0x465b20;}function _0x3311(){const _0x5b8f6a=['PRINT_CANVAS_CLASS','toStringTag','\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','6788316TXzVxI','Narrow','25551cKkdqU','886127aQHGYR','Start','Wide','className','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}','defineProperty','UniverProPrint','Custom','Middle','FitWidth','Portrait','PrintScale','775870TbJKUP','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.','Normal','FitHeight','Landscape','FitPage','196442kkyzMK','PaperMarginMap','createPrintStyle','PrintDirection','px\x20','1940xxHFdu','End','Origin','776WHYTXp','10pnHYdp','innerHTML','None','6LgPbeF','printing-canvas','133007fYmvBQ','PrintAlign','3102EWHgME','exports','2XYobdj','function'];_0x3311=function(){return _0x5b8f6a;};return _0x3311();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.4",
|
|
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.2.
|
|
47
|
-
"vitest": "^4.0.
|
|
48
|
-
"@univerjs-infra/shared": "0.12.
|
|
46
|
+
"vite": "^7.2.6",
|
|
47
|
+
"vitest": "^4.0.15",
|
|
48
|
+
"@univerjs-infra/shared": "0.12.4"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|