@univerjs-pro/print 0.12.1 → 0.12.2
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';const
|
|
1
|
+
'use strict';const _0x169da3=_0x3412;function _0x3412(_0x1220de,_0x58308a){const _0x34101b=_0x3410();return _0x3412=function(_0x34121a,_0x5b8bea){_0x34121a=_0x34121a-0xba;let _0x145026=_0x34101b[_0x34121a];return _0x145026;},_0x3412(_0x1220de,_0x58308a);}(function(_0x3f2e4e,_0x279ce8){const _0x4da15f=_0x3412,_0x27f04c=_0x3f2e4e();while(!![]){try{const _0x591698=-parseInt(_0x4da15f(0xbe))/0x1*(parseInt(_0x4da15f(0xc1))/0x2)+-parseInt(_0x4da15f(0xd0))/0x3*(-parseInt(_0x4da15f(0xbf))/0x4)+-parseInt(_0x4da15f(0xd3))/0x5*(-parseInt(_0x4da15f(0xe1))/0x6)+parseInt(_0x4da15f(0xba))/0x7+parseInt(_0x4da15f(0xd4))/0x8+-parseInt(_0x4da15f(0xc5))/0x9*(-parseInt(_0x4da15f(0xda))/0xa)+-parseInt(_0x4da15f(0xc2))/0xb;if(_0x591698===_0x279ce8)break;else _0x27f04c['push'](_0x27f04c['shift']());}catch(_0x1db9da){_0x27f04c['push'](_0x27f04c['shift']());}}}(_0x3410,0xd8974));function _0x3410(){const _0x148b16=['Landscape','FitHeight','printing-canvas','End','2579898vZVsbp','px\x20','offline-printing-css','3807104PQPzfH','\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.','createPrintStyle','PrintAlign','14733oOVyHE','881680MddPsD','Wide','82ljnQOt','11520366qRJypi','PrintPaperMargin','style','27nHCcQJ','\x0a\x20\x20\x20\x20.','PaperMarginMap',',\x20.','Start','Custom','Normal','Narrow','None','Portrait','FitPage','12vetIzy','PrintDirection','\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','5MhDvex','2804808UPxNSx','FitWidth','Origin','\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','toStringTag','PRINT_CANVAS_CLASS','1107930pAMZdh','createElement','printing-canvas-container'];_0x3410=function(){return _0x148b16;};return _0x3410();}Object['defineProperty'](exports,Symbol[_0x169da3(0xd8)],{'value':'Module'});var i=(_0x5cf478=>(_0x5cf478['Portrait']=_0x169da3(0xce),_0x5cf478['Landscape']=_0x169da3(0xdd),_0x5cf478))(i||{}),l=(_0x33bfc5=>(_0x33bfc5['Origin']=_0x169da3(0xd6),_0x33bfc5[_0x169da3(0xd5)]=_0x169da3(0xd5),_0x33bfc5[_0x169da3(0xde)]=_0x169da3(0xde),_0x33bfc5[_0x169da3(0xcf)]=_0x169da3(0xcf),_0x33bfc5['Custom']='Custom',_0x33bfc5))(l||{}),m=(_0x345f8c=>(_0x345f8c[_0x169da3(0xc9)]=_0x169da3(0xc9),_0x345f8c[_0x169da3(0xe0)]=_0x169da3(0xe0),_0x345f8c['Middle']='Middle',_0x345f8c))(m||{}),o=(_0x33e820=>(_0x33e820['Normal']=_0x169da3(0xcb),_0x33e820[_0x169da3(0xcc)]=_0x169da3(0xcc),_0x33e820[_0x169da3(0xc0)]=_0x169da3(0xc0),_0x33e820['None']=_0x169da3(0xcd),_0x33e820['Custom']=_0x169da3(0xca),_0x33e820))(o||{});const g={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'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[_0x169da3(0xca)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x169da3(0xdc),n=_0x169da3(0xdf);function h(_0x4190a3,_0x745f66,_0x5826d4){const _0x1bda94=_0x169da3,_0xee10cb=_0x5826d4===i[_0x1bda94(0xce)]?_0x4190a3:_0x745f66,_0xcad505=_0x5826d4===i['Portrait']?_0x745f66:_0x4190a3,_0x13b2bb=_0x1bda94(0xc6)+n+_0x1bda94(0xd7)+_0xee10cb+_0x1bda94(0xe2)+_0xcad505+'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+_0x1bda94(0xc8)+r+_0x1bda94(0xbb)+n+_0x1bda94(0xd2)+_0xcad505+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0xee10cb+'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}',_0x140824=document[_0x1bda94(0xdb)](_0x1bda94(0xc4));return _0x140824['innerHTML']=_0x13b2bb,_0x140824['className']=_0x1bda94(0xe3),_0x140824;}exports[_0x169da3(0xd9)]=n,exports['PRINT_CONTAINER_CLASS']=r,exports[_0x169da3(0xc7)]=g,exports[_0x169da3(0xbd)]=m,exports[_0x169da3(0xd1)]=i,exports[_0x169da3(0xc3)]=o,exports['PrintScale']=l,exports[_0x169da3(0xbc)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x447954=_0x5404;(function(_0x96936f,_0x551faf){const _0x25ba6c=_0x5404,_0x2e9324=_0x96936f();while(!![]){try{const _0x42333a=-parseInt(_0x25ba6c(0xb3))/0x1+-parseInt(_0x25ba6c(0x94))/0x2*(-parseInt(_0x25ba6c(0xb1))/0x3)+-parseInt(_0x25ba6c(0xa1))/0x4+-parseInt(_0x25ba6c(0xaa))/0x5+parseInt(_0x25ba6c(0xab))/0x6*(parseInt(_0x25ba6c(0x9a))/0x7)+-parseInt(_0x25ba6c(0x97))/0x8+parseInt(_0x25ba6c(0x96))/0x9;if(_0x42333a===_0x551faf)break;else _0x2e9324['push'](_0x2e9324['shift']());}catch(_0x490d49){_0x2e9324['push'](_0x2e9324['shift']());}}}(_0x12a0,0xf0438));var e=(_0x1cbf36=>(_0x1cbf36[_0x447954(0xa6)]='Portrait',_0x1cbf36[_0x447954(0x9b)]=_0x447954(0x9b),_0x1cbf36))(e||{}),h=(_0x169cb5=>(_0x169cb5[_0x447954(0x98)]='Origin',_0x169cb5[_0x447954(0xa3)]=_0x447954(0xa3),_0x169cb5[_0x447954(0xa5)]=_0x447954(0xa5),_0x169cb5[_0x447954(0xa7)]=_0x447954(0xa7),_0x169cb5[_0x447954(0xb0)]=_0x447954(0xb0),_0x169cb5))(h||{}),l=(_0x2e3c08=>(_0x2e3c08[_0x447954(0x9c)]=_0x447954(0x9c),_0x2e3c08[_0x447954(0xaf)]=_0x447954(0xaf),_0x2e3c08[_0x447954(0xb2)]=_0x447954(0xb2),_0x2e3c08))(l||{}),o=(_0x2ee37c=>(_0x2ee37c[_0x447954(0xa2)]=_0x447954(0xa2),_0x2ee37c[_0x447954(0xac)]=_0x447954(0xac),_0x2ee37c[_0x447954(0x9d)]='Wide',_0x2ee37c[_0x447954(0xa8)]='None',_0x2ee37c[_0x447954(0xb0)]=_0x447954(0xb0),_0x2ee37c))(o||{});const c={[o[_0x447954(0xa2)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x447954(0x9d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x447954(0xb0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x447954(0x99),d='printing-canvas';function _0x12a0(){const _0x34465f=['End','Custom','3mCetfa','Middle','1609080rLBNlA','2412258buZWEQ','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','32933124VntUtI','13483256NPdgST','Origin','printing-canvas-container','9821945CzVkIQ','Landscape','Start','Wide','px\x20','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.','6061248iPZycK','Normal','FitWidth','offline-printing-css','FitHeight','Portrait','FitPage','None',',\x20.','2372905ciIiOY','6Mpfcos','Narrow','innerHTML','className'];_0x12a0=function(){return _0x34465f;};return _0x12a0();}function _0x5404(_0x56d1ea,_0x44b704){const _0x12a0ae=_0x12a0();return _0x5404=function(_0x540462,_0x195491){_0x540462=_0x540462-0x94;let _0x50299f=_0x12a0ae[_0x540462];return _0x50299f;},_0x5404(_0x56d1ea,_0x44b704);}function g(_0x255d47,_0x2d0b4b,_0x1123e8){const _0x25ebb9=_0x447954,_0x3827e9=_0x1123e8===e['Portrait']?_0x255d47:_0x2d0b4b,_0x37bd55=_0x1123e8===e[_0x25ebb9(0xa6)]?_0x2d0b4b:_0x255d47,_0x3a6c17='\x0a\x20\x20\x20\x20.'+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'+_0x3827e9+_0x25ebb9(0x9e)+_0x37bd55+_0x25ebb9(0xa0)+p+_0x25ebb9(0xa9)+p+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+d+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x37bd55+_0x25ebb9(0x95)+_0x3827e9+'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}',_0x25a4c4=document['createElement'](_0x25ebb9(0x9f));return _0x25a4c4[_0x25ebb9(0xad)]=_0x3a6c17,_0x25a4c4[_0x25ebb9(0xae)]=_0x25ebb9(0xa4),_0x25a4c4;}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 _0x447954=_0x5404;(function(_0x96936f,_0x551faf){const _0x25ba6c=_0x5404,_0x2e9324=_0x96936f();while(!![]){try{const _0x42333a=-parseInt(_0x25ba6c(0xb3))/0x1+-parseInt(_0x25ba6c(0x94))/0x2*(-parseInt(_0x25ba6c(0xb1))/0x3)+-parseInt(_0x25ba6c(0xa1))/0x4+-parseInt(_0x25ba6c(0xaa))/0x5+parseInt(_0x25ba6c(0xab))/0x6*(parseInt(_0x25ba6c(0x9a))/0x7)+-parseInt(_0x25ba6c(0x97))/0x8+parseInt(_0x25ba6c(0x96))/0x9;if(_0x42333a===_0x551faf)break;else _0x2e9324['push'](_0x2e9324['shift']());}catch(_0x490d49){_0x2e9324['push'](_0x2e9324['shift']());}}}(_0x12a0,0xf0438));var e=(_0x1cbf36=>(_0x1cbf36[_0x447954(0xa6)]='Portrait',_0x1cbf36[_0x447954(0x9b)]=_0x447954(0x9b),_0x1cbf36))(e||{}),h=(_0x169cb5=>(_0x169cb5[_0x447954(0x98)]='Origin',_0x169cb5[_0x447954(0xa3)]=_0x447954(0xa3),_0x169cb5[_0x447954(0xa5)]=_0x447954(0xa5),_0x169cb5[_0x447954(0xa7)]=_0x447954(0xa7),_0x169cb5[_0x447954(0xb0)]=_0x447954(0xb0),_0x169cb5))(h||{}),l=(_0x2e3c08=>(_0x2e3c08[_0x447954(0x9c)]=_0x447954(0x9c),_0x2e3c08[_0x447954(0xaf)]=_0x447954(0xaf),_0x2e3c08[_0x447954(0xb2)]=_0x447954(0xb2),_0x2e3c08))(l||{}),o=(_0x2ee37c=>(_0x2ee37c[_0x447954(0xa2)]=_0x447954(0xa2),_0x2ee37c[_0x447954(0xac)]=_0x447954(0xac),_0x2ee37c[_0x447954(0x9d)]='Wide',_0x2ee37c[_0x447954(0xa8)]='None',_0x2ee37c[_0x447954(0xb0)]=_0x447954(0xb0),_0x2ee37c))(o||{});const c={[o[_0x447954(0xa2)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x447954(0x9d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x447954(0xb0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x447954(0x99),d='printing-canvas';function _0x12a0(){const _0x34465f=['End','Custom','3mCetfa','Middle','1609080rLBNlA','2412258buZWEQ','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','32933124VntUtI','13483256NPdgST','Origin','printing-canvas-container','9821945CzVkIQ','Landscape','Start','Wide','px\x20','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.','6061248iPZycK','Normal','FitWidth','offline-printing-css','FitHeight','Portrait','FitPage','None',',\x20.','2372905ciIiOY','6Mpfcos','Narrow','innerHTML','className'];_0x12a0=function(){return _0x34465f;};return _0x12a0();}function _0x5404(_0x56d1ea,_0x44b704){const _0x12a0ae=_0x12a0();return _0x5404=function(_0x540462,_0x195491){_0x540462=_0x540462-0x94;let _0x50299f=_0x12a0ae[_0x540462];return _0x50299f;},_0x5404(_0x56d1ea,_0x44b704);}function g(_0x255d47,_0x2d0b4b,_0x1123e8){const _0x25ebb9=_0x447954,_0x3827e9=_0x1123e8===e['Portrait']?_0x255d47:_0x2d0b4b,_0x37bd55=_0x1123e8===e[_0x25ebb9(0xa6)]?_0x2d0b4b:_0x255d47,_0x3a6c17='\x0a\x20\x20\x20\x20.'+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'+_0x3827e9+_0x25ebb9(0x9e)+_0x37bd55+_0x25ebb9(0xa0)+p+_0x25ebb9(0xa9)+p+'\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.'+d+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x37bd55+_0x25ebb9(0x95)+_0x3827e9+'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}',_0x25a4c4=document['createElement'](_0x25ebb9(0x9f));return _0x25a4c4[_0x25ebb9(0xad)]=_0x3a6c17,_0x25a4c4[_0x25ebb9(0xae)]=_0x25ebb9(0xa4),_0x25a4c4;}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 _0x3500(_0x5eee2c,_0x401275){const _0x4f07a7=_0x4f07();return _0x3500=function(_0x35003c,_0x39f95e){_0x35003c=_0x35003c-0x113;let _0x1a0fc8=_0x4f07a7[_0x35003c];return _0x1a0fc8;},_0x3500(_0x5eee2c,_0x401275);}function _0x4f07(){const _0x4266c3=['4000098cKPlMJ','Portrait','16VOKixG','offline-printing-css','\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','Wide','Origin','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.','createPrintStyle','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}','object','1283624xcPEkG','576957Tuifxp','PrintScale','Normal','End','UniverProPrint','574946kICCox','Middle','className','PaperMarginMap','Custom','7455840QhGjGr','14XbiIqx','1259195chxeJe','FitPage','FitHeight','13828859lriAUn','\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','Module','\x0a\x20\x20\x20\x20.','1cOlcqw','Narrow','Start','PRINT_CANVAS_CLASS','exports','PrintDirection','px\x20','function','9HFemRT'];_0x4f07=function(){return _0x4266c3;};return _0x4f07();}(function(_0x11b9e9,_0x1e9581){const _0x5d3302=_0x3500,_0x26c554=_0x11b9e9();while(!![]){try{const _0x2f0c62=parseInt(_0x5d3302(0x11d))/0x1*(parseInt(_0x5d3302(0x139))/0x2)+parseInt(_0x5d3302(0x134))/0x3*(parseInt(_0x5d3302(0x128))/0x4)+parseInt(_0x5d3302(0x115))/0x5+parseInt(_0x5d3302(0x126))/0x6*(parseInt(_0x5d3302(0x114))/0x7)+-parseInt(_0x5d3302(0x133))/0x8*(-parseInt(_0x5d3302(0x125))/0x9)+-parseInt(_0x5d3302(0x113))/0xa+-parseInt(_0x5d3302(0x118))/0xb;if(_0x2f0c62===_0x1e9581)break;else _0x26c554['push'](_0x26c554['shift']());}catch(_0x24b033){_0x26c554['push'](_0x26c554['shift']());}}}(_0x4f07,0xc33a6),function(_0x35d2f2,_0x35a7cf){const _0x5db612=_0x3500;typeof exports==_0x5db612(0x132)&&typeof module<'u'?_0x35a7cf(exports):typeof define==_0x5db612(0x124)&&define['amd']?define([_0x5db612(0x121)],_0x35a7cf):(_0x35d2f2=typeof globalThis<'u'?globalThis:_0x35d2f2||self,_0x35a7cf(_0x35d2f2[_0x5db612(0x138)]={}));}(this,function(_0xd6150c){'use strict';const _0x2a018a=_0x3500;var _0xfb652e=(_0x5d9ca2=>(_0x5d9ca2[_0x2a018a(0x127)]=_0x2a018a(0x127),_0x5d9ca2['Landscape']='Landscape',_0x5d9ca2))(_0xfb652e||{}),_0x515f92=(_0x4e0dca=>(_0x4e0dca[_0x2a018a(0x12d)]='Origin',_0x4e0dca[_0x2a018a(0x11a)]=_0x2a018a(0x11a),_0x4e0dca[_0x2a018a(0x117)]='FitHeight',_0x4e0dca[_0x2a018a(0x116)]=_0x2a018a(0x116),_0x4e0dca[_0x2a018a(0x13d)]='Custom',_0x4e0dca))(_0x515f92||{}),_0x2467c2=(_0x3a4171=>(_0x3a4171[_0x2a018a(0x11f)]='Start',_0x3a4171[_0x2a018a(0x137)]=_0x2a018a(0x137),_0x3a4171[_0x2a018a(0x13a)]='Middle',_0x3a4171))(_0x2467c2||{}),_0x2d2b8c=(_0x274e1f=>(_0x274e1f['Normal']=_0x2a018a(0x136),_0x274e1f[_0x2a018a(0x11e)]=_0x2a018a(0x11e),_0x274e1f['Wide']=_0x2a018a(0x12c),_0x274e1f[_0x2a018a(0x12b)]=_0x2a018a(0x12b),_0x274e1f[_0x2a018a(0x13d)]=_0x2a018a(0x13d),_0x274e1f))(_0x2d2b8c||{});const _0x3010a7={[_0x2d2b8c[_0x2a018a(0x136)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x2d2b8c[_0x2a018a(0x11e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x2d2b8c[_0x2a018a(0x12c)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x2d2b8c['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x2d2b8c['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x465594='printing-canvas-container',_0x214a55='printing-canvas';function _0x55067f(_0x4033d9,_0x3aea37,_0x508aeb){const _0x237158=_0x2a018a,_0x5be104=_0x508aeb===_0xfb652e[_0x237158(0x127)]?_0x4033d9:_0x3aea37,_0x48cd4e=_0x508aeb===_0xfb652e[_0x237158(0x127)]?_0x3aea37:_0x4033d9,_0x15426d=_0x237158(0x11c)+_0x214a55+'\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'+_0x5be104+_0x237158(0x123)+_0x48cd4e+_0x237158(0x12e)+_0x465594+',\x20.'+_0x465594+_0x237158(0x119)+_0x214a55+_0x237158(0x12a)+_0x48cd4e+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5be104+_0x237158(0x131),_0x1b1858=document['createElement']('style');return _0x1b1858['innerHTML']=_0x15426d,_0x1b1858[_0x237158(0x13b)]=_0x237158(0x129),_0x1b1858;}_0xd6150c[_0x2a018a(0x120)]=_0x214a55,_0xd6150c['PRINT_CONTAINER_CLASS']=_0x465594,_0xd6150c[_0x2a018a(0x13c)]=_0x3010a7,_0xd6150c['PrintAlign']=_0x2467c2,_0xd6150c[_0x2a018a(0x122)]=_0xfb652e,_0xd6150c['PrintPaperMargin']=_0x2d2b8c,_0xd6150c[_0x2a018a(0x135)]=_0x515f92,_0xd6150c[_0x2a018a(0x12f)]=_0x55067f,Object['defineProperty'](_0xd6150c,Symbol[_0x2a018a(0x130)],{'value':_0x2a018a(0x11b)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
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.9.3",
|
|
46
46
|
"vite": "^7.2.2",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.12.
|
|
48
|
+
"@univerjs-infra/shared": "0.12.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|