@univerjs-pro/print 0.14.0 → 0.15.0

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x152e(_0x4567e1,_0x1f1fce){_0x4567e1=_0x4567e1-0xa8;const _0x466a6f=_0x466a();let _0x152ea7=_0x466a6f[_0x4567e1];return _0x152ea7;}const _0x33e1e0=_0x152e;(function(_0x328ab9,_0x423824){const _0x2bf0ad=_0x152e,_0x39bc9c=_0x328ab9();while(!![]){try{const _0x53c5fc=parseInt(_0x2bf0ad(0xc3))/0x1*(parseInt(_0x2bf0ad(0xc7))/0x2)+-parseInt(_0x2bf0ad(0xc6))/0x3+parseInt(_0x2bf0ad(0xd0))/0x4*(-parseInt(_0x2bf0ad(0xcc))/0x5)+parseInt(_0x2bf0ad(0xbc))/0x6+parseInt(_0x2bf0ad(0xb0))/0x7*(-parseInt(_0x2bf0ad(0xc2))/0x8)+-parseInt(_0x2bf0ad(0xbf))/0x9+parseInt(_0x2bf0ad(0xd1))/0xa;if(_0x53c5fc===_0x423824)break;else _0x39bc9c['push'](_0x39bc9c['shift']());}catch(_0x261250){_0x39bc9c['push'](_0x39bc9c['shift']());}}}(_0x466a,0x7f8eb));function _0x466a(){const _0x276076=['End','PrintAlign','\x0a\x20\x20\x20\x20.','7AfAddY','style','PrintScale','FitWidth','PaperMarginMap','offline-printing-css','Landscape','className','Module','createPrintStyle','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}','654804lGgkPB','printing-canvas','Middle','2536812sYfdoD','None','\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','7933432CaoVpD','1UnznFJ','FitPage','\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','1978833yfCrKF','1237582GuKYvO','PRINT_CANVAS_CLASS','Narrow','PrintPaperMargin','Start','5eMbmAg','FitHeight','\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.','printing-canvas-container','1846436FlEBFg','21893170OaEWfX','PRINT_CONTAINER_CLASS','PrintDirection','Normal','defineProperty','Custom','Portrait'];_0x466a=function(){return _0x276076;};return _0x466a();}Object[_0x33e1e0(0xaa)](exports,Symbol['toStringTag'],{'value':_0x33e1e0(0xb8)});var i=(_0x44f452=>(_0x44f452[_0x33e1e0(0xac)]=_0x33e1e0(0xac),_0x44f452[_0x33e1e0(0xb6)]=_0x33e1e0(0xb6),_0x44f452))(i||{}),l=(_0x5abe6b=>(_0x5abe6b['Origin']='Origin',_0x5abe6b[_0x33e1e0(0xb3)]='FitWidth',_0x5abe6b['FitHeight']=_0x33e1e0(0xcd),_0x5abe6b[_0x33e1e0(0xc4)]='FitPage',_0x5abe6b['Custom']=_0x33e1e0(0xab),_0x5abe6b))(l||{}),m=(_0x2aced9=>(_0x2aced9['Start']=_0x33e1e0(0xcb),_0x2aced9['End']=_0x33e1e0(0xad),_0x2aced9['Middle']=_0x33e1e0(0xbe),_0x2aced9))(m||{}),o=(_0x100170=>(_0x100170['Normal']=_0x33e1e0(0xa9),_0x100170[_0x33e1e0(0xc9)]=_0x33e1e0(0xc9),_0x100170[_0x33e1e0(0xba)]=_0x33e1e0(0xba),_0x100170[_0x33e1e0(0xc0)]=_0x33e1e0(0xc0),_0x100170[_0x33e1e0(0xab)]='Custom',_0x100170))(o||{});const g={[o[_0x33e1e0(0xa9)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x33e1e0(0xc9)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x33e1e0(0xba)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x33e1e0(0xab)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x33e1e0(0xcf),n=_0x33e1e0(0xbd);function h(_0x1e1e54,_0x5bbe6b,_0x38ef61){const _0x43e622=_0x33e1e0,_0x56a24c=_0x38ef61===i[_0x43e622(0xac)]?_0x1e1e54:_0x5bbe6b,_0x569e48=_0x38ef61===i[_0x43e622(0xac)]?_0x5bbe6b:_0x1e1e54,_0x36f931=_0x43e622(0xaf)+n+_0x43e622(0xc5)+_0x56a24c+'px\x20'+_0x569e48+'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+',\x20.'+r+_0x43e622(0xce)+n+_0x43e622(0xc1)+_0x569e48+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x56a24c+_0x43e622(0xbb),_0x36fb4b=document['createElement'](_0x43e622(0xb1));return _0x36fb4b['innerHTML']=_0x36f931,_0x36fb4b[_0x43e622(0xb7)]=_0x43e622(0xb5),_0x36fb4b;}exports[_0x33e1e0(0xc8)]=n,exports[_0x33e1e0(0xd2)]=r,exports[_0x33e1e0(0xb4)]=g,exports[_0x33e1e0(0xae)]=m,exports[_0x33e1e0(0xa8)]=i,exports[_0x33e1e0(0xca)]=o,exports[_0x33e1e0(0xb2)]=l,exports[_0x33e1e0(0xb9)]=h;
1
+ 'use strict';const _0x4cd35f=_0x51ee;(function(_0x5de8e2,_0x5f4fcc){const _0x3fb2e9=_0x51ee,_0x1c39dd=_0x5de8e2();while(!![]){try{const _0xff88b6=-parseInt(_0x3fb2e9(0x111))/0x1*(parseInt(_0x3fb2e9(0xee))/0x2)+parseInt(_0x3fb2e9(0xef))/0x3+-parseInt(_0x3fb2e9(0x105))/0x4*(-parseInt(_0x3fb2e9(0x10b))/0x5)+-parseInt(_0x3fb2e9(0xed))/0x6+-parseInt(_0x3fb2e9(0xe9))/0x7+parseInt(_0x3fb2e9(0x103))/0x8*(-parseInt(_0x3fb2e9(0x104))/0x9)+parseInt(_0x3fb2e9(0xf8))/0xa;if(_0xff88b6===_0x5f4fcc)break;else _0x1c39dd['push'](_0x1c39dd['shift']());}catch(_0x5d429e){_0x1c39dd['push'](_0x1c39dd['shift']());}}}(_0x2615,0xdd9d2));function _0x2615(){const _0x5ac3ec=['Wide','13333496WEQEzl','9uEjOuJ','796xkTyJW','FitPage','Landscape','FitWidth','PrintDirection','printing-canvas','23455mFOoHE','Normal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','createElement','printing-canvas-container','44ASJsFB','PRINT_CANVAS_CLASS','3036803gnLRyB','px\x20','PrintPaperMargin','offline-printing-css','3691866RQKNUj','4078SBdMyJ','282009JDYRiH','None','FitHeight','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.','innerHTML','PRINT_CONTAINER_CLASS','className','PaperMarginMap','defineProperty','26857610kVEGFs','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}','PrintAlign','End',',\x20.','Origin','Narrow','PrintScale','Module','Custom'];_0x2615=function(){return _0x5ac3ec;};return _0x2615();}Object[_0x4cd35f(0xf7)](exports,Symbol['toStringTag'],{'value':_0x4cd35f(0x100)});function _0x51ee(_0x424fcd,_0x24bc16){_0x424fcd=_0x424fcd-0xe9;const _0x261588=_0x2615();let _0x51eeac=_0x261588[_0x424fcd];return _0x51eeac;}var i=(_0x3b6693=>(_0x3b6693['Portrait']='Portrait',_0x3b6693[_0x4cd35f(0x107)]=_0x4cd35f(0x107),_0x3b6693))(i||{}),l=(_0x5988e4=>(_0x5988e4[_0x4cd35f(0xfd)]='Origin',_0x5988e4[_0x4cd35f(0x108)]='FitWidth',_0x5988e4[_0x4cd35f(0xf1)]=_0x4cd35f(0xf1),_0x5988e4['FitPage']=_0x4cd35f(0x106),_0x5988e4[_0x4cd35f(0x101)]='Custom',_0x5988e4))(l||{}),m=(_0x57fe30=>(_0x57fe30['Start']='Start',_0x57fe30['End']=_0x4cd35f(0xfb),_0x57fe30[_0x4cd35f(0x10e)]='Middle',_0x57fe30))(m||{}),o=(_0x41980=>(_0x41980[_0x4cd35f(0x10c)]='Normal',_0x41980['Narrow']=_0x4cd35f(0xfe),_0x41980[_0x4cd35f(0x102)]=_0x4cd35f(0x102),_0x41980[_0x4cd35f(0xf0)]=_0x4cd35f(0xf0),_0x41980[_0x4cd35f(0x101)]='Custom',_0x41980))(o||{});const g={[o[_0x4cd35f(0x10c)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x4cd35f(0xfe)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4cd35f(0x102)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x4cd35f(0xf0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x4cd35f(0x101)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x4cd35f(0x110),n=_0x4cd35f(0x10a);function h(_0x3995cc,_0x4ef141,_0x6d24c2){const _0x53ebda=_0x4cd35f,_0x1e26ea=_0x6d24c2===i['Portrait']?_0x3995cc:_0x4ef141,_0x142452=_0x6d24c2===i['Portrait']?_0x4ef141:_0x3995cc,_0x56156a='\x0a\x20\x20\x20\x20.'+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'+_0x1e26ea+_0x53ebda(0xea)+_0x142452+_0x53ebda(0xf2)+r+_0x53ebda(0xfc)+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'+_0x142452+_0x53ebda(0x10d)+_0x1e26ea+_0x53ebda(0xf9),_0x1a4bbd=document[_0x53ebda(0x10f)]('style');return _0x1a4bbd[_0x53ebda(0xf3)]=_0x56156a,_0x1a4bbd[_0x53ebda(0xf5)]=_0x53ebda(0xec),_0x1a4bbd;}exports[_0x4cd35f(0x112)]=n,exports[_0x4cd35f(0xf4)]=r,exports[_0x4cd35f(0xf6)]=g,exports[_0x4cd35f(0xfa)]=m,exports[_0x4cd35f(0x109)]=i,exports[_0x4cd35f(0xeb)]=o,exports[_0x4cd35f(0xff)]=l,exports['createPrintStyle']=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x18d263=_0x1c20;(function(_0x2b4a78,_0x3ead08){const _0x18aa3d=_0x1c20,_0x1f5f16=_0x2b4a78();while(!![]){try{const _0x3a8d14=parseInt(_0x18aa3d(0x1a1))/0x1+parseInt(_0x18aa3d(0x1a3))/0x2+parseInt(_0x18aa3d(0x1a5))/0x3*(parseInt(_0x18aa3d(0x18f))/0x4)+-parseInt(_0x18aa3d(0x18d))/0x5*(parseInt(_0x18aa3d(0x18c))/0x6)+parseInt(_0x18aa3d(0x194))/0x7*(parseInt(_0x18aa3d(0x1ac))/0x8)+parseInt(_0x18aa3d(0x186))/0x9+-parseInt(_0x18aa3d(0x189))/0xa*(parseInt(_0x18aa3d(0x192))/0xb);if(_0x3a8d14===_0x3ead08)break;else _0x1f5f16['push'](_0x1f5f16['shift']());}catch(_0x145eae){_0x1f5f16['push'](_0x1f5f16['shift']());}}}(_0x37a7,0x1d003));var e=(_0x25697e=>(_0x25697e[_0x18d263(0x19b)]=_0x18d263(0x19b),_0x25697e[_0x18d263(0x1a6)]=_0x18d263(0x1a6),_0x25697e))(e||{}),h=(_0x5464cc=>(_0x5464cc[_0x18d263(0x19c)]=_0x18d263(0x19c),_0x5464cc[_0x18d263(0x185)]=_0x18d263(0x185),_0x5464cc[_0x18d263(0x18a)]='FitHeight',_0x5464cc[_0x18d263(0x191)]=_0x18d263(0x191),_0x5464cc[_0x18d263(0x193)]=_0x18d263(0x193),_0x5464cc))(h||{}),l=(_0xc8a18e=>(_0xc8a18e[_0x18d263(0x19d)]=_0x18d263(0x19d),_0xc8a18e[_0x18d263(0x199)]=_0x18d263(0x199),_0xc8a18e['Middle']=_0x18d263(0x1a8),_0xc8a18e))(l||{}),o=(_0x396f33=>(_0x396f33[_0x18d263(0x1a0)]='Normal',_0x396f33[_0x18d263(0x19e)]='Narrow',_0x396f33[_0x18d263(0x1aa)]='Wide',_0x396f33['None']=_0x18d263(0x18e),_0x396f33[_0x18d263(0x193)]=_0x18d263(0x193),_0x396f33))(o||{});const c={[o[_0x18d263(0x1a0)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x18d263(0x19e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x18d263(0x1aa)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x18d263(0x18e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x18d263(0x1ab),d=_0x18d263(0x197);function g(_0x222ad8,_0x32879e,_0x935c3e){const _0x1e1d67=_0x18d263,_0x36d04f=_0x935c3e===e[_0x1e1d67(0x19b)]?_0x222ad8:_0x32879e,_0x15d7ea=_0x935c3e===e[_0x1e1d67(0x19b)]?_0x32879e:_0x222ad8,_0x1050b2=_0x1e1d67(0x1a9)+d+_0x1e1d67(0x19f)+_0x36d04f+_0x1e1d67(0x196)+_0x15d7ea+_0x1e1d67(0x19a)+p+_0x1e1d67(0x1a4)+p+_0x1e1d67(0x190)+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'+_0x15d7ea+_0x1e1d67(0x1a7)+_0x36d04f+_0x1e1d67(0x187),_0x4da4e9=document[_0x1e1d67(0x188)](_0x1e1d67(0x18b));return _0x4da4e9[_0x1e1d67(0x198)]=_0x1050b2,_0x4da4e9[_0x1e1d67(0x1a2)]=_0x1e1d67(0x195),_0x4da4e9;}function _0x1c20(_0x5b3960,_0x90bc25){_0x5b3960=_0x5b3960-0x185;const _0x37a7dd=_0x37a7();let _0x1c2099=_0x37a7dd[_0x5b3960];return _0x1c2099;}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};function _0x37a7(){const _0x23179e=['Narrow','\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','Normal','53283vQfdXl','className','468002SiIDVj',',\x20.','21WnUqCw','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','\x0a\x20\x20\x20\x20.','Wide','printing-canvas-container','557624dUQxfC','FitWidth','2078811DdODcT','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}','createElement','4750730QRCYeC','FitHeight','style','126EffyEL','6460TeimPq','None','18872btezeF','\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.','FitPage','11UigYyO','Custom','7EFVNSV','offline-printing-css','px\x20','printing-canvas','innerHTML','End','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.','Portrait','Origin','Start'];_0x37a7=function(){return _0x23179e;};return _0x37a7();}
1
+ const _0x15b66c=_0xe18e;(function(_0x1a804c,_0x13c7f3){const _0xe7cc3e=_0xe18e,_0x4a47f0=_0x1a804c();while(!![]){try{const _0x5ef4de=parseInt(_0xe7cc3e(0x121))/0x1*(-parseInt(_0xe7cc3e(0x10c))/0x2)+-parseInt(_0xe7cc3e(0x123))/0x3+parseInt(_0xe7cc3e(0x103))/0x4*(-parseInt(_0xe7cc3e(0x11e))/0x5)+-parseInt(_0xe7cc3e(0x120))/0x6*(parseInt(_0xe7cc3e(0x116))/0x7)+-parseInt(_0xe7cc3e(0x101))/0x8*(-parseInt(_0xe7cc3e(0x111))/0x9)+parseInt(_0xe7cc3e(0x104))/0xa*(-parseInt(_0xe7cc3e(0x119))/0xb)+parseInt(_0xe7cc3e(0x11a))/0xc*(parseInt(_0xe7cc3e(0x108))/0xd);if(_0x5ef4de===_0x13c7f3)break;else _0x4a47f0['push'](_0x4a47f0['shift']());}catch(_0x5c54fa){_0x4a47f0['push'](_0x4a47f0['shift']());}}}(_0x3773,0x93dac));var e=(_0x3ab2a1=>(_0x3ab2a1[_0x15b66c(0x125)]=_0x15b66c(0x125),_0x3ab2a1['Landscape']=_0x15b66c(0x11d),_0x3ab2a1))(e||{}),h=(_0x5e96b0=>(_0x5e96b0[_0x15b66c(0x10a)]=_0x15b66c(0x10a),_0x5e96b0['FitWidth']=_0x15b66c(0x10e),_0x5e96b0[_0x15b66c(0x126)]='FitHeight',_0x5e96b0[_0x15b66c(0x114)]=_0x15b66c(0x114),_0x5e96b0[_0x15b66c(0x122)]=_0x15b66c(0x122),_0x5e96b0))(h||{}),l=(_0x362aa3=>(_0x362aa3[_0x15b66c(0x118)]=_0x15b66c(0x118),_0x362aa3[_0x15b66c(0x102)]=_0x15b66c(0x102),_0x362aa3[_0x15b66c(0x109)]=_0x15b66c(0x109),_0x362aa3))(l||{}),o=(_0x9c4ce0=>(_0x9c4ce0[_0x15b66c(0x11b)]=_0x15b66c(0x11b),_0x9c4ce0[_0x15b66c(0x113)]=_0x15b66c(0x113),_0x9c4ce0[_0x15b66c(0x100)]=_0x15b66c(0x100),_0x9c4ce0[_0x15b66c(0x106)]='None',_0x9c4ce0[_0x15b66c(0x122)]='Custom',_0x9c4ce0))(o||{});function _0xe18e(_0x4d908a,_0x3cf348){_0x4d908a=_0x4d908a-0x100;const _0x3773d7=_0x3773();let _0xe18e6=_0x3773d7[_0x4d908a];return _0xe18e6;}const c={[o[_0x15b66c(0x11b)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x15b66c(0x100)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x15b66c(0x106)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x15b66c(0x122)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x15b66c(0x115),d=_0x15b66c(0x107);function g(_0x1680a6,_0x4b759b,_0x3dee94){const _0x2d9c9a=_0x15b66c,_0x43ace4=_0x3dee94===e['Portrait']?_0x1680a6:_0x4b759b,_0x2524c5=_0x3dee94===e[_0x2d9c9a(0x125)]?_0x4b759b:_0x1680a6,_0x5ae90b=_0x2d9c9a(0x127)+d+_0x2d9c9a(0x11f)+_0x43ace4+_0x2d9c9a(0x112)+_0x2524c5+'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.'+p+_0x2d9c9a(0x124)+p+_0x2d9c9a(0x10d)+d+_0x2d9c9a(0x105)+_0x2524c5+_0x2d9c9a(0x10f)+_0x43ace4+_0x2d9c9a(0x11c),_0x33616a=document[_0x2d9c9a(0x110)]('style');return _0x33616a[_0x2d9c9a(0x10b)]=_0x5ae90b,_0x33616a[_0x2d9c9a(0x117)]='offline-printing-css',_0x33616a;}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};function _0x3773(){const _0x32aea9=['38511OOkeEw','12llquTQ','Normal','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','61345ZsWeeQ','\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','8250RzRAmI','58687ZnrFdm','Custom','1276038ZEDRKk',',\x20.','Portrait','FitHeight','\x0a\x20\x20\x20\x20.','Wide','229480zseKkv','End','228SSRJgZ','2830fIOMIv','\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','None','printing-canvas','34919677WtMaFR','Middle','Origin','innerHTML','10lvvsTh','\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.','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','createElement','207ICrKnw','px\x20','Narrow','FitPage','printing-canvas-container','1687OiWvEh','className','Start'];_0x3773=function(){return _0x32aea9;};return _0x3773();}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x18d263=_0x1c20;(function(_0x2b4a78,_0x3ead08){const _0x18aa3d=_0x1c20,_0x1f5f16=_0x2b4a78();while(!![]){try{const _0x3a8d14=parseInt(_0x18aa3d(0x1a1))/0x1+parseInt(_0x18aa3d(0x1a3))/0x2+parseInt(_0x18aa3d(0x1a5))/0x3*(parseInt(_0x18aa3d(0x18f))/0x4)+-parseInt(_0x18aa3d(0x18d))/0x5*(parseInt(_0x18aa3d(0x18c))/0x6)+parseInt(_0x18aa3d(0x194))/0x7*(parseInt(_0x18aa3d(0x1ac))/0x8)+parseInt(_0x18aa3d(0x186))/0x9+-parseInt(_0x18aa3d(0x189))/0xa*(parseInt(_0x18aa3d(0x192))/0xb);if(_0x3a8d14===_0x3ead08)break;else _0x1f5f16['push'](_0x1f5f16['shift']());}catch(_0x145eae){_0x1f5f16['push'](_0x1f5f16['shift']());}}}(_0x37a7,0x1d003));var e=(_0x25697e=>(_0x25697e[_0x18d263(0x19b)]=_0x18d263(0x19b),_0x25697e[_0x18d263(0x1a6)]=_0x18d263(0x1a6),_0x25697e))(e||{}),h=(_0x5464cc=>(_0x5464cc[_0x18d263(0x19c)]=_0x18d263(0x19c),_0x5464cc[_0x18d263(0x185)]=_0x18d263(0x185),_0x5464cc[_0x18d263(0x18a)]='FitHeight',_0x5464cc[_0x18d263(0x191)]=_0x18d263(0x191),_0x5464cc[_0x18d263(0x193)]=_0x18d263(0x193),_0x5464cc))(h||{}),l=(_0xc8a18e=>(_0xc8a18e[_0x18d263(0x19d)]=_0x18d263(0x19d),_0xc8a18e[_0x18d263(0x199)]=_0x18d263(0x199),_0xc8a18e['Middle']=_0x18d263(0x1a8),_0xc8a18e))(l||{}),o=(_0x396f33=>(_0x396f33[_0x18d263(0x1a0)]='Normal',_0x396f33[_0x18d263(0x19e)]='Narrow',_0x396f33[_0x18d263(0x1aa)]='Wide',_0x396f33['None']=_0x18d263(0x18e),_0x396f33[_0x18d263(0x193)]=_0x18d263(0x193),_0x396f33))(o||{});const c={[o[_0x18d263(0x1a0)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x18d263(0x19e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x18d263(0x1aa)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x18d263(0x18e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x18d263(0x1ab),d=_0x18d263(0x197);function g(_0x222ad8,_0x32879e,_0x935c3e){const _0x1e1d67=_0x18d263,_0x36d04f=_0x935c3e===e[_0x1e1d67(0x19b)]?_0x222ad8:_0x32879e,_0x15d7ea=_0x935c3e===e[_0x1e1d67(0x19b)]?_0x32879e:_0x222ad8,_0x1050b2=_0x1e1d67(0x1a9)+d+_0x1e1d67(0x19f)+_0x36d04f+_0x1e1d67(0x196)+_0x15d7ea+_0x1e1d67(0x19a)+p+_0x1e1d67(0x1a4)+p+_0x1e1d67(0x190)+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'+_0x15d7ea+_0x1e1d67(0x1a7)+_0x36d04f+_0x1e1d67(0x187),_0x4da4e9=document[_0x1e1d67(0x188)](_0x1e1d67(0x18b));return _0x4da4e9[_0x1e1d67(0x198)]=_0x1050b2,_0x4da4e9[_0x1e1d67(0x1a2)]=_0x1e1d67(0x195),_0x4da4e9;}function _0x1c20(_0x5b3960,_0x90bc25){_0x5b3960=_0x5b3960-0x185;const _0x37a7dd=_0x37a7();let _0x1c2099=_0x37a7dd[_0x5b3960];return _0x1c2099;}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};function _0x37a7(){const _0x23179e=['Narrow','\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','Normal','53283vQfdXl','className','468002SiIDVj',',\x20.','21WnUqCw','Landscape','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','\x0a\x20\x20\x20\x20.','Wide','printing-canvas-container','557624dUQxfC','FitWidth','2078811DdODcT','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}','createElement','4750730QRCYeC','FitHeight','style','126EffyEL','6460TeimPq','None','18872btezeF','\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.','FitPage','11UigYyO','Custom','7EFVNSV','offline-printing-css','px\x20','printing-canvas','innerHTML','End','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.','Portrait','Origin','Start'];_0x37a7=function(){return _0x23179e;};return _0x37a7();}
1
+ const _0x15b66c=_0xe18e;(function(_0x1a804c,_0x13c7f3){const _0xe7cc3e=_0xe18e,_0x4a47f0=_0x1a804c();while(!![]){try{const _0x5ef4de=parseInt(_0xe7cc3e(0x121))/0x1*(-parseInt(_0xe7cc3e(0x10c))/0x2)+-parseInt(_0xe7cc3e(0x123))/0x3+parseInt(_0xe7cc3e(0x103))/0x4*(-parseInt(_0xe7cc3e(0x11e))/0x5)+-parseInt(_0xe7cc3e(0x120))/0x6*(parseInt(_0xe7cc3e(0x116))/0x7)+-parseInt(_0xe7cc3e(0x101))/0x8*(-parseInt(_0xe7cc3e(0x111))/0x9)+parseInt(_0xe7cc3e(0x104))/0xa*(-parseInt(_0xe7cc3e(0x119))/0xb)+parseInt(_0xe7cc3e(0x11a))/0xc*(parseInt(_0xe7cc3e(0x108))/0xd);if(_0x5ef4de===_0x13c7f3)break;else _0x4a47f0['push'](_0x4a47f0['shift']());}catch(_0x5c54fa){_0x4a47f0['push'](_0x4a47f0['shift']());}}}(_0x3773,0x93dac));var e=(_0x3ab2a1=>(_0x3ab2a1[_0x15b66c(0x125)]=_0x15b66c(0x125),_0x3ab2a1['Landscape']=_0x15b66c(0x11d),_0x3ab2a1))(e||{}),h=(_0x5e96b0=>(_0x5e96b0[_0x15b66c(0x10a)]=_0x15b66c(0x10a),_0x5e96b0['FitWidth']=_0x15b66c(0x10e),_0x5e96b0[_0x15b66c(0x126)]='FitHeight',_0x5e96b0[_0x15b66c(0x114)]=_0x15b66c(0x114),_0x5e96b0[_0x15b66c(0x122)]=_0x15b66c(0x122),_0x5e96b0))(h||{}),l=(_0x362aa3=>(_0x362aa3[_0x15b66c(0x118)]=_0x15b66c(0x118),_0x362aa3[_0x15b66c(0x102)]=_0x15b66c(0x102),_0x362aa3[_0x15b66c(0x109)]=_0x15b66c(0x109),_0x362aa3))(l||{}),o=(_0x9c4ce0=>(_0x9c4ce0[_0x15b66c(0x11b)]=_0x15b66c(0x11b),_0x9c4ce0[_0x15b66c(0x113)]=_0x15b66c(0x113),_0x9c4ce0[_0x15b66c(0x100)]=_0x15b66c(0x100),_0x9c4ce0[_0x15b66c(0x106)]='None',_0x9c4ce0[_0x15b66c(0x122)]='Custom',_0x9c4ce0))(o||{});function _0xe18e(_0x4d908a,_0x3cf348){_0x4d908a=_0x4d908a-0x100;const _0x3773d7=_0x3773();let _0xe18e6=_0x3773d7[_0x4d908a];return _0xe18e6;}const c={[o[_0x15b66c(0x11b)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x15b66c(0x100)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x15b66c(0x106)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x15b66c(0x122)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x15b66c(0x115),d=_0x15b66c(0x107);function g(_0x1680a6,_0x4b759b,_0x3dee94){const _0x2d9c9a=_0x15b66c,_0x43ace4=_0x3dee94===e['Portrait']?_0x1680a6:_0x4b759b,_0x2524c5=_0x3dee94===e[_0x2d9c9a(0x125)]?_0x4b759b:_0x1680a6,_0x5ae90b=_0x2d9c9a(0x127)+d+_0x2d9c9a(0x11f)+_0x43ace4+_0x2d9c9a(0x112)+_0x2524c5+'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.'+p+_0x2d9c9a(0x124)+p+_0x2d9c9a(0x10d)+d+_0x2d9c9a(0x105)+_0x2524c5+_0x2d9c9a(0x10f)+_0x43ace4+_0x2d9c9a(0x11c),_0x33616a=document[_0x2d9c9a(0x110)]('style');return _0x33616a[_0x2d9c9a(0x10b)]=_0x5ae90b,_0x33616a[_0x2d9c9a(0x117)]='offline-printing-css',_0x33616a;}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};function _0x3773(){const _0x32aea9=['38511OOkeEw','12llquTQ','Normal','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','61345ZsWeeQ','\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','8250RzRAmI','58687ZnrFdm','Custom','1276038ZEDRKk',',\x20.','Portrait','FitHeight','\x0a\x20\x20\x20\x20.','Wide','229480zseKkv','End','228SSRJgZ','2830fIOMIv','\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','None','printing-canvas','34919677WtMaFR','Middle','Origin','innerHTML','10lvvsTh','\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.','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','createElement','207ICrKnw','px\x20','Narrow','FitPage','printing-canvas-container','1687OiWvEh','className','Start'];_0x3773=function(){return _0x32aea9;};return _0x3773();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x45a2(){const _0xf46684=['px\x20','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.','Landscape','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}','FitWidth','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','FitHeight','20EyuxxZ','Start','3039534zoySjl','2014856DziXnD','UniverProPrint','Module','createPrintStyle','style','FitPage','PrintScale','className','\x0a\x20\x20\x20\x20.','printing-canvas-container','object','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.','567189fvllWi','1618720YREFQM','721879IsPGTO','None','printing-canvas','Origin','PRINT_CANVAS_CLASS','36281otseqS','Narrow','PrintDirection','Custom','Middle','5261694xLVpwL','defineProperty','256HGPEAj','toStringTag','PaperMarginMap','exports','Portrait','createElement','function','End','innerHTML','PrintAlign','Normal','4xvmmNB'];_0x45a2=function(){return _0xf46684;};return _0x45a2();}function _0x43dc(_0x58f0bd,_0x351301){_0x58f0bd=_0x58f0bd-0x1a0;const _0x45a27f=_0x45a2();let _0x43dcc2=_0x45a27f[_0x58f0bd];return _0x43dcc2;}(function(_0x39210c,_0x341f92){const _0x1a54f5=_0x43dc,_0x23a66a=_0x39210c();while(!![]){try{const _0x15cb3c=-parseInt(_0x1a54f5(0x1c4))/0x1+parseInt(_0x1a54f5(0x1b6))/0x2+parseInt(_0x1a54f5(0x1c2))/0x3*(parseInt(_0x1a54f5(0x1a9))/0x4)+-parseInt(_0x1a54f5(0x1c3))/0x5+parseInt(_0x1a54f5(0x1ce))/0x6+-parseInt(_0x1a54f5(0x1c9))/0x7*(-parseInt(_0x1a54f5(0x1d0))/0x8)+-parseInt(_0x1a54f5(0x1b5))/0x9*(parseInt(_0x1a54f5(0x1b3))/0xa);if(_0x15cb3c===_0x341f92)break;else _0x23a66a['push'](_0x23a66a['shift']());}catch(_0x1a3127){_0x23a66a['push'](_0x23a66a['shift']());}}}(_0x45a2,0x7e84d),function(_0x176bf6,_0xa6b909){const _0x117a0b=_0x43dc;typeof exports==_0x117a0b(0x1c0)&&typeof module<'u'?_0xa6b909(exports):typeof define==_0x117a0b(0x1a4)&&define['amd']?define([_0x117a0b(0x1a1)],_0xa6b909):(_0x176bf6=typeof globalThis<'u'?globalThis:_0x176bf6||self,_0xa6b909(_0x176bf6[_0x117a0b(0x1b7)]={}));}(this,function(_0x5a5e64){'use strict';const _0x3c28a9=_0x43dc;var _0x22dd94=(_0x34cd1d=>(_0x34cd1d['Portrait']=_0x3c28a9(0x1a2),_0x34cd1d[_0x3c28a9(0x1ad)]=_0x3c28a9(0x1ad),_0x34cd1d))(_0x22dd94||{}),_0x36275f=(_0x184620=>(_0x184620[_0x3c28a9(0x1c7)]=_0x3c28a9(0x1c7),_0x184620[_0x3c28a9(0x1b0)]=_0x3c28a9(0x1b0),_0x184620[_0x3c28a9(0x1b2)]=_0x3c28a9(0x1b2),_0x184620['FitPage']=_0x3c28a9(0x1bb),_0x184620[_0x3c28a9(0x1cc)]=_0x3c28a9(0x1cc),_0x184620))(_0x36275f||{}),_0x180a09=(_0x20b3e4=>(_0x20b3e4[_0x3c28a9(0x1b4)]='Start',_0x20b3e4[_0x3c28a9(0x1a5)]=_0x3c28a9(0x1a5),_0x20b3e4[_0x3c28a9(0x1cd)]=_0x3c28a9(0x1cd),_0x20b3e4))(_0x180a09||{}),_0x84a547=(_0x164cdd=>(_0x164cdd[_0x3c28a9(0x1a8)]=_0x3c28a9(0x1a8),_0x164cdd[_0x3c28a9(0x1ca)]=_0x3c28a9(0x1ca),_0x164cdd['Wide']='Wide',_0x164cdd[_0x3c28a9(0x1c5)]=_0x3c28a9(0x1c5),_0x164cdd[_0x3c28a9(0x1cc)]=_0x3c28a9(0x1cc),_0x164cdd))(_0x84a547||{});const _0x3a76f1={[_0x84a547['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x84a547[_0x3c28a9(0x1ca)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x84a547[_0x3c28a9(0x1ae)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x84a547[_0x3c28a9(0x1c5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x84a547[_0x3c28a9(0x1cc)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x26a1cd=_0x3c28a9(0x1bf),_0x54b6c2=_0x3c28a9(0x1c6);function _0x86fa05(_0x2249b0,_0x471e96,_0x146826){const _0x5b4aa2=_0x3c28a9,_0x43e980=_0x146826===_0x22dd94[_0x5b4aa2(0x1a2)]?_0x2249b0:_0x471e96,_0xdccd8a=_0x146826===_0x22dd94[_0x5b4aa2(0x1a2)]?_0x471e96:_0x2249b0,_0x139f40=_0x5b4aa2(0x1be)+_0x54b6c2+'\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'+_0x43e980+_0x5b4aa2(0x1aa)+_0xdccd8a+_0x5b4aa2(0x1c1)+_0x26a1cd+',\x20.'+_0x26a1cd+_0x5b4aa2(0x1ac)+_0x54b6c2+'\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'+_0xdccd8a+_0x5b4aa2(0x1b1)+_0x43e980+_0x5b4aa2(0x1af),_0x2d9af4=document[_0x5b4aa2(0x1a3)](_0x5b4aa2(0x1ba));return _0x2d9af4[_0x5b4aa2(0x1a6)]=_0x139f40,_0x2d9af4[_0x5b4aa2(0x1bd)]=_0x5b4aa2(0x1ab),_0x2d9af4;}_0x5a5e64[_0x3c28a9(0x1c8)]=_0x54b6c2,_0x5a5e64['PRINT_CONTAINER_CLASS']=_0x26a1cd,_0x5a5e64[_0x3c28a9(0x1a0)]=_0x3a76f1,_0x5a5e64[_0x3c28a9(0x1a7)]=_0x180a09,_0x5a5e64[_0x3c28a9(0x1cb)]=_0x22dd94,_0x5a5e64['PrintPaperMargin']=_0x84a547,_0x5a5e64[_0x3c28a9(0x1bc)]=_0x36275f,_0x5a5e64[_0x3c28a9(0x1b9)]=_0x86fa05,Object[_0x3c28a9(0x1cf)](_0x5a5e64,Symbol[_0x3c28a9(0x1d1)],{'value':_0x3c28a9(0x1b8)});}));
1
+ (function(_0x125cd3,_0x2f46df){const _0x4ce444=_0x49ce,_0x5524e6=_0x125cd3();while(!![]){try{const _0x44254c=-parseInt(_0x4ce444(0xed))/0x1+-parseInt(_0x4ce444(0xfd))/0x2+-parseInt(_0x4ce444(0xf9))/0x3*(-parseInt(_0x4ce444(0xfe))/0x4)+-parseInt(_0x4ce444(0xf0))/0x5*(-parseInt(_0x4ce444(0xf5))/0x6)+-parseInt(_0x4ce444(0xdf))/0x7*(-parseInt(_0x4ce444(0xea))/0x8)+parseInt(_0x4ce444(0xe6))/0x9*(parseInt(_0x4ce444(0xe7))/0xa)+-parseInt(_0x4ce444(0xf6))/0xb;if(_0x44254c===_0x2f46df)break;else _0x5524e6['push'](_0x5524e6['shift']());}catch(_0x52f0e4){_0x5524e6['push'](_0x5524e6['shift']());}}}(_0xcbed,0x904f9),function(_0x45a70d,_0x10872d){const _0xe14bdf=_0x49ce;typeof exports==_0xe14bdf(0x100)&&typeof module<'u'?_0x10872d(exports):typeof define==_0xe14bdf(0x105)&&define[_0xe14bdf(0xec)]?define(['exports'],_0x10872d):(_0x45a70d=typeof globalThis<'u'?globalThis:_0x45a70d||self,_0x10872d(_0x45a70d[_0xe14bdf(0xdb)]={}));}(this,function(_0x1f79e4){'use strict';const _0x588f40=_0x49ce;var _0x2a7f97=(_0x10861a=>(_0x10861a[_0x588f40(0xe9)]=_0x588f40(0xe9),_0x10861a[_0x588f40(0xe8)]=_0x588f40(0xe8),_0x10861a))(_0x2a7f97||{}),_0x4f4fb9=(_0xdf4a3c=>(_0xdf4a3c[_0x588f40(0xdd)]='Origin',_0xdf4a3c[_0x588f40(0xe3)]=_0x588f40(0xe3),_0xdf4a3c[_0x588f40(0xef)]=_0x588f40(0xef),_0xdf4a3c['FitPage']='FitPage',_0xdf4a3c[_0x588f40(0x108)]='Custom',_0xdf4a3c))(_0x4f4fb9||{}),_0x52763b=(_0xca2756=>(_0xca2756['Start']='Start',_0xca2756[_0x588f40(0xf7)]=_0x588f40(0xf7),_0xca2756[_0x588f40(0xfb)]='Middle',_0xca2756))(_0x52763b||{}),_0x277d0f=(_0x1f90dc=>(_0x1f90dc[_0x588f40(0xe1)]=_0x588f40(0xe1),_0x1f90dc['Narrow']='Narrow',_0x1f90dc[_0x588f40(0xe0)]=_0x588f40(0xe0),_0x1f90dc[_0x588f40(0xee)]='None',_0x1f90dc[_0x588f40(0x108)]=_0x588f40(0x108),_0x1f90dc))(_0x277d0f||{});const _0x5a18fd={[_0x277d0f[_0x588f40(0xe1)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x277d0f['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x277d0f[_0x588f40(0xe0)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x277d0f[_0x588f40(0xee)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x277d0f[_0x588f40(0x108)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x2172cd='printing-canvas-container',_0x1d1fcb='printing-canvas';function _0xd43a55(_0x1f594,_0x2624db,_0x13326f){const _0x21f362=_0x588f40,_0x538d79=_0x13326f===_0x2a7f97['Portrait']?_0x1f594:_0x2624db,_0x5cff30=_0x13326f===_0x2a7f97[_0x21f362(0xe9)]?_0x2624db:_0x1f594,_0x26fb3b=_0x21f362(0xfa)+_0x1d1fcb+_0x21f362(0xfc)+_0x538d79+_0x21f362(0xe2)+_0x5cff30+_0x21f362(0xf4)+_0x2172cd+',\x20.'+_0x2172cd+'\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.'+_0x1d1fcb+_0x21f362(0xde)+_0x5cff30+_0x21f362(0x107)+_0x538d79+'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}',_0x48bbaf=document[_0x21f362(0xdc)](_0x21f362(0xf3));return _0x48bbaf[_0x21f362(0xeb)]=_0x26fb3b,_0x48bbaf[_0x21f362(0xf2)]=_0x21f362(0xf8),_0x48bbaf;}_0x1f79e4[_0x588f40(0xe5)]=_0x1d1fcb,_0x1f79e4[_0x588f40(0xe4)]=_0x2172cd,_0x1f79e4[_0x588f40(0xf1)]=_0x5a18fd,_0x1f79e4[_0x588f40(0x103)]=_0x52763b,_0x1f79e4[_0x588f40(0x102)]=_0x2a7f97,_0x1f79e4[_0x588f40(0xff)]=_0x277d0f,_0x1f79e4[_0x588f40(0x104)]=_0x4f4fb9,_0x1f79e4[_0x588f40(0x101)]=_0xd43a55,Object[_0x588f40(0x106)](_0x1f79e4,Symbol['toStringTag'],{'value':_0x588f40(0xda)});}));function _0x49ce(_0x6992bd,_0x268437){_0x6992bd=_0x6992bd-0xda;const _0xcbed97=_0xcbed();let _0x49ce46=_0xcbed97[_0x6992bd];return _0x49ce46;}function _0xcbed(){const _0xa3507b=['PRINT_CONTAINER_CLASS','PRINT_CANVAS_CLASS','9QNhBKT','10443010XjrwFi','Landscape','Portrait','1136neqFxG','innerHTML','amd','469787qmTvxY','None','FitHeight','890dmGgBw','PaperMarginMap','className','style','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.','13182FsoyhF','14122317gaWYIz','End','offline-printing-css','3fPkyMG','\x0a\x20\x20\x20\x20.','Middle','\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','1619396JHZXFY','2862760sRqmjb','PrintPaperMargin','object','createPrintStyle','PrintDirection','PrintAlign','PrintScale','function','defineProperty','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','Module','UniverProPrint','createElement','Origin','\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','49462AubPvh','Wide','Normal','px\x20','FitWidth'];_0xcbed=function(){return _0xa3507b;};return _0xcbed();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/print",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
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.7",
47
- "vitest": "^4.0.15",
48
- "@univerjs-infra/shared": "0.14.0"
46
+ "vite": "^7.3.0",
47
+ "vitest": "^4.0.16",
48
+ "@univerjs-infra/shared": "0.15.0"
49
49
  },
50
50
  "scripts": {
51
51
  "test": "vitest run",