@univerjs-pro/print 0.6.6 → 0.6.7-experimental.20250328-3aaa828
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 -0
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5af28c=_0x4af9;(function(_0x13d496,_0x743aef){const _0x1c2176=_0x4af9,_0x35cd8a=_0x13d496();while(!![]){try{const _0x4b4332=parseInt(_0x1c2176(0xf4))/0x1+parseInt(_0x1c2176(0xef))/0x2*(-parseInt(_0x1c2176(0xe5))/0x3)+-parseInt(_0x1c2176(0xe8))/0x4*(parseInt(_0x1c2176(0x110))/0x5)+parseInt(_0x1c2176(0xdf))/0x6+parseInt(_0x1c2176(0x102))/0x7+-parseInt(_0x1c2176(0x105))/0x8*(-parseInt(_0x1c2176(0xf6))/0x9)+parseInt(_0x1c2176(0x112))/0xa*(-parseInt(_0x1c2176(0xe2))/0xb);if(_0x4b4332===_0x743aef)break;else _0x35cd8a['push'](_0x35cd8a['shift']());}catch(_0x5ba077){_0x35cd8a['push'](_0x35cd8a['shift']());}}}(_0x4335,0xa762a));function _0x4335(){const _0xd58ee=['PrintDirection','None','3391134nkosoi','toStringTag','FitHeight','7299193AGocAt','className','Landscape','213BoSodS','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','offline-printing-css','20lKCJBM','Custom','printing-canvas-container','createPrintStyle','printing-canvas','PRINT_CANVAS_CLASS','Narrow','1118tDkzGG','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','innerHTML','FitWidth','PaperMarginMap','807922VIBpor','Letter','9SzeDGN','PRINT_CONTAINER_CLASS','Module','PrintPaperSize','style','Tabloid',',\x20.','PrintScale','PrintPaperMargin','Origin','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Portrait','1474039ovFbRa','PrintAlign','Wide','6505832MMJvUD','Statement','Middle','Executive','Folio','End','Start','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}','Legal','FitPage','defineProperty','1008055dTpDPV','createElement','10ZjbHIP','Normal','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20'];_0x4335=function(){return _0xd58ee;};return _0x4335();}Object[_0x5af28c(0x10f)](exports,Symbol[_0x5af28c(0xe0)],{'value':_0x5af28c(0xf8)});var e=(_0x4f062b=>(_0x4f062b[_0x5af28c(0xf5)]=_0x5af28c(0xf5),_0x4f062b[_0x5af28c(0xfb)]=_0x5af28c(0xfb),_0x4f062b[_0x5af28c(0x10d)]=_0x5af28c(0x10d),_0x4f062b[_0x5af28c(0x106)]=_0x5af28c(0x106),_0x4f062b[_0x5af28c(0x108)]=_0x5af28c(0x108),_0x4f062b[_0x5af28c(0x109)]='Folio',_0x4f062b['A3']='A3',_0x4f062b['A4']='A4',_0x4f062b['A5']='A5',_0x4f062b['B4']='B4',_0x4f062b['B5']='B5',_0x4f062b))(e||{}),i=(_0x156075=>(_0x156075[_0x5af28c(0x101)]=_0x5af28c(0x101),_0x156075[_0x5af28c(0xe4)]='Landscape',_0x156075))(i||{}),c=(_0x24991e=>(_0x24991e[_0x5af28c(0xff)]=_0x5af28c(0xff),_0x24991e[_0x5af28c(0xf2)]=_0x5af28c(0xf2),_0x24991e[_0x5af28c(0xe1)]=_0x5af28c(0xe1),_0x24991e[_0x5af28c(0x10e)]=_0x5af28c(0x10e),_0x24991e[_0x5af28c(0xe9)]=_0x5af28c(0xe9),_0x24991e))(c||{}),g=(_0x38e883=>(_0x38e883[_0x5af28c(0x10b)]='Start',_0x38e883[_0x5af28c(0x10a)]=_0x5af28c(0x10a),_0x38e883['Middle']=_0x5af28c(0x107),_0x38e883))(g||{}),o=(_0x411346=>(_0x411346[_0x5af28c(0x113)]=_0x5af28c(0x113),_0x411346[_0x5af28c(0xee)]=_0x5af28c(0xee),_0x411346[_0x5af28c(0x104)]=_0x5af28c(0x104),_0x411346[_0x5af28c(0xde)]='None',_0x411346))(o||{});const m={[e['A3']]:{'w':0x463,'h':0x633},[e['A4']]:{'w':0x31a,'h':0x464},[e['A5']]:{'w':0x22f,'h':0x31a},[e['B4']]:{'w':0x3b0,'h':0x540},[e['B5']]:{'w':0x299,'h':0x3b0},[e[_0x5af28c(0x108)]]:{'w':0x2b8,'h':0x3f0},[e[_0x5af28c(0x109)]]:{'w':0x330,'h':0x4e0},[e[_0x5af28c(0x10d)]]:{'w':0x330,'h':0x540},[e[_0x5af28c(0xf5)]]:{'w':0x330,'h':0x420},[e[_0x5af28c(0x106)]]:{'w':0x210,'h':0x330},[e[_0x5af28c(0xfb)]]:{'w':0x420,'h':0x660}},N={[o[_0x5af28c(0x113)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x5af28c(0xee)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x5af28c(0x104)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},n=_0x5af28c(0xea),p=_0x5af28c(0xec);function A(_0x5068dc,_0x367624){const _0x203a17=_0x5af28c,{w:_0x1c1b9f,h:_0x21ced6}=m[_0x5068dc],_0x58d499=_0x367624===i[_0x203a17(0x101)]?_0x1c1b9f:_0x21ced6,_0x5c4fec=_0x367624===i[_0x203a17(0x101)]?_0x21ced6:_0x1c1b9f,_0x22947e=_0x203a17(0xdc)+_0x58d499+'px\x20'+_0x5c4fec+'px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'+n+_0x203a17(0xfc)+n+_0x203a17(0x100)+p+_0x203a17(0xe6)+_0x5c4fec+_0x203a17(0xf0)+_0x58d499+_0x203a17(0x10c),_0x1b0ee1=document[_0x203a17(0x111)](_0x203a17(0xfa));return _0x1b0ee1[_0x203a17(0xf1)]=_0x22947e,_0x1b0ee1[_0x203a17(0xe3)]=_0x203a17(0xe7),_0x1b0ee1;}function _0x4af9(_0x51b810,_0x489492){const _0x433561=_0x4335();return _0x4af9=function(_0x4af9bf,_0x5ed075){_0x4af9bf=_0x4af9bf-0xdc;let _0x510df0=_0x433561[_0x4af9bf];return _0x510df0;},_0x4af9(_0x51b810,_0x489492);}exports[_0x5af28c(0xed)]=p,exports[_0x5af28c(0xf7)]=n,exports[_0x5af28c(0xf3)]=N,exports['PaperSizePxMap']=m,exports[_0x5af28c(0x103)]=g,exports[_0x5af28c(0xdd)]=i,exports[_0x5af28c(0xfe)]=o,exports[_0x5af28c(0xf9)]=e,exports[_0x5af28c(0xfd)]=c,exports[_0x5af28c(0xeb)]=A;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x9920fe=_0x1fca;function _0x1fca(_0x242dd4,_0x286ad9){const _0x583755=_0x5837();return _0x1fca=function(_0x1fca6a,_0x346147){_0x1fca6a=_0x1fca6a-0x198;let _0x5cb2ab=_0x583755[_0x1fca6a];return _0x5cb2ab;},_0x1fca(_0x242dd4,_0x286ad9);}(function(_0x46f245,_0x2ddb25){const _0x2df4ba=_0x1fca,_0x289678=_0x46f245();while(!![]){try{const _0x2837d1=parseInt(_0x2df4ba(0x1a2))/0x1+-parseInt(_0x2df4ba(0x1a9))/0x2*(-parseInt(_0x2df4ba(0x1a1))/0x3)+parseInt(_0x2df4ba(0x1af))/0x4*(-parseInt(_0x2df4ba(0x1a5))/0x5)+-parseInt(_0x2df4ba(0x1bc))/0x6*(parseInt(_0x2df4ba(0x1b8))/0x7)+-parseInt(_0x2df4ba(0x1ab))/0x8+-parseInt(_0x2df4ba(0x1b5))/0x9*(-parseInt(_0x2df4ba(0x1b4))/0xa)+parseInt(_0x2df4ba(0x1b0))/0xb*(parseInt(_0x2df4ba(0x198))/0xc);if(_0x2837d1===_0x2ddb25)break;else _0x289678['push'](_0x289678['shift']());}catch(_0x3ed847){_0x289678['push'](_0x289678['shift']());}}}(_0x5837,0xe43f8));var o=(_0x10e61c=>(_0x10e61c[_0x9920fe(0x1c0)]=_0x9920fe(0x1c0),_0x10e61c[_0x9920fe(0x1b7)]=_0x9920fe(0x1b7),_0x10e61c[_0x9920fe(0x19f)]=_0x9920fe(0x19f),_0x10e61c[_0x9920fe(0x1a6)]=_0x9920fe(0x1a6),_0x10e61c[_0x9920fe(0x1bb)]=_0x9920fe(0x1bb),_0x10e61c[_0x9920fe(0x19c)]=_0x9920fe(0x19c),_0x10e61c['A3']='A3',_0x10e61c['A4']='A4',_0x10e61c['A5']='A5',_0x10e61c['B4']='B4',_0x10e61c['B5']='B5',_0x10e61c))(o||{}),i=(_0xd364ce=>(_0xd364ce[_0x9920fe(0x1ad)]='Portrait',_0xd364ce[_0x9920fe(0x1b2)]=_0x9920fe(0x1b2),_0xd364ce))(i||{}),w=(_0x280700=>(_0x280700[_0x9920fe(0x1a8)]='Origin',_0x280700['FitWidth']='FitWidth',_0x280700[_0x9920fe(0x1b3)]=_0x9920fe(0x1b3),_0x280700['FitPage']=_0x9920fe(0x19a),_0x280700[_0x9920fe(0x19e)]=_0x9920fe(0x19e),_0x280700))(w||{}),m=(_0x4323a9=>(_0x4323a9['Start']=_0x9920fe(0x1b9),_0x4323a9[_0x9920fe(0x1b6)]='End',_0x4323a9['Middle']=_0x9920fe(0x19b),_0x4323a9))(m||{}),e=(_0x48ec26=>(_0x48ec26[_0x9920fe(0x1a0)]=_0x9920fe(0x1a0),_0x48ec26[_0x9920fe(0x1b1)]=_0x9920fe(0x1b1),_0x48ec26[_0x9920fe(0x1be)]=_0x9920fe(0x1be),_0x48ec26[_0x9920fe(0x1ae)]=_0x9920fe(0x1ae),_0x48ec26))(e||{});function _0x5837(){const _0x4930ce=['Narrow','Landscape','FitHeight','620StuwgW','202221FeDNrT','End','Tabloid','12358577TZtyhb','Start','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Executive','6hZVmcd','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Wide',',\x20.','Letter','printing-canvas-container','12NqjxeS','offline-printing-css','FitPage','Middle','Folio','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','Legal','Normal','2365431SkxNxh','57035sHtZiv','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','style','3235MwHAYz','Statement','printing-canvas','Origin','2dPYTdU','className','5897336TOVIPQ','px\x20','Portrait','None','3512VFweJe','19437638uhFfsV'];_0x5837=function(){return _0x4930ce;};return _0x5837();}const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o['Executive']]:{'w':0x2b8,'h':0x3f0},[o[_0x9920fe(0x19c)]]:{'w':0x330,'h':0x4e0},[o[_0x9920fe(0x19f)]]:{'w':0x330,'h':0x540},[o[_0x9920fe(0x1c0)]]:{'w':0x330,'h':0x420},[o[_0x9920fe(0x1a6)]]:{'w':0x210,'h':0x330},[o[_0x9920fe(0x1b7)]]:{'w':0x420,'h':0x660}},v={[e[_0x9920fe(0x1a0)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x9920fe(0x1b1)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x9920fe(0x1be)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x9920fe(0x1ae)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x9920fe(0x1c1),p=_0x9920fe(0x1a7);function N(_0x4f3c25,_0x3437ab){const _0x342910=_0x9920fe,{w:_0x49224d,h:_0x4dbb01}=g[_0x4f3c25],_0x183d93=_0x3437ab===i[_0x342910(0x1ad)]?_0x49224d:_0x4dbb01,_0x2b0c69=_0x3437ab===i['Portrait']?_0x4dbb01:_0x49224d,_0x10f523=_0x342910(0x1ba)+_0x183d93+_0x342910(0x1ac)+_0x2b0c69+_0x342910(0x1bd)+l+_0x342910(0x1bf)+l+_0x342910(0x1a3)+p+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x2b0c69+_0x342910(0x19d)+_0x183d93+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x3131d7=document['createElement'](_0x342910(0x1a4));return _0x3131d7['innerHTML']=_0x10f523,_0x3131d7[_0x342910(0x1aa)]=_0x342910(0x199),_0x3131d7;}export{p as PRINT_CANVAS_CLASS,l as PRINT_CONTAINER_CLASS,v as PaperMarginMap,g as PaperSizePxMap,m as PrintAlign,i as PrintDirection,e as PrintPaperMargin,o as PrintPaperSize,w as PrintScale,N as createPrintStyle};
|
package/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x9920fe=_0x1fca;function _0x1fca(_0x242dd4,_0x286ad9){const _0x583755=_0x5837();return _0x1fca=function(_0x1fca6a,_0x346147){_0x1fca6a=_0x1fca6a-0x198;let _0x5cb2ab=_0x583755[_0x1fca6a];return _0x5cb2ab;},_0x1fca(_0x242dd4,_0x286ad9);}(function(_0x46f245,_0x2ddb25){const _0x2df4ba=_0x1fca,_0x289678=_0x46f245();while(!![]){try{const _0x2837d1=parseInt(_0x2df4ba(0x1a2))/0x1+-parseInt(_0x2df4ba(0x1a9))/0x2*(-parseInt(_0x2df4ba(0x1a1))/0x3)+parseInt(_0x2df4ba(0x1af))/0x4*(-parseInt(_0x2df4ba(0x1a5))/0x5)+-parseInt(_0x2df4ba(0x1bc))/0x6*(parseInt(_0x2df4ba(0x1b8))/0x7)+-parseInt(_0x2df4ba(0x1ab))/0x8+-parseInt(_0x2df4ba(0x1b5))/0x9*(-parseInt(_0x2df4ba(0x1b4))/0xa)+parseInt(_0x2df4ba(0x1b0))/0xb*(parseInt(_0x2df4ba(0x198))/0xc);if(_0x2837d1===_0x2ddb25)break;else _0x289678['push'](_0x289678['shift']());}catch(_0x3ed847){_0x289678['push'](_0x289678['shift']());}}}(_0x5837,0xe43f8));var o=(_0x10e61c=>(_0x10e61c[_0x9920fe(0x1c0)]=_0x9920fe(0x1c0),_0x10e61c[_0x9920fe(0x1b7)]=_0x9920fe(0x1b7),_0x10e61c[_0x9920fe(0x19f)]=_0x9920fe(0x19f),_0x10e61c[_0x9920fe(0x1a6)]=_0x9920fe(0x1a6),_0x10e61c[_0x9920fe(0x1bb)]=_0x9920fe(0x1bb),_0x10e61c[_0x9920fe(0x19c)]=_0x9920fe(0x19c),_0x10e61c['A3']='A3',_0x10e61c['A4']='A4',_0x10e61c['A5']='A5',_0x10e61c['B4']='B4',_0x10e61c['B5']='B5',_0x10e61c))(o||{}),i=(_0xd364ce=>(_0xd364ce[_0x9920fe(0x1ad)]='Portrait',_0xd364ce[_0x9920fe(0x1b2)]=_0x9920fe(0x1b2),_0xd364ce))(i||{}),w=(_0x280700=>(_0x280700[_0x9920fe(0x1a8)]='Origin',_0x280700['FitWidth']='FitWidth',_0x280700[_0x9920fe(0x1b3)]=_0x9920fe(0x1b3),_0x280700['FitPage']=_0x9920fe(0x19a),_0x280700[_0x9920fe(0x19e)]=_0x9920fe(0x19e),_0x280700))(w||{}),m=(_0x4323a9=>(_0x4323a9['Start']=_0x9920fe(0x1b9),_0x4323a9[_0x9920fe(0x1b6)]='End',_0x4323a9['Middle']=_0x9920fe(0x19b),_0x4323a9))(m||{}),e=(_0x48ec26=>(_0x48ec26[_0x9920fe(0x1a0)]=_0x9920fe(0x1a0),_0x48ec26[_0x9920fe(0x1b1)]=_0x9920fe(0x1b1),_0x48ec26[_0x9920fe(0x1be)]=_0x9920fe(0x1be),_0x48ec26[_0x9920fe(0x1ae)]=_0x9920fe(0x1ae),_0x48ec26))(e||{});function _0x5837(){const _0x4930ce=['Narrow','Landscape','FitHeight','620StuwgW','202221FeDNrT','End','Tabloid','12358577TZtyhb','Start','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Executive','6hZVmcd','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','Wide',',\x20.','Letter','printing-canvas-container','12NqjxeS','offline-printing-css','FitPage','Middle','Folio','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Custom','Legal','Normal','2365431SkxNxh','57035sHtZiv','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','style','3235MwHAYz','Statement','printing-canvas','Origin','2dPYTdU','className','5897336TOVIPQ','px\x20','Portrait','None','3512VFweJe','19437638uhFfsV'];_0x5837=function(){return _0x4930ce;};return _0x5837();}const g={[o['A3']]:{'w':0x463,'h':0x633},[o['A4']]:{'w':0x31a,'h':0x464},[o['A5']]:{'w':0x22f,'h':0x31a},[o['B4']]:{'w':0x3b0,'h':0x540},[o['B5']]:{'w':0x299,'h':0x3b0},[o['Executive']]:{'w':0x2b8,'h':0x3f0},[o[_0x9920fe(0x19c)]]:{'w':0x330,'h':0x4e0},[o[_0x9920fe(0x19f)]]:{'w':0x330,'h':0x540},[o[_0x9920fe(0x1c0)]]:{'w':0x330,'h':0x420},[o[_0x9920fe(0x1a6)]]:{'w':0x210,'h':0x330},[o[_0x9920fe(0x1b7)]]:{'w':0x420,'h':0x660}},v={[e[_0x9920fe(0x1a0)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[e[_0x9920fe(0x1b1)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[e[_0x9920fe(0x1be)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[e[_0x9920fe(0x1ae)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},l=_0x9920fe(0x1c1),p=_0x9920fe(0x1a7);function N(_0x4f3c25,_0x3437ab){const _0x342910=_0x9920fe,{w:_0x49224d,h:_0x4dbb01}=g[_0x4f3c25],_0x183d93=_0x3437ab===i[_0x342910(0x1ad)]?_0x49224d:_0x4dbb01,_0x2b0c69=_0x3437ab===i['Portrait']?_0x4dbb01:_0x49224d,_0x10f523=_0x342910(0x1ba)+_0x183d93+_0x342910(0x1ac)+_0x2b0c69+_0x342910(0x1bd)+l+_0x342910(0x1bf)+l+_0x342910(0x1a3)+p+'\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20'+_0x2b0c69+_0x342910(0x19d)+_0x183d93+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x3131d7=document['createElement'](_0x342910(0x1a4));return _0x3131d7['innerHTML']=_0x10f523,_0x3131d7[_0x342910(0x1aa)]=_0x342910(0x199),_0x3131d7;}export{p as PRINT_CANVAS_CLASS,l as PRINT_CONTAINER_CLASS,v as PaperMarginMap,g as PaperSizePxMap,m as PrintAlign,i as PrintDirection,e as PrintPaperMargin,o as PrintPaperSize,w as PrintScale,N as createPrintStyle};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1811(){const _0x4e7498=['Wide','Custom','Module','PRINT_CONTAINER_CLASS','Folio','object','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','3985135spopbH','Portrait','PrintScale','Start','createElement','End','amd','270zvwbKt','px;\x20\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.','PaperSizePxMap','function','Tabloid','\x0a@media\x20print\x20{\x0a\x20\x20\x20\x20html\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20auto\x20!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20size:\x20','Statement','FitHeight','FitWidth','UniverProPrint','innerHTML','None','FitPage','PrintDirection','Landscape','\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20page-break-after:\x20always!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20','655896NECPWC','Legal','px\x20','Executive','1147930trczYT','899330vMaTQN','474135YeLYtV','Middle','12ClyaQD','Narrow','167370zBWvHG','2996404roGYNi','PRINT_CANVAS_CLASS','offline-printing-css','toStringTag','Letter','createPrintStyle','Normal','\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20height:\x20fit-content;\x0a\x20\x20\x20\x20\x20\x20\x20\x20overflow:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20top:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20width:\x20fit-content;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.'];_0x1811=function(){return _0x4e7498;};return _0x1811();}function _0x4ba3(_0x61c685,_0x6a17de){const _0x1811b4=_0x1811();return _0x4ba3=function(_0x4ba3c7,_0x3568de){_0x4ba3c7=_0x4ba3c7-0xf3;let _0x4c1475=_0x1811b4[_0x4ba3c7];return _0x4c1475;},_0x4ba3(_0x61c685,_0x6a17de);}(function(_0x3b1aaa,_0xa3d963){const _0xdb32e4=_0x4ba3,_0xd4e267=_0x3b1aaa();while(!![]){try{const _0xc0a1b5=parseInt(_0xdb32e4(0x118))/0x1+-parseInt(_0xdb32e4(0x11b))/0x2*(-parseInt(_0xdb32e4(0x119))/0x3)+parseInt(_0xdb32e4(0x11e))/0x4+-parseInt(_0xdb32e4(0x117))/0x5+parseInt(_0xdb32e4(0x11d))/0x6+parseInt(_0xdb32e4(0xfc))/0x7+-parseInt(_0xdb32e4(0x113))/0x8*(parseInt(_0xdb32e4(0x103))/0x9);if(_0xc0a1b5===_0xa3d963)break;else _0xd4e267['push'](_0xd4e267['shift']());}catch(_0x355288){_0xd4e267['push'](_0xd4e267['shift']());}}}(_0x1811,0x7b381),function(_0x9b729e,_0x486f23){const _0x321fb4=_0x4ba3;typeof exports==_0x321fb4(0xfa)&&typeof module<'u'?_0x486f23(exports):typeof define==_0x321fb4(0x106)&&define[_0x321fb4(0x102)]?define(['exports'],_0x486f23):(_0x9b729e=typeof globalThis<'u'?globalThis:_0x9b729e||self,_0x486f23(_0x9b729e[_0x321fb4(0x10c)]={}));}(this,function(_0xbfc490){'use strict';const _0x24e398=_0x4ba3;var _0xfe616c=(_0x3016a3=>(_0x3016a3['Letter']=_0x24e398(0x122),_0x3016a3[_0x24e398(0x107)]=_0x24e398(0x107),_0x3016a3['Legal']=_0x24e398(0x114),_0x3016a3['Statement']=_0x24e398(0x109),_0x3016a3[_0x24e398(0x116)]=_0x24e398(0x116),_0x3016a3['Folio']=_0x24e398(0xf9),_0x3016a3['A3']='A3',_0x3016a3['A4']='A4',_0x3016a3['A5']='A5',_0x3016a3['B4']='B4',_0x3016a3['B5']='B5',_0x3016a3))(_0xfe616c||{}),_0x27a1c8=(_0x20e36d=>(_0x20e36d[_0x24e398(0xfd)]=_0x24e398(0xfd),_0x20e36d[_0x24e398(0x111)]=_0x24e398(0x111),_0x20e36d))(_0x27a1c8||{}),_0x28c127=(_0x3a5a20=>(_0x3a5a20['Origin']='Origin',_0x3a5a20[_0x24e398(0x10b)]='FitWidth',_0x3a5a20[_0x24e398(0x10a)]='FitHeight',_0x3a5a20['FitPage']=_0x24e398(0x10f),_0x3a5a20[_0x24e398(0xf6)]='Custom',_0x3a5a20))(_0x28c127||{}),_0x6cf050=(_0x1720b8=>(_0x1720b8['Start']=_0x24e398(0xff),_0x1720b8[_0x24e398(0x101)]=_0x24e398(0x101),_0x1720b8[_0x24e398(0x11a)]=_0x24e398(0x11a),_0x1720b8))(_0x6cf050||{}),_0x472dce=(_0x105dc5=>(_0x105dc5[_0x24e398(0xf3)]='Normal',_0x105dc5[_0x24e398(0x11c)]=_0x24e398(0x11c),_0x105dc5[_0x24e398(0xf5)]=_0x24e398(0xf5),_0x105dc5['None']=_0x24e398(0x10e),_0x105dc5))(_0x472dce||{});const _0x5a5895={[_0xfe616c['A3']]:{'w':0x463,'h':0x633},[_0xfe616c['A4']]:{'w':0x31a,'h':0x464},[_0xfe616c['A5']]:{'w':0x22f,'h':0x31a},[_0xfe616c['B4']]:{'w':0x3b0,'h':0x540},[_0xfe616c['B5']]:{'w':0x299,'h':0x3b0},[_0xfe616c['Executive']]:{'w':0x2b8,'h':0x3f0},[_0xfe616c[_0x24e398(0xf9)]]:{'w':0x330,'h':0x4e0},[_0xfe616c[_0x24e398(0x114)]]:{'w':0x330,'h':0x540},[_0xfe616c[_0x24e398(0x122)]]:{'w':0x330,'h':0x420},[_0xfe616c[_0x24e398(0x109)]]:{'w':0x210,'h':0x330},[_0xfe616c[_0x24e398(0x107)]]:{'w':0x420,'h':0x660}},_0x5dd09f={[_0x472dce[_0x24e398(0xf3)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x472dce[_0x24e398(0x11c)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x472dce[_0x24e398(0xf5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x472dce[_0x24e398(0x10e)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x11387e='printing-canvas-container',_0x42ea94='printing-canvas';function _0x50d9f7(_0x5e26d9,_0x40ebb2){const _0x2cb7ae=_0x24e398,{w:_0x3f04d7,h:_0x54ec9e}=_0x5a5895[_0x5e26d9],_0x37fc4e=_0x40ebb2===_0x27a1c8[_0x2cb7ae(0xfd)]?_0x3f04d7:_0x54ec9e,_0x59d75e=_0x40ebb2===_0x27a1c8[_0x2cb7ae(0xfd)]?_0x54ec9e:_0x3f04d7,_0x39c4c0=_0x2cb7ae(0x108)+_0x37fc4e+_0x2cb7ae(0x115)+_0x59d75e+_0x2cb7ae(0x104)+_0x11387e+',\x20.'+_0x11387e+_0x2cb7ae(0xf4)+_0x42ea94+_0x2cb7ae(0x112)+_0x59d75e+_0x2cb7ae(0xfb)+_0x37fc4e+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20}\x0a}',_0x55e8f8=document[_0x2cb7ae(0x100)]('style');return _0x55e8f8[_0x2cb7ae(0x10d)]=_0x39c4c0,_0x55e8f8['className']=_0x2cb7ae(0x120),_0x55e8f8;}_0xbfc490[_0x24e398(0x11f)]=_0x42ea94,_0xbfc490[_0x24e398(0xf8)]=_0x11387e,_0xbfc490['PaperMarginMap']=_0x5dd09f,_0xbfc490[_0x24e398(0x105)]=_0x5a5895,_0xbfc490['PrintAlign']=_0x6cf050,_0xbfc490[_0x24e398(0x110)]=_0x27a1c8,_0xbfc490['PrintPaperMargin']=_0x472dce,_0xbfc490['PrintPaperSize']=_0xfe616c,_0xbfc490[_0x24e398(0xfe)]=_0x28c127,_0xbfc490[_0x24e398(0x123)]=_0x50d9f7,Object['defineProperty'](_0xbfc490,Symbol[_0x24e398(0x121)],{'value':_0x24e398(0xf7)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7-experimental.20250328-3aaa828",
|
|
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.8.2",
|
|
46
|
-
"vite": "^6.2.
|
|
47
|
-
"vitest": "^3.0.
|
|
48
|
-
"@univerjs-infra/shared": "0.6.
|
|
46
|
+
"vite": "^6.2.2",
|
|
47
|
+
"vitest": "^3.0.9",
|
|
48
|
+
"@univerjs-infra/shared": "0.6.7"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|