@univerjs-pro/print 0.15.5 → 0.16.0-insiders.20260302-b09f1e4
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 _0x4f14b4=_0x7f23;(function(_0x2e0bd3,_0x80c8ab){const _0x10e303=_0x7f23,_0x58e511=_0x2e0bd3();while(!![]){try{const _0x39b17e=-parseInt(_0x10e303(0x1b7))/0x1+parseInt(_0x10e303(0x1b1))/0x2*(parseInt(_0x10e303(0x197))/0x3)+-parseInt(_0x10e303(0x1ac))/0x4+parseInt(_0x10e303(0x1a0))/0x5*(-parseInt(_0x10e303(0x194))/0x6)+-parseInt(_0x10e303(0x1b0))/0x7*(parseInt(_0x10e303(0x1b8))/0x8)+-parseInt(_0x10e303(0x19d))/0x9+-parseInt(_0x10e303(0x1bb))/0xa*(-parseInt(_0x10e303(0x1a4))/0xb);if(_0x39b17e===_0x80c8ab)break;else _0x58e511['push'](_0x58e511['shift']());}catch(_0x5efd25){_0x58e511['push'](_0x58e511['shift']());}}}(_0xf533,0x710d6));function _0xf533(){const _0x151386=['Portrait','430bVJDJo','className','\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.','Landscape','74371qsNrrn','\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','printing-canvas','PrintAlign','Middle','Custom','None','\x0a\x20\x20\x20\x20.','2305432OahQEu','PrintPaperMargin','\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','7fMMyPo','9094LyLKXD','Start','PrintDirection','Normal','printing-canvas-container','Module','569335jUuSVR','5517752zUVjeq','Narrow','FitHeight','3930KFpQtd','createPrintStyle',',\x20.','End','PRINT_CANVAS_CLASS','innerHTML','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','55974YlhTsy','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.','489ilUYdq','Origin','defineProperty','PrintScale','toStringTag','Wide','2677194NZJEFi','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}'];_0xf533=function(){return _0x151386;};return _0xf533();}Object[_0x4f14b4(0x199)](exports,Symbol[_0x4f14b4(0x19b)],{'value':_0x4f14b4(0x1b6)});var i=(_0x5c389e=>(_0x5c389e[_0x4f14b4(0x19f)]=_0x4f14b4(0x19f),_0x5c389e[_0x4f14b4(0x1a3)]=_0x4f14b4(0x1a3),_0x5c389e))(i||{}),l=(_0x131c1e=>(_0x131c1e['Origin']=_0x4f14b4(0x198),_0x131c1e[_0x4f14b4(0x195)]=_0x4f14b4(0x195),_0x131c1e['FitHeight']=_0x4f14b4(0x1ba),_0x131c1e[_0x4f14b4(0x1af)]=_0x4f14b4(0x1af),_0x131c1e[_0x4f14b4(0x1a9)]=_0x4f14b4(0x1a9),_0x131c1e))(l||{}),m=(_0x55d987=>(_0x55d987['Start']=_0x4f14b4(0x1b2),_0x55d987[_0x4f14b4(0x1be)]=_0x4f14b4(0x1be),_0x55d987[_0x4f14b4(0x1a8)]='Middle',_0x55d987))(m||{}),o=(_0x1f0159=>(_0x1f0159[_0x4f14b4(0x1b4)]=_0x4f14b4(0x1b4),_0x1f0159['Narrow']=_0x4f14b4(0x1b9),_0x1f0159['Wide']=_0x4f14b4(0x19c),_0x1f0159[_0x4f14b4(0x1aa)]='None',_0x1f0159[_0x4f14b4(0x1a9)]=_0x4f14b4(0x1a9),_0x1f0159))(o||{});function _0x7f23(_0x2dca86,_0x5cc86d){_0x2dca86=_0x2dca86-0x194;const _0xf53346=_0xf533();let _0x7f23c7=_0xf53346[_0x2dca86];return _0x7f23c7;}const g={[o[_0x4f14b4(0x1b4)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x4f14b4(0x19c)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x4f14b4(0x1a9)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x4f14b4(0x1b5),n=_0x4f14b4(0x1a6);function h(_0x1208cd,_0x37b50f,_0x496a4e){const _0x53cf17=_0x4f14b4,_0x3a804f=_0x496a4e===i['Portrait']?_0x1208cd:_0x37b50f,_0x187187=_0x496a4e===i['Portrait']?_0x37b50f:_0x1208cd,_0x127666=_0x53cf17(0x1ab)+n+_0x53cf17(0x1ae)+_0x3a804f+'px\x20'+_0x187187+_0x53cf17(0x196)+r+_0x53cf17(0x1bd)+r+_0x53cf17(0x1a2)+n+_0x53cf17(0x1a5)+_0x187187+_0x53cf17(0x1c1)+_0x3a804f+_0x53cf17(0x19e),_0x354e40=document['createElement']('style');return _0x354e40[_0x53cf17(0x1c0)]=_0x127666,_0x354e40[_0x53cf17(0x1a1)]='offline-printing-css',_0x354e40;}exports[_0x4f14b4(0x1bf)]=n,exports['PRINT_CONTAINER_CLASS']=r,exports['PaperMarginMap']=g,exports[_0x4f14b4(0x1a7)]=m,exports[_0x4f14b4(0x1b3)]=i,exports[_0x4f14b4(0x1ad)]=o,exports[_0x4f14b4(0x19a)]=l,exports[_0x4f14b4(0x1bc)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2ec2ce=_0x13e3;(function(_0x1a50dc,_0x1d9ddb){const _0x3809a9=_0x13e3,_0x293529=_0x1a50dc();while(!![]){try{const _0x5c6354=-parseInt(_0x3809a9(0x110))/0x1+-parseInt(_0x3809a9(0x11d))/0x2*(-parseInt(_0x3809a9(0x10d))/0x3)+parseInt(_0x3809a9(0x120))/0x4+-parseInt(_0x3809a9(0x113))/0x5*(-parseInt(_0x3809a9(0x11e))/0x6)+-parseInt(_0x3809a9(0x108))/0x7+parseInt(_0x3809a9(0x127))/0x8*(-parseInt(_0x3809a9(0x116))/0x9)+-parseInt(_0x3809a9(0x128))/0xa*(-parseInt(_0x3809a9(0x126))/0xb);if(_0x5c6354===_0x1d9ddb)break;else _0x293529['push'](_0x293529['shift']());}catch(_0x171ca0){_0x293529['push'](_0x293529['shift']());}}}(_0x4028,0xdd72d));var e=(_0x1a5ad9=>(_0x1a5ad9['Portrait']=_0x2ec2ce(0x122),_0x1a5ad9[_0x2ec2ce(0x111)]=_0x2ec2ce(0x111),_0x1a5ad9))(e||{}),h=(_0xa0f202=>(_0xa0f202[_0x2ec2ce(0x124)]=_0x2ec2ce(0x124),_0xa0f202['FitWidth']='FitWidth',_0xa0f202[_0x2ec2ce(0x115)]=_0x2ec2ce(0x115),_0xa0f202[_0x2ec2ce(0x10c)]=_0x2ec2ce(0x10c),_0xa0f202[_0x2ec2ce(0x121)]='Custom',_0xa0f202))(h||{}),l=(_0x2de8d0=>(_0x2de8d0[_0x2ec2ce(0x114)]=_0x2ec2ce(0x114),_0x2de8d0[_0x2ec2ce(0x10e)]=_0x2ec2ce(0x10e),_0x2de8d0['Middle']=_0x2ec2ce(0x119),_0x2de8d0))(l||{}),o=(_0x576c67=>(_0x576c67[_0x2ec2ce(0x11b)]=_0x2ec2ce(0x11b),_0x576c67[_0x2ec2ce(0x129)]='Narrow',_0x576c67['Wide']='Wide',_0x576c67[_0x2ec2ce(0x125)]=_0x2ec2ce(0x125),_0x576c67[_0x2ec2ce(0x121)]=_0x2ec2ce(0x121),_0x576c67))(o||{});const c={[o[_0x2ec2ce(0x11b)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x2ec2ce(0x129)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x2ec2ce(0x125)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x2ec2ce(0x121)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x2ec2ce(0x10b),d=_0x2ec2ce(0x11f);function g(_0x2268da,_0x28cd0a,_0x240835){const _0x5fc50c=_0x2ec2ce,_0x20e639=_0x240835===e[_0x5fc50c(0x122)]?_0x2268da:_0x28cd0a,_0x401daa=_0x240835===e[_0x5fc50c(0x122)]?_0x28cd0a:_0x2268da,_0x578c6e=_0x5fc50c(0x112)+d+_0x5fc50c(0x123)+_0x20e639+'px\x20'+_0x401daa+_0x5fc50c(0x117)+p+_0x5fc50c(0x10a)+p+_0x5fc50c(0x107)+d+_0x5fc50c(0x10f)+_0x401daa+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x20e639+'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}',_0x491315=document[_0x5fc50c(0x11c)](_0x5fc50c(0x11a));return _0x491315[_0x5fc50c(0x109)]=_0x578c6e,_0x491315[_0x5fc50c(0x118)]='offline-printing-css',_0x491315;}function _0x13e3(_0x1804a2,_0x5dd60b){_0x1804a2=_0x1804a2-0x107;const _0x40286d=_0x4028();let _0x13e306=_0x40286d[_0x1804a2];return _0x13e306;}function _0x4028(){const _0x22eb48=['4860744eLjZEW','Custom','Portrait','\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','Origin','None','11PqxlPE','73280WnMnPg','12627570PdQEqC','Narrow','\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.','11337508RAuVpV','innerHTML',',\x20.','printing-canvas-container','FitPage','19329npYpuX','End','\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','945436tOPDyv','Landscape','\x0a\x20\x20\x20\x20.','15XtpAId','Start','FitHeight','1188UfOqKc','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','Middle','style','Normal','createElement','422VxCSwt','1687674GTevQG','printing-canvas'];_0x4028=function(){return _0x22eb48;};return _0x4028();}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 _0x2ec2ce=_0x13e3;(function(_0x1a50dc,_0x1d9ddb){const _0x3809a9=_0x13e3,_0x293529=_0x1a50dc();while(!![]){try{const _0x5c6354=-parseInt(_0x3809a9(0x110))/0x1+-parseInt(_0x3809a9(0x11d))/0x2*(-parseInt(_0x3809a9(0x10d))/0x3)+parseInt(_0x3809a9(0x120))/0x4+-parseInt(_0x3809a9(0x113))/0x5*(-parseInt(_0x3809a9(0x11e))/0x6)+-parseInt(_0x3809a9(0x108))/0x7+parseInt(_0x3809a9(0x127))/0x8*(-parseInt(_0x3809a9(0x116))/0x9)+-parseInt(_0x3809a9(0x128))/0xa*(-parseInt(_0x3809a9(0x126))/0xb);if(_0x5c6354===_0x1d9ddb)break;else _0x293529['push'](_0x293529['shift']());}catch(_0x171ca0){_0x293529['push'](_0x293529['shift']());}}}(_0x4028,0xdd72d));var e=(_0x1a5ad9=>(_0x1a5ad9['Portrait']=_0x2ec2ce(0x122),_0x1a5ad9[_0x2ec2ce(0x111)]=_0x2ec2ce(0x111),_0x1a5ad9))(e||{}),h=(_0xa0f202=>(_0xa0f202[_0x2ec2ce(0x124)]=_0x2ec2ce(0x124),_0xa0f202['FitWidth']='FitWidth',_0xa0f202[_0x2ec2ce(0x115)]=_0x2ec2ce(0x115),_0xa0f202[_0x2ec2ce(0x10c)]=_0x2ec2ce(0x10c),_0xa0f202[_0x2ec2ce(0x121)]='Custom',_0xa0f202))(h||{}),l=(_0x2de8d0=>(_0x2de8d0[_0x2ec2ce(0x114)]=_0x2ec2ce(0x114),_0x2de8d0[_0x2ec2ce(0x10e)]=_0x2ec2ce(0x10e),_0x2de8d0['Middle']=_0x2ec2ce(0x119),_0x2de8d0))(l||{}),o=(_0x576c67=>(_0x576c67[_0x2ec2ce(0x11b)]=_0x2ec2ce(0x11b),_0x576c67[_0x2ec2ce(0x129)]='Narrow',_0x576c67['Wide']='Wide',_0x576c67[_0x2ec2ce(0x125)]=_0x2ec2ce(0x125),_0x576c67[_0x2ec2ce(0x121)]=_0x2ec2ce(0x121),_0x576c67))(o||{});const c={[o[_0x2ec2ce(0x11b)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x2ec2ce(0x129)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x2ec2ce(0x125)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x2ec2ce(0x121)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x2ec2ce(0x10b),d=_0x2ec2ce(0x11f);function g(_0x2268da,_0x28cd0a,_0x240835){const _0x5fc50c=_0x2ec2ce,_0x20e639=_0x240835===e[_0x5fc50c(0x122)]?_0x2268da:_0x28cd0a,_0x401daa=_0x240835===e[_0x5fc50c(0x122)]?_0x28cd0a:_0x2268da,_0x578c6e=_0x5fc50c(0x112)+d+_0x5fc50c(0x123)+_0x20e639+'px\x20'+_0x401daa+_0x5fc50c(0x117)+p+_0x5fc50c(0x10a)+p+_0x5fc50c(0x107)+d+_0x5fc50c(0x10f)+_0x401daa+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x20e639+'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}',_0x491315=document[_0x5fc50c(0x11c)](_0x5fc50c(0x11a));return _0x491315[_0x5fc50c(0x109)]=_0x578c6e,_0x491315[_0x5fc50c(0x118)]='offline-printing-css',_0x491315;}function _0x13e3(_0x1804a2,_0x5dd60b){_0x1804a2=_0x1804a2-0x107;const _0x40286d=_0x4028();let _0x13e306=_0x40286d[_0x1804a2];return _0x13e306;}function _0x4028(){const _0x22eb48=['4860744eLjZEW','Custom','Portrait','\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','Origin','None','11PqxlPE','73280WnMnPg','12627570PdQEqC','Narrow','\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.','11337508RAuVpV','innerHTML',',\x20.','printing-canvas-container','FitPage','19329npYpuX','End','\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','945436tOPDyv','Landscape','\x0a\x20\x20\x20\x20.','15XtpAId','Start','FitHeight','1188UfOqKc','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','Middle','style','Normal','createElement','422VxCSwt','1687674GTevQG','printing-canvas'];_0x4028=function(){return _0x22eb48;};return _0x4028();}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(_0x50e257,_0xf5ab9f){const _0x98f563=_0xeaba,_0x58c4ca=_0x50e257();while(!![]){try{const _0x1ffcbc=parseInt(_0x98f563(0x16b))/0x1*(parseInt(_0x98f563(0x163))/0x2)+parseInt(_0x98f563(0x148))/0x3*(-parseInt(_0x98f563(0x14e))/0x4)+parseInt(_0x98f563(0x14f))/0x5+parseInt(_0x98f563(0x171))/0x6+-parseInt(_0x98f563(0x156))/0x7*(parseInt(_0x98f563(0x167))/0x8)+parseInt(_0x98f563(0x150))/0x9+-parseInt(_0x98f563(0x15b))/0xa;if(_0x1ffcbc===_0xf5ab9f)break;else _0x58c4ca['push'](_0x58c4ca['shift']());}catch(_0x13cee2){_0x58c4ca['push'](_0x58c4ca['shift']());}}}(_0x330a,0x48ccf),function(_0x1017e8,_0x2ffde5){const _0x2b0b01=_0xeaba;typeof exports=='object'&&typeof module<'u'?_0x2ffde5(exports):typeof define==_0x2b0b01(0x176)&&define['amd']?define([_0x2b0b01(0x16f)],_0x2ffde5):(_0x1017e8=typeof globalThis<'u'?globalThis:_0x1017e8||self,_0x2ffde5(_0x1017e8[_0x2b0b01(0x16d)]={}));}(this,function(_0x29fa9e){'use strict';const _0x4f506a=_0xeaba;var _0x2f7f0d=(_0x613b7b=>(_0x613b7b[_0x4f506a(0x157)]=_0x4f506a(0x157),_0x613b7b[_0x4f506a(0x154)]=_0x4f506a(0x154),_0x613b7b))(_0x2f7f0d||{}),_0x19995e=(_0xea2351=>(_0xea2351[_0x4f506a(0x158)]=_0x4f506a(0x158),_0xea2351[_0x4f506a(0x162)]=_0x4f506a(0x162),_0xea2351[_0x4f506a(0x175)]=_0x4f506a(0x175),_0xea2351[_0x4f506a(0x169)]='FitPage',_0xea2351[_0x4f506a(0x159)]=_0x4f506a(0x159),_0xea2351))(_0x19995e||{}),_0x32085f=(_0x32acce=>(_0x32acce['Start']=_0x4f506a(0x14b),_0x32acce[_0x4f506a(0x164)]='End',_0x32acce[_0x4f506a(0x161)]=_0x4f506a(0x161),_0x32acce))(_0x32085f||{}),_0x1d42a4=(_0x2b5c1e=>(_0x2b5c1e[_0x4f506a(0x14c)]=_0x4f506a(0x14c),_0x2b5c1e[_0x4f506a(0x170)]=_0x4f506a(0x170),_0x2b5c1e[_0x4f506a(0x14d)]=_0x4f506a(0x14d),_0x2b5c1e[_0x4f506a(0x15d)]='None',_0x2b5c1e[_0x4f506a(0x159)]=_0x4f506a(0x159),_0x2b5c1e))(_0x1d42a4||{});const _0x5b142b={[_0x1d42a4[_0x4f506a(0x14c)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x1d42a4['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x1d42a4[_0x4f506a(0x14d)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x1d42a4[_0x4f506a(0x15d)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x1d42a4[_0x4f506a(0x159)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x513f4f=_0x4f506a(0x149),_0x4f7360='printing-canvas';function _0x168bb4(_0x16bb01,_0x111465,_0xb14394){const _0x4816c7=_0x4f506a,_0x36f8eb=_0xb14394===_0x2f7f0d[_0x4816c7(0x157)]?_0x16bb01:_0x111465,_0x3f59f4=_0xb14394===_0x2f7f0d[_0x4816c7(0x157)]?_0x111465:_0x16bb01,_0x42285f=_0x4816c7(0x16e)+_0x4f7360+_0x4816c7(0x15a)+_0x36f8eb+_0x4816c7(0x15f)+_0x3f59f4+_0x4816c7(0x14a)+_0x513f4f+',\x20.'+_0x513f4f+_0x4816c7(0x16c)+_0x4f7360+_0x4816c7(0x174)+_0x3f59f4+_0x4816c7(0x160)+_0x36f8eb+_0x4816c7(0x16a),_0x269c8c=document[_0x4816c7(0x165)](_0x4816c7(0x168));return _0x269c8c[_0x4816c7(0x15e)]=_0x42285f,_0x269c8c[_0x4816c7(0x173)]=_0x4816c7(0x153),_0x269c8c;}_0x29fa9e[_0x4f506a(0x166)]=_0x4f7360,_0x29fa9e['PRINT_CONTAINER_CLASS']=_0x513f4f,_0x29fa9e[_0x4f506a(0x15c)]=_0x5b142b,_0x29fa9e[_0x4f506a(0x151)]=_0x32085f,_0x29fa9e['PrintDirection']=_0x2f7f0d,_0x29fa9e[_0x4f506a(0x172)]=_0x1d42a4,_0x29fa9e[_0x4f506a(0x155)]=_0x19995e,_0x29fa9e['createPrintStyle']=_0x168bb4,Object['defineProperty'](_0x29fa9e,Symbol['toStringTag'],{'value':_0x4f506a(0x152)});}));function _0xeaba(_0x384a22,_0x5e4170){_0x384a22=_0x384a22-0x148;const _0x330abb=_0x330a();let _0xeabaea=_0x330abb[_0x384a22];return _0xeabaea;}function _0x330a(){const _0x395ec0=['FitHeight','function','57scsxos','printing-canvas-container','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.','Start','Normal','Wide','7964LVfUXs','1558005IKgAHG','4510287yxwtbK','PrintAlign','Module','offline-printing-css','Landscape','PrintScale','1086806nUYHpd','Portrait','Origin','Custom','\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','7947030AjlqaP','PaperMarginMap','None','innerHTML','px\x20','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Middle','FitWidth','42MUKdhM','End','createElement','PRINT_CANVAS_CLASS','8bqXslT','style','FitPage','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}','18991XkFPYK','\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.','UniverProPrint','\x0a\x20\x20\x20\x20.','exports','Narrow','446556lGbsKG','PrintPaperMargin','className','\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'];_0x330a=function(){return _0x395ec0;};return _0x330a();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0-insiders.20260302-b09f1e4",
|
|
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.18",
|
|
48
|
-
"@univerjs-infra/shared": "0.
|
|
48
|
+
"@univerjs-infra/shared": "0.16.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|