@univerjs-pro/print 0.15.1 → 0.15.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 _0x3a8d50=_0x1037;(function(_0x1a2b71,_0x9eeb40){const _0x41f4fe=_0x1037,_0x508ee5=_0x1a2b71();while(!![]){try{const _0x4de5f4=parseInt(_0x41f4fe(0x9f))/0x1*(-parseInt(_0x41f4fe(0xb5))/0x2)+-parseInt(_0x41f4fe(0xc1))/0x3+-parseInt(_0x41f4fe(0xb7))/0x4+parseInt(_0x41f4fe(0xb9))/0x5*(-parseInt(_0x41f4fe(0xa6))/0x6)+-parseInt(_0x41f4fe(0x9e))/0x7*(parseInt(_0x41f4fe(0xb0))/0x8)+parseInt(_0x41f4fe(0xad))/0x9*(-parseInt(_0x41f4fe(0xb8))/0xa)+parseInt(_0x41f4fe(0xb3))/0xb;if(_0x4de5f4===_0x9eeb40)break;else _0x508ee5['push'](_0x508ee5['shift']());}catch(_0x234bed){_0x508ee5['push'](_0x508ee5['shift']());}}}(_0x1619,0xcfa45));Object[_0x3a8d50(0xbc)](exports,Symbol[_0x3a8d50(0xbd)],{'value':_0x3a8d50(0xa0)});var i=(_0x3a59da=>(_0x3a59da[_0x3a8d50(0x9d)]='Portrait',_0x3a59da[_0x3a8d50(0xbf)]=_0x3a8d50(0xbf),_0x3a59da))(i||{}),l=(_0x3f51e0=>(_0x3f51e0[_0x3a8d50(0xb1)]='Origin',_0x3f51e0['FitWidth']='FitWidth',_0x3f51e0[_0x3a8d50(0xc5)]='FitHeight',_0x3f51e0[_0x3a8d50(0xc0)]=_0x3a8d50(0xc0),_0x3f51e0[_0x3a8d50(0x9b)]=_0x3a8d50(0x9b),_0x3f51e0))(l||{}),m=(_0x3d2684=>(_0x3d2684[_0x3a8d50(0xc6)]=_0x3a8d50(0xc6),_0x3d2684[_0x3a8d50(0xb6)]=_0x3a8d50(0xb6),_0x3d2684[_0x3a8d50(0xa7)]=_0x3a8d50(0xa7),_0x3d2684))(m||{}),o=(_0x146fd6=>(_0x146fd6['Normal']='Normal',_0x146fd6['Narrow']=_0x3a8d50(0xb4),_0x146fd6[_0x3a8d50(0xb2)]=_0x3a8d50(0xb2),_0x146fd6[_0x3a8d50(0x9c)]=_0x3a8d50(0x9c),_0x146fd6[_0x3a8d50(0x9b)]='Custom',_0x146fd6))(o||{});function _0x1037(_0x3e957a,_0xe17bf){_0x3e957a=_0x3e957a-0x9b;const _0x161977=_0x1619();let _0x103712=_0x161977[_0x3e957a];return _0x103712;}const g={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x3a8d50(0xb4)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3a8d50(0xb2)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3a8d50(0x9c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x3a8d50(0x9b)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x3a8d50(0xa3),n=_0x3a8d50(0xa5);function h(_0x48e9a7,_0x52db3b,_0x5bd204){const _0x304534=_0x3a8d50,_0x1bfc7b=_0x5bd204===i[_0x304534(0x9d)]?_0x48e9a7:_0x52db3b,_0x720cdf=_0x5bd204===i[_0x304534(0x9d)]?_0x52db3b:_0x48e9a7,_0x1bbede=_0x304534(0xc7)+n+_0x304534(0xac)+_0x1bfc7b+_0x304534(0xc4)+_0x720cdf+_0x304534(0xc2)+r+_0x304534(0xae)+r+_0x304534(0xbb)+n+_0x304534(0xbe)+_0x720cdf+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x1bfc7b+_0x304534(0xab),_0x224bda=document[_0x304534(0xa9)](_0x304534(0xaa));return _0x224bda['innerHTML']=_0x1bbede,_0x224bda[_0x304534(0xa4)]=_0x304534(0xa8),_0x224bda;}function _0x1619(){const _0x1c1fee=['Narrow','127586FRMObV','End','2017072uxxAqc','12830Vevcof','53885FFhBsy','createPrintStyle','\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.','defineProperty','toStringTag','\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','Landscape','FitPage','526773eMCHYy','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.','PRINT_CONTAINER_CLASS','px\x20','FitHeight','Start','\x0a\x20\x20\x20\x20.','Custom','None','Portrait','7600999ZYIwMJ','2yUiOSX','Module','PrintAlign','PrintDirection','printing-canvas-container','className','printing-canvas','204aLjGLl','Middle','offline-printing-css','createElement','style','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}','\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','3744KsmgoM',',\x20.','PrintScale','8bPCrNg','Origin','Wide','40083439opBIgJ'];_0x1619=function(){return _0x1c1fee;};return _0x1619();}exports['PRINT_CANVAS_CLASS']=n,exports[_0x3a8d50(0xc3)]=r,exports['PaperMarginMap']=g,exports[_0x3a8d50(0xa1)]=m,exports[_0x3a8d50(0xa2)]=i,exports['PrintPaperMargin']=o,exports[_0x3a8d50(0xaf)]=l,exports[_0x3a8d50(0xba)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xe32073=_0x31f8;(function(_0x4d07f0,_0x425c1a){const _0x3ab023=_0x31f8,_0x4481d9=_0x4d07f0();while(!![]){try{const _0x3b3735=parseInt(_0x3ab023(0xa5))/0x1*(parseInt(_0x3ab023(0x96))/0x2)+-parseInt(_0x3ab023(0x9a))/0x3*(-parseInt(_0x3ab023(0xb7))/0x4)+parseInt(_0x3ab023(0x9e))/0x5+-parseInt(_0x3ab023(0xb2))/0x6+parseInt(_0x3ab023(0xa9))/0x7*(-parseInt(_0x3ab023(0x99))/0x8)+parseInt(_0x3ab023(0x9b))/0x9*(parseInt(_0x3ab023(0xb9))/0xa)+-parseInt(_0x3ab023(0xb8))/0xb*(-parseInt(_0x3ab023(0xb1))/0xc);if(_0x3b3735===_0x425c1a)break;else _0x4481d9['push'](_0x4481d9['shift']());}catch(_0x4bb66d){_0x4481d9['push'](_0x4481d9['shift']());}}}(_0x1992,0xc48db));var e=(_0x2b13e4=>(_0x2b13e4['Portrait']='Portrait',_0x2b13e4[_0xe32073(0xa8)]=_0xe32073(0xa8),_0x2b13e4))(e||{}),h=(_0x29c3ad=>(_0x29c3ad[_0xe32073(0x9d)]='Origin',_0x29c3ad[_0xe32073(0xb0)]=_0xe32073(0xb0),_0x29c3ad[_0xe32073(0x95)]=_0xe32073(0x95),_0x29c3ad[_0xe32073(0xa0)]=_0xe32073(0xa0),_0x29c3ad[_0xe32073(0xa1)]='Custom',_0x29c3ad))(h||{}),l=(_0x2f0f26=>(_0x2f0f26[_0xe32073(0xa2)]='Start',_0x2f0f26[_0xe32073(0xaf)]=_0xe32073(0xaf),_0x2f0f26[_0xe32073(0x9c)]=_0xe32073(0x9c),_0x2f0f26))(l||{}),o=(_0x16e781=>(_0x16e781[_0xe32073(0xaa)]='Normal',_0x16e781[_0xe32073(0xad)]='Narrow',_0x16e781[_0xe32073(0xa6)]=_0xe32073(0xa6),_0x16e781[_0xe32073(0x94)]=_0xe32073(0x94),_0x16e781[_0xe32073(0xa1)]=_0xe32073(0xa1),_0x16e781))(o||{});function _0x1992(){const _0x56c2ef=['className','795192QAnZts','3ORbmMq','18ZylRQV','Middle','Origin','844835ugaNgn','createElement','FitPage','Custom','Start','innerHTML',',\x20.','3ujXEbS','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','63WXcHBJ','Normal','Portrait','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.','Narrow','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','End','FitWidth','12JmhqvO','4970826FrkjwQ','style','\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','\x0a\x20\x20\x20\x20.','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','5732072FvfRhp','3907849gFgOBK','2849270yxndVE','None','FitHeight','698szzgdQ','printing-canvas-container'];_0x1992=function(){return _0x56c2ef;};return _0x1992();}const c={[o[_0xe32073(0xaa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0xe32073(0xad)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0xe32073(0xa6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0xe32073(0xa1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0xe32073(0x97),d='printing-canvas';function _0x31f8(_0x5b175f,_0x264e49){_0x5b175f=_0x5b175f-0x94;const _0x199228=_0x1992();let _0x31f81d=_0x199228[_0x5b175f];return _0x31f81d;}function g(_0x6545aa,_0x3505fd,_0x5a9331){const _0x4ba9b1=_0xe32073,_0xf1f77d=_0x5a9331===e[_0x4ba9b1(0xab)]?_0x6545aa:_0x3505fd,_0x1f5685=_0x5a9331===e[_0x4ba9b1(0xab)]?_0x3505fd:_0x6545aa,_0x58984f=_0x4ba9b1(0xb5)+d+_0x4ba9b1(0xb4)+_0xf1f77d+'px\x20'+_0x1f5685+_0x4ba9b1(0xac)+p+_0x4ba9b1(0xa4)+p+_0x4ba9b1(0xb6)+d+_0x4ba9b1(0xae)+_0x1f5685+_0x4ba9b1(0xa7)+_0xf1f77d+'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}',_0x5a1b1c=document[_0x4ba9b1(0x9f)](_0x4ba9b1(0xb3));return _0x5a1b1c[_0x4ba9b1(0xa3)]=_0x58984f,_0x5a1b1c[_0x4ba9b1(0x98)]='offline-printing-css',_0x5a1b1c;}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 _0xe32073=_0x31f8;(function(_0x4d07f0,_0x425c1a){const _0x3ab023=_0x31f8,_0x4481d9=_0x4d07f0();while(!![]){try{const _0x3b3735=parseInt(_0x3ab023(0xa5))/0x1*(parseInt(_0x3ab023(0x96))/0x2)+-parseInt(_0x3ab023(0x9a))/0x3*(-parseInt(_0x3ab023(0xb7))/0x4)+parseInt(_0x3ab023(0x9e))/0x5+-parseInt(_0x3ab023(0xb2))/0x6+parseInt(_0x3ab023(0xa9))/0x7*(-parseInt(_0x3ab023(0x99))/0x8)+parseInt(_0x3ab023(0x9b))/0x9*(parseInt(_0x3ab023(0xb9))/0xa)+-parseInt(_0x3ab023(0xb8))/0xb*(-parseInt(_0x3ab023(0xb1))/0xc);if(_0x3b3735===_0x425c1a)break;else _0x4481d9['push'](_0x4481d9['shift']());}catch(_0x4bb66d){_0x4481d9['push'](_0x4481d9['shift']());}}}(_0x1992,0xc48db));var e=(_0x2b13e4=>(_0x2b13e4['Portrait']='Portrait',_0x2b13e4[_0xe32073(0xa8)]=_0xe32073(0xa8),_0x2b13e4))(e||{}),h=(_0x29c3ad=>(_0x29c3ad[_0xe32073(0x9d)]='Origin',_0x29c3ad[_0xe32073(0xb0)]=_0xe32073(0xb0),_0x29c3ad[_0xe32073(0x95)]=_0xe32073(0x95),_0x29c3ad[_0xe32073(0xa0)]=_0xe32073(0xa0),_0x29c3ad[_0xe32073(0xa1)]='Custom',_0x29c3ad))(h||{}),l=(_0x2f0f26=>(_0x2f0f26[_0xe32073(0xa2)]='Start',_0x2f0f26[_0xe32073(0xaf)]=_0xe32073(0xaf),_0x2f0f26[_0xe32073(0x9c)]=_0xe32073(0x9c),_0x2f0f26))(l||{}),o=(_0x16e781=>(_0x16e781[_0xe32073(0xaa)]='Normal',_0x16e781[_0xe32073(0xad)]='Narrow',_0x16e781[_0xe32073(0xa6)]=_0xe32073(0xa6),_0x16e781[_0xe32073(0x94)]=_0xe32073(0x94),_0x16e781[_0xe32073(0xa1)]=_0xe32073(0xa1),_0x16e781))(o||{});function _0x1992(){const _0x56c2ef=['className','795192QAnZts','3ORbmMq','18ZylRQV','Middle','Origin','844835ugaNgn','createElement','FitPage','Custom','Start','innerHTML',',\x20.','3ujXEbS','Wide','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','63WXcHBJ','Normal','Portrait','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.','Narrow','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','End','FitWidth','12JmhqvO','4970826FrkjwQ','style','\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','\x0a\x20\x20\x20\x20.','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','5732072FvfRhp','3907849gFgOBK','2849270yxndVE','None','FitHeight','698szzgdQ','printing-canvas-container'];_0x1992=function(){return _0x56c2ef;};return _0x1992();}const c={[o[_0xe32073(0xaa)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0xe32073(0xad)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0xe32073(0xa6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0xe32073(0xa1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0xe32073(0x97),d='printing-canvas';function _0x31f8(_0x5b175f,_0x264e49){_0x5b175f=_0x5b175f-0x94;const _0x199228=_0x1992();let _0x31f81d=_0x199228[_0x5b175f];return _0x31f81d;}function g(_0x6545aa,_0x3505fd,_0x5a9331){const _0x4ba9b1=_0xe32073,_0xf1f77d=_0x5a9331===e[_0x4ba9b1(0xab)]?_0x6545aa:_0x3505fd,_0x1f5685=_0x5a9331===e[_0x4ba9b1(0xab)]?_0x3505fd:_0x6545aa,_0x58984f=_0x4ba9b1(0xb5)+d+_0x4ba9b1(0xb4)+_0xf1f77d+'px\x20'+_0x1f5685+_0x4ba9b1(0xac)+p+_0x4ba9b1(0xa4)+p+_0x4ba9b1(0xb6)+d+_0x4ba9b1(0xae)+_0x1f5685+_0x4ba9b1(0xa7)+_0xf1f77d+'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}',_0x5a1b1c=document[_0x4ba9b1(0x9f)](_0x4ba9b1(0xb3));return _0x5a1b1c[_0x4ba9b1(0xa3)]=_0x58984f,_0x5a1b1c[_0x4ba9b1(0x98)]='offline-printing-css',_0x5a1b1c;}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 _0x5bb1(){const _0x1b440e=['PaperMarginMap','px\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}','Middle','UniverProPrint','End',',\x20.','1483048FAixvI','3vvmNfX','931fbNnug','innerHTML','181787ksUzZh','exports','createElement','PrintDirection','object','4PFRXJo','Custom','toStringTag','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','2257365zmnHkF','2755960bWLIKa','\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','5433111inINfe','Landscape','PRINT_CANVAS_CLASS','Origin','Module','PrintScale','offline-printing-css','Wide','None','Narrow','Portrait','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','FitHeight','Normal','Start','function','1401450PweynO','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.','className','FitWidth','7482veAhCT','PRINT_CONTAINER_CLASS'];_0x5bb1=function(){return _0x1b440e;};return _0x5bb1();}function _0x5654(_0x225ba7,_0x293e21){_0x225ba7=_0x225ba7-0x102;const _0x5bb1d4=_0x5bb1();let _0x5654a5=_0x5bb1d4[_0x225ba7];return _0x5654a5;}(function(_0x533fc9,_0x432085){const _0x129946=_0x5654,_0x4c3fed=_0x533fc9();while(!![]){try{const _0x3b34e0=-parseInt(_0x129946(0x118))/0x1*(-parseInt(_0x129946(0x11d))/0x2)+parseInt(_0x129946(0x115))/0x3*(parseInt(_0x129946(0x114))/0x4)+-parseInt(_0x129946(0x122))/0x5+parseInt(_0x129946(0x10b))/0x6*(parseInt(_0x129946(0x116))/0x7)+parseInt(_0x129946(0x123))/0x8+-parseInt(_0x129946(0x125))/0x9+parseInt(_0x129946(0x107))/0xa;if(_0x3b34e0===_0x432085)break;else _0x4c3fed['push'](_0x4c3fed['shift']());}catch(_0x577355){_0x4c3fed['push'](_0x4c3fed['shift']());}}}(_0x5bb1,0x507cb),function(_0x2363a4,_0x39c1ba){const _0x1347c5=_0x5654;typeof exports==_0x1347c5(0x11c)&&typeof module<'u'?_0x39c1ba(exports):typeof define==_0x1347c5(0x106)&&define['amd']?define([_0x1347c5(0x119)],_0x39c1ba):(_0x2363a4=typeof globalThis<'u'?globalThis:_0x2363a4||self,_0x39c1ba(_0x2363a4[_0x1347c5(0x111)]={}));}(this,function(_0x2220d9){'use strict';const _0x45dcff=_0x5654;var _0x497134=(_0x1cdf44=>(_0x1cdf44[_0x45dcff(0x12f)]=_0x45dcff(0x12f),_0x1cdf44[_0x45dcff(0x126)]=_0x45dcff(0x126),_0x1cdf44))(_0x497134||{}),_0x5cbd01=(_0x3ad0f7=>(_0x3ad0f7[_0x45dcff(0x128)]='Origin',_0x3ad0f7[_0x45dcff(0x10a)]=_0x45dcff(0x10a),_0x3ad0f7['FitHeight']=_0x45dcff(0x103),_0x3ad0f7[_0x45dcff(0x120)]=_0x45dcff(0x120),_0x3ad0f7['Custom']=_0x45dcff(0x11e),_0x3ad0f7))(_0x5cbd01||{}),_0x94b2df=(_0x5112fc=>(_0x5112fc[_0x45dcff(0x105)]=_0x45dcff(0x105),_0x5112fc[_0x45dcff(0x112)]=_0x45dcff(0x112),_0x5112fc[_0x45dcff(0x110)]=_0x45dcff(0x110),_0x5112fc))(_0x94b2df||{}),_0x23c3bf=(_0xfef29b=>(_0xfef29b[_0x45dcff(0x104)]=_0x45dcff(0x104),_0xfef29b[_0x45dcff(0x12e)]=_0x45dcff(0x12e),_0xfef29b['Wide']=_0x45dcff(0x12c),_0xfef29b[_0x45dcff(0x12d)]=_0x45dcff(0x12d),_0xfef29b[_0x45dcff(0x11e)]=_0x45dcff(0x11e),_0xfef29b))(_0x23c3bf||{});const _0x33db9c={[_0x23c3bf[_0x45dcff(0x104)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x23c3bf[_0x45dcff(0x12e)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x23c3bf['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x23c3bf['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x23c3bf[_0x45dcff(0x11e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1da9c3='printing-canvas-container',_0x515642='printing-canvas';function _0x15633d(_0x3b245f,_0x4a0e97,_0x515e2f){const _0x3b5e77=_0x45dcff,_0x5718c0=_0x515e2f===_0x497134['Portrait']?_0x3b245f:_0x4a0e97,_0x526204=_0x515e2f===_0x497134[_0x3b5e77(0x12f)]?_0x4a0e97:_0x3b245f,_0x5cfec9='\x0a\x20\x20\x20\x20.'+_0x515642+_0x3b5e77(0x121)+_0x5718c0+_0x3b5e77(0x10e)+_0x526204+_0x3b5e77(0x108)+_0x1da9c3+_0x3b5e77(0x113)+_0x1da9c3+_0x3b5e77(0x102)+_0x515642+_0x3b5e77(0x124)+_0x526204+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5718c0+_0x3b5e77(0x10f),_0x17b81c=document[_0x3b5e77(0x11a)]('style');return _0x17b81c[_0x3b5e77(0x117)]=_0x5cfec9,_0x17b81c[_0x3b5e77(0x109)]=_0x3b5e77(0x12b),_0x17b81c;}_0x2220d9[_0x45dcff(0x127)]=_0x515642,_0x2220d9[_0x45dcff(0x10c)]=_0x1da9c3,_0x2220d9[_0x45dcff(0x10d)]=_0x33db9c,_0x2220d9['PrintAlign']=_0x94b2df,_0x2220d9[_0x45dcff(0x11b)]=_0x497134,_0x2220d9['PrintPaperMargin']=_0x23c3bf,_0x2220d9[_0x45dcff(0x12a)]=_0x5cbd01,_0x2220d9['createPrintStyle']=_0x15633d,Object['defineProperty'](_0x2220d9,Symbol[_0x45dcff(0x11f)],{'value':_0x45dcff(0x129)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.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.3.1",
|
|
47
47
|
"vitest": "^4.0.16",
|
|
48
|
-
"@univerjs-infra/shared": "0.15.
|
|
48
|
+
"@univerjs-infra/shared": "0.15.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|