@univerjs-pro/print 0.12.2 → 0.12.3-experimental.20251205-e439e48
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 _0x248188=_0x4a7a;(function(_0x583fff,_0x2f874e){const _0x5bc900=_0x4a7a,_0x2e98c5=_0x583fff();while(!![]){try{const _0x22f0f8=parseInt(_0x5bc900(0x9f))/0x1*(parseInt(_0x5bc900(0xc0))/0x2)+-parseInt(_0x5bc900(0xa8))/0x3+parseInt(_0x5bc900(0xbb))/0x4*(parseInt(_0x5bc900(0xb5))/0x5)+-parseInt(_0x5bc900(0xa6))/0x6+-parseInt(_0x5bc900(0xa2))/0x7+parseInt(_0x5bc900(0xa0))/0x8*(parseInt(_0x5bc900(0xb3))/0x9)+parseInt(_0x5bc900(0x9c))/0xa;if(_0x22f0f8===_0x2f874e)break;else _0x2e98c5['push'](_0x2e98c5['shift']());}catch(_0x35b7f6){_0x2e98c5['push'](_0x2e98c5['shift']());}}}(_0x558f,0x7338b));Object[_0x248188(0xa3)](exports,Symbol[_0x248188(0xbc)],{'value':_0x248188(0xc1)});function _0x4a7a(_0x1c5fd3,_0x1e03b5){_0x1c5fd3=_0x1c5fd3-0x96;const _0x558fea=_0x558f();let _0x4a7a36=_0x558fea[_0x1c5fd3];return _0x4a7a36;}var i=(_0x425329=>(_0x425329[_0x248188(0x9b)]=_0x248188(0x9b),_0x425329['Landscape']=_0x248188(0xa5),_0x425329))(i||{}),l=(_0x469024=>(_0x469024[_0x248188(0xbf)]=_0x248188(0xbf),_0x469024[_0x248188(0xad)]=_0x248188(0xad),_0x469024['FitHeight']='FitHeight',_0x469024[_0x248188(0xb1)]=_0x248188(0xb1),_0x469024[_0x248188(0xa4)]=_0x248188(0xa4),_0x469024))(l||{}),m=(_0x522224=>(_0x522224[_0x248188(0x97)]=_0x248188(0x97),_0x522224['End']=_0x248188(0xaf),_0x522224['Middle']='Middle',_0x522224))(m||{}),o=(_0x1c8ec0=>(_0x1c8ec0['Normal']='Normal',_0x1c8ec0['Narrow']=_0x248188(0xac),_0x1c8ec0[_0x248188(0xbe)]=_0x248188(0xbe),_0x1c8ec0[_0x248188(0xb7)]=_0x248188(0xb7),_0x1c8ec0['Custom']=_0x248188(0xa4),_0x1c8ec0))(o||{});function _0x558f(){const _0x467c8d=['PRINT_CANVAS_CLASS','px\x20','PrintDirection','1418700PMmTSV','toStringTag','innerHTML','Wide','Origin','2EnXMWC','Module','PrintAlign','Start','Normal','PRINT_CONTAINER_CLASS',',\x20.','Portrait','9560550anACmM','\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','67684RZAjmX','8cOwzlm','PaperMarginMap','2847334zleOGn','defineProperty','Custom','Landscape','3102342wlyXCe','\x0a\x20\x20\x20\x20.','2686938YBVJbi','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}','offline-printing-css','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.','Narrow','FitWidth','printing-canvas','End','createPrintStyle','FitPage','printing-canvas-container','8216982GhcUOJ','\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.','5oFvwEc','PrintScale','None'];_0x558f=function(){return _0x467c8d;};return _0x558f();}const g={[o[_0x248188(0x98)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o[_0x248188(0xac)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o['Wide']]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x248188(0xb7)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x248188(0xa4)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},r=_0x248188(0xb2),n=_0x248188(0xae);function h(_0x3d8e92,_0x4472fc,_0x86bc32){const _0x3401ec=_0x248188,_0x2e985a=_0x86bc32===i['Portrait']?_0x3d8e92:_0x4472fc,_0x3a4a99=_0x86bc32===i[_0x3401ec(0x9b)]?_0x4472fc:_0x3d8e92,_0x1be11f=_0x3401ec(0xa7)+n+_0x3401ec(0x9d)+_0x2e985a+_0x3401ec(0xb9)+_0x3a4a99+_0x3401ec(0xab)+r+_0x3401ec(0x9a)+r+_0x3401ec(0xb4)+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'+_0x3a4a99+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x2e985a+_0x3401ec(0xa9),_0x1c8cad=document['createElement'](_0x3401ec(0x9e));return _0x1c8cad[_0x3401ec(0xbd)]=_0x1be11f,_0x1c8cad['className']=_0x3401ec(0xaa),_0x1c8cad;}exports[_0x248188(0xb8)]=n,exports[_0x248188(0x99)]=r,exports[_0x248188(0xa1)]=g,exports[_0x248188(0x96)]=m,exports[_0x248188(0xba)]=i,exports['PrintPaperMargin']=o,exports[_0x248188(0xb6)]=l,exports[_0x248188(0xb0)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3fee59=_0x40c2;(function(_0x4814b0,_0x516ef7){const _0x13e412=_0x40c2,_0x4c3c8d=_0x4814b0();while(!![]){try{const _0x39a2c5=-parseInt(_0x13e412(0x191))/0x1+parseInt(_0x13e412(0x199))/0x2+-parseInt(_0x13e412(0x1a1))/0x3*(-parseInt(_0x13e412(0x1a3))/0x4)+parseInt(_0x13e412(0x18a))/0x5+parseInt(_0x13e412(0x19e))/0x6+parseInt(_0x13e412(0x19b))/0x7+-parseInt(_0x13e412(0x1a6))/0x8;if(_0x39a2c5===_0x516ef7)break;else _0x4c3c8d['push'](_0x4c3c8d['shift']());}catch(_0x8def35){_0x4c3c8d['push'](_0x4c3c8d['shift']());}}}(_0x3f58,0x5f55d));function _0x40c2(_0x5d5070,_0x5013e8){_0x5d5070=_0x5d5070-0x186;const _0x3f580a=_0x3f58();let _0x40c248=_0x3f580a[_0x5d5070];return _0x40c248;}var e=(_0x170b1d=>(_0x170b1d[_0x3fee59(0x194)]=_0x3fee59(0x194),_0x170b1d[_0x3fee59(0x189)]=_0x3fee59(0x189),_0x170b1d))(e||{}),h=(_0x179c0e=>(_0x179c0e[_0x3fee59(0x19c)]=_0x3fee59(0x19c),_0x179c0e[_0x3fee59(0x18e)]=_0x3fee59(0x18e),_0x179c0e[_0x3fee59(0x187)]='FitHeight',_0x179c0e['FitPage']=_0x3fee59(0x18f),_0x179c0e[_0x3fee59(0x1a5)]='Custom',_0x179c0e))(h||{}),l=(_0x5305f2=>(_0x5305f2['Start']=_0x3fee59(0x1a2),_0x5305f2['End']=_0x3fee59(0x198),_0x5305f2[_0x3fee59(0x19d)]='Middle',_0x5305f2))(l||{}),o=(_0x2cbe4a=>(_0x2cbe4a[_0x3fee59(0x196)]='Normal',_0x2cbe4a[_0x3fee59(0x186)]=_0x3fee59(0x186),_0x2cbe4a[_0x3fee59(0x195)]=_0x3fee59(0x195),_0x2cbe4a[_0x3fee59(0x19a)]=_0x3fee59(0x19a),_0x2cbe4a[_0x3fee59(0x1a5)]=_0x3fee59(0x1a5),_0x2cbe4a))(o||{});const c={[o[_0x3fee59(0x196)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3fee59(0x195)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3fee59(0x19a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x3fee59(0x1a5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x3fee59(0x197),d=_0x3fee59(0x18c);function g(_0x33e0c1,_0x1df307,_0x5d9bd7){const _0x4b4013=_0x3fee59,_0x3f5f47=_0x5d9bd7===e['Portrait']?_0x33e0c1:_0x1df307,_0x1f5b01=_0x5d9bd7===e[_0x4b4013(0x194)]?_0x1df307:_0x33e0c1,_0x12b48f=_0x4b4013(0x188)+d+'\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'+_0x3f5f47+_0x4b4013(0x1a0)+_0x1f5b01+_0x4b4013(0x190)+p+_0x4b4013(0x1a7)+p+_0x4b4013(0x1a4)+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'+_0x1f5b01+_0x4b4013(0x18b)+_0x3f5f47+'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}',_0x3adb3f=document[_0x4b4013(0x193)](_0x4b4013(0x192));return _0x3adb3f[_0x4b4013(0x18d)]=_0x12b48f,_0x3adb3f[_0x4b4013(0x19f)]='offline-printing-css',_0x3adb3f;}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};function _0x3f58(){const _0x5835b3=['printing-canvas','innerHTML','FitWidth','FitPage','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.','382101ODiBpn','style','createElement','Portrait','Wide','Normal','printing-canvas-container','End','1389858XXGzkL','None','1629712WUofsl','Origin','Middle','3298350EyQdfu','className','px\x20','645EHjHZs','Start','12184weNPON','\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','11384248yoQnOw',',\x20.','Narrow','FitHeight','\x0a\x20\x20\x20\x20.','Landscape','316325XNjZLG','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x3f58=function(){return _0x5835b3;};return _0x3f58();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3fee59=_0x40c2;(function(_0x4814b0,_0x516ef7){const _0x13e412=_0x40c2,_0x4c3c8d=_0x4814b0();while(!![]){try{const _0x39a2c5=-parseInt(_0x13e412(0x191))/0x1+parseInt(_0x13e412(0x199))/0x2+-parseInt(_0x13e412(0x1a1))/0x3*(-parseInt(_0x13e412(0x1a3))/0x4)+parseInt(_0x13e412(0x18a))/0x5+parseInt(_0x13e412(0x19e))/0x6+parseInt(_0x13e412(0x19b))/0x7+-parseInt(_0x13e412(0x1a6))/0x8;if(_0x39a2c5===_0x516ef7)break;else _0x4c3c8d['push'](_0x4c3c8d['shift']());}catch(_0x8def35){_0x4c3c8d['push'](_0x4c3c8d['shift']());}}}(_0x3f58,0x5f55d));function _0x40c2(_0x5d5070,_0x5013e8){_0x5d5070=_0x5d5070-0x186;const _0x3f580a=_0x3f58();let _0x40c248=_0x3f580a[_0x5d5070];return _0x40c248;}var e=(_0x170b1d=>(_0x170b1d[_0x3fee59(0x194)]=_0x3fee59(0x194),_0x170b1d[_0x3fee59(0x189)]=_0x3fee59(0x189),_0x170b1d))(e||{}),h=(_0x179c0e=>(_0x179c0e[_0x3fee59(0x19c)]=_0x3fee59(0x19c),_0x179c0e[_0x3fee59(0x18e)]=_0x3fee59(0x18e),_0x179c0e[_0x3fee59(0x187)]='FitHeight',_0x179c0e['FitPage']=_0x3fee59(0x18f),_0x179c0e[_0x3fee59(0x1a5)]='Custom',_0x179c0e))(h||{}),l=(_0x5305f2=>(_0x5305f2['Start']=_0x3fee59(0x1a2),_0x5305f2['End']=_0x3fee59(0x198),_0x5305f2[_0x3fee59(0x19d)]='Middle',_0x5305f2))(l||{}),o=(_0x2cbe4a=>(_0x2cbe4a[_0x3fee59(0x196)]='Normal',_0x2cbe4a[_0x3fee59(0x186)]=_0x3fee59(0x186),_0x2cbe4a[_0x3fee59(0x195)]=_0x3fee59(0x195),_0x2cbe4a[_0x3fee59(0x19a)]=_0x3fee59(0x19a),_0x2cbe4a[_0x3fee59(0x1a5)]=_0x3fee59(0x1a5),_0x2cbe4a))(o||{});const c={[o[_0x3fee59(0x196)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[o['Narrow']]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[o[_0x3fee59(0x195)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[o[_0x3fee59(0x19a)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[o[_0x3fee59(0x1a5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},p=_0x3fee59(0x197),d=_0x3fee59(0x18c);function g(_0x33e0c1,_0x1df307,_0x5d9bd7){const _0x4b4013=_0x3fee59,_0x3f5f47=_0x5d9bd7===e['Portrait']?_0x33e0c1:_0x1df307,_0x1f5b01=_0x5d9bd7===e[_0x4b4013(0x194)]?_0x1df307:_0x33e0c1,_0x12b48f=_0x4b4013(0x188)+d+'\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'+_0x3f5f47+_0x4b4013(0x1a0)+_0x1f5b01+_0x4b4013(0x190)+p+_0x4b4013(0x1a7)+p+_0x4b4013(0x1a4)+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'+_0x1f5b01+_0x4b4013(0x18b)+_0x3f5f47+'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}',_0x3adb3f=document[_0x4b4013(0x193)](_0x4b4013(0x192));return _0x3adb3f[_0x4b4013(0x18d)]=_0x12b48f,_0x3adb3f[_0x4b4013(0x19f)]='offline-printing-css',_0x3adb3f;}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};function _0x3f58(){const _0x5835b3=['printing-canvas','innerHTML','FitWidth','FitPage','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.','382101ODiBpn','style','createElement','Portrait','Wide','Normal','printing-canvas-container','End','1389858XXGzkL','None','1629712WUofsl','Origin','Middle','3298350EyQdfu','className','px\x20','645EHjHZs','Start','12184weNPON','\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','11384248yoQnOw',',\x20.','Narrow','FitHeight','\x0a\x20\x20\x20\x20.','Landscape','316325XNjZLG','px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'];_0x3f58=function(){return _0x5835b3;};return _0x3f58();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3d11(){const _0x40fcf8=['Portrait','143kyNRNQ','FitHeight','createPrintStyle','className','17616jfgyAC','style','PRINT_CONTAINER_CLASS','45uOZhyJ','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.','Wide','Landscape','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{\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','12272wtBgFG','1323453QGeMXZ','defineProperty','Middle','createElement','FitPage','None','56910QUbzvm','777UkZFHq','FitWidth','\x0a\x20\x20\x20\x20.','2kYoNyp','exports','PaperMarginMap','Normal','Start','12170CZZPBP','Narrow','24VuRDRt','innerHTML','1245679KrBHBC','printing-canvas','amd','PRINT_CANVAS_CLASS','723496LAeoru','PrintDirection','Origin','offline-printing-css','Custom','function','592365vpsjeE','Module','PrintAlign','toStringTag'];_0x3d11=function(){return _0x40fcf8;};return _0x3d11();}function _0x3293(_0x3f2113,_0x475c90){_0x3f2113=_0x3f2113-0x1b6;const _0x3d11fd=_0x3d11();let _0x329372=_0x3d11fd[_0x3f2113];return _0x329372;}(function(_0xb1afc5,_0xae7db2){const _0x2be1f2=_0x3293,_0x165c68=_0xb1afc5();while(!![]){try{const _0x4f35d1=parseInt(_0x2be1f2(0x1d3))/0x1+-parseInt(_0x2be1f2(0x1ca))/0x2*(parseInt(_0x2be1f2(0x1c0))/0x3)+-parseInt(_0x2be1f2(0x1d1))/0x4*(-parseInt(_0x2be1f2(0x1dd))/0x5)+parseInt(_0x2be1f2(0x1c6))/0x6*(parseInt(_0x2be1f2(0x1c7))/0x7)+-parseInt(_0x2be1f2(0x1d7))/0x8*(parseInt(_0x2be1f2(0x1b8))/0x9)+-parseInt(_0x2be1f2(0x1cf))/0xa*(parseInt(_0x2be1f2(0x1e2))/0xb)+parseInt(_0x2be1f2(0x1e6))/0xc*(-parseInt(_0x2be1f2(0x1bf))/0xd);if(_0x4f35d1===_0xae7db2)break;else _0x165c68['push'](_0x165c68['shift']());}catch(_0x51e97a){_0x165c68['push'](_0x165c68['shift']());}}}(_0x3d11,0xae6a3),function(_0x19332e,_0x1f49f7){const _0x4f335d=_0x3293;typeof exports=='object'&&typeof module<'u'?_0x1f49f7(exports):typeof define==_0x4f335d(0x1dc)&&define[_0x4f335d(0x1d5)]?define([_0x4f335d(0x1cb)],_0x1f49f7):(_0x19332e=typeof globalThis<'u'?globalThis:_0x19332e||self,_0x1f49f7(_0x19332e['UniverProPrint']={}));}(this,function(_0x3dc3b3){'use strict';const _0x412ad2=_0x3293;var _0x19c232=(_0x577173=>(_0x577173[_0x412ad2(0x1e1)]='Portrait',_0x577173[_0x412ad2(0x1bb)]='Landscape',_0x577173))(_0x19c232||{}),_0x4d2cac=(_0x21abb9=>(_0x21abb9[_0x412ad2(0x1d9)]=_0x412ad2(0x1d9),_0x21abb9[_0x412ad2(0x1c8)]=_0x412ad2(0x1c8),_0x21abb9[_0x412ad2(0x1e3)]='FitHeight',_0x21abb9[_0x412ad2(0x1c4)]=_0x412ad2(0x1c4),_0x21abb9['Custom']=_0x412ad2(0x1db),_0x21abb9))(_0x4d2cac||{}),_0x99cad2=(_0x294159=>(_0x294159[_0x412ad2(0x1ce)]='Start',_0x294159[_0x412ad2(0x1bd)]='End',_0x294159['Middle']=_0x412ad2(0x1c2),_0x294159))(_0x99cad2||{}),_0x119cc5=(_0x9c545=>(_0x9c545[_0x412ad2(0x1cd)]=_0x412ad2(0x1cd),_0x9c545['Narrow']=_0x412ad2(0x1d0),_0x9c545[_0x412ad2(0x1ba)]=_0x412ad2(0x1ba),_0x9c545[_0x412ad2(0x1c5)]='None',_0x9c545['Custom']=_0x412ad2(0x1db),_0x9c545))(_0x119cc5||{});const _0xeb3a26={[_0x119cc5[_0x412ad2(0x1cd)]]:{'left':0x35,'right':0x35,'top':0x38,'bottom':0x38},[_0x119cc5[_0x412ad2(0x1d0)]]:{'left':0x13,'right':0x13,'top':0x38,'bottom':0x38},[_0x119cc5[_0x412ad2(0x1ba)]]:{'left':0x4b,'right':0x4b,'top':0x4b,'bottom':0x4b},[_0x119cc5[_0x412ad2(0x1c5)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0},[_0x119cc5[_0x412ad2(0x1db)]]:{'left':0x0,'right':0x0,'top':0x0,'bottom':0x0}},_0x1c15ee='printing-canvas-container',_0x2933bd=_0x412ad2(0x1d4);function _0x8d1c70(_0x14e1c8,_0x71362a,_0x42219b){const _0x19dbf2=_0x412ad2,_0x4cf63f=_0x42219b===_0x19c232['Portrait']?_0x14e1c8:_0x71362a,_0x4c5b5d=_0x42219b===_0x19c232[_0x19dbf2(0x1e1)]?_0x71362a:_0x14e1c8,_0xc81ca7=_0x19dbf2(0x1c9)+_0x2933bd+_0x19dbf2(0x1be)+_0x4cf63f+'px\x20'+_0x4c5b5d+_0x19dbf2(0x1b9)+_0x1c15ee+',\x20.'+_0x1c15ee+'\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.'+_0x2933bd+'\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'+_0x4c5b5d+'px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20'+_0x4cf63f+_0x19dbf2(0x1bc),_0x422186=document[_0x19dbf2(0x1c3)](_0x19dbf2(0x1b6));return _0x422186[_0x19dbf2(0x1d2)]=_0xc81ca7,_0x422186[_0x19dbf2(0x1e5)]=_0x19dbf2(0x1da),_0x422186;}_0x3dc3b3[_0x412ad2(0x1d6)]=_0x2933bd,_0x3dc3b3[_0x412ad2(0x1b7)]=_0x1c15ee,_0x3dc3b3[_0x412ad2(0x1cc)]=_0xeb3a26,_0x3dc3b3[_0x412ad2(0x1df)]=_0x99cad2,_0x3dc3b3[_0x412ad2(0x1d8)]=_0x19c232,_0x3dc3b3['PrintPaperMargin']=_0x119cc5,_0x3dc3b3['PrintScale']=_0x4d2cac,_0x3dc3b3[_0x412ad2(0x1e4)]=_0x8d1c70,Object[_0x412ad2(0x1c1)](_0x3dc3b3,Symbol[_0x412ad2(0x1e0)],{'value':_0x412ad2(0x1de)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/print",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3-experimental.20251205-e439e48",
|
|
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.6",
|
|
47
|
+
"vitest": "^4.0.15",
|
|
48
|
+
"@univerjs-infra/shared": "0.12.3"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "vitest run",
|