@univerjs-pro/print 0.12.2 → 0.12.3
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 _0x3a6649=_0x1864;(function(_0x579073,_0x4f3072){const _0x1d00da=_0x1864,_0x2af4b1=_0x579073();while(!![]){try{const _0x1bf029=parseInt(_0x1d00da(0x185))/0x1*(-parseInt(_0x1d00da(0x182))/0x2)+parseInt(_0x1d00da(0x190))/0x3+-parseInt(_0x1d00da(0x191))/0x4+-parseInt(_0x1d00da(0x17a))/0x5*(-parseInt(_0x1d00da(0x194))/0x6)+-parseInt(_0x1d00da(0x18a))/0x7*(parseInt(_0x1d00da(0x179))/0x8)+-parseInt(_0x1d00da(0x16c))/0x9+parseInt(_0x1d00da(0x167))/0xa;if(_0x1bf029===_0x4f3072)break;else _0x2af4b1['push'](_0x2af4b1['shift']());}catch(_0x43ddcc){_0x2af4b1['push'](_0x2af4b1['shift']());}}}(_0x3f5e,0x963a5));function _0x1864(_0xc2d4d3,_0x1751c9){const _0x3f5eba=_0x3f5e();return _0x1864=function(_0x18641c,_0x5d812b){_0x18641c=_0x18641c-0x167;let _0x1e2d1c=_0x3f5eba[_0x18641c];return _0x1e2d1c;},_0x1864(_0xc2d4d3,_0x1751c9);}function _0x3f5e(){const _0x296741=[',\x20.','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}','Wide','168FqIOIg','printing-canvas-container','toStringTag','Custom','createElement','PrintAlign','1778139ePWeGE','1817912PGBpKQ','PrintDirection','className','114uEhjmc','2372190tQFRqo','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','PrintScale','style','PaperMarginMap','2461473ALLeHt','\x0a\x20\x20\x20\x20.','Origin','Normal','Middle','\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.','px\x20','PRINT_CONTAINER_CLASS','defineProperty','Module','printing-canvas','FitPage','Landscape','5072puXUsS','288690BxvLgV','FitHeight','FitWidth','createPrintStyle','innerHTML','Narrow','End','Start','568430kaPHaL','\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','2lJejfC','Portrait'];_0x3f5e=function(){return _0x296741;};return _0x3f5e();}Object[_0x3a6649(0x174)](exports,Symbol[_0x3a6649(0x18c)],{'value':_0x3a6649(0x175)});var i=(_0x38bdc1=>(_0x38bdc1['Portrait']=_0x3a6649(0x186),_0x38bdc1['Landscape']=_0x3a6649(0x178),_0x38bdc1))(i||{}),l=(_0x457424=>(_0x457424[_0x3a6649(0x16e)]=_0x3a6649(0x16e),_0x457424['FitWidth']=_0x3a6649(0x17c),_0x457424[_0x3a6649(0x17b)]=_0x3a6649(0x17b),_0x457424[_0x3a6649(0x177)]=_0x3a6649(0x177),_0x457424[_0x3a6649(0x18d)]='Custom',_0x457424))(l||{}),m=(_0x1aff2e=>(_0x1aff2e[_0x3a6649(0x181)]=_0x3a6649(0x181),_0x1aff2e[_0x3a6649(0x180)]=_0x3a6649(0x180),_0x1aff2e['Middle']=_0x3a6649(0x170),_0x1aff2e))(m||{}),o=(_0x3a04c2=>(_0x3a04c2[_0x3a6649(0x16f)]=_0x3a6649(0x16f),_0x3a04c2[_0x3a6649(0x17f)]=_0x3a6649(0x17f),_0x3a04c2[_0x3a6649(0x189)]=_0x3a6649(0x189),_0x3a04c2[_0x3a6649(0x184)]='None',_0x3a04c2[_0x3a6649(0x18d)]=_0x3a6649(0x18d),_0x3a04c2))(o||{});const g={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3a6649(0x17f)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3a6649(0x184)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x3a6649(0x18d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x3a6649(0x18b),n=_0x3a6649(0x176);function h(_0x5049ec,_0x8c1160,_0x467b25){const _0x1b3493=_0x3a6649,_0x4706ff=_0x467b25===i[_0x1b3493(0x186)]?_0x5049ec:_0x8c1160,_0x301a1e=_0x467b25===i[_0x1b3493(0x186)]?_0x8c1160:_0x5049ec,_0x48fab6=_0x1b3493(0x16d)+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'+_0x4706ff+_0x1b3493(0x172)+_0x301a1e+'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+_0x1b3493(0x187)+r+_0x1b3493(0x171)+n+_0x1b3493(0x183)+_0x301a1e+_0x1b3493(0x168)+_0x4706ff+_0x1b3493(0x188),_0x1a417c=document[_0x1b3493(0x18e)](_0x1b3493(0x16a));return _0x1a417c[_0x1b3493(0x17e)]=_0x48fab6,_0x1a417c[_0x1b3493(0x193)]='offline-printing-css',_0x1a417c;}exports['PRINT_CANVAS_CLASS']=n,exports[_0x3a6649(0x173)]=r,exports[_0x3a6649(0x16b)]=g,exports[_0x3a6649(0x18f)]=m,exports[_0x3a6649(0x192)]=i,exports['PrintPaperMargin']=o,exports[_0x3a6649(0x169)]=l,exports[_0x3a6649(0x17d)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2b1eb8=_0x1cfa;(function(_0x26969f,_0x3e370e){const _0x2bae00=_0x1cfa,_0x461dd8=_0x26969f();while(!![]){try{const _0x2051ad=parseInt(_0x2bae00(0x136))/0x1+-parseInt(_0x2bae00(0x145))/0x2+parseInt(_0x2bae00(0x141))/0x3+-parseInt(_0x2bae00(0x13f))/0x4*(parseInt(_0x2bae00(0x131))/0x5)+parseInt(_0x2bae00(0x134))/0x6+-parseInt(_0x2bae00(0x12e))/0x7+-parseInt(_0x2bae00(0x12f))/0x8*(-parseInt(_0x2bae00(0x12a))/0x9);if(_0x2051ad===_0x3e370e)break;else _0x461dd8['push'](_0x461dd8['shift']());}catch(_0x44452d){_0x461dd8['push'](_0x461dd8['shift']());}}}(_0x1e32,0x195a5));var e=(_0x1d2856=>(_0x1d2856[_0x2b1eb8(0x140)]=_0x2b1eb8(0x140),_0x1d2856[_0x2b1eb8(0x137)]=_0x2b1eb8(0x137),_0x1d2856))(e||{}),h=(_0x5326d7=>(_0x5326d7['Origin']='Origin',_0x5326d7['FitWidth']=_0x2b1eb8(0x142),_0x5326d7[_0x2b1eb8(0x12b)]=_0x2b1eb8(0x12b),_0x5326d7[_0x2b1eb8(0x13c)]=_0x2b1eb8(0x13c),_0x5326d7[_0x2b1eb8(0x138)]=_0x2b1eb8(0x138),_0x5326d7))(h||{}),l=(_0x4e5d5d=>(_0x4e5d5d[_0x2b1eb8(0x133)]=_0x2b1eb8(0x133),_0x4e5d5d[_0x2b1eb8(0x12c)]=_0x2b1eb8(0x12c),_0x4e5d5d['Middle']='Middle',_0x4e5d5d))(l||{}),o=(_0xbe2eb8=>(_0xbe2eb8[_0x2b1eb8(0x139)]=_0x2b1eb8(0x139),_0xbe2eb8[_0x2b1eb8(0x144)]='Narrow',_0xbe2eb8[_0x2b1eb8(0x13b)]=_0x2b1eb8(0x13b),_0xbe2eb8[_0x2b1eb8(0x135)]=_0x2b1eb8(0x135),_0xbe2eb8['Custom']=_0x2b1eb8(0x138),_0xbe2eb8))(o||{});function _0x1cfa(_0x1eaca6,_0x287adc){const _0x1e3234=_0x1e32();return _0x1cfa=function(_0x1cfa35,_0x4ee467){_0x1cfa35=_0x1cfa35-0x129;let _0x118343=_0x1e3234[_0x1cfa35];return _0x118343;},_0x1cfa(_0x1eaca6,_0x287adc);}const c={[o[_0x2b1eb8(0x139)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x2b1eb8(0x144)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x2b1eb8(0x13b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x2b1eb8(0x135)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x2b1eb8(0x138)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x2b1eb8(0x13a),d='printing-canvas';function _0x1e32(){const _0x3405d9=['Landscape','Custom','Normal','printing-canvas-container','Wide','FitPage','innerHTML',',\x20.','4YLSdov','Portrait','118857NzcVYW','FitWidth','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Narrow','313264PKQpEn','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','117LjSBZi','FitHeight','End','\x0a\x20\x20\x20\x20.','1428196ykZwsL','301856oOLPcB','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','910610VxPbcy','offline-printing-css','Start','101226mThpGA','None','99621wgzKUa'];_0x1e32=function(){return _0x3405d9;};return _0x1e32();}function g(_0x5ed5af,_0x5254e2,_0x105361){const _0x42f8d3=_0x2b1eb8,_0x94f1b3=_0x105361===e['Portrait']?_0x5ed5af:_0x5254e2,_0x4eb7dd=_0x105361===e[_0x42f8d3(0x140)]?_0x5254e2:_0x5ed5af,_0x23f7f7=_0x42f8d3(0x12d)+d+_0x42f8d3(0x143)+_0x94f1b3+'px\x20'+_0x4eb7dd+_0x42f8d3(0x146)+p+_0x42f8d3(0x13e)+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+_0x42f8d3(0x129)+_0x4eb7dd+_0x42f8d3(0x130)+_0x94f1b3+'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}',_0x1d5eee=document['createElement']('style');return _0x1d5eee[_0x42f8d3(0x13d)]=_0x23f7f7,_0x1d5eee['className']=_0x42f8d3(0x132),_0x1d5eee;}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 _0x2b1eb8=_0x1cfa;(function(_0x26969f,_0x3e370e){const _0x2bae00=_0x1cfa,_0x461dd8=_0x26969f();while(!![]){try{const _0x2051ad=parseInt(_0x2bae00(0x136))/0x1+-parseInt(_0x2bae00(0x145))/0x2+parseInt(_0x2bae00(0x141))/0x3+-parseInt(_0x2bae00(0x13f))/0x4*(parseInt(_0x2bae00(0x131))/0x5)+parseInt(_0x2bae00(0x134))/0x6+-parseInt(_0x2bae00(0x12e))/0x7+-parseInt(_0x2bae00(0x12f))/0x8*(-parseInt(_0x2bae00(0x12a))/0x9);if(_0x2051ad===_0x3e370e)break;else _0x461dd8['push'](_0x461dd8['shift']());}catch(_0x44452d){_0x461dd8['push'](_0x461dd8['shift']());}}}(_0x1e32,0x195a5));var e=(_0x1d2856=>(_0x1d2856[_0x2b1eb8(0x140)]=_0x2b1eb8(0x140),_0x1d2856[_0x2b1eb8(0x137)]=_0x2b1eb8(0x137),_0x1d2856))(e||{}),h=(_0x5326d7=>(_0x5326d7['Origin']='Origin',_0x5326d7['FitWidth']=_0x2b1eb8(0x142),_0x5326d7[_0x2b1eb8(0x12b)]=_0x2b1eb8(0x12b),_0x5326d7[_0x2b1eb8(0x13c)]=_0x2b1eb8(0x13c),_0x5326d7[_0x2b1eb8(0x138)]=_0x2b1eb8(0x138),_0x5326d7))(h||{}),l=(_0x4e5d5d=>(_0x4e5d5d[_0x2b1eb8(0x133)]=_0x2b1eb8(0x133),_0x4e5d5d[_0x2b1eb8(0x12c)]=_0x2b1eb8(0x12c),_0x4e5d5d['Middle']='Middle',_0x4e5d5d))(l||{}),o=(_0xbe2eb8=>(_0xbe2eb8[_0x2b1eb8(0x139)]=_0x2b1eb8(0x139),_0xbe2eb8[_0x2b1eb8(0x144)]='Narrow',_0xbe2eb8[_0x2b1eb8(0x13b)]=_0x2b1eb8(0x13b),_0xbe2eb8[_0x2b1eb8(0x135)]=_0x2b1eb8(0x135),_0xbe2eb8['Custom']=_0x2b1eb8(0x138),_0xbe2eb8))(o||{});function _0x1cfa(_0x1eaca6,_0x287adc){const _0x1e3234=_0x1e32();return _0x1cfa=function(_0x1cfa35,_0x4ee467){_0x1cfa35=_0x1cfa35-0x129;let _0x118343=_0x1e3234[_0x1cfa35];return _0x118343;},_0x1cfa(_0x1eaca6,_0x287adc);}const c={[o[_0x2b1eb8(0x139)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x2b1eb8(0x144)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x2b1eb8(0x13b)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x2b1eb8(0x135)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x2b1eb8(0x138)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x2b1eb8(0x13a),d='printing-canvas';function _0x1e32(){const _0x3405d9=['Landscape','Custom','Normal','printing-canvas-container','Wide','FitPage','innerHTML',',\x20.','4YLSdov','Portrait','118857NzcVYW','FitWidth','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@media\x20print\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Narrow','313264PKQpEn','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','117LjSBZi','FitHeight','End','\x0a\x20\x20\x20\x20.','1428196ykZwsL','301856oOLPcB','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','910610VxPbcy','offline-printing-css','Start','101226mThpGA','None','99621wgzKUa'];_0x1e32=function(){return _0x3405d9;};return _0x1e32();}function g(_0x5ed5af,_0x5254e2,_0x105361){const _0x42f8d3=_0x2b1eb8,_0x94f1b3=_0x105361===e['Portrait']?_0x5ed5af:_0x5254e2,_0x4eb7dd=_0x105361===e[_0x42f8d3(0x140)]?_0x5254e2:_0x5ed5af,_0x23f7f7=_0x42f8d3(0x12d)+d+_0x42f8d3(0x143)+_0x94f1b3+'px\x20'+_0x4eb7dd+_0x42f8d3(0x146)+p+_0x42f8d3(0x13e)+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+_0x42f8d3(0x129)+_0x4eb7dd+_0x42f8d3(0x130)+_0x94f1b3+'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}',_0x1d5eee=document['createElement']('style');return _0x1d5eee[_0x42f8d3(0x13d)]=_0x23f7f7,_0x1d5eee['className']=_0x42f8d3(0x132),_0x1d5eee;}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
|
-
|
|
1
|
+
(function(_0x56a4a0,_0x281ba2){const _0x62fe69=_0xa97a,_0x4291bf=_0x56a4a0();while(!![]){try{const _0x3c5d2e=parseInt(_0x62fe69(0x19e))/0x1*(-parseInt(_0x62fe69(0x1ae))/0x2)+parseInt(_0x62fe69(0x1a8))/0x3*(-parseInt(_0x62fe69(0x1ab))/0x4)+parseInt(_0x62fe69(0x1b6))/0x5*(-parseInt(_0x62fe69(0x1b8))/0x6)+-parseInt(_0x62fe69(0x1b4))/0x7+-parseInt(_0x62fe69(0x1c2))/0x8+parseInt(_0x62fe69(0x1a0))/0x9*(-parseInt(_0x62fe69(0x1ac))/0xa)+-parseInt(_0x62fe69(0x1a1))/0xb*(-parseInt(_0x62fe69(0x1ca))/0xc);if(_0x3c5d2e===_0x281ba2)break;else _0x4291bf['push'](_0x4291bf['shift']());}catch(_0x27acc5){_0x4291bf['push'](_0x4291bf['shift']());}}}(_0x4b95,0xa700f),function(_0x200a5c,_0x52f0c8){const _0x5e745f=_0xa97a;typeof exports==_0x5e745f(0x1c1)&&typeof module<'u'?_0x52f0c8(exports):typeof define==_0x5e745f(0x1a3)&&define[_0x5e745f(0x1ba)]?define([_0x5e745f(0x19f)],_0x52f0c8):(_0x200a5c=typeof globalThis<'u'?globalThis:_0x200a5c||self,_0x52f0c8(_0x200a5c['UniverProPrint']={}));}(this,function(_0x51d9c8){'use strict';const _0x5bcd00=_0xa97a;var _0x111658=(_0x256ad0=>(_0x256ad0[_0x5bcd00(0x1b9)]=_0x5bcd00(0x1b9),_0x256ad0[_0x5bcd00(0x1a2)]=_0x5bcd00(0x1a2),_0x256ad0))(_0x111658||{}),_0x212126=(_0x129e9a=>(_0x129e9a[_0x5bcd00(0x1c4)]=_0x5bcd00(0x1c4),_0x129e9a['FitWidth']='FitWidth',_0x129e9a[_0x5bcd00(0x1bf)]='FitHeight',_0x129e9a[_0x5bcd00(0x19c)]='FitPage',_0x129e9a[_0x5bcd00(0x19a)]='Custom',_0x129e9a))(_0x212126||{}),_0xbd0a82=(_0x9a9b4=>(_0x9a9b4[_0x5bcd00(0x1c9)]=_0x5bcd00(0x1c9),_0x9a9b4['End']=_0x5bcd00(0x1b2),_0x9a9b4[_0x5bcd00(0x1b1)]='Middle',_0x9a9b4))(_0xbd0a82||{}),_0x4bd26a=(_0x1eb08f=>(_0x1eb08f[_0x5bcd00(0x1b0)]='Normal',_0x1eb08f['Narrow']=_0x5bcd00(0x1a4),_0x1eb08f[_0x5bcd00(0x1b7)]=_0x5bcd00(0x1b7),_0x1eb08f['None']=_0x5bcd00(0x1bb),_0x1eb08f['Custom']=_0x5bcd00(0x19a),_0x1eb08f))(_0x4bd26a||{});const _0x3a956d={[_0x4bd26a[_0x5bcd00(0x1b0)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x4bd26a['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x4bd26a[_0x5bcd00(0x1b7)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x4bd26a[_0x5bcd00(0x1bb)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x4bd26a['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x23a044=_0x5bcd00(0x1a7),_0x4ab1f4=_0x5bcd00(0x1af);function _0x3ad71a(_0x1ad6a9,_0xfc8df8,_0x412bd1){const _0x4397e5=_0x5bcd00,_0xcd267e=_0x412bd1===_0x111658[_0x4397e5(0x1b9)]?_0x1ad6a9:_0xfc8df8,_0x90b9a7=_0x412bd1===_0x111658['Portrait']?_0xfc8df8:_0x1ad6a9,_0x1f684c=_0x4397e5(0x1cc)+_0x4ab1f4+'\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'+_0xcd267e+'px\x20'+_0x90b9a7+_0x4397e5(0x1c6)+_0x23a044+',\x20.'+_0x23a044+_0x4397e5(0x1ad)+_0x4ab1f4+_0x4397e5(0x1cb)+_0x90b9a7+_0x4397e5(0x1cd)+_0xcd267e+'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}',_0x262888=document[_0x4397e5(0x1c5)](_0x4397e5(0x1bc));return _0x262888[_0x4397e5(0x1c3)]=_0x1f684c,_0x262888[_0x4397e5(0x1bd)]=_0x4397e5(0x1c7),_0x262888;}_0x51d9c8[_0x5bcd00(0x19d)]=_0x4ab1f4,_0x51d9c8[_0x5bcd00(0x1aa)]=_0x23a044,_0x51d9c8[_0x5bcd00(0x1b3)]=_0x3a956d,_0x51d9c8[_0x5bcd00(0x1c0)]=_0xbd0a82,_0x51d9c8[_0x5bcd00(0x1be)]=_0x111658,_0x51d9c8[_0x5bcd00(0x1a9)]=_0x4bd26a,_0x51d9c8[_0x5bcd00(0x1a5)]=_0x212126,_0x51d9c8[_0x5bcd00(0x19b)]=_0x3ad71a,Object[_0x5bcd00(0x1c8)](_0x51d9c8,Symbol[_0x5bcd00(0x1b5)],{'value':_0x5bcd00(0x1a6)});}));function _0xa97a(_0x188421,_0x319d2e){const _0x4b9525=_0x4b95();return _0xa97a=function(_0xa97a88,_0x2a6fe2){_0xa97a88=_0xa97a88-0x19a;let _0x2e2f5d=_0x4b9525[_0xa97a88];return _0x2e2f5d;},_0xa97a(_0x188421,_0x319d2e);}function _0x4b95(){const _0x32d0e0=['PaperMarginMap','1863421wGFQWM','toStringTag','2499675LwNGzX','Wide','6tbhYOy','Portrait','amd','None','style','className','PrintDirection','FitHeight','PrintAlign','object','957096RmHXuI','innerHTML','Origin','createElement','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.','offline-printing-css','defineProperty','Start','84996oMaThq','\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','\x0a\x20\x20\x20\x20.','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','createPrintStyle','FitPage','PRINT_CANVAS_CLASS','2458WoLztp','exports','621sTQvGU','7436CYZpHZ','Landscape','function','Narrow','PrintScale','Module','printing-canvas-container','3458073QJfreQ','PrintPaperMargin','PRINT_CONTAINER_CLASS','4HZeGij','109490ENTxRl','\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.','1066GSRJGh','printing-canvas','Normal','Middle','End'];_0x4b95=function(){return _0x32d0e0;};return _0x4b95();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
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": "^
|
|
48
|
-
"@univerjs-infra/shared": "0.12.
|
|
46
|
+
"vite": "^7.2.4",
|
|
47
|
+
"vitest": "^4.0.14",
|
|
48
|
+
"@univerjs-infra/shared": "0.12.3"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|