@univerjs-pro/print 0.10.2 → 0.10.3-nightly.202508121228
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';function _0xa856(_0x22f526,_0x52afc0){const _0x50b1c7=_0x50b1();return _0xa856=function(_0xa85614,_0x1d5606){_0xa85614=_0xa85614-0xb4;let _0xb1d695=_0x50b1c7[_0xa85614];return _0xb1d695;},_0xa856(_0x22f526,_0x52afc0);}const _0x3d76ef=_0xa856;(function(_0x715957,_0x14947a){const _0x1e857b=_0xa856,_0x4c49dd=_0x715957();while(!![]){try{const _0x7bc32c=-parseInt(_0x1e857b(0xb5))/0x1*(parseInt(_0x1e857b(0xd9))/0x2)+-parseInt(_0x1e857b(0xbd))/0x3+-parseInt(_0x1e857b(0xdb))/0x4*(parseInt(_0x1e857b(0xb4))/0x5)+-parseInt(_0x1e857b(0xd4))/0x6+-parseInt(_0x1e857b(0xde))/0x7+parseInt(_0x1e857b(0xcf))/0x8+parseInt(_0x1e857b(0xb9))/0x9;if(_0x7bc32c===_0x14947a)break;else _0x4c49dd['push'](_0x4c49dd['shift']());}catch(_0x440331){_0x4c49dd['push'](_0x4c49dd['shift']());}}}(_0x50b1,0x3142f));Object[_0x3d76ef(0xc4)](exports,Symbol[_0x3d76ef(0xce)],{'value':'Module'});var e=(_0x4b36ae=>(_0x4b36ae[_0x3d76ef(0xcc)]=_0x3d76ef(0xcc),_0x4b36ae['Landscape']=_0x3d76ef(0xc7),_0x4b36ae))(e||{}),l=(_0x58cb17=>(_0x58cb17[_0x3d76ef(0xba)]=_0x3d76ef(0xba),_0x58cb17[_0x3d76ef(0xbc)]=_0x3d76ef(0xbc),_0x58cb17[_0x3d76ef(0xc2)]=_0x3d76ef(0xc2),_0x58cb17[_0x3d76ef(0xc5)]='FitPage',_0x58cb17[_0x3d76ef(0xd1)]='Custom',_0x58cb17))(l||{}),c=(_0x59ffa2=>(_0x59ffa2[_0x3d76ef(0xdd)]=_0x3d76ef(0xdd),_0x59ffa2['End']=_0x3d76ef(0xc1),_0x59ffa2['Middle']=_0x3d76ef(0xca),_0x59ffa2))(c||{}),i=(_0x3955be=>(_0x3955be['Normal']='Normal',_0x3955be[_0x3d76ef(0xbe)]=_0x3d76ef(0xbe),_0x3955be[_0x3d76ef(0xd5)]=_0x3d76ef(0xd5),_0x3955be[_0x3d76ef(0xb8)]=_0x3d76ef(0xb8),_0x3955be))(i||{});const h={[i[_0x3d76ef(0xd6)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[i['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[i[_0x3d76ef(0xd5)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[i[_0x3d76ef(0xb8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x3d76ef(0xcd),n=_0x3d76ef(0xd8);function m(_0x37ac22,_0x454f2c,_0x478ea6){const _0x7c0e9b=_0x3d76ef,_0x1a3980=_0x478ea6===e['Portrait']?_0x37ac22:_0x454f2c,_0x1c44b2=_0x478ea6===e['Portrait']?_0x454f2c:_0x37ac22,_0x30fde0=_0x7c0e9b(0xb6)+n+_0x7c0e9b(0xc3)+_0x1a3980+'px\x20'+_0x1c44b2+_0x7c0e9b(0xcb)+r+_0x7c0e9b(0xc8)+r+'\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.'+n+'\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'+_0x1c44b2+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x1a3980+'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}',_0x4f93f0=document[_0x7c0e9b(0xc6)](_0x7c0e9b(0xd3));return _0x4f93f0[_0x7c0e9b(0xc9)]=_0x30fde0,_0x4f93f0[_0x7c0e9b(0xbb)]=_0x7c0e9b(0xc0),_0x4f93f0;}function _0x50b1(){const _0x30fd47=['Wide','Normal','PRINT_CONTAINER_CLASS','printing-canvas','2ztrkVh','PrintScale','10180ZErdah','PrintDirection','Start','2193331gHqnxH','55WKVHCz','50833eYTYxo','\x0a\x20\x20\x20\x20.','createPrintStyle','None','6487020NayLqM','Origin','className','FitWidth','250236dYqgDf','Narrow','PRINT_CANVAS_CLASS','offline-printing-css','End','FitHeight','\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','defineProperty','FitPage','createElement','Landscape',',\x20.','innerHTML','Middle','px;\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20@page\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20hidden;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20body\x20>\x20*\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none!important;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.','Portrait','printing-canvas-container','toStringTag','2701288OScuwQ','PrintAlign','Custom','PrintPaperMargin','style','2286558hLlTqA'];_0x50b1=function(){return _0x30fd47;};return _0x50b1();}exports[_0x3d76ef(0xbf)]=n,exports[_0x3d76ef(0xd7)]=r,exports['PaperMarginMap']=h,exports[_0x3d76ef(0xd0)]=c,exports[_0x3d76ef(0xdc)]=e,exports[_0x3d76ef(0xd2)]=i,exports[_0x3d76ef(0xda)]=l,exports[_0x3d76ef(0xb7)]=m;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x1b429f=_0x4b9f;(function(_0x583985,_0x30fa8a){const _0x1aa40e=_0x4b9f,_0x27af2e=_0x583985();while(!![]){try{const _0x4fd66a=-parseInt(_0x1aa40e(0x7c))/0x1+-parseInt(_0x1aa40e(0x88))/0x2*(parseInt(_0x1aa40e(0x8f))/0x3)+parseInt(_0x1aa40e(0x75))/0x4+parseInt(_0x1aa40e(0x80))/0x5*(-parseInt(_0x1aa40e(0x73))/0x6)+parseInt(_0x1aa40e(0x8c))/0x7*(-parseInt(_0x1aa40e(0x78))/0x8)+-parseInt(_0x1aa40e(0x89))/0x9+-parseInt(_0x1aa40e(0x83))/0xa*(-parseInt(_0x1aa40e(0x8d))/0xb);if(_0x4fd66a===_0x30fa8a)break;else _0x27af2e['push'](_0x27af2e['shift']());}catch(_0x41ced3){_0x27af2e['push'](_0x27af2e['shift']());}}}(_0x1844,0x729ad));var e=(_0x1d8bc5=>(_0x1d8bc5[_0x1b429f(0x8a)]=_0x1b429f(0x8a),_0x1d8bc5['Landscape']=_0x1b429f(0x6f),_0x1d8bc5))(e||{}),l=(_0x6a084e=>(_0x6a084e['Origin']=_0x1b429f(0x8e),_0x6a084e[_0x1b429f(0x82)]=_0x1b429f(0x82),_0x6a084e[_0x1b429f(0x71)]=_0x1b429f(0x71),_0x6a084e['FitPage']=_0x1b429f(0x81),_0x6a084e[_0x1b429f(0x7a)]=_0x1b429f(0x7a),_0x6a084e))(l||{}),m=(_0x21f394=>(_0x21f394[_0x1b429f(0x6d)]='Start',_0x21f394[_0x1b429f(0x70)]='End',_0x21f394[_0x1b429f(0x84)]=_0x1b429f(0x84),_0x21f394))(m||{}),o=(_0x50219a=>(_0x50219a[_0x1b429f(0x92)]='Normal',_0x50219a[_0x1b429f(0x93)]='Narrow',_0x50219a[_0x1b429f(0x85)]=_0x1b429f(0x85),_0x50219a[_0x1b429f(0x79)]=_0x1b429f(0x79),_0x50219a))(o||{});function _0x1844(){const _0x6f65e5=['106630czEVvY','\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.','\x0a\x20\x20\x20\x20.','innerHTML','10vWXXyP','FitPage','FitWidth','606580ypFiKn','Middle','Wide','createElement','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}','679876bcvrmk','3713454ITIjHk','Portrait','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.','926569cqsDcI','330XLMlLK','Origin','6AjtxDq','offline-printing-css','\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','Normal','Narrow','printing-canvas','Start','printing-canvas-container','Landscape','End','FitHeight','style','380736EcHQBQ',',\x20.','3609096tvUYvH','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','56BMILAn','None','Custom','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x1844=function(){return _0x6f65e5;};return _0x1844();}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1b429f(0x85)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1b429f(0x79)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1b429f(0x6e),d=_0x1b429f(0x94);function _0x4b9f(_0x3de091,_0x2ed8e4){const _0x184425=_0x1844();return _0x4b9f=function(_0x4b9f30,_0xf57fda){_0x4b9f30=_0x4b9f30-0x6d;let _0xd38de1=_0x184425[_0x4b9f30];return _0xd38de1;},_0x4b9f(_0x3de091,_0x2ed8e4);}function g(_0x416897,_0x3f9d62,_0x540c78){const _0xc40328=_0x1b429f,_0x577765=_0x540c78===e[_0xc40328(0x8a)]?_0x416897:_0x3f9d62,_0x36816e=_0x540c78===e[_0xc40328(0x8a)]?_0x3f9d62:_0x416897,_0x2ae0e3=_0xc40328(0x7e)+d+_0xc40328(0x91)+_0x577765+'px\x20'+_0x36816e+_0xc40328(0x8b)+p+_0xc40328(0x74)+p+_0xc40328(0x7d)+d+_0xc40328(0x77)+_0x36816e+_0xc40328(0x7b)+_0x577765+_0xc40328(0x87),_0x55f250=document[_0xc40328(0x86)](_0xc40328(0x72));return _0x55f250[_0xc40328(0x7f)]=_0x2ae0e3,_0x55f250[_0xc40328(0x76)]=_0xc40328(0x90),_0x55f250;}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
|
-
|
|
1
|
+
const _0x1b429f=_0x4b9f;(function(_0x583985,_0x30fa8a){const _0x1aa40e=_0x4b9f,_0x27af2e=_0x583985();while(!![]){try{const _0x4fd66a=-parseInt(_0x1aa40e(0x7c))/0x1+-parseInt(_0x1aa40e(0x88))/0x2*(parseInt(_0x1aa40e(0x8f))/0x3)+parseInt(_0x1aa40e(0x75))/0x4+parseInt(_0x1aa40e(0x80))/0x5*(-parseInt(_0x1aa40e(0x73))/0x6)+parseInt(_0x1aa40e(0x8c))/0x7*(-parseInt(_0x1aa40e(0x78))/0x8)+-parseInt(_0x1aa40e(0x89))/0x9+-parseInt(_0x1aa40e(0x83))/0xa*(-parseInt(_0x1aa40e(0x8d))/0xb);if(_0x4fd66a===_0x30fa8a)break;else _0x27af2e['push'](_0x27af2e['shift']());}catch(_0x41ced3){_0x27af2e['push'](_0x27af2e['shift']());}}}(_0x1844,0x729ad));var e=(_0x1d8bc5=>(_0x1d8bc5[_0x1b429f(0x8a)]=_0x1b429f(0x8a),_0x1d8bc5['Landscape']=_0x1b429f(0x6f),_0x1d8bc5))(e||{}),l=(_0x6a084e=>(_0x6a084e['Origin']=_0x1b429f(0x8e),_0x6a084e[_0x1b429f(0x82)]=_0x1b429f(0x82),_0x6a084e[_0x1b429f(0x71)]=_0x1b429f(0x71),_0x6a084e['FitPage']=_0x1b429f(0x81),_0x6a084e[_0x1b429f(0x7a)]=_0x1b429f(0x7a),_0x6a084e))(l||{}),m=(_0x21f394=>(_0x21f394[_0x1b429f(0x6d)]='Start',_0x21f394[_0x1b429f(0x70)]='End',_0x21f394[_0x1b429f(0x84)]=_0x1b429f(0x84),_0x21f394))(m||{}),o=(_0x50219a=>(_0x50219a[_0x1b429f(0x92)]='Normal',_0x50219a[_0x1b429f(0x93)]='Narrow',_0x50219a[_0x1b429f(0x85)]=_0x1b429f(0x85),_0x50219a[_0x1b429f(0x79)]=_0x1b429f(0x79),_0x50219a))(o||{});function _0x1844(){const _0x6f65e5=['106630czEVvY','\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.','\x0a\x20\x20\x20\x20.','innerHTML','10vWXXyP','FitPage','FitWidth','606580ypFiKn','Middle','Wide','createElement','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}','679876bcvrmk','3713454ITIjHk','Portrait','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.','926569cqsDcI','330XLMlLK','Origin','6AjtxDq','offline-printing-css','\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','Normal','Narrow','printing-canvas','Start','printing-canvas-container','Landscape','End','FitHeight','style','380736EcHQBQ',',\x20.','3609096tvUYvH','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','56BMILAn','None','Custom','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x1844=function(){return _0x6f65e5;};return _0x1844();}const c={[o['Normal']]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1b429f(0x85)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1b429f(0x79)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x1b429f(0x6e),d=_0x1b429f(0x94);function _0x4b9f(_0x3de091,_0x2ed8e4){const _0x184425=_0x1844();return _0x4b9f=function(_0x4b9f30,_0xf57fda){_0x4b9f30=_0x4b9f30-0x6d;let _0xd38de1=_0x184425[_0x4b9f30];return _0xd38de1;},_0x4b9f(_0x3de091,_0x2ed8e4);}function g(_0x416897,_0x3f9d62,_0x540c78){const _0xc40328=_0x1b429f,_0x577765=_0x540c78===e[_0xc40328(0x8a)]?_0x416897:_0x3f9d62,_0x36816e=_0x540c78===e[_0xc40328(0x8a)]?_0x3f9d62:_0x416897,_0x2ae0e3=_0xc40328(0x7e)+d+_0xc40328(0x91)+_0x577765+'px\x20'+_0x36816e+_0xc40328(0x8b)+p+_0xc40328(0x74)+p+_0xc40328(0x7d)+d+_0xc40328(0x77)+_0x36816e+_0xc40328(0x7b)+_0x577765+_0xc40328(0x87),_0x55f250=document[_0xc40328(0x86)](_0xc40328(0x72));return _0x55f250[_0xc40328(0x7f)]=_0x2ae0e3,_0x55f250[_0xc40328(0x76)]=_0xc40328(0x90),_0x55f250;}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
|
-
|
|
1
|
+
(function(_0x30f280,_0x36b63e){const _0x50ce99=_0x1dc7,_0x14b00d=_0x30f280();while(!![]){try{const _0x1971c2=-parseInt(_0x50ce99(0xe9))/0x1+-parseInt(_0x50ce99(0xe1))/0x2+parseInt(_0x50ce99(0xda))/0x3*(parseInt(_0x50ce99(0xf0))/0x4)+-parseInt(_0x50ce99(0xf7))/0x5*(parseInt(_0x50ce99(0xef))/0x6)+parseInt(_0x50ce99(0xe7))/0x7*(-parseInt(_0x50ce99(0xec))/0x8)+-parseInt(_0x50ce99(0xdd))/0x9*(parseInt(_0x50ce99(0xd4))/0xa)+-parseInt(_0x50ce99(0xf8))/0xb*(-parseInt(_0x50ce99(0xd9))/0xc);if(_0x1971c2===_0x36b63e)break;else _0x14b00d['push'](_0x14b00d['shift']());}catch(_0x2024bd){_0x14b00d['push'](_0x14b00d['shift']());}}}(_0x1a67,0x90260),function(_0x30890f,_0x551c06){const _0x5ee256=_0x1dc7;typeof exports==_0x5ee256(0xf3)&&typeof module<'u'?_0x551c06(exports):typeof define==_0x5ee256(0xf6)&&define[_0x5ee256(0xee)]?define([_0x5ee256(0xe5)],_0x551c06):(_0x30890f=typeof globalThis<'u'?globalThis:_0x30890f||self,_0x551c06(_0x30890f['UniverProPrint']={}));}(this,function(_0x471ff4){'use strict';const _0x2a6324=_0x1dc7;var _0x5b43eb=(_0x296c83=>(_0x296c83[_0x2a6324(0xe2)]=_0x2a6324(0xe2),_0x296c83[_0x2a6324(0xf5)]=_0x2a6324(0xf5),_0x296c83))(_0x5b43eb||{}),_0x3a2863=(_0x4ebcea=>(_0x4ebcea['Origin']='Origin',_0x4ebcea[_0x2a6324(0xf4)]=_0x2a6324(0xf4),_0x4ebcea[_0x2a6324(0xfb)]='FitHeight',_0x4ebcea[_0x2a6324(0xde)]=_0x2a6324(0xde),_0x4ebcea[_0x2a6324(0xfd)]=_0x2a6324(0xfd),_0x4ebcea))(_0x3a2863||{}),_0x44635f=(_0x40bc63=>(_0x40bc63[_0x2a6324(0xe4)]=_0x2a6324(0xe4),_0x40bc63['End']=_0x2a6324(0xd8),_0x40bc63[_0x2a6324(0xfc)]=_0x2a6324(0xfc),_0x40bc63))(_0x44635f||{}),_0x303bb2=(_0x191893=>(_0x191893[_0x2a6324(0xe8)]='Normal',_0x191893[_0x2a6324(0xdf)]=_0x2a6324(0xdf),_0x191893['Wide']=_0x2a6324(0xe6),_0x191893[_0x2a6324(0xd3)]='None',_0x191893))(_0x303bb2||{});const _0x2f1698={[_0x303bb2[_0x2a6324(0xe8)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x303bb2[_0x2a6324(0xdf)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x303bb2[_0x2a6324(0xe6)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x303bb2['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1f6217=_0x2a6324(0xe0),_0x447122=_0x2a6324(0xf1);function _0x13ca67(_0x14c085,_0x34da0b,_0x52434e){const _0x24fee7=_0x2a6324,_0x444518=_0x52434e===_0x5b43eb['Portrait']?_0x14c085:_0x34da0b,_0x2b8be1=_0x52434e===_0x5b43eb[_0x24fee7(0xe2)]?_0x34da0b:_0x14c085,_0x334f8a=_0x24fee7(0xe3)+_0x447122+_0x24fee7(0xdb)+_0x444518+'px\x20'+_0x2b8be1+'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.'+_0x1f6217+',\x20.'+_0x1f6217+'\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.'+_0x447122+_0x24fee7(0xea)+_0x2b8be1+_0x24fee7(0xd1)+_0x444518+_0x24fee7(0xf2),_0x49ca77=document[_0x24fee7(0xfa)](_0x24fee7(0xd7));return _0x49ca77['innerHTML']=_0x334f8a,_0x49ca77['className']=_0x24fee7(0xd6),_0x49ca77;}_0x471ff4[_0x2a6324(0xff)]=_0x447122,_0x471ff4[_0x2a6324(0xd5)]=_0x1f6217,_0x471ff4[_0x2a6324(0xeb)]=_0x2f1698,_0x471ff4['PrintAlign']=_0x44635f,_0x471ff4[_0x2a6324(0xdc)]=_0x5b43eb,_0x471ff4[_0x2a6324(0xd0)]=_0x303bb2,_0x471ff4['PrintScale']=_0x3a2863,_0x471ff4[_0x2a6324(0xfe)]=_0x13ca67,Object[_0x2a6324(0xd2)](_0x471ff4,Symbol[_0x2a6324(0xf9)],{'value':_0x2a6324(0xed)});}));function _0x1dc7(_0x1847b1,_0x44a135){const _0x1a676c=_0x1a67();return _0x1dc7=function(_0x1dc7b2,_0x5e14a9){_0x1dc7b2=_0x1dc7b2-0xd0;let _0x5e3749=_0x1a676c[_0x1dc7b2];return _0x5e3749;},_0x1dc7(_0x1847b1,_0x44a135);}function _0x1a67(){const _0x295c47=['Custom','createPrintStyle','PRINT_CANVAS_CLASS','PrintPaperMargin','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','defineProperty','None','590odlJbA','PRINT_CONTAINER_CLASS','offline-printing-css','style','End','60xpajMi','42kXTaNV','\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','PrintDirection','135963ZIbaJp','FitPage','Narrow','printing-canvas-container','1859712hDsMfz','Portrait','\x0a\x20\x20\x20\x20.','Start','exports','Wide','126XdwxCZ','Normal','1133347VwHRNY','\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','PaperMarginMap','39680goxdGk','Module','amd','28878jBwVbH','167836MLsNuc','printing-canvas','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}','object','FitWidth','Landscape','function','255RsUCrU','7242983reXzYj','toStringTag','createElement','FitHeight','Middle'];_0x1a67=function(){return _0x295c47;};return _0x1a67();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3-nightly.202508121228",
|
|
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.8.3",
|
|
46
46
|
"vite": "^7.0.6",
|
|
47
47
|
"vitest": "^3.2.4",
|
|
48
|
-
"@univerjs-infra/shared": "0.10.
|
|
48
|
+
"@univerjs-infra/shared": "0.10.3"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|