@univerjs-pro/print 0.12.3 → 0.12.4-experimental.20251208-c4b8a44
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 +4 -4
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x39f284=_0x3826;(function(_0x528117,_0x4531f7){const _0x3c3b81=_0x3826,_0x1ac499=_0x528117();while(!![]){try{const _0xa0777b=parseInt(_0x3c3b81(0x1ba))/0x1*(-parseInt(_0x3c3b81(0x1a9))/0x2)+-parseInt(_0x3c3b81(0x1a8))/0x3+parseInt(_0x3c3b81(0x1a2))/0x4*(-parseInt(_0x3c3b81(0x199))/0x5)+parseInt(_0x3c3b81(0x1a6))/0x6+parseInt(_0x3c3b81(0x19f))/0x7*(-parseInt(_0x3c3b81(0x1c2))/0x8)+parseInt(_0x3c3b81(0x19a))/0x9+parseInt(_0x3c3b81(0x1bb))/0xa;if(_0xa0777b===_0x4531f7)break;else _0x1ac499['push'](_0x1ac499['shift']());}catch(_0x5abcec){_0x1ac499['push'](_0x1ac499['shift']());}}}(_0x1e47,0xa1992));function _0x3826(_0x2d1a0c,_0x5d126c){_0x2d1a0c=_0x2d1a0c-0x199;const _0x1e4738=_0x1e47();let _0x3826a1=_0x1e4738[_0x2d1a0c];return _0x3826a1;}Object[_0x39f284(0x1af)](exports,Symbol[_0x39f284(0x1aa)],{'value':_0x39f284(0x1bd)});var i=(_0x3057e5=>(_0x3057e5[_0x39f284(0x1c3)]=_0x39f284(0x1c3),_0x3057e5[_0x39f284(0x1c0)]=_0x39f284(0x1c0),_0x3057e5))(i||{}),l=(_0x3327bb=>(_0x3327bb[_0x39f284(0x1ac)]=_0x39f284(0x1ac),_0x3327bb[_0x39f284(0x1b8)]=_0x39f284(0x1b8),_0x3327bb[_0x39f284(0x1a1)]=_0x39f284(0x1a1),_0x3327bb[_0x39f284(0x1be)]=_0x39f284(0x1be),_0x3327bb[_0x39f284(0x19c)]='Custom',_0x3327bb))(l||{}),m=(_0x5e32d5=>(_0x5e32d5[_0x39f284(0x1b6)]=_0x39f284(0x1b6),_0x5e32d5[_0x39f284(0x1b7)]=_0x39f284(0x1b7),_0x5e32d5['Middle']=_0x39f284(0x1b9),_0x5e32d5))(m||{}),o=(_0xb06e60=>(_0xb06e60['Normal']=_0x39f284(0x1a7),_0xb06e60[_0x39f284(0x1c1)]=_0x39f284(0x1c1),_0xb06e60[_0x39f284(0x1a3)]='Wide',_0xb06e60[_0x39f284(0x19d)]=_0x39f284(0x19d),_0xb06e60[_0x39f284(0x19c)]=_0x39f284(0x19c),_0xb06e60))(o||{});const g={[o[_0x39f284(0x1a7)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x39f284(0x1c1)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x39f284(0x1a3)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o['None']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x39f284(0x19c)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x39f284(0x1ae),n=_0x39f284(0x1b4);function _0x1e47(){const _0x118361=['Normal','594087BZMzfI','2342926ofAtXn','toStringTag','\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.','Origin','offline-printing-css','printing-canvas-container','defineProperty','px\x20','PaperMarginMap','createPrintStyle','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','printing-canvas','innerHTML','Start','End','FitWidth','Middle','1JZUWky','32265050wHvKuX','PRINT_CANVAS_CLASS','Module','FitPage','\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','Landscape','Narrow','10478648TZHHgQ','Portrait','45DVwEGZ','2133774LQjFOI','PRINT_CONTAINER_CLASS','Custom','None','className','7ddideF','PrintScale','FitHeight','585604nFxWuG','Wide','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}','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.','7171482tycwcV'];_0x1e47=function(){return _0x118361;};return _0x1e47();}function h(_0x489962,_0x64699f,_0x16eacf){const _0x1a972f=_0x39f284,_0x811520=_0x16eacf===i[_0x1a972f(0x1c3)]?_0x489962:_0x64699f,_0x260c73=_0x16eacf===i[_0x1a972f(0x1c3)]?_0x64699f:_0x489962,_0x1f829f='\x0a\x20\x20\x20\x20.'+n+_0x1a972f(0x1bf)+_0x811520+_0x1a972f(0x1b0)+_0x260c73+_0x1a972f(0x1a5)+r+',\x20.'+r+_0x1a972f(0x1ab)+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'+_0x260c73+_0x1a972f(0x1b3)+_0x811520+_0x1a972f(0x1a4),_0xd2b8e7=document['createElement']('style');return _0xd2b8e7[_0x1a972f(0x1b5)]=_0x1f829f,_0xd2b8e7[_0x1a972f(0x19e)]=_0x1a972f(0x1ad),_0xd2b8e7;}exports[_0x39f284(0x1bc)]=n,exports[_0x39f284(0x19b)]=r,exports[_0x39f284(0x1b1)]=g,exports['PrintAlign']=m,exports['PrintDirection']=i,exports['PrintPaperMargin']=o,exports[_0x39f284(0x1a0)]=l,exports[_0x39f284(0x1b2)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1d90f0=_0x31bf;(function(_0x18f055,_0xfce09b){const _0x4f3c43=_0x31bf,_0x541de3=_0x18f055();while(!![]){try{const _0x58bba0=-parseInt(_0x4f3c43(0x1c1))/0x1*(parseInt(_0x4f3c43(0x1d9))/0x2)+-parseInt(_0x4f3c43(0x1d5))/0x3+-parseInt(_0x4f3c43(0x1cc))/0x4+parseInt(_0x4f3c43(0x1cb))/0x5*(parseInt(_0x4f3c43(0x1d1))/0x6)+-parseInt(_0x4f3c43(0x1c0))/0x7+-parseInt(_0x4f3c43(0x1cd))/0x8+parseInt(_0x4f3c43(0x1c8))/0x9*(parseInt(_0x4f3c43(0x1c5))/0xa);if(_0x58bba0===_0xfce09b)break;else _0x541de3['push'](_0x541de3['shift']());}catch(_0x2ff4e5){_0x541de3['push'](_0x541de3['shift']());}}}(_0x4563,0x3b984));function _0x31bf(_0x27fd59,_0x14a290){_0x27fd59=_0x27fd59-0x1c0;const _0x456328=_0x4563();let _0x31bf72=_0x456328[_0x27fd59];return _0x31bf72;}var e=(_0x2d938d=>(_0x2d938d[_0x1d90f0(0x1ca)]=_0x1d90f0(0x1ca),_0x2d938d[_0x1d90f0(0x1df)]='Landscape',_0x2d938d))(e||{}),h=(_0x31b661=>(_0x31b661['Origin']=_0x1d90f0(0x1d6),_0x31b661[_0x1d90f0(0x1e1)]=_0x1d90f0(0x1e1),_0x31b661[_0x1d90f0(0x1d2)]='FitHeight',_0x31b661[_0x1d90f0(0x1d8)]='FitPage',_0x31b661['Custom']=_0x1d90f0(0x1d3),_0x31b661))(h||{}),l=(_0x1a61bd=>(_0x1a61bd[_0x1d90f0(0x1d7)]=_0x1d90f0(0x1d7),_0x1a61bd[_0x1d90f0(0x1ce)]=_0x1d90f0(0x1ce),_0x1a61bd[_0x1d90f0(0x1de)]=_0x1d90f0(0x1de),_0x1a61bd))(l||{}),o=(_0x10534c=>(_0x10534c['Normal']='Normal',_0x10534c['Narrow']='Narrow',_0x10534c[_0x1d90f0(0x1dc)]=_0x1d90f0(0x1dc),_0x10534c[_0x1d90f0(0x1c7)]=_0x1d90f0(0x1c7),_0x10534c['Custom']=_0x1d90f0(0x1d3),_0x10534c))(o||{});const c={[o[_0x1d90f0(0x1e0)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1d90f0(0x1dc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1d90f0(0x1c7)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x1d90f0(0x1d3)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x1d90f0(0x1c2);function g(_0xeec82c,_0x329db5,_0x351937){const _0x5cccb1=_0x1d90f0,_0xcaa68e=_0x351937===e['Portrait']?_0xeec82c:_0x329db5,_0x1a3a4f=_0x351937===e[_0x5cccb1(0x1ca)]?_0x329db5:_0xeec82c,_0x105190='\x0a\x20\x20\x20\x20.'+d+_0x5cccb1(0x1c3)+_0xcaa68e+_0x5cccb1(0x1c9)+_0x1a3a4f+_0x5cccb1(0x1cf)+p+_0x5cccb1(0x1d4)+p+_0x5cccb1(0x1db)+d+'\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'+_0x1a3a4f+_0x5cccb1(0x1c6)+_0xcaa68e+_0x5cccb1(0x1da),_0x722f99=document[_0x5cccb1(0x1dd)](_0x5cccb1(0x1c4));return _0x722f99['innerHTML']=_0x105190,_0x722f99['className']=_0x5cccb1(0x1d0),_0x722f99;}function _0x4563(){const _0x3e320d=['Landscape','Normal','FitWidth','1393910cAQoRu','78185xrdIjK','printing-canvas','\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','style','980610tplrIc','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','None','117HDzgcX','px\x20','Portrait','866805KouuBJ','685896VjUaGB','3303272nIeqqy','End','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.','offline-printing-css','6goixUj','FitHeight','Custom',',\x20.','88848QvkgoF','Origin','Start','FitPage','10QjykCr','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}','\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.','Wide','createElement','Middle'];_0x4563=function(){return _0x3e320d;};return _0x4563();}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 _0x1d90f0=_0x31bf;(function(_0x18f055,_0xfce09b){const _0x4f3c43=_0x31bf,_0x541de3=_0x18f055();while(!![]){try{const _0x58bba0=-parseInt(_0x4f3c43(0x1c1))/0x1*(parseInt(_0x4f3c43(0x1d9))/0x2)+-parseInt(_0x4f3c43(0x1d5))/0x3+-parseInt(_0x4f3c43(0x1cc))/0x4+parseInt(_0x4f3c43(0x1cb))/0x5*(parseInt(_0x4f3c43(0x1d1))/0x6)+-parseInt(_0x4f3c43(0x1c0))/0x7+-parseInt(_0x4f3c43(0x1cd))/0x8+parseInt(_0x4f3c43(0x1c8))/0x9*(parseInt(_0x4f3c43(0x1c5))/0xa);if(_0x58bba0===_0xfce09b)break;else _0x541de3['push'](_0x541de3['shift']());}catch(_0x2ff4e5){_0x541de3['push'](_0x541de3['shift']());}}}(_0x4563,0x3b984));function _0x31bf(_0x27fd59,_0x14a290){_0x27fd59=_0x27fd59-0x1c0;const _0x456328=_0x4563();let _0x31bf72=_0x456328[_0x27fd59];return _0x31bf72;}var e=(_0x2d938d=>(_0x2d938d[_0x1d90f0(0x1ca)]=_0x1d90f0(0x1ca),_0x2d938d[_0x1d90f0(0x1df)]='Landscape',_0x2d938d))(e||{}),h=(_0x31b661=>(_0x31b661['Origin']=_0x1d90f0(0x1d6),_0x31b661[_0x1d90f0(0x1e1)]=_0x1d90f0(0x1e1),_0x31b661[_0x1d90f0(0x1d2)]='FitHeight',_0x31b661[_0x1d90f0(0x1d8)]='FitPage',_0x31b661['Custom']=_0x1d90f0(0x1d3),_0x31b661))(h||{}),l=(_0x1a61bd=>(_0x1a61bd[_0x1d90f0(0x1d7)]=_0x1d90f0(0x1d7),_0x1a61bd[_0x1d90f0(0x1ce)]=_0x1d90f0(0x1ce),_0x1a61bd[_0x1d90f0(0x1de)]=_0x1d90f0(0x1de),_0x1a61bd))(l||{}),o=(_0x10534c=>(_0x10534c['Normal']='Normal',_0x10534c['Narrow']='Narrow',_0x10534c[_0x1d90f0(0x1dc)]=_0x1d90f0(0x1dc),_0x10534c[_0x1d90f0(0x1c7)]=_0x1d90f0(0x1c7),_0x10534c['Custom']=_0x1d90f0(0x1d3),_0x10534c))(o||{});const c={[o[_0x1d90f0(0x1e0)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1d90f0(0x1dc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1d90f0(0x1c7)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x1d90f0(0x1d3)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p='printing-canvas-container',d=_0x1d90f0(0x1c2);function g(_0xeec82c,_0x329db5,_0x351937){const _0x5cccb1=_0x1d90f0,_0xcaa68e=_0x351937===e['Portrait']?_0xeec82c:_0x329db5,_0x1a3a4f=_0x351937===e[_0x5cccb1(0x1ca)]?_0x329db5:_0xeec82c,_0x105190='\x0a\x20\x20\x20\x20.'+d+_0x5cccb1(0x1c3)+_0xcaa68e+_0x5cccb1(0x1c9)+_0x1a3a4f+_0x5cccb1(0x1cf)+p+_0x5cccb1(0x1d4)+p+_0x5cccb1(0x1db)+d+'\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'+_0x1a3a4f+_0x5cccb1(0x1c6)+_0xcaa68e+_0x5cccb1(0x1da),_0x722f99=document[_0x5cccb1(0x1dd)](_0x5cccb1(0x1c4));return _0x722f99['innerHTML']=_0x105190,_0x722f99['className']=_0x5cccb1(0x1d0),_0x722f99;}function _0x4563(){const _0x3e320d=['Landscape','Normal','FitWidth','1393910cAQoRu','78185xrdIjK','printing-canvas','\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','style','980610tplrIc','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','None','117HDzgcX','px\x20','Portrait','866805KouuBJ','685896VjUaGB','3303272nIeqqy','End','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.','offline-printing-css','6goixUj','FitHeight','Custom',',\x20.','88848QvkgoF','Origin','Start','FitPage','10QjykCr','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}','\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.','Wide','createElement','Middle'];_0x4563=function(){return _0x3e320d;};return _0x4563();}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
|
-
(function(
|
|
1
|
+
function _0x504e(_0x245b90,_0x3c5512){_0x245b90=_0x245b90-0xbf;const _0xcb65cd=_0xcb65();let _0x504e8d=_0xcb65cd[_0x245b90];return _0x504e8d;}(function(_0x2abaec,_0x4463c6){const _0x23106e=_0x504e,_0x249158=_0x2abaec();while(!![]){try{const _0x345fe5=parseInt(_0x23106e(0xdc))/0x1*(parseInt(_0x23106e(0xd1))/0x2)+parseInt(_0x23106e(0xe5))/0x3+parseInt(_0x23106e(0xca))/0x4+parseInt(_0x23106e(0xea))/0x5*(-parseInt(_0x23106e(0xdd))/0x6)+-parseInt(_0x23106e(0xde))/0x7*(parseInt(_0x23106e(0xd8))/0x8)+parseInt(_0x23106e(0xc1))/0x9*(parseInt(_0x23106e(0xe1))/0xa)+parseInt(_0x23106e(0xef))/0xb*(-parseInt(_0x23106e(0xc9))/0xc);if(_0x345fe5===_0x4463c6)break;else _0x249158['push'](_0x249158['shift']());}catch(_0x3ac6d6){_0x249158['push'](_0x249158['shift']());}}}(_0xcb65,0x962c0),function(_0x427328,_0x1fe3a1){const _0x14dcd3=_0x504e;typeof exports==_0x14dcd3(0xc7)&&typeof module<'u'?_0x1fe3a1(exports):typeof define==_0x14dcd3(0xd5)&&define[_0x14dcd3(0xee)]?define(['exports'],_0x1fe3a1):(_0x427328=typeof globalThis<'u'?globalThis:_0x427328||self,_0x1fe3a1(_0x427328['UniverProPrint']={}));}(this,function(_0x2249e5){'use strict';const _0x4169df=_0x504e;var _0x5c4840=(_0xe8f5c6=>(_0xe8f5c6[_0x4169df(0xe0)]=_0x4169df(0xe0),_0xe8f5c6[_0x4169df(0xcd)]=_0x4169df(0xcd),_0xe8f5c6))(_0x5c4840||{}),_0x5c11f5=(_0xf3054=>(_0xf3054['Origin']=_0x4169df(0xd6),_0xf3054[_0x4169df(0xcf)]=_0x4169df(0xcf),_0xf3054[_0x4169df(0xc3)]=_0x4169df(0xc3),_0xf3054['FitPage']='FitPage',_0xf3054[_0x4169df(0xd0)]=_0x4169df(0xd0),_0xf3054))(_0x5c11f5||{}),_0x2caf59=(_0x7c4e89=>(_0x7c4e89['Start']=_0x4169df(0xe4),_0x7c4e89[_0x4169df(0xcb)]=_0x4169df(0xcb),_0x7c4e89['Middle']=_0x4169df(0xe8),_0x7c4e89))(_0x2caf59||{}),_0x33bce8=(_0x2cd8b0=>(_0x2cd8b0[_0x4169df(0xcc)]=_0x4169df(0xcc),_0x2cd8b0[_0x4169df(0xc0)]=_0x4169df(0xc0),_0x2cd8b0[_0x4169df(0xc8)]=_0x4169df(0xc8),_0x2cd8b0[_0x4169df(0xf0)]=_0x4169df(0xf0),_0x2cd8b0[_0x4169df(0xd0)]='Custom',_0x2cd8b0))(_0x33bce8||{});const _0x33e4d2={[_0x33bce8[_0x4169df(0xcc)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x33bce8[_0x4169df(0xc0)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x33bce8[_0x4169df(0xc8)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x33bce8[_0x4169df(0xf0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x33bce8[_0x4169df(0xd0)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x38fe85=_0x4169df(0xe7),_0x3fc95f=_0x4169df(0xc2);function _0x49c0d2(_0x42056f,_0x4d2bff,_0xb81a4c){const _0x515947=_0x4169df,_0x5128c2=_0xb81a4c===_0x5c4840[_0x515947(0xe0)]?_0x42056f:_0x4d2bff,_0x3a3e85=_0xb81a4c===_0x5c4840[_0x515947(0xe0)]?_0x4d2bff:_0x42056f,_0x3da26b='\x0a\x20\x20\x20\x20.'+_0x3fc95f+_0x515947(0xec)+_0x5128c2+_0x515947(0xd2)+_0x3a3e85+_0x515947(0xe2)+_0x38fe85+',\x20.'+_0x38fe85+_0x515947(0xd4)+_0x3fc95f+_0x515947(0xdf)+_0x3a3e85+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x5128c2+_0x515947(0xe3),_0x1762c5=document[_0x515947(0xc4)]('style');return _0x1762c5[_0x515947(0xe9)]=_0x3da26b,_0x1762c5[_0x515947(0xd7)]=_0x515947(0xc5),_0x1762c5;}_0x2249e5[_0x4169df(0xda)]=_0x3fc95f,_0x2249e5['PRINT_CONTAINER_CLASS']=_0x38fe85,_0x2249e5[_0x4169df(0xce)]=_0x33e4d2,_0x2249e5[_0x4169df(0xed)]=_0x2caf59,_0x2249e5[_0x4169df(0xd3)]=_0x5c4840,_0x2249e5[_0x4169df(0xd9)]=_0x33bce8,_0x2249e5[_0x4169df(0xbf)]=_0x5c11f5,_0x2249e5[_0x4169df(0xc6)]=_0x49c0d2,Object[_0x4169df(0xeb)](_0x2249e5,Symbol[_0x4169df(0xe6)],{'value':_0x4169df(0xdb)});}));function _0xcb65(){const _0x3c3222=['5368099VJhuMs','None','PrintScale','Narrow','27wnhoQw','printing-canvas','FitHeight','createElement','offline-printing-css','createPrintStyle','object','Wide','12lVqFCg','4782028ADElpV','End','Normal','Landscape','PaperMarginMap','FitWidth','Custom','8nEVvWT','px\x20','PrintDirection','\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.','function','Origin','className','72mPOqmT','PrintPaperMargin','PRINT_CANVAS_CLASS','Module','25334PJQCUQ','1380KMqAuL','539014ndXSOQ','\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','Portrait','2338430ySJDdg','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.','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}','Start','1493637Eeifir','toStringTag','printing-canvas-container','Middle','innerHTML','15220lbkqxL','defineProperty','\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','PrintAlign','amd'];_0xcb65=function(){return _0x3c3222;};return _0xcb65();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.4-experimental.20251208-c4b8a44",
|
|
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.2.
|
|
47
|
-
"vitest": "^4.0.
|
|
48
|
-
"@univerjs-infra/shared": "0.12.
|
|
46
|
+
"vite": "^7.2.6",
|
|
47
|
+
"vitest": "^4.0.15",
|
|
48
|
+
"@univerjs-infra/shared": "0.12.4"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|