@univerjs-pro/print 0.12.1 → 0.12.2-nightly.202511241159
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 _0x567a7e=_0x4dde;(function(_0x19c9e3,_0x4c84c7){const _0x51278e=_0x4dde,_0x441d7a=_0x19c9e3();while(!![]){try{const _0x26a1e2=-parseInt(_0x51278e(0x190))/0x1*(-parseInt(_0x51278e(0x171))/0x2)+-parseInt(_0x51278e(0x17e))/0x3*(parseInt(_0x51278e(0x18a))/0x4)+-parseInt(_0x51278e(0x19e))/0x5*(parseInt(_0x51278e(0x170))/0x6)+-parseInt(_0x51278e(0x17d))/0x7*(-parseInt(_0x51278e(0x195))/0x8)+parseInt(_0x51278e(0x175))/0x9+-parseInt(_0x51278e(0x180))/0xa*(-parseInt(_0x51278e(0x186))/0xb)+-parseInt(_0x51278e(0x18f))/0xc;if(_0x26a1e2===_0x4c84c7)break;else _0x441d7a['push'](_0x441d7a['shift']());}catch(_0x1e6796){_0x441d7a['push'](_0x441d7a['shift']());}}}(_0x5a00,0xdbcd1));Object[_0x567a7e(0x196)](exports,Symbol[_0x567a7e(0x17a)],{'value':_0x567a7e(0x17f)});var i=(_0x345b35=>(_0x345b35[_0x567a7e(0x194)]=_0x567a7e(0x194),_0x345b35[_0x567a7e(0x18c)]=_0x567a7e(0x18c),_0x345b35))(i||{}),l=(_0x2b0a7e=>(_0x2b0a7e[_0x567a7e(0x18b)]=_0x567a7e(0x18b),_0x2b0a7e[_0x567a7e(0x192)]=_0x567a7e(0x192),_0x2b0a7e[_0x567a7e(0x184)]=_0x567a7e(0x184),_0x2b0a7e[_0x567a7e(0x198)]='FitPage',_0x2b0a7e[_0x567a7e(0x173)]=_0x567a7e(0x173),_0x2b0a7e))(l||{}),m=(_0xc43dd0=>(_0xc43dd0[_0x567a7e(0x174)]='Start',_0xc43dd0['End']=_0x567a7e(0x197),_0xc43dd0[_0x567a7e(0x18d)]=_0x567a7e(0x18d),_0xc43dd0))(m||{}),o=(_0x27be84=>(_0x27be84[_0x567a7e(0x199)]=_0x567a7e(0x199),_0x27be84[_0x567a7e(0x19c)]=_0x567a7e(0x19c),_0x27be84[_0x567a7e(0x187)]=_0x567a7e(0x187),_0x27be84['None']=_0x567a7e(0x183),_0x27be84['Custom']=_0x567a7e(0x173),_0x27be84))(o||{});function _0x4dde(_0x2b244e,_0x45f20c){const _0x5a0011=_0x5a00();return _0x4dde=function(_0x4dde04,_0x1c89b7){_0x4dde04=_0x4dde04-0x170;let _0x51ca8e=_0x5a0011[_0x4dde04];return _0x51ca8e;},_0x4dde(_0x2b244e,_0x45f20c);}const g={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x567a7e(0x19c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x567a7e(0x183)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x567a7e(0x173)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x567a7e(0x17c),n=_0x567a7e(0x172);function h(_0x45a625,_0x4dd21c,_0x11b0b9){const _0x5700a8=_0x567a7e,_0x2528f8=_0x11b0b9===i[_0x5700a8(0x194)]?_0x45a625:_0x4dd21c,_0x33f62b=_0x11b0b9===i[_0x5700a8(0x194)]?_0x4dd21c:_0x45a625,_0x50b5c1=_0x5700a8(0x19b)+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'+_0x2528f8+_0x5700a8(0x188)+_0x33f62b+_0x5700a8(0x193)+r+_0x5700a8(0x191)+r+_0x5700a8(0x177)+n+_0x5700a8(0x181)+_0x33f62b+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x2528f8+_0x5700a8(0x182),_0x409f04=document[_0x5700a8(0x189)]('style');return _0x409f04[_0x5700a8(0x17b)]=_0x50b5c1,_0x409f04[_0x5700a8(0x19d)]=_0x5700a8(0x18e),_0x409f04;}function _0x5a00(){const _0x85fafb=['defineProperty','End','FitPage','Normal','PrintDirection','\x0a\x20\x20\x20\x20.','Narrow','className','10pJzuDv','596562EWPRhP','1818250hTDtyx','printing-canvas','Custom','Start','11996433yapStE','PRINT_CONTAINER_CLASS','\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','PRINT_CANVAS_CLASS','toStringTag','innerHTML','printing-canvas-container','14UZSRwg','422283KANeEf','Module','850zygyGv','\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','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}','None','FitHeight','PaperMarginMap','133837bLdlZa','Wide','px\x20','createElement','28njovZs','Origin','Landscape','Middle','offline-printing-css','20447148XSxWka','1nXsXig',',\x20.','FitWidth','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','2048632PGvGRX'];_0x5a00=function(){return _0x85fafb;};return _0x5a00();}exports[_0x567a7e(0x179)]=n,exports[_0x567a7e(0x176)]=r,exports[_0x567a7e(0x185)]=g,exports['PrintAlign']=m,exports[_0x567a7e(0x19a)]=i,exports['PrintPaperMargin']=o,exports['PrintScale']=l,exports[_0x567a7e(0x178)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5a98(){const _0x4a3f6c=['461715RpiULX','style','px\x20','printing-canvas-container','Wide','End','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Normal','printing-canvas','711588mRTXbE','60mtlHZU','Custom','6ivHAzc','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}','2059555RCXpho','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','56330wQhMEa','FitPage','6915ErzvYI','FitHeight','innerHTML','Origin','None','Start','\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','2803424jyhMMs','Landscape','FitWidth','1233225zHXWYe','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','369ClrzDm',',\x20.','\x0a\x20\x20\x20\x20.'];_0x5a98=function(){return _0x4a3f6c;};return _0x5a98();}const _0x2fb238=_0x23da;function _0x23da(_0x29a735,_0x5cc306){const _0x5a9801=_0x5a98();return _0x23da=function(_0x23dab7,_0x5a5af0){_0x23dab7=_0x23dab7-0x1ea;let _0x54367b=_0x5a9801[_0x23dab7];return _0x54367b;},_0x23da(_0x29a735,_0x5cc306);}(function(_0x4bc27b,_0x80f56b){const _0x2255f0=_0x23da,_0xea7372=_0x4bc27b();while(!![]){try{const _0x5f1cb9=parseInt(_0x2255f0(0x1f2))/0x1+-parseInt(_0x2255f0(0x1fc))/0x2*(-parseInt(_0x2255f0(0x205))/0x3)+-parseInt(_0x2255f0(0x1fb))/0x4+parseInt(_0x2255f0(0x200))/0x5*(-parseInt(_0x2255f0(0x1fe))/0x6)+parseInt(_0x2255f0(0x1ec))/0x7+parseInt(_0x2255f0(0x20c))/0x8+parseInt(_0x2255f0(0x1ef))/0x9*(-parseInt(_0x2255f0(0x203))/0xa);if(_0x5f1cb9===_0x80f56b)break;else _0xea7372['push'](_0xea7372['shift']());}catch(_0x76208a){_0xea7372['push'](_0xea7372['shift']());}}}(_0x5a98,0x39ca3));var e=(_0xdeb71f=>(_0xdeb71f[_0x2fb238(0x202)]=_0x2fb238(0x202),_0xdeb71f[_0x2fb238(0x1ea)]=_0x2fb238(0x1ea),_0xdeb71f))(e||{}),h=(_0x275882=>(_0x275882[_0x2fb238(0x208)]=_0x2fb238(0x208),_0x275882[_0x2fb238(0x1eb)]=_0x2fb238(0x1eb),_0x275882[_0x2fb238(0x206)]=_0x2fb238(0x206),_0x275882[_0x2fb238(0x204)]=_0x2fb238(0x204),_0x275882[_0x2fb238(0x1fd)]=_0x2fb238(0x1fd),_0x275882))(h||{}),l=(_0x4f4cb2=>(_0x4f4cb2['Start']=_0x2fb238(0x20a),_0x4f4cb2['End']=_0x2fb238(0x1f7),_0x4f4cb2['Middle']='Middle',_0x4f4cb2))(l||{}),o=(_0x1b044e=>(_0x1b044e[_0x2fb238(0x1f9)]=_0x2fb238(0x1f9),_0x1b044e[_0x2fb238(0x1ed)]=_0x2fb238(0x1ed),_0x1b044e['Wide']=_0x2fb238(0x1f6),_0x1b044e[_0x2fb238(0x209)]=_0x2fb238(0x209),_0x1b044e[_0x2fb238(0x1fd)]=_0x2fb238(0x1fd),_0x1b044e))(o||{});const c={[o[_0x2fb238(0x1f9)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x2fb238(0x1ed)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x2fb238(0x1f6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x2fb238(0x209)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x2fb238(0x1fd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x2fb238(0x1f5),d=_0x2fb238(0x1fa);function g(_0x9b47d4,_0x769294,_0x57a47b){const _0x19328a=_0x2fb238,_0x4d1b26=_0x57a47b===e[_0x19328a(0x202)]?_0x9b47d4:_0x769294,_0x333d70=_0x57a47b===e['Portrait']?_0x769294:_0x9b47d4,_0x2c6a69=_0x19328a(0x1f1)+d+_0x19328a(0x20b)+_0x4d1b26+_0x19328a(0x1f4)+_0x333d70+_0x19328a(0x201)+p+_0x19328a(0x1f0)+p+_0x19328a(0x1f8)+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'+_0x333d70+_0x19328a(0x1ee)+_0x4d1b26+_0x19328a(0x1ff),_0x798feb=document['createElement'](_0x19328a(0x1f3));return _0x798feb[_0x19328a(0x207)]=_0x2c6a69,_0x798feb['className']='offline-printing-css',_0x798feb;}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
|
-
|
|
1
|
+
function _0x5a98(){const _0x4a3f6c=['461715RpiULX','style','px\x20','printing-canvas-container','Wide','End','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Normal','printing-canvas','711588mRTXbE','60mtlHZU','Custom','6ivHAzc','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}','2059555RCXpho','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','56330wQhMEa','FitPage','6915ErzvYI','FitHeight','innerHTML','Origin','None','Start','\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','2803424jyhMMs','Landscape','FitWidth','1233225zHXWYe','Narrow','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','369ClrzDm',',\x20.','\x0a\x20\x20\x20\x20.'];_0x5a98=function(){return _0x4a3f6c;};return _0x5a98();}const _0x2fb238=_0x23da;function _0x23da(_0x29a735,_0x5cc306){const _0x5a9801=_0x5a98();return _0x23da=function(_0x23dab7,_0x5a5af0){_0x23dab7=_0x23dab7-0x1ea;let _0x54367b=_0x5a9801[_0x23dab7];return _0x54367b;},_0x23da(_0x29a735,_0x5cc306);}(function(_0x4bc27b,_0x80f56b){const _0x2255f0=_0x23da,_0xea7372=_0x4bc27b();while(!![]){try{const _0x5f1cb9=parseInt(_0x2255f0(0x1f2))/0x1+-parseInt(_0x2255f0(0x1fc))/0x2*(-parseInt(_0x2255f0(0x205))/0x3)+-parseInt(_0x2255f0(0x1fb))/0x4+parseInt(_0x2255f0(0x200))/0x5*(-parseInt(_0x2255f0(0x1fe))/0x6)+parseInt(_0x2255f0(0x1ec))/0x7+parseInt(_0x2255f0(0x20c))/0x8+parseInt(_0x2255f0(0x1ef))/0x9*(-parseInt(_0x2255f0(0x203))/0xa);if(_0x5f1cb9===_0x80f56b)break;else _0xea7372['push'](_0xea7372['shift']());}catch(_0x76208a){_0xea7372['push'](_0xea7372['shift']());}}}(_0x5a98,0x39ca3));var e=(_0xdeb71f=>(_0xdeb71f[_0x2fb238(0x202)]=_0x2fb238(0x202),_0xdeb71f[_0x2fb238(0x1ea)]=_0x2fb238(0x1ea),_0xdeb71f))(e||{}),h=(_0x275882=>(_0x275882[_0x2fb238(0x208)]=_0x2fb238(0x208),_0x275882[_0x2fb238(0x1eb)]=_0x2fb238(0x1eb),_0x275882[_0x2fb238(0x206)]=_0x2fb238(0x206),_0x275882[_0x2fb238(0x204)]=_0x2fb238(0x204),_0x275882[_0x2fb238(0x1fd)]=_0x2fb238(0x1fd),_0x275882))(h||{}),l=(_0x4f4cb2=>(_0x4f4cb2['Start']=_0x2fb238(0x20a),_0x4f4cb2['End']=_0x2fb238(0x1f7),_0x4f4cb2['Middle']='Middle',_0x4f4cb2))(l||{}),o=(_0x1b044e=>(_0x1b044e[_0x2fb238(0x1f9)]=_0x2fb238(0x1f9),_0x1b044e[_0x2fb238(0x1ed)]=_0x2fb238(0x1ed),_0x1b044e['Wide']=_0x2fb238(0x1f6),_0x1b044e[_0x2fb238(0x209)]=_0x2fb238(0x209),_0x1b044e[_0x2fb238(0x1fd)]=_0x2fb238(0x1fd),_0x1b044e))(o||{});const c={[o[_0x2fb238(0x1f9)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x2fb238(0x1ed)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x2fb238(0x1f6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x2fb238(0x209)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x2fb238(0x1fd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x2fb238(0x1f5),d=_0x2fb238(0x1fa);function g(_0x9b47d4,_0x769294,_0x57a47b){const _0x19328a=_0x2fb238,_0x4d1b26=_0x57a47b===e[_0x19328a(0x202)]?_0x9b47d4:_0x769294,_0x333d70=_0x57a47b===e['Portrait']?_0x769294:_0x9b47d4,_0x2c6a69=_0x19328a(0x1f1)+d+_0x19328a(0x20b)+_0x4d1b26+_0x19328a(0x1f4)+_0x333d70+_0x19328a(0x201)+p+_0x19328a(0x1f0)+p+_0x19328a(0x1f8)+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'+_0x333d70+_0x19328a(0x1ee)+_0x4d1b26+_0x19328a(0x1ff),_0x798feb=document['createElement'](_0x19328a(0x1f3));return _0x798feb[_0x19328a(0x207)]=_0x2c6a69,_0x798feb['className']='offline-printing-css',_0x798feb;}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 _0x2ff3(){const _0x156e61=['24bcRaOQ','\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','FitPage','printing-canvas-container','Normal','318396CTazjE','6313433prCGVT','1370945gvNlMq','PrintPaperMargin','Start','FitHeight','createElement','Module','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','offline-printing-css','UniverProPrint','PrintDirection','FitWidth','Wide','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.','2405226TwyaEP','amd','1721118uocGLW','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.','Origin','function','None','className','exports','PRINT_CONTAINER_CLASS','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','1865390ZgVjRp','\x0a\x20\x20\x20\x20.','printing-canvas','Portrait','toStringTag','Landscape','PaperMarginMap','style','1SrJoUR','createPrintStyle','Custom','End',',\x20.','object','px\x20','2121426XkpstW'];_0x2ff3=function(){return _0x156e61;};return _0x2ff3();}function _0x40b5(_0x14e0c8,_0x733598){const _0x2ff33b=_0x2ff3();return _0x40b5=function(_0x40b570,_0xa9403d){_0x40b570=_0x40b570-0xc4;let _0x15e3d9=_0x2ff33b[_0x40b570];return _0x15e3d9;},_0x40b5(_0x14e0c8,_0x733598);}(function(_0x3c6d6d,_0x457f0e){const _0xb2c50a=_0x40b5,_0x5b4d33=_0x3c6d6d();while(!![]){try{const _0x3557ad=-parseInt(_0xb2c50a(0xdf))/0x1*(parseInt(_0xb2c50a(0xd7))/0x2)+parseInt(_0xb2c50a(0xcd))/0x3+parseInt(_0xb2c50a(0xec))/0x4+-parseInt(_0xb2c50a(0xee))/0x5+-parseInt(_0xb2c50a(0xcb))/0x6+parseInt(_0xb2c50a(0xed))/0x7+-parseInt(_0xb2c50a(0xe7))/0x8*(-parseInt(_0xb2c50a(0xe6))/0x9);if(_0x3557ad===_0x457f0e)break;else _0x5b4d33['push'](_0x5b4d33['shift']());}catch(_0x305310){_0x5b4d33['push'](_0x5b4d33['shift']());}}}(_0x2ff3,0x9fd13),function(_0xe9b3b0,_0x887ea2){const _0x56dc59=_0x40b5;typeof exports==_0x56dc59(0xe4)&&typeof module<'u'?_0x887ea2(exports):typeof define==_0x56dc59(0xd1)&&define[_0x56dc59(0xcc)]?define([_0x56dc59(0xd4)],_0x887ea2):(_0xe9b3b0=typeof globalThis<'u'?globalThis:_0xe9b3b0||self,_0x887ea2(_0xe9b3b0[_0x56dc59(0xc6)]={}));}(this,function(_0x4676b0){'use strict';const _0x5284a6=_0x40b5;var _0xe0861f=(_0x2ea154=>(_0x2ea154[_0x5284a6(0xda)]=_0x5284a6(0xda),_0x2ea154[_0x5284a6(0xdc)]='Landscape',_0x2ea154))(_0xe0861f||{}),_0x5258f1=(_0x2360cf=>(_0x2360cf[_0x5284a6(0xd0)]=_0x5284a6(0xd0),_0x2360cf[_0x5284a6(0xc8)]=_0x5284a6(0xc8),_0x2360cf[_0x5284a6(0xf1)]=_0x5284a6(0xf1),_0x2360cf[_0x5284a6(0xe9)]=_0x5284a6(0xe9),_0x2360cf['Custom']=_0x5284a6(0xe1),_0x2360cf))(_0x5258f1||{}),_0x5c296b=(_0x5b8d55=>(_0x5b8d55[_0x5284a6(0xf0)]='Start',_0x5b8d55[_0x5284a6(0xe2)]='End',_0x5b8d55[_0x5284a6(0xce)]='Middle',_0x5b8d55))(_0x5c296b||{}),_0x207a9d=(_0x223c78=>(_0x223c78[_0x5284a6(0xeb)]=_0x5284a6(0xeb),_0x223c78[_0x5284a6(0xf4)]=_0x5284a6(0xf4),_0x223c78['Wide']=_0x5284a6(0xc9),_0x223c78[_0x5284a6(0xd2)]='None',_0x223c78[_0x5284a6(0xe1)]=_0x5284a6(0xe1),_0x223c78))(_0x207a9d||{});const _0x5779b3={[_0x207a9d[_0x5284a6(0xeb)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x207a9d[_0x5284a6(0xf4)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x207a9d[_0x5284a6(0xc9)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x207a9d[_0x5284a6(0xd2)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x207a9d[_0x5284a6(0xe1)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1b3184=_0x5284a6(0xea),_0x50dddb=_0x5284a6(0xd9);function _0x207c71(_0x1868c3,_0x341029,_0xe5429d){const _0x27740f=_0x5284a6,_0x10552e=_0xe5429d===_0xe0861f[_0x27740f(0xda)]?_0x1868c3:_0x341029,_0xacde96=_0xe5429d===_0xe0861f[_0x27740f(0xda)]?_0x341029:_0x1868c3,_0x3055f4=_0x27740f(0xd8)+_0x50dddb+_0x27740f(0xe8)+_0x10552e+_0x27740f(0xe5)+_0xacde96+_0x27740f(0xca)+_0x1b3184+_0x27740f(0xe3)+_0x1b3184+_0x27740f(0xcf)+_0x50dddb+_0x27740f(0xc4)+_0xacde96+_0x27740f(0xd6)+_0x10552e+'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}',_0x491c79=document[_0x27740f(0xf2)](_0x27740f(0xde));return _0x491c79['innerHTML']=_0x3055f4,_0x491c79[_0x27740f(0xd3)]=_0x27740f(0xc5),_0x491c79;}_0x4676b0['PRINT_CANVAS_CLASS']=_0x50dddb,_0x4676b0[_0x5284a6(0xd5)]=_0x1b3184,_0x4676b0[_0x5284a6(0xdd)]=_0x5779b3,_0x4676b0['PrintAlign']=_0x5c296b,_0x4676b0[_0x5284a6(0xc7)]=_0xe0861f,_0x4676b0[_0x5284a6(0xef)]=_0x207a9d,_0x4676b0['PrintScale']=_0x5258f1,_0x4676b0[_0x5284a6(0xe0)]=_0x207c71,Object['defineProperty'](_0x4676b0,Symbol[_0x5284a6(0xdb)],{'value':_0x5284a6(0xf3)});}));
|
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-nightly.202511241159",
|
|
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",
|