@univerjs-pro/print 0.12.1 → 0.12.2-nightly.202511290732
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 _0x1a7bf3=_0xa6be;(function(_0x40e634,_0x461786){const _0x22cb0c=_0xa6be,_0x2d1d12=_0x40e634();while(!![]){try{const _0x530518=-parseInt(_0x22cb0c(0xfa))/0x1*(parseInt(_0x22cb0c(0xe8))/0x2)+parseInt(_0x22cb0c(0xfe))/0x3*(-parseInt(_0x22cb0c(0x110))/0x4)+parseInt(_0x22cb0c(0xf2))/0x5*(-parseInt(_0x22cb0c(0x106))/0x6)+parseInt(_0x22cb0c(0x104))/0x7*(-parseInt(_0x22cb0c(0x103))/0x8)+parseInt(_0x22cb0c(0xf5))/0x9*(parseInt(_0x22cb0c(0xeb))/0xa)+-parseInt(_0x22cb0c(0xf0))/0xb+parseInt(_0x22cb0c(0x10a))/0xc;if(_0x530518===_0x461786)break;else _0x2d1d12['push'](_0x2d1d12['shift']());}catch(_0x1b5604){_0x2d1d12['push'](_0x2d1d12['shift']());}}}(_0x5f58,0x241f6));function _0x5f58(){const _0x41bc52=['462895vYlGuB','printing-canvas-container','Middle','17082TOIWUl','Landscape','PrintAlign','\x0a\x20\x20\x20\x20.','FitPage','253eIzeEm','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\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','FitWidth','3bbQyvW','PaperMarginMap','PRINT_CONTAINER_CLASS','Start','Wide','104PUToRY','136535kiiGJe','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}','6mzrCLH','Origin','innerHTML','px\x20','7776036kHJcZG','Normal','PrintPaperMargin','printing-canvas','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.','createPrintStyle','680468mfxNhr','Portrait',',\x20.','defineProperty','offline-printing-css','End','254KbMaQk','PrintScale','\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','550NRLmjO','toStringTag','None','\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.','Custom','616473MpuRsI','Module'];_0x5f58=function(){return _0x41bc52;};return _0x5f58();}Object[_0x1a7bf3(0xe5)](exports,Symbol[_0x1a7bf3(0xec)],{'value':_0x1a7bf3(0xf1)});function _0xa6be(_0xfe5b59,_0x52b7c4){const _0x5f587d=_0x5f58();return _0xa6be=function(_0xa6be26,_0x2669cc){_0xa6be26=_0xa6be26-0xe5;let _0x525d80=_0x5f587d[_0xa6be26];return _0x525d80;},_0xa6be(_0xfe5b59,_0x52b7c4);}var i=(_0x499e5b=>(_0x499e5b[_0x1a7bf3(0x111)]=_0x1a7bf3(0x111),_0x499e5b[_0x1a7bf3(0xf6)]=_0x1a7bf3(0xf6),_0x499e5b))(i||{}),l=(_0x448b81=>(_0x448b81[_0x1a7bf3(0x107)]=_0x1a7bf3(0x107),_0x448b81[_0x1a7bf3(0xfd)]=_0x1a7bf3(0xfd),_0x448b81['FitHeight']='FitHeight',_0x448b81[_0x1a7bf3(0xf9)]='FitPage',_0x448b81[_0x1a7bf3(0xef)]='Custom',_0x448b81))(l||{}),m=(_0x9bd033=>(_0x9bd033[_0x1a7bf3(0x101)]=_0x1a7bf3(0x101),_0x9bd033['End']=_0x1a7bf3(0xe7),_0x9bd033['Middle']=_0x1a7bf3(0xf4),_0x9bd033))(m||{}),o=(_0x48e499=>(_0x48e499[_0x1a7bf3(0x10b)]='Normal',_0x48e499['Narrow']='Narrow',_0x48e499[_0x1a7bf3(0x102)]='Wide',_0x48e499[_0x1a7bf3(0xed)]=_0x1a7bf3(0xed),_0x48e499[_0x1a7bf3(0xef)]=_0x1a7bf3(0xef),_0x48e499))(o||{});const g={[o[_0x1a7bf3(0x10b)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x1a7bf3(0x102)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x1a7bf3(0xed)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o['Custom']]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x1a7bf3(0xf3),n=_0x1a7bf3(0x10d);function h(_0x3c6358,_0x5cbcfe,_0x282f53){const _0x422552=_0x1a7bf3,_0x62ac4a=_0x282f53===i[_0x422552(0x111)]?_0x3c6358:_0x5cbcfe,_0x49aa34=_0x282f53===i[_0x422552(0x111)]?_0x5cbcfe:_0x3c6358,_0x4a59b9=_0x422552(0xf8)+n+_0x422552(0xfc)+_0x62ac4a+_0x422552(0x109)+_0x49aa34+_0x422552(0x10e)+r+_0x422552(0x112)+r+_0x422552(0xee)+n+_0x422552(0xea)+_0x49aa34+_0x422552(0xfb)+_0x62ac4a+_0x422552(0x105),_0x2b97a4=document['createElement']('style');return _0x2b97a4[_0x422552(0x108)]=_0x4a59b9,_0x2b97a4['className']=_0x422552(0xe6),_0x2b97a4;}exports['PRINT_CANVAS_CLASS']=n,exports[_0x1a7bf3(0x100)]=r,exports[_0x1a7bf3(0xff)]=g,exports[_0x1a7bf3(0xf7)]=m,exports['PrintDirection']=i,exports[_0x1a7bf3(0x10c)]=o,exports[_0x1a7bf3(0xe9)]=l,exports[_0x1a7bf3(0x10f)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x40b465=_0x5d64;function _0x3eb9(){const _0x2c1551=['Middle','Narrow','17QNehZd','innerHTML','783cqlvYj','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.','1589370SKZXTX','174hlxMMa','\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','44305gxbCtL','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','FitHeight','50050AuZxgg','\x0a\x20\x20\x20\x20.','None','printing-canvas-container','Custom','printing-canvas','Origin','style','px\x20','36DoJlNx','924912AKxbsy','Portrait','Normal','Wide','offline-printing-css','createElement','10966450YTmpPM','\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.','Start','1306347HivJNh','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}','End',',\x20.','3236ZbVnrp'];_0x3eb9=function(){return _0x2c1551;};return _0x3eb9();}(function(_0x55848e,_0x4b1f0a){const _0x238d17=_0x5d64,_0x1545d4=_0x55848e();while(!![]){try{const _0x5eccc3=-parseInt(_0x238d17(0xd9))/0x1*(-parseInt(_0x238d17(0xe6))/0x2)+parseInt(_0x238d17(0xdb))/0x3*(parseInt(_0x238d17(0xd6))/0x4)+parseInt(_0x238d17(0xe1))/0x5*(-parseInt(_0x238d17(0xdf))/0x6)+parseInt(_0x238d17(0xd2))/0x7+parseInt(_0x238d17(0xc9))/0x8+-parseInt(_0x238d17(0xc8))/0x9*(-parseInt(_0x238d17(0xde))/0xa)+-parseInt(_0x238d17(0xcf))/0xb;if(_0x5eccc3===_0x4b1f0a)break;else _0x1545d4['push'](_0x1545d4['shift']());}catch(_0x3c69d8){_0x1545d4['push'](_0x1545d4['shift']());}}}(_0x3eb9,0x4e47e));var e=(_0x5c631f=>(_0x5c631f['Portrait']=_0x40b465(0xca),_0x5c631f[_0x40b465(0xe4)]=_0x40b465(0xe4),_0x5c631f))(e||{}),h=(_0x59f090=>(_0x59f090['Origin']=_0x40b465(0xec),_0x59f090[_0x40b465(0xdc)]=_0x40b465(0xdc),_0x59f090['FitHeight']=_0x40b465(0xe5),_0x59f090['FitPage']=_0x40b465(0xe2),_0x59f090[_0x40b465(0xea)]=_0x40b465(0xea),_0x59f090))(h||{}),l=(_0xb9344f=>(_0xb9344f[_0x40b465(0xd1)]='Start',_0xb9344f[_0x40b465(0xd4)]=_0x40b465(0xd4),_0xb9344f[_0x40b465(0xd7)]='Middle',_0xb9344f))(l||{}),o=(_0x55845c=>(_0x55845c['Normal']=_0x40b465(0xcb),_0x55845c[_0x40b465(0xd8)]=_0x40b465(0xd8),_0x55845c[_0x40b465(0xcc)]='Wide',_0x55845c[_0x40b465(0xe8)]=_0x40b465(0xe8),_0x55845c['Custom']='Custom',_0x55845c))(o||{});function _0x5d64(_0x15b7d3,_0x29e001){const _0x3eb973=_0x3eb9();return _0x5d64=function(_0x5d6412,_0x1f242a){_0x5d6412=_0x5d6412-0xc7;let _0x41f19c=_0x3eb973[_0x5d6412];return _0x41f19c;},_0x5d64(_0x15b7d3,_0x29e001);}const c={[o[_0x40b465(0xcb)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x40b465(0xcc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x40b465(0xe8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x40b465(0xea)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x40b465(0xe9),d=_0x40b465(0xeb);function g(_0x38d3fd,_0x54397b,_0x268a45){const _0x3dc789=_0x40b465,_0x35ee6b=_0x268a45===e[_0x3dc789(0xca)]?_0x38d3fd:_0x54397b,_0x5bc3fe=_0x268a45===e[_0x3dc789(0xca)]?_0x54397b:_0x38d3fd,_0x3635ca=_0x3dc789(0xe7)+d+_0x3dc789(0xe0)+_0x35ee6b+_0x3dc789(0xc7)+_0x5bc3fe+_0x3dc789(0xdd)+p+_0x3dc789(0xd5)+p+_0x3dc789(0xd0)+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'+_0x5bc3fe+_0x3dc789(0xe3)+_0x35ee6b+_0x3dc789(0xd3),_0x4d9266=document[_0x3dc789(0xce)](_0x3dc789(0xed));return _0x4d9266[_0x3dc789(0xda)]=_0x3635ca,_0x4d9266['className']=_0x3dc789(0xcd),_0x4d9266;}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 _0x40b465=_0x5d64;function _0x3eb9(){const _0x2c1551=['Middle','Narrow','17QNehZd','innerHTML','783cqlvYj','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.','1589370SKZXTX','174hlxMMa','\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','44305gxbCtL','FitPage','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20','Landscape','FitHeight','50050AuZxgg','\x0a\x20\x20\x20\x20.','None','printing-canvas-container','Custom','printing-canvas','Origin','style','px\x20','36DoJlNx','924912AKxbsy','Portrait','Normal','Wide','offline-printing-css','createElement','10966450YTmpPM','\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.','Start','1306347HivJNh','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}','End',',\x20.','3236ZbVnrp'];_0x3eb9=function(){return _0x2c1551;};return _0x3eb9();}(function(_0x55848e,_0x4b1f0a){const _0x238d17=_0x5d64,_0x1545d4=_0x55848e();while(!![]){try{const _0x5eccc3=-parseInt(_0x238d17(0xd9))/0x1*(-parseInt(_0x238d17(0xe6))/0x2)+parseInt(_0x238d17(0xdb))/0x3*(parseInt(_0x238d17(0xd6))/0x4)+parseInt(_0x238d17(0xe1))/0x5*(-parseInt(_0x238d17(0xdf))/0x6)+parseInt(_0x238d17(0xd2))/0x7+parseInt(_0x238d17(0xc9))/0x8+-parseInt(_0x238d17(0xc8))/0x9*(-parseInt(_0x238d17(0xde))/0xa)+-parseInt(_0x238d17(0xcf))/0xb;if(_0x5eccc3===_0x4b1f0a)break;else _0x1545d4['push'](_0x1545d4['shift']());}catch(_0x3c69d8){_0x1545d4['push'](_0x1545d4['shift']());}}}(_0x3eb9,0x4e47e));var e=(_0x5c631f=>(_0x5c631f['Portrait']=_0x40b465(0xca),_0x5c631f[_0x40b465(0xe4)]=_0x40b465(0xe4),_0x5c631f))(e||{}),h=(_0x59f090=>(_0x59f090['Origin']=_0x40b465(0xec),_0x59f090[_0x40b465(0xdc)]=_0x40b465(0xdc),_0x59f090['FitHeight']=_0x40b465(0xe5),_0x59f090['FitPage']=_0x40b465(0xe2),_0x59f090[_0x40b465(0xea)]=_0x40b465(0xea),_0x59f090))(h||{}),l=(_0xb9344f=>(_0xb9344f[_0x40b465(0xd1)]='Start',_0xb9344f[_0x40b465(0xd4)]=_0x40b465(0xd4),_0xb9344f[_0x40b465(0xd7)]='Middle',_0xb9344f))(l||{}),o=(_0x55845c=>(_0x55845c['Normal']=_0x40b465(0xcb),_0x55845c[_0x40b465(0xd8)]=_0x40b465(0xd8),_0x55845c[_0x40b465(0xcc)]='Wide',_0x55845c[_0x40b465(0xe8)]=_0x40b465(0xe8),_0x55845c['Custom']='Custom',_0x55845c))(o||{});function _0x5d64(_0x15b7d3,_0x29e001){const _0x3eb973=_0x3eb9();return _0x5d64=function(_0x5d6412,_0x1f242a){_0x5d6412=_0x5d6412-0xc7;let _0x41f19c=_0x3eb973[_0x5d6412];return _0x41f19c;},_0x5d64(_0x15b7d3,_0x29e001);}const c={[o[_0x40b465(0xcb)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x40b465(0xcc)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x40b465(0xe8)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x40b465(0xea)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x40b465(0xe9),d=_0x40b465(0xeb);function g(_0x38d3fd,_0x54397b,_0x268a45){const _0x3dc789=_0x40b465,_0x35ee6b=_0x268a45===e[_0x3dc789(0xca)]?_0x38d3fd:_0x54397b,_0x5bc3fe=_0x268a45===e[_0x3dc789(0xca)]?_0x54397b:_0x38d3fd,_0x3635ca=_0x3dc789(0xe7)+d+_0x3dc789(0xe0)+_0x35ee6b+_0x3dc789(0xc7)+_0x5bc3fe+_0x3dc789(0xdd)+p+_0x3dc789(0xd5)+p+_0x3dc789(0xd0)+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'+_0x5bc3fe+_0x3dc789(0xe3)+_0x35ee6b+_0x3dc789(0xd3),_0x4d9266=document[_0x3dc789(0xce)](_0x3dc789(0xed));return _0x4d9266[_0x3dc789(0xda)]=_0x3635ca,_0x4d9266['className']=_0x3dc789(0xcd),_0x4d9266;}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(_0x87233f,_0x2d854b){const _0xa42e08=_0x1e4c,_0x5e460c=_0x87233f();while(!![]){try{const _0x42e7c5=-parseInt(_0xa42e08(0x19b))/0x1+-parseInt(_0xa42e08(0x17e))/0x2+parseInt(_0xa42e08(0x184))/0x3*(parseInt(_0xa42e08(0x180))/0x4)+-parseInt(_0xa42e08(0x17f))/0x5*(-parseInt(_0xa42e08(0x190))/0x6)+-parseInt(_0xa42e08(0x170))/0x7*(-parseInt(_0xa42e08(0x181))/0x8)+-parseInt(_0xa42e08(0x172))/0x9+-parseInt(_0xa42e08(0x195))/0xa*(-parseInt(_0xa42e08(0x175))/0xb);if(_0x42e7c5===_0x2d854b)break;else _0x5e460c['push'](_0x5e460c['shift']());}catch(_0x4a3240){_0x5e460c['push'](_0x5e460c['shift']());}}}(_0x4f53,0x3c27c),function(_0x3194db,_0x5b39ae){const _0x210997=_0x1e4c;typeof exports==_0x210997(0x192)&&typeof module<'u'?_0x5b39ae(exports):typeof define=='function'&&define[_0x210997(0x19c)]?define([_0x210997(0x193)],_0x5b39ae):(_0x3194db=typeof globalThis<'u'?globalThis:_0x3194db||self,_0x5b39ae(_0x3194db[_0x210997(0x191)]={}));}(this,function(_0x59afa1){'use strict';const _0x4797db=_0x1e4c;var _0x12631e=(_0x4f877b=>(_0x4f877b[_0x4797db(0x171)]='Portrait',_0x4f877b[_0x4797db(0x188)]=_0x4797db(0x188),_0x4f877b))(_0x12631e||{}),_0xf91182=(_0x2a87e1=>(_0x2a87e1[_0x4797db(0x19f)]=_0x4797db(0x19f),_0x2a87e1['FitWidth']=_0x4797db(0x198),_0x2a87e1[_0x4797db(0x186)]=_0x4797db(0x186),_0x2a87e1['FitPage']=_0x4797db(0x19d),_0x2a87e1[_0x4797db(0x183)]='Custom',_0x2a87e1))(_0xf91182||{}),_0xa041da=(_0x57fc39=>(_0x57fc39[_0x4797db(0x17b)]=_0x4797db(0x17b),_0x57fc39['End']=_0x4797db(0x18b),_0x57fc39[_0x4797db(0x187)]=_0x4797db(0x187),_0x57fc39))(_0xa041da||{}),_0x454dba=(_0x286c8a=>(_0x286c8a[_0x4797db(0x189)]=_0x4797db(0x189),_0x286c8a[_0x4797db(0x196)]='Narrow',_0x286c8a['Wide']='Wide',_0x286c8a[_0x4797db(0x173)]=_0x4797db(0x173),_0x286c8a[_0x4797db(0x183)]=_0x4797db(0x183),_0x286c8a))(_0x454dba||{});const _0x542f7e={[_0x454dba[_0x4797db(0x189)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x454dba[_0x4797db(0x196)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x454dba[_0x4797db(0x17a)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x454dba[_0x4797db(0x173)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x454dba[_0x4797db(0x183)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x4a7090=_0x4797db(0x18f),_0x4c0ac4=_0x4797db(0x179);function _0xd1f630(_0x5050c6,_0x43bb2d,_0x1503e2){const _0x52dee2=_0x4797db,_0x4e2f9b=_0x1503e2===_0x12631e[_0x52dee2(0x171)]?_0x5050c6:_0x43bb2d,_0x4727c8=_0x1503e2===_0x12631e['Portrait']?_0x43bb2d:_0x5050c6,_0x189c9a='\x0a\x20\x20\x20\x20.'+_0x4c0ac4+_0x52dee2(0x16f)+_0x4e2f9b+_0x52dee2(0x17d)+_0x4727c8+_0x52dee2(0x182)+_0x4a7090+_0x52dee2(0x1a0)+_0x4a7090+_0x52dee2(0x18a)+_0x4c0ac4+_0x52dee2(0x18c)+_0x4727c8+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4e2f9b+_0x52dee2(0x17c),_0x191b3c=document[_0x52dee2(0x18e)](_0x52dee2(0x1a1));return _0x191b3c[_0x52dee2(0x19e)]=_0x189c9a,_0x191b3c[_0x52dee2(0x194)]=_0x52dee2(0x177),_0x191b3c;}_0x59afa1[_0x4797db(0x19a)]=_0x4c0ac4,_0x59afa1[_0x4797db(0x174)]=_0x4a7090,_0x59afa1[_0x4797db(0x16e)]=_0x542f7e,_0x59afa1[_0x4797db(0x178)]=_0xa041da,_0x59afa1[_0x4797db(0x185)]=_0x12631e,_0x59afa1[_0x4797db(0x16d)]=_0x454dba,_0x59afa1['PrintScale']=_0xf91182,_0x59afa1[_0x4797db(0x176)]=_0xd1f630,Object[_0x4797db(0x197)](_0x59afa1,Symbol[_0x4797db(0x18d)],{'value':_0x4797db(0x199)});}));function _0x1e4c(_0x2df55c,_0x8e2fb0){const _0x4f5327=_0x4f53();return _0x1e4c=function(_0x1e4c07,_0x621185){_0x1e4c07=_0x1e4c07-0x16d;let _0x592500=_0x4f5327[_0x1e4c07];return _0x592500;},_0x1e4c(_0x2df55c,_0x8e2fb0);}function _0x4f53(){const _0x526fa0=['25tMNTwD','4JaSsXU','3784HEUBut','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.','Custom','154740AQKRGf','PrintDirection','FitHeight','Middle','Landscape','Normal','\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.','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','toStringTag','createElement','printing-canvas-container','24312AizwJv','UniverProPrint','object','exports','className','63620LbTrwk','Narrow','defineProperty','FitWidth','Module','PRINT_CANVAS_CLASS','161266VhJaQv','amd','FitPage','innerHTML','Origin',',\x20.','style','PrintPaperMargin','PaperMarginMap','\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','5383SUALSV','Portrait','2522592DnpmZw','None','PRINT_CONTAINER_CLASS','946HvWALC','createPrintStyle','offline-printing-css','PrintAlign','printing-canvas','Wide','Start','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','589518ycFuZJ'];_0x4f53=function(){return _0x526fa0;};return _0x4f53();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2-nightly.202511290732",
|
|
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": "^
|
|
48
|
-
"@univerjs-infra/shared": "0.12.
|
|
46
|
+
"vite": "^7.2.4",
|
|
47
|
+
"vitest": "^4.0.14",
|
|
48
|
+
"@univerjs-infra/shared": "0.12.2"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|