@univerjs-pro/print 0.10.13 → 0.10.14-nightly.202511070628
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 +3 -3
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x7a9291=_0x1cde;function _0x26e1(){const _0x3c24d3=['Middle','Narrow','PrintPaperMargin','PaperMarginMap','Landscape','px\x20','PrintDirection','Origin','PRINT_CANVAS_CLASS','className','PRINT_CONTAINER_CLASS','17394000VmSLMm','Wide','2420MOLQhb','createPrintStyle','2OfWVrf','91LTEnqK','20312BmkkrZ','183cmYFjh','toStringTag','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','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.','4012VrvkrJ','\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','3140325nCfWpZ','Portrait','\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','FitHeight','\x0a\x20\x20\x20\x20.','5smSUmh','Module','Start','Normal','5276424dcAdnP','14289yWoxKn','None','712275HHYqGN','Custom','FitWidth','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}','FitPage'];_0x26e1=function(){return _0x3c24d3;};return _0x26e1();}(function(_0x96dbd5,_0x9f040b){const _0x5909a5=_0x1cde,_0x35594d=_0x96dbd5();while(!![]){try{const _0x1bafad=-parseInt(_0x5909a5(0x96))/0x1*(-parseInt(_0x5909a5(0x80))/0x2)+parseInt(_0x5909a5(0x83))/0x3*(-parseInt(_0x5909a5(0x88))/0x4)+-parseInt(_0x5909a5(0x8f))/0x5*(parseInt(_0x5909a5(0x93))/0x6)+-parseInt(_0x5909a5(0x81))/0x7*(parseInt(_0x5909a5(0x82))/0x8)+-parseInt(_0x5909a5(0x8a))/0x9+-parseInt(_0x5909a5(0x7e))/0xa*(parseInt(_0x5909a5(0x94))/0xb)+parseInt(_0x5909a5(0x7c))/0xc;if(_0x1bafad===_0x9f040b)break;else _0x35594d['push'](_0x35594d['shift']());}catch(_0x4669e8){_0x35594d['push'](_0x35594d['shift']());}}}(_0x26e1,0x80262));Object['defineProperty'](exports,Symbol[_0x7a9291(0x84)],{'value':_0x7a9291(0x90)});var i=(_0x28fc17=>(_0x28fc17['Portrait']=_0x7a9291(0x8b),_0x28fc17[_0x7a9291(0x9f)]=_0x7a9291(0x9f),_0x28fc17))(i||{}),l=(_0x17c9d9=>(_0x17c9d9[_0x7a9291(0x78)]='Origin',_0x17c9d9[_0x7a9291(0x98)]=_0x7a9291(0x98),_0x17c9d9[_0x7a9291(0x8d)]=_0x7a9291(0x8d),_0x17c9d9[_0x7a9291(0x9a)]='FitPage',_0x17c9d9[_0x7a9291(0x97)]=_0x7a9291(0x97),_0x17c9d9))(l||{}),m=(_0x5d6a01=>(_0x5d6a01[_0x7a9291(0x91)]=_0x7a9291(0x91),_0x5d6a01[_0x7a9291(0x86)]=_0x7a9291(0x86),_0x5d6a01['Middle']=_0x7a9291(0x9b),_0x5d6a01))(m||{}),o=(_0x550e0f=>(_0x550e0f[_0x7a9291(0x92)]=_0x7a9291(0x92),_0x550e0f[_0x7a9291(0x9c)]=_0x7a9291(0x9c),_0x550e0f[_0x7a9291(0x7d)]='Wide',_0x550e0f[_0x7a9291(0x95)]='None',_0x550e0f[_0x7a9291(0x97)]=_0x7a9291(0x97),_0x550e0f))(o||{});function _0x1cde(_0x256628,_0x44ca51){const _0x26e196=_0x26e1();return _0x1cde=function(_0x1cdead,_0x373220){_0x1cdead=_0x1cdead-0x78;let _0x1918b1=_0x26e196[_0x1cdead];return _0x1918b1;},_0x1cde(_0x256628,_0x44ca51);}const g={[o[_0x7a9291(0x92)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x7a9291(0x9c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x7a9291(0x7d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x7a9291(0x97)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r='printing-canvas-container',n='printing-canvas';function h(_0x2c4035,_0x26da33,_0xa1fd88){const _0x4f8aa7=_0x7a9291,_0x1c9667=_0xa1fd88===i[_0x4f8aa7(0x8b)]?_0x2c4035:_0x26da33,_0x23eeca=_0xa1fd88===i[_0x4f8aa7(0x8b)]?_0x26da33:_0x2c4035,_0x3157b4=_0x4f8aa7(0x8e)+n+_0x4f8aa7(0x89)+_0x1c9667+_0x4f8aa7(0xa0)+_0x23eeca+'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+_0x4f8aa7(0x87)+n+_0x4f8aa7(0x8c)+_0x23eeca+_0x4f8aa7(0x85)+_0x1c9667+_0x4f8aa7(0x99),_0x34d079=document['createElement']('style');return _0x34d079['innerHTML']=_0x3157b4,_0x34d079[_0x4f8aa7(0x7a)]='offline-printing-css',_0x34d079;}exports[_0x7a9291(0x79)]=n,exports[_0x7a9291(0x7b)]=r,exports[_0x7a9291(0x9e)]=g,exports['PrintAlign']=m,exports[_0x7a9291(0xa1)]=i,exports[_0x7a9291(0x9d)]=o,exports['PrintScale']=l,exports[_0x7a9291(0x7f)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3ffd(){const _0x802302=['4OdQBFD','printing-canvas-container','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}','FitPage',',\x20.','FitWidth','FitHeight','286lJirNF','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','px\x20','Middle','Landscape','\x0a\x20\x20\x20\x20.','Narrow','2215400Kcjsrr','\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','965652ccRWBK','282590vBECxt','className','261786EjDXtu','Custom','9ARZLWN','403VLmNoj','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.','598165byqSIi','18SyaGOd','\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.','12HJLTcr','None','Start','Portrait','406270AtOBQI','Normal','411436NWFggx','offline-printing-css','Origin','Wide'];_0x3ffd=function(){return _0x802302;};return _0x3ffd();}const _0x1fde94=_0x278b;(function(_0x53fd3a,_0x58fb96){const _0xd6a7a4=_0x278b,_0x9d47e6=_0x53fd3a();while(!![]){try{const _0x1854f5=-parseInt(_0xd6a7a4(0x93))/0x1*(parseInt(_0xd6a7a4(0x8d))/0x2)+parseInt(_0xd6a7a4(0xa9))/0x3*(parseInt(_0xd6a7a4(0x8f))/0x4)+-parseInt(_0xd6a7a4(0x86))/0x5*(parseInt(_0xd6a7a4(0x89))/0x6)+parseInt(_0xd6a7a4(0xa7))/0x7+parseInt(_0xd6a7a4(0xa1))/0x8*(-parseInt(_0xd6a7a4(0x87))/0x9)+-parseInt(_0xd6a7a4(0xa5))/0xa*(parseInt(_0xd6a7a4(0x9a))/0xb)+parseInt(_0xd6a7a4(0xa4))/0xc*(parseInt(_0xd6a7a4(0xaa))/0xd);if(_0x1854f5===_0x58fb96)break;else _0x9d47e6['push'](_0x9d47e6['shift']());}catch(_0x464173){_0x9d47e6['push'](_0x9d47e6['shift']());}}}(_0x3ffd,0x7a1da));function _0x278b(_0x51bcd7,_0x10c147){const _0x3ffd00=_0x3ffd();return _0x278b=function(_0x278b13,_0x2893af){_0x278b13=_0x278b13-0x86;let _0x2d8c5d=_0x3ffd00[_0x278b13];return _0x2d8c5d;},_0x278b(_0x51bcd7,_0x10c147);}var e=(_0x59ffd3=>(_0x59ffd3[_0x1fde94(0x8c)]=_0x1fde94(0x8c),_0x59ffd3[_0x1fde94(0x9e)]=_0x1fde94(0x9e),_0x59ffd3))(e||{}),h=(_0x34a276=>(_0x34a276[_0x1fde94(0x91)]=_0x1fde94(0x91),_0x34a276[_0x1fde94(0x98)]=_0x1fde94(0x98),_0x34a276[_0x1fde94(0x99)]='FitHeight',_0x34a276[_0x1fde94(0x96)]=_0x1fde94(0x96),_0x34a276[_0x1fde94(0xa8)]=_0x1fde94(0xa8),_0x34a276))(h||{}),l=(_0x455993=>(_0x455993[_0x1fde94(0x8b)]='Start',_0x455993[_0x1fde94(0xa3)]='End',_0x455993[_0x1fde94(0x9d)]=_0x1fde94(0x9d),_0x455993))(l||{}),o=(_0x556965=>(_0x556965[_0x1fde94(0x8e)]=_0x1fde94(0x8e),_0x556965[_0x1fde94(0xa0)]=_0x1fde94(0xa0),_0x556965[_0x1fde94(0x92)]=_0x1fde94(0x92),_0x556965['None']=_0x1fde94(0x8a),_0x556965['Custom']=_0x1fde94(0xa8),_0x556965))(o||{});const c={[o[_0x1fde94(0x8e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1fde94(0xa0)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1fde94(0x92)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x1fde94(0xa8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1fde94(0x94),d='printing-canvas';function g(_0x6de7cd,_0x35dc51,_0x3e6b98){const _0x8efc84=_0x1fde94,_0x49f325=_0x3e6b98===e[_0x8efc84(0x8c)]?_0x6de7cd:_0x35dc51,_0x268502=_0x3e6b98===e[_0x8efc84(0x8c)]?_0x35dc51:_0x6de7cd,_0x324cd0=_0x8efc84(0x9f)+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'+_0x49f325+_0x8efc84(0x9c)+_0x268502+_0x8efc84(0xab)+p+_0x8efc84(0x97)+p+_0x8efc84(0x88)+d+_0x8efc84(0xa2)+_0x268502+_0x8efc84(0x9b)+_0x49f325+_0x8efc84(0x95),_0x4b0979=document['createElement']('style');return _0x4b0979['innerHTML']=_0x324cd0,_0x4b0979[_0x8efc84(0xa6)]=_0x8efc84(0x90),_0x4b0979;}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
|
-
function
|
|
1
|
+
function _0x3ffd(){const _0x802302=['4OdQBFD','printing-canvas-container','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}','FitPage',',\x20.','FitWidth','FitHeight','286lJirNF','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','px\x20','Middle','Landscape','\x0a\x20\x20\x20\x20.','Narrow','2215400Kcjsrr','\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','965652ccRWBK','282590vBECxt','className','261786EjDXtu','Custom','9ARZLWN','403VLmNoj','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.','598165byqSIi','18SyaGOd','\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.','12HJLTcr','None','Start','Portrait','406270AtOBQI','Normal','411436NWFggx','offline-printing-css','Origin','Wide'];_0x3ffd=function(){return _0x802302;};return _0x3ffd();}const _0x1fde94=_0x278b;(function(_0x53fd3a,_0x58fb96){const _0xd6a7a4=_0x278b,_0x9d47e6=_0x53fd3a();while(!![]){try{const _0x1854f5=-parseInt(_0xd6a7a4(0x93))/0x1*(parseInt(_0xd6a7a4(0x8d))/0x2)+parseInt(_0xd6a7a4(0xa9))/0x3*(parseInt(_0xd6a7a4(0x8f))/0x4)+-parseInt(_0xd6a7a4(0x86))/0x5*(parseInt(_0xd6a7a4(0x89))/0x6)+parseInt(_0xd6a7a4(0xa7))/0x7+parseInt(_0xd6a7a4(0xa1))/0x8*(-parseInt(_0xd6a7a4(0x87))/0x9)+-parseInt(_0xd6a7a4(0xa5))/0xa*(parseInt(_0xd6a7a4(0x9a))/0xb)+parseInt(_0xd6a7a4(0xa4))/0xc*(parseInt(_0xd6a7a4(0xaa))/0xd);if(_0x1854f5===_0x58fb96)break;else _0x9d47e6['push'](_0x9d47e6['shift']());}catch(_0x464173){_0x9d47e6['push'](_0x9d47e6['shift']());}}}(_0x3ffd,0x7a1da));function _0x278b(_0x51bcd7,_0x10c147){const _0x3ffd00=_0x3ffd();return _0x278b=function(_0x278b13,_0x2893af){_0x278b13=_0x278b13-0x86;let _0x2d8c5d=_0x3ffd00[_0x278b13];return _0x2d8c5d;},_0x278b(_0x51bcd7,_0x10c147);}var e=(_0x59ffd3=>(_0x59ffd3[_0x1fde94(0x8c)]=_0x1fde94(0x8c),_0x59ffd3[_0x1fde94(0x9e)]=_0x1fde94(0x9e),_0x59ffd3))(e||{}),h=(_0x34a276=>(_0x34a276[_0x1fde94(0x91)]=_0x1fde94(0x91),_0x34a276[_0x1fde94(0x98)]=_0x1fde94(0x98),_0x34a276[_0x1fde94(0x99)]='FitHeight',_0x34a276[_0x1fde94(0x96)]=_0x1fde94(0x96),_0x34a276[_0x1fde94(0xa8)]=_0x1fde94(0xa8),_0x34a276))(h||{}),l=(_0x455993=>(_0x455993[_0x1fde94(0x8b)]='Start',_0x455993[_0x1fde94(0xa3)]='End',_0x455993[_0x1fde94(0x9d)]=_0x1fde94(0x9d),_0x455993))(l||{}),o=(_0x556965=>(_0x556965[_0x1fde94(0x8e)]=_0x1fde94(0x8e),_0x556965[_0x1fde94(0xa0)]=_0x1fde94(0xa0),_0x556965[_0x1fde94(0x92)]=_0x1fde94(0x92),_0x556965['None']=_0x1fde94(0x8a),_0x556965['Custom']=_0x1fde94(0xa8),_0x556965))(o||{});const c={[o[_0x1fde94(0x8e)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x1fde94(0xa0)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1fde94(0x92)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x1fde94(0xa8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1fde94(0x94),d='printing-canvas';function g(_0x6de7cd,_0x35dc51,_0x3e6b98){const _0x8efc84=_0x1fde94,_0x49f325=_0x3e6b98===e[_0x8efc84(0x8c)]?_0x6de7cd:_0x35dc51,_0x268502=_0x3e6b98===e[_0x8efc84(0x8c)]?_0x35dc51:_0x6de7cd,_0x324cd0=_0x8efc84(0x9f)+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'+_0x49f325+_0x8efc84(0x9c)+_0x268502+_0x8efc84(0xab)+p+_0x8efc84(0x97)+p+_0x8efc84(0x88)+d+_0x8efc84(0xa2)+_0x268502+_0x8efc84(0x9b)+_0x49f325+_0x8efc84(0x95),_0x4b0979=document['createElement']('style');return _0x4b0979['innerHTML']=_0x324cd0,_0x4b0979[_0x8efc84(0xa6)]=_0x8efc84(0x90),_0x4b0979;}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(_0x175775,_0x20216c){const _0x469442=_0x53fc,_0x239342=_0x175775();while(!![]){try{const _0x3ab543=-parseInt(_0x469442(0xd7))/0x1*(parseInt(_0x469442(0xd2))/0x2)+-parseInt(_0x469442(0xf1))/0x3*(-parseInt(_0x469442(0xed))/0x4)+-parseInt(_0x469442(0xf3))/0x5*(parseInt(_0x469442(0xda))/0x6)+parseInt(_0x469442(0xdd))/0x7+parseInt(_0x469442(0xfb))/0x8*(parseInt(_0x469442(0xd9))/0x9)+parseInt(_0x469442(0xe2))/0xa+-parseInt(_0x469442(0xef))/0xb*(parseInt(_0x469442(0xe7))/0xc);if(_0x3ab543===_0x20216c)break;else _0x239342['push'](_0x239342['shift']());}catch(_0x2e2eee){_0x239342['push'](_0x239342['shift']());}}}(_0x5647,0xb87d2),function(_0x149015,_0x3b7051){const _0x55f9b2=_0x53fc;typeof exports=='object'&&typeof module<'u'?_0x3b7051(exports):typeof define==_0x55f9b2(0xdf)&&define[_0x55f9b2(0xd4)]?define([_0x55f9b2(0xe3)],_0x3b7051):(_0x149015=typeof globalThis<'u'?globalThis:_0x149015||self,_0x3b7051(_0x149015[_0x55f9b2(0xd1)]={}));}(this,function(_0x5665a3){'use strict';const _0x1e907d=_0x53fc;var _0x478236=(_0x106820=>(_0x106820[_0x1e907d(0xd3)]='Portrait',_0x106820[_0x1e907d(0xf7)]='Landscape',_0x106820))(_0x478236||{}),_0x1e2de6=(_0x52a43e=>(_0x52a43e[_0x1e907d(0xe4)]=_0x1e907d(0xe4),_0x52a43e[_0x1e907d(0xd6)]=_0x1e907d(0xd6),_0x52a43e[_0x1e907d(0xee)]=_0x1e907d(0xee),_0x52a43e[_0x1e907d(0xf9)]=_0x1e907d(0xf9),_0x52a43e[_0x1e907d(0xfd)]=_0x1e907d(0xfd),_0x52a43e))(_0x1e2de6||{}),_0x40d7ae=(_0x5e8db7=>(_0x5e8db7[_0x1e907d(0xf0)]=_0x1e907d(0xf0),_0x5e8db7[_0x1e907d(0xfa)]=_0x1e907d(0xfa),_0x5e8db7[_0x1e907d(0xea)]=_0x1e907d(0xea),_0x5e8db7))(_0x40d7ae||{}),_0xbf96f5=(_0x16bb87=>(_0x16bb87[_0x1e907d(0xdc)]=_0x1e907d(0xdc),_0x16bb87[_0x1e907d(0xf4)]=_0x1e907d(0xf4),_0x16bb87[_0x1e907d(0xe5)]=_0x1e907d(0xe5),_0x16bb87[_0x1e907d(0xcd)]=_0x1e907d(0xcd),_0x16bb87[_0x1e907d(0xfd)]=_0x1e907d(0xfd),_0x16bb87))(_0xbf96f5||{});const _0x1c19ee={[_0xbf96f5[_0x1e907d(0xdc)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0xbf96f5[_0x1e907d(0xf4)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0xbf96f5['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0xbf96f5[_0x1e907d(0xcd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0xbf96f5[_0x1e907d(0xfd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x37cfca='printing-canvas-container',_0x647534=_0x1e907d(0xd0);function _0x184bcd(_0x150505,_0x449f07,_0x4a7c54){const _0x4e11fa=_0x1e907d,_0xff87b2=_0x4a7c54===_0x478236[_0x4e11fa(0xd3)]?_0x150505:_0x449f07,_0x169338=_0x4a7c54===_0x478236[_0x4e11fa(0xd3)]?_0x449f07:_0x150505,_0x17c3a4=_0x4e11fa(0xfe)+_0x647534+_0x4e11fa(0xde)+_0xff87b2+_0x4e11fa(0xe9)+_0x169338+_0x4e11fa(0xf2)+_0x37cfca+_0x4e11fa(0xec)+_0x37cfca+_0x4e11fa(0xe0)+_0x647534+_0x4e11fa(0xd5)+_0x169338+_0x4e11fa(0xf6)+_0xff87b2+_0x4e11fa(0xcf),_0x6c574a=document[_0x4e11fa(0xe6)]('style');return _0x6c574a['innerHTML']=_0x17c3a4,_0x6c574a['className']=_0x4e11fa(0xe1),_0x6c574a;}_0x5665a3[_0x1e907d(0xdb)]=_0x647534,_0x5665a3[_0x1e907d(0xeb)]=_0x37cfca,_0x5665a3[_0x1e907d(0xd8)]=_0x1c19ee,_0x5665a3['PrintAlign']=_0x40d7ae,_0x5665a3[_0x1e907d(0xe8)]=_0x478236,_0x5665a3['PrintPaperMargin']=_0xbf96f5,_0x5665a3[_0x1e907d(0xf8)]=_0x1e2de6,_0x5665a3[_0x1e907d(0xfc)]=_0x184bcd,Object[_0x1e907d(0xf5)](_0x5665a3,Symbol['toStringTag'],{'value':_0x1e907d(0xce)});}));function _0x53fc(_0x2b8375,_0x5c73b0){const _0x564766=_0x5647();return _0x53fc=function(_0x53fc2f,_0x5a2353){_0x53fc2f=_0x53fc2f-0xcd;let _0x303160=_0x564766[_0x53fc2f];return _0x303160;},_0x53fc(_0x2b8375,_0x5c73b0);}function _0x5647(){const _0x8fd989=['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.','44495zVxOsJ','Narrow','defineProperty','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','PrintScale','FitPage','End','8iUoISv','createPrintStyle','Custom','\x0a\x20\x20\x20\x20.','None','Module','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}','printing-canvas','UniverProPrint','4cdrLvB','Portrait','amd','\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','FitWidth','235558MrGqFX','PaperMarginMap','2581254kDkWlV','606YplWrW','PRINT_CANVAS_CLASS','Normal','7910819wQPnIy','\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','function','\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.','offline-printing-css','13446710IJcykl','exports','Origin','Wide','createElement','10320TBPBuV','PrintDirection','px\x20','Middle','PRINT_CONTAINER_CLASS',',\x20.','64836KvMkqt','FitHeight','17050kBcyLU','Start','129blGcel'];_0x5647=function(){return _0x8fd989;};return _0x5647();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.14-nightly.202511070628",
|
|
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.1.
|
|
46
|
+
"vite": "^7.1.12",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.10.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.14"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|