@univerjs-pro/print 0.9.3 → 0.9.4-nightly.202507290757
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 _0x3085ed=_0x2c4f;(function(_0x5646de,_0x34324e){const _0x131730=_0x2c4f,_0x54b0bd=_0x5646de();while(!![]){try{const _0x1ba29b=-parseInt(_0x131730(0x19f))/0x1+-parseInt(_0x131730(0x18c))/0x2+-parseInt(_0x131730(0x1ae))/0x3*(-parseInt(_0x131730(0x198))/0x4)+-parseInt(_0x131730(0x18b))/0x5+-parseInt(_0x131730(0x1af))/0x6*(parseInt(_0x131730(0x1a2))/0x7)+-parseInt(_0x131730(0x1a5))/0x8+parseInt(_0x131730(0x1aa))/0x9*(parseInt(_0x131730(0x1ab))/0xa);if(_0x1ba29b===_0x34324e)break;else _0x54b0bd['push'](_0x54b0bd['shift']());}catch(_0x5a5035){_0x54b0bd['push'](_0x54b0bd['shift']());}}}(_0x4e30,0x62c69));function _0x2c4f(_0x165c31,_0x1c3154){const _0x4e309d=_0x4e30();return _0x2c4f=function(_0x2c4f3f,_0x37ba9d){_0x2c4f3f=_0x2c4f3f-0x186;let _0x187ba6=_0x4e309d[_0x2c4f3f];return _0x187ba6;},_0x2c4f(_0x165c31,_0x1c3154);}Object['defineProperty'](exports,Symbol[_0x3085ed(0x1a9)],{'value':_0x3085ed(0x1a7)});var e=(_0x50c7cb=>(_0x50c7cb[_0x3085ed(0x187)]=_0x3085ed(0x187),_0x50c7cb[_0x3085ed(0x191)]=_0x3085ed(0x191),_0x50c7cb))(e||{}),l=(_0x128264=>(_0x128264[_0x3085ed(0x1a1)]=_0x3085ed(0x1a1),_0x128264[_0x3085ed(0x18e)]=_0x3085ed(0x18e),_0x128264[_0x3085ed(0x192)]='FitHeight',_0x128264['FitPage']=_0x3085ed(0x18a),_0x128264[_0x3085ed(0x1b2)]='Custom',_0x128264))(l||{}),c=(_0x117c98=>(_0x117c98['Start']=_0x3085ed(0x1a8),_0x117c98[_0x3085ed(0x19c)]=_0x3085ed(0x19c),_0x117c98[_0x3085ed(0x199)]=_0x3085ed(0x199),_0x117c98))(c||{}),i=(_0x18b14a=>(_0x18b14a[_0x3085ed(0x195)]=_0x3085ed(0x195),_0x18b14a[_0x3085ed(0x1ad)]=_0x3085ed(0x1ad),_0x18b14a[_0x3085ed(0x19e)]=_0x3085ed(0x19e),_0x18b14a[_0x3085ed(0x1b0)]=_0x3085ed(0x1b0),_0x18b14a))(i||{});const h={[i['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i[_0x3085ed(0x1ad)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x3085ed(0x19e)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x3085ed(0x1b0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x3085ed(0x194),n='printing-canvas';function _0x4e30(){const _0xfd14ba=['PRINT_CONTAINER_CLASS','px\x20','893768LuXXqB','Middle','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}','PrintPaperMargin','End',',\x20.','Wide','734123UczYnO','PrintScale','Origin','3420998GNmdIq','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','offline-printing-css','31256NSFZny','\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','Module','Start','toStringTag','22205673ysZtnJ','10udWJOL','PrintDirection','Narrow','3ppRJOw','6DHrTOs','None','PaperMarginMap','Custom','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.','Portrait','PrintAlign','\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','2555875wYbIke','1096470nFqRfV','\x0a\x20\x20\x20\x20.','FitWidth','createElement','style','Landscape','FitHeight','PRINT_CANVAS_CLASS','printing-canvas-container','Normal'];_0x4e30=function(){return _0xfd14ba;};return _0x4e30();}function m(_0x46c049,_0x3b1d67,_0x478815){const _0x317171=_0x3085ed,_0xa8f3ee=_0x478815===e['Portrait']?_0x46c049:_0x3b1d67,_0x34c310=_0x478815===e[_0x317171(0x187)]?_0x3b1d67:_0x46c049,_0x4045d3=_0x317171(0x18d)+n+_0x317171(0x189)+_0xa8f3ee+_0x317171(0x197)+_0x34c310+'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+_0x317171(0x19d)+r+_0x317171(0x186)+n+_0x317171(0x1a6)+_0x34c310+_0x317171(0x1a3)+_0xa8f3ee+_0x317171(0x19a),_0x2eaa82=document[_0x317171(0x18f)](_0x317171(0x190));return _0x2eaa82['innerHTML']=_0x4045d3,_0x2eaa82[_0x317171(0x1b3)]=_0x317171(0x1a4),_0x2eaa82;}exports[_0x3085ed(0x193)]=n,exports[_0x3085ed(0x196)]=r,exports[_0x3085ed(0x1b1)]=h,exports[_0x3085ed(0x188)]=c,exports[_0x3085ed(0x1ac)]=e,exports[_0x3085ed(0x19b)]=i,exports[_0x3085ed(0x1a0)]=l,exports['createPrintStyle']=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x9f4dca=_0x30c4;function _0x30c4(_0x3a59b7,_0x2b9a7b){const _0x1d9ebf=_0x1d9e();return _0x30c4=function(_0x30c4d9,_0x16239f){_0x30c4d9=_0x30c4d9-0xa6;let _0x25fd56=_0x1d9ebf[_0x30c4d9];return _0x25fd56;},_0x30c4(_0x3a59b7,_0x2b9a7b);}(function(_0x35efc9,_0x542564){const _0x27fe7b=_0x30c4,_0x3be09f=_0x35efc9();while(!![]){try{const _0xae3c16=-parseInt(_0x27fe7b(0xc3))/0x1+-parseInt(_0x27fe7b(0xbf))/0x2*(-parseInt(_0x27fe7b(0xb2))/0x3)+parseInt(_0x27fe7b(0xb1))/0x4+parseInt(_0x27fe7b(0xb0))/0x5+parseInt(_0x27fe7b(0xb3))/0x6*(-parseInt(_0x27fe7b(0xaf))/0x7)+-parseInt(_0x27fe7b(0xb8))/0x8+-parseInt(_0x27fe7b(0xab))/0x9*(parseInt(_0x27fe7b(0xa8))/0xa);if(_0xae3c16===_0x542564)break;else _0x3be09f['push'](_0x3be09f['shift']());}catch(_0x38e34a){_0x3be09f['push'](_0x3be09f['shift']());}}}(_0x1d9e,0x75600));var e=(_0x52ec8d=>(_0x52ec8d[_0x9f4dca(0xa6)]='Portrait',_0x52ec8d[_0x9f4dca(0xb9)]=_0x9f4dca(0xb9),_0x52ec8d))(e||{}),l=(_0x2fb4b6=>(_0x2fb4b6[_0x9f4dca(0xae)]=_0x9f4dca(0xae),_0x2fb4b6[_0x9f4dca(0xc2)]='FitWidth',_0x2fb4b6[_0x9f4dca(0xb7)]='FitHeight',_0x2fb4b6[_0x9f4dca(0xad)]=_0x9f4dca(0xad),_0x2fb4b6[_0x9f4dca(0xc6)]=_0x9f4dca(0xc6),_0x2fb4b6))(l||{}),m=(_0x2fa84a=>(_0x2fa84a[_0x9f4dca(0xba)]='Start',_0x2fa84a[_0x9f4dca(0xb5)]=_0x9f4dca(0xb5),_0x2fa84a['Middle']='Middle',_0x2fa84a))(m||{}),o=(_0x593e51=>(_0x593e51[_0x9f4dca(0xbc)]=_0x9f4dca(0xbc),_0x593e51[_0x9f4dca(0xc4)]='Narrow',_0x593e51['Wide']='Wide',_0x593e51[_0x9f4dca(0xbd)]=_0x9f4dca(0xbd),_0x593e51))(o||{});const c={[o[_0x9f4dca(0xbc)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x9f4dca(0xc4)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x9f4dca(0xc1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x9f4dca(0xbd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d='printing-canvas';function g(_0x7ba534,_0xeac761,_0x5ba3cb){const _0x2ebb3c=_0x9f4dca,_0x11bd4=_0x5ba3cb===e[_0x2ebb3c(0xa6)]?_0x7ba534:_0xeac761,_0x440009=_0x5ba3cb===e[_0x2ebb3c(0xa6)]?_0xeac761:_0x7ba534,_0x4bac84=_0x2ebb3c(0xbb)+d+_0x2ebb3c(0xc5)+_0x11bd4+_0x2ebb3c(0xac)+_0x440009+'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.'+p+',\x20.'+p+_0x2ebb3c(0xaa)+d+_0x2ebb3c(0xc0)+_0x440009+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x11bd4+_0x2ebb3c(0xb6),_0x43370c=document[_0x2ebb3c(0xa9)](_0x2ebb3c(0xbe));return _0x43370c[_0x2ebb3c(0xb4)]=_0x4bac84,_0x43370c['className']=_0x2ebb3c(0xa7),_0x43370c;}function _0x1d9e(){const _0x2f24bf=['px\x20','FitPage','Origin','147UFQwcd','344590odoVMQ','2699144MJGlHr','518421qFMipq','76734MgebKe','innerHTML','End','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}','FitHeight','3630216dOcydC','Landscape','Start','\x0a\x20\x20\x20\x20.','Normal','None','style','8DlrBpB','\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','Wide','FitWidth','61109OTJiPk','Narrow','\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','Custom','Portrait','offline-printing-css','110nseGOf','createElement','\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.','139671IybTNN'];_0x1d9e=function(){return _0x2f24bf;};return _0x1d9e();}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x9f4dca=_0x30c4;function _0x30c4(_0x3a59b7,_0x2b9a7b){const _0x1d9ebf=_0x1d9e();return _0x30c4=function(_0x30c4d9,_0x16239f){_0x30c4d9=_0x30c4d9-0xa6;let _0x25fd56=_0x1d9ebf[_0x30c4d9];return _0x25fd56;},_0x30c4(_0x3a59b7,_0x2b9a7b);}(function(_0x35efc9,_0x542564){const _0x27fe7b=_0x30c4,_0x3be09f=_0x35efc9();while(!![]){try{const _0xae3c16=-parseInt(_0x27fe7b(0xc3))/0x1+-parseInt(_0x27fe7b(0xbf))/0x2*(-parseInt(_0x27fe7b(0xb2))/0x3)+parseInt(_0x27fe7b(0xb1))/0x4+parseInt(_0x27fe7b(0xb0))/0x5+parseInt(_0x27fe7b(0xb3))/0x6*(-parseInt(_0x27fe7b(0xaf))/0x7)+-parseInt(_0x27fe7b(0xb8))/0x8+-parseInt(_0x27fe7b(0xab))/0x9*(parseInt(_0x27fe7b(0xa8))/0xa);if(_0xae3c16===_0x542564)break;else _0x3be09f['push'](_0x3be09f['shift']());}catch(_0x38e34a){_0x3be09f['push'](_0x3be09f['shift']());}}}(_0x1d9e,0x75600));var e=(_0x52ec8d=>(_0x52ec8d[_0x9f4dca(0xa6)]='Portrait',_0x52ec8d[_0x9f4dca(0xb9)]=_0x9f4dca(0xb9),_0x52ec8d))(e||{}),l=(_0x2fb4b6=>(_0x2fb4b6[_0x9f4dca(0xae)]=_0x9f4dca(0xae),_0x2fb4b6[_0x9f4dca(0xc2)]='FitWidth',_0x2fb4b6[_0x9f4dca(0xb7)]='FitHeight',_0x2fb4b6[_0x9f4dca(0xad)]=_0x9f4dca(0xad),_0x2fb4b6[_0x9f4dca(0xc6)]=_0x9f4dca(0xc6),_0x2fb4b6))(l||{}),m=(_0x2fa84a=>(_0x2fa84a[_0x9f4dca(0xba)]='Start',_0x2fa84a[_0x9f4dca(0xb5)]=_0x9f4dca(0xb5),_0x2fa84a['Middle']='Middle',_0x2fa84a))(m||{}),o=(_0x593e51=>(_0x593e51[_0x9f4dca(0xbc)]=_0x9f4dca(0xbc),_0x593e51[_0x9f4dca(0xc4)]='Narrow',_0x593e51['Wide']='Wide',_0x593e51[_0x9f4dca(0xbd)]=_0x9f4dca(0xbd),_0x593e51))(o||{});const c={[o[_0x9f4dca(0xbc)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x9f4dca(0xc4)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x9f4dca(0xc1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x9f4dca(0xbd)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d='printing-canvas';function g(_0x7ba534,_0xeac761,_0x5ba3cb){const _0x2ebb3c=_0x9f4dca,_0x11bd4=_0x5ba3cb===e[_0x2ebb3c(0xa6)]?_0x7ba534:_0xeac761,_0x440009=_0x5ba3cb===e[_0x2ebb3c(0xa6)]?_0xeac761:_0x7ba534,_0x4bac84=_0x2ebb3c(0xbb)+d+_0x2ebb3c(0xc5)+_0x11bd4+_0x2ebb3c(0xac)+_0x440009+'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.'+p+',\x20.'+p+_0x2ebb3c(0xaa)+d+_0x2ebb3c(0xc0)+_0x440009+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x11bd4+_0x2ebb3c(0xb6),_0x43370c=document[_0x2ebb3c(0xa9)](_0x2ebb3c(0xbe));return _0x43370c[_0x2ebb3c(0xb4)]=_0x4bac84,_0x43370c['className']=_0x2ebb3c(0xa7),_0x43370c;}function _0x1d9e(){const _0x2f24bf=['px\x20','FitPage','Origin','147UFQwcd','344590odoVMQ','2699144MJGlHr','518421qFMipq','76734MgebKe','innerHTML','End','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}','FitHeight','3630216dOcydC','Landscape','Start','\x0a\x20\x20\x20\x20.','Normal','None','style','8DlrBpB','\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','Wide','FitWidth','61109OTJiPk','Narrow','\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','Custom','Portrait','offline-printing-css','110nseGOf','createElement','\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.','139671IybTNN'];_0x1d9e=function(){return _0x2f24bf;};return _0x1d9e();}export{d as PRINT_CANVAS_CLASS,p as PRINT_CONTAINER_CLASS,c as PaperMarginMap,m as PrintAlign,e as PrintDirection,o as PrintPaperMargin,l as PrintScale,g as createPrintStyle};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x34a8(){const _0x357328=['Narrow','amd','createPrintStyle','Origin','Normal','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','3774617aCRimT','Landscape','style','PRINT_CONTAINER_CLASS','defineProperty','FitWidth','PrintDirection','createElement','489094Jxloke','9BRdjPw','None','Portrait','px\x20','417464OSdxcW',',\x20.','offline-printing-css','exports','Middle','\x0a\x20\x20\x20\x20.','\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','\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','PRINT_CANVAS_CLASS','78gMJHHI','172145kVUOov','End','PrintPaperMargin','Custom','72xrYEWj','Start','PrintScale','14464CRVbrP','className','object','toStringTag','Wide','printing-canvas','FitPage','990511ukxeaW','14895600KOZjWM'];_0x34a8=function(){return _0x357328;};return _0x34a8();}function _0x29f3(_0x5d8d46,_0x46fa25){const _0x34a832=_0x34a8();return _0x29f3=function(_0x29f347,_0x8d16df){_0x29f347=_0x29f347-0xa6;let _0x23e3d5=_0x34a832[_0x29f347];return _0x23e3d5;},_0x29f3(_0x5d8d46,_0x46fa25);}(function(_0x5e5827,_0x9589eb){const _0x49b394=_0x29f3,_0x4045a7=_0x5e5827();while(!![]){try{const _0x1f1b07=-parseInt(_0x49b394(0xb4))/0x1+parseInt(_0x49b394(0xc4))/0x2+parseInt(_0x49b394(0xaa))/0x3*(-parseInt(_0x49b394(0xad))/0x4)+-parseInt(_0x49b394(0xa6))/0x5*(parseInt(_0x49b394(0xd2))/0x6)+parseInt(_0x49b394(0xbc))/0x7+parseInt(_0x49b394(0xc9))/0x8*(-parseInt(_0x49b394(0xc5))/0x9)+parseInt(_0x49b394(0xb5))/0xa;if(_0x1f1b07===_0x9589eb)break;else _0x4045a7['push'](_0x4045a7['shift']());}catch(_0x385c48){_0x4045a7['push'](_0x4045a7['shift']());}}}(_0x34a8,0xa9fdb),function(_0xf29452,_0xe75195){const _0x251390=_0x29f3;typeof exports==_0x251390(0xaf)&&typeof module<'u'?_0xe75195(exports):typeof define=='function'&&define[_0x251390(0xb7)]?define([_0x251390(0xcc)],_0xe75195):(_0xf29452=typeof globalThis<'u'?globalThis:_0xf29452||self,_0xe75195(_0xf29452['UniverProPrint']={}));}(this,function(_0x4bec56){'use strict';const _0x146ef1=_0x29f3;var _0x16b9da=(_0x380c56=>(_0x380c56[_0x146ef1(0xc7)]='Portrait',_0x380c56[_0x146ef1(0xbd)]=_0x146ef1(0xbd),_0x380c56))(_0x16b9da||{}),_0x18e86a=(_0x5067b1=>(_0x5067b1[_0x146ef1(0xb9)]=_0x146ef1(0xb9),_0x5067b1[_0x146ef1(0xc1)]='FitWidth',_0x5067b1['FitHeight']='FitHeight',_0x5067b1[_0x146ef1(0xb3)]=_0x146ef1(0xb3),_0x5067b1[_0x146ef1(0xa9)]='Custom',_0x5067b1))(_0x18e86a||{}),_0x12b1ea=(_0x22a782=>(_0x22a782[_0x146ef1(0xab)]=_0x146ef1(0xab),_0x22a782[_0x146ef1(0xa7)]=_0x146ef1(0xa7),_0x22a782[_0x146ef1(0xcd)]='Middle',_0x22a782))(_0x12b1ea||{}),_0x279840=(_0x5776cd=>(_0x5776cd[_0x146ef1(0xba)]=_0x146ef1(0xba),_0x5776cd['Narrow']=_0x146ef1(0xb6),_0x5776cd[_0x146ef1(0xb1)]=_0x146ef1(0xb1),_0x5776cd[_0x146ef1(0xc6)]=_0x146ef1(0xc6),_0x5776cd))(_0x279840||{});const _0x23159e={[_0x279840['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x279840[_0x146ef1(0xb6)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x279840[_0x146ef1(0xb1)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x279840[_0x146ef1(0xc6)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0xe6b363='printing-canvas-container',_0x2de72c=_0x146ef1(0xb2);function _0x2a1bf3(_0x3ec0d4,_0x8133fe,_0x190cd6){const _0xb045a3=_0x146ef1,_0x110f6b=_0x190cd6===_0x16b9da[_0xb045a3(0xc7)]?_0x3ec0d4:_0x8133fe,_0x42640b=_0x190cd6===_0x16b9da[_0xb045a3(0xc7)]?_0x8133fe:_0x3ec0d4,_0x3b3ed6=_0xb045a3(0xce)+_0x2de72c+_0xb045a3(0xd0)+_0x110f6b+_0xb045a3(0xc8)+_0x42640b+'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.'+_0xe6b363+_0xb045a3(0xca)+_0xe6b363+'\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.'+_0x2de72c+_0xb045a3(0xcf)+_0x42640b+_0xb045a3(0xbb)+_0x110f6b+'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}',_0x5ba558=document[_0xb045a3(0xc3)](_0xb045a3(0xbe));return _0x5ba558['innerHTML']=_0x3b3ed6,_0x5ba558[_0xb045a3(0xae)]=_0xb045a3(0xcb),_0x5ba558;}_0x4bec56[_0x146ef1(0xd1)]=_0x2de72c,_0x4bec56[_0x146ef1(0xbf)]=_0xe6b363,_0x4bec56['PaperMarginMap']=_0x23159e,_0x4bec56['PrintAlign']=_0x12b1ea,_0x4bec56[_0x146ef1(0xc2)]=_0x16b9da,_0x4bec56[_0x146ef1(0xa8)]=_0x279840,_0x4bec56[_0x146ef1(0xac)]=_0x18e86a,_0x4bec56[_0x146ef1(0xb8)]=_0x2a1bf3,Object[_0x146ef1(0xc0)](_0x4bec56,Symbol[_0x146ef1(0xb0)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4-nightly.202507290757",
|
|
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.3",
|
|
46
|
-
"vite": "^7.0.
|
|
46
|
+
"vite": "^7.0.6",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.9.
|
|
48
|
+
"@univerjs-infra/shared": "0.9.4"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|