@univerjs/docs-drawing 0.2.4-alpha.0 → 0.2.4
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 +82 -112
- package/lib/types/index.d.ts +0 -1
- package/lib/types/plugin.d.ts +2 -1
- package/lib/types/services/doc-drawing.service.d.ts +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -8
- package/lib/types/commands/mutations/set-drawing-apply.mutation.d.ts +0 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var p=Object.defineProperty;var U=(i,r,e)=>r in i?p(i,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[r]=e;var v=(i,r,e)=>U(i,typeof r!="symbol"?r+"":r,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@univerjs/core"),l=require("@wendellhu/redi"),f=require("@univerjs/drawing"),w=require("rxjs/operators");class _ extends f.UnitDrawingService{}const u=l.createIdentifier("univer.doc.plugin.doc-drawing.service");var O=Object.defineProperty,y=Object.getOwnPropertyDescriptor,h=(i,r,e,t)=>{for(var n=t>1?void 0:t?y(r,e):r,s=i.length-1,c;s>=0;s--)(c=i[s])&&(n=(t?c(r,e,n):c(n))||n);return t&&n&&O(r,e,n),n},o=(i,r)=>(e,t)=>r(e,t,i);const S="DOC_DRAWING_PLUGIN";let D=class extends a.Disposable{constructor(i){super(),this._commandService=i}};D=h([a.OnLifecycle(a.LifecycleStages.Starting,D),o(0,a.ICommandService)],D);let d=class extends a.Disposable{constructor(i,r,e,t,n){super(),this._docDrawingService=i,this._drawingManagerService=r,this._resourceManagerService=e,this._univerInstanceService=t,this._lifecycleService=n,this._init()}_init(){this._initSnapshot(),this._drawingInitializeListener()}_initSnapshot(){const i=e=>{const t=this._docDrawingService.getDrawingDataForUnit(e);return t!=null&&t[e]?JSON.stringify(t==null?void 0:t[e]):""},r=e=>{if(!e)return{data:{},order:[]};try{return JSON.parse(e)}catch{return{data:{},order:[]}}};this.disposeWithMe(this._resourceManagerService.registerPluginResource({pluginName:S,businesses:[a.UniverInstanceType.UNIVER_DOC],toJson:e=>i(e),parseJson:e=>r(e),onUnLoad:e=>{this._setDrawingDataForUnit(e,{data:{},order:[]})},onLoad:(e,t)=>{var n,s;this._setDrawingDataForUnit(e,{data:(n=t.data)!=null?n:{},order:(s=t.order)!=null?s:[]})}}))}_setDrawingDataForUnit(i,r){const e=this._univerInstanceService.getUnit(i);e!=null&&(e.resetDrawing(r.data,r.order),this._initDataLoader())}_initDataLoader(){const i=this._univerInstanceService.getCurrentUnitForType(a.UniverInstanceType.UNIVER_DOC);if(!i)return!1;const r=i.getUnitId(),e=r,t=i.getDrawings(),n=i.getDrawingsOrder();if(!t||!n)return!1;Object.keys(t).forEach(c=>{const I=t[c];t[c]={...I}});const s={[e]:{unitId:r,subUnitId:e,data:t,order:n}};return this._docDrawingService.registerDrawingData(r,s),this._drawingManagerService.registerDrawingData(r,s),!0}_drawingInitializeListener(){this._lifecycleService.lifecycle$.pipe(w.filter(i=>i===a.LifecycleStages.Rendered),w.first()).subscribe(i=>{var e;const r=(e=this._univerInstanceService.getCurrentUnitForType(a.UniverInstanceType.UNIVER_DOC))==null?void 0:e.getUnitId();r&&(this._docDrawingService.initializeNotification(r),this._drawingManagerService.initializeNotification(r))})}};d=h([a.OnLifecycle(a.LifecycleStages.Starting,d),o(0,u),o(1,f.IDrawingManagerService),o(2,a.IResourceManagerService),o(3,a.IUniverInstanceService),o(4,l.Inject(a.LifecycleService))],d);var P=Object.defineProperty,L=Object.getOwnPropertyDescriptor,N=(i,r,e,t)=>{for(var n=t>1?void 0:t?L(r,e):r,s=i.length-1,c;s>=0;s--)(c=i[s])&&(n=(t?c(r,e,n):c(n))||n);return t&&n&&P(r,e,n),n},C=(i,r)=>(e,t)=>r(e,t,i),g;exports.UniverDocsDrawingPlugin=(g=class extends a.Plugin{constructor(r,e){super(),this._injector=e}onStarting(r){[[D],[d],[_],[u,{useClass:_}]].forEach(e=>r.add(e))}},v(g,"pluginName",S),v(g,"type",a.UniverInstanceType.UNIVER_DOC),g);exports.UniverDocsDrawingPlugin=N([C(1,l.Inject(l.Injector))],exports.UniverDocsDrawingPlugin);exports.DOCS_DRAWING_PLUGIN=S;exports.DocDrawingService=_;exports.IDocDrawingService=u;
|
package/lib/es/index.js
CHANGED
|
@@ -1,159 +1,129 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
var O = Object.defineProperty;
|
|
2
|
+
var P = (i, r, e) => r in i ? O(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e;
|
|
3
|
+
var D = (i, r, e) => P(i, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { OnLifecycle as f, LifecycleStages as l, LifecycleService as C, Disposable as S, ICommandService as N, UniverInstanceType as g, IResourceManagerService as m, IUniverInstanceService as y, Plugin as L } from "@univerjs/core";
|
|
5
|
+
import { createIdentifier as M, Inject as h, Injector as b } from "@wendellhu/redi";
|
|
6
|
+
import { UnitDrawingService as R, IDrawingManagerService as j } from "@univerjs/drawing";
|
|
7
|
+
import { filter as E, first as F } from "rxjs/operators";
|
|
8
|
+
class v extends R {
|
|
8
9
|
}
|
|
9
|
-
const
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
break;
|
|
20
|
-
case 1:
|
|
21
|
-
t.removeNotification(o), i.removeNotification(o);
|
|
22
|
-
break;
|
|
23
|
-
case 2:
|
|
24
|
-
t.updateNotification(o), i.updateNotification(o);
|
|
25
|
-
break;
|
|
26
|
-
case 3:
|
|
27
|
-
t.orderNotification(o), i.orderNotification(o);
|
|
28
|
-
break;
|
|
29
|
-
case 4:
|
|
30
|
-
t.groupUpdateNotification(o);
|
|
31
|
-
break;
|
|
32
|
-
case 5:
|
|
33
|
-
t.ungroupUpdateNotification(o);
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
return n.getUnit(s), !0;
|
|
10
|
+
const w = M("univer.doc.plugin.doc-drawing.service");
|
|
11
|
+
var J = Object.defineProperty, x = Object.getOwnPropertyDescriptor, p = (i, r, e, t) => {
|
|
12
|
+
for (var n = t > 1 ? void 0 : t ? x(r, e) : r, a = i.length - 1, s; a >= 0; a--)
|
|
13
|
+
(s = i[a]) && (n = (t ? s(r, e, n) : s(n)) || n);
|
|
14
|
+
return t && n && J(r, e, n), n;
|
|
15
|
+
}, c = (i, r) => (e, t) => r(e, t, i);
|
|
16
|
+
const I = "DOC_DRAWING_PLUGIN";
|
|
17
|
+
let d = class extends S {
|
|
18
|
+
constructor(i) {
|
|
19
|
+
super(), this._commandService = i;
|
|
37
20
|
}
|
|
38
21
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
constructor(e) {
|
|
47
|
-
super(), this._commandService = e, this.disposeWithMe(this._commandService.registerCommand(z));
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
v = P([
|
|
51
|
-
I(l.Starting, v),
|
|
52
|
-
c(0, L)
|
|
53
|
-
], v);
|
|
54
|
-
let _ = class extends O {
|
|
55
|
-
constructor(e, r, t, i, n) {
|
|
56
|
-
super(), this._docDrawingService = e, this._drawingManagerService = r, this._resourceManagerService = t, this._univerInstanceService = i, this._lifecycleService = n, this._init();
|
|
22
|
+
d = p([
|
|
23
|
+
f(l.Starting, d),
|
|
24
|
+
c(0, N)
|
|
25
|
+
], d);
|
|
26
|
+
let _ = class extends S {
|
|
27
|
+
constructor(i, r, e, t, n) {
|
|
28
|
+
super(), this._docDrawingService = i, this._drawingManagerService = r, this._resourceManagerService = e, this._univerInstanceService = t, this._lifecycleService = n, this._init();
|
|
57
29
|
}
|
|
58
30
|
_init() {
|
|
59
31
|
this._initSnapshot(), this._drawingInitializeListener();
|
|
60
32
|
}
|
|
61
33
|
_initSnapshot() {
|
|
62
|
-
const
|
|
63
|
-
const
|
|
64
|
-
return
|
|
65
|
-
}, r = (
|
|
66
|
-
if (!
|
|
34
|
+
const i = (e) => {
|
|
35
|
+
const t = this._docDrawingService.getDrawingDataForUnit(e);
|
|
36
|
+
return t != null && t[e] ? JSON.stringify(t == null ? void 0 : t[e]) : "";
|
|
37
|
+
}, r = (e) => {
|
|
38
|
+
if (!e)
|
|
67
39
|
return { data: {}, order: [] };
|
|
68
40
|
try {
|
|
69
|
-
return JSON.parse(
|
|
41
|
+
return JSON.parse(e);
|
|
70
42
|
} catch {
|
|
71
43
|
return { data: {}, order: [] };
|
|
72
44
|
}
|
|
73
45
|
};
|
|
74
46
|
this.disposeWithMe(
|
|
75
47
|
this._resourceManagerService.registerPluginResource({
|
|
76
|
-
pluginName:
|
|
77
|
-
businesses: [
|
|
78
|
-
toJson: (
|
|
79
|
-
parseJson: (
|
|
80
|
-
onUnLoad: (
|
|
81
|
-
this._setDrawingDataForUnit(
|
|
48
|
+
pluginName: I,
|
|
49
|
+
businesses: [g.UNIVER_DOC],
|
|
50
|
+
toJson: (e) => i(e),
|
|
51
|
+
parseJson: (e) => r(e),
|
|
52
|
+
onUnLoad: (e) => {
|
|
53
|
+
this._setDrawingDataForUnit(e, { data: {}, order: [] });
|
|
82
54
|
},
|
|
83
|
-
onLoad: (
|
|
55
|
+
onLoad: (e, t) => {
|
|
84
56
|
var n, a;
|
|
85
|
-
this._setDrawingDataForUnit(
|
|
57
|
+
this._setDrawingDataForUnit(e, { data: (n = t.data) != null ? n : {}, order: (a = t.order) != null ? a : [] });
|
|
86
58
|
}
|
|
87
59
|
})
|
|
88
60
|
);
|
|
89
61
|
}
|
|
90
|
-
_setDrawingDataForUnit(
|
|
91
|
-
const
|
|
92
|
-
|
|
62
|
+
_setDrawingDataForUnit(i, r) {
|
|
63
|
+
const e = this._univerInstanceService.getUnit(i);
|
|
64
|
+
e != null && (e.resetDrawing(r.data, r.order), this._initDataLoader());
|
|
93
65
|
}
|
|
94
66
|
_initDataLoader() {
|
|
95
|
-
const
|
|
96
|
-
if (!
|
|
67
|
+
const i = this._univerInstanceService.getCurrentUnitForType(g.UNIVER_DOC);
|
|
68
|
+
if (!i)
|
|
97
69
|
return !1;
|
|
98
|
-
const r =
|
|
99
|
-
if (!
|
|
70
|
+
const r = i.getUnitId(), e = r, t = i.getDrawings(), n = i.getDrawingsOrder();
|
|
71
|
+
if (!t || !n)
|
|
100
72
|
return !1;
|
|
101
|
-
Object.keys(
|
|
102
|
-
const
|
|
103
|
-
|
|
73
|
+
Object.keys(t).forEach((s) => {
|
|
74
|
+
const U = t[s];
|
|
75
|
+
t[s] = { ...U };
|
|
104
76
|
});
|
|
105
77
|
const a = {
|
|
106
|
-
[
|
|
78
|
+
[e]: {
|
|
107
79
|
unitId: r,
|
|
108
|
-
subUnitId:
|
|
109
|
-
data:
|
|
80
|
+
subUnitId: e,
|
|
81
|
+
data: t,
|
|
110
82
|
order: n
|
|
111
83
|
}
|
|
112
84
|
};
|
|
113
85
|
return this._docDrawingService.registerDrawingData(r, a), this._drawingManagerService.registerDrawingData(r, a), !0;
|
|
114
86
|
}
|
|
115
87
|
_drawingInitializeListener() {
|
|
116
|
-
this._lifecycleService.lifecycle$.pipe(
|
|
117
|
-
var
|
|
118
|
-
const r = (
|
|
88
|
+
this._lifecycleService.lifecycle$.pipe(E((i) => i === l.Rendered), F()).subscribe((i) => {
|
|
89
|
+
var e;
|
|
90
|
+
const r = (e = this._univerInstanceService.getCurrentUnitForType(g.UNIVER_DOC)) == null ? void 0 : e.getUnitId();
|
|
119
91
|
r && (this._docDrawingService.initializeNotification(r), this._drawingManagerService.initializeNotification(r));
|
|
120
92
|
});
|
|
121
93
|
}
|
|
122
94
|
};
|
|
123
|
-
_ =
|
|
124
|
-
|
|
125
|
-
c(0,
|
|
126
|
-
c(1,
|
|
127
|
-
c(2,
|
|
128
|
-
c(3,
|
|
129
|
-
c(4,
|
|
95
|
+
_ = p([
|
|
96
|
+
f(l.Starting, _),
|
|
97
|
+
c(0, w),
|
|
98
|
+
c(1, j),
|
|
99
|
+
c(2, m),
|
|
100
|
+
c(3, y),
|
|
101
|
+
c(4, h(C))
|
|
130
102
|
], _);
|
|
131
|
-
var
|
|
132
|
-
for (var n =
|
|
133
|
-
(s =
|
|
134
|
-
return
|
|
135
|
-
},
|
|
136
|
-
let
|
|
137
|
-
constructor(
|
|
103
|
+
var $ = Object.defineProperty, z = Object.getOwnPropertyDescriptor, G = (i, r, e, t) => {
|
|
104
|
+
for (var n = t > 1 ? void 0 : t ? z(r, e) : r, a = i.length - 1, s; a >= 0; a--)
|
|
105
|
+
(s = i[a]) && (n = (t ? s(r, e, n) : s(n)) || n);
|
|
106
|
+
return t && n && $(r, e, n), n;
|
|
107
|
+
}, V = (i, r) => (e, t) => r(e, t, i), o;
|
|
108
|
+
let u = (o = class extends L {
|
|
109
|
+
constructor(i, r) {
|
|
138
110
|
super(), this._injector = r;
|
|
139
111
|
}
|
|
140
|
-
onStarting(
|
|
112
|
+
onStarting(i) {
|
|
141
113
|
[
|
|
142
|
-
[
|
|
114
|
+
[d],
|
|
143
115
|
[_],
|
|
144
|
-
[
|
|
145
|
-
[
|
|
146
|
-
].forEach((r) =>
|
|
116
|
+
[v],
|
|
117
|
+
[w, { useClass: v }]
|
|
118
|
+
].forEach((r) => i.add(r));
|
|
147
119
|
}
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
],
|
|
120
|
+
}, D(o, "pluginName", I), D(o, "type", g.UNIVER_DOC), o);
|
|
121
|
+
u = G([
|
|
122
|
+
V(1, h(b))
|
|
123
|
+
], u);
|
|
152
124
|
export {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
z as SetDocDrawingApplyMutation,
|
|
158
|
-
U as UniverDocsDrawingPlugin
|
|
125
|
+
I as DOCS_DRAWING_PLUGIN,
|
|
126
|
+
v as DocDrawingService,
|
|
127
|
+
w as IDocDrawingService,
|
|
128
|
+
u as UniverDocsDrawingPlugin
|
|
159
129
|
};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -16,4 +16,3 @@
|
|
|
16
16
|
export { UniverDocsDrawingPlugin } from './plugin';
|
|
17
17
|
export { type IDocDrawing, IDocDrawingService, DocDrawingService } from './services/doc-drawing.service';
|
|
18
18
|
export { DOCS_DRAWING_PLUGIN, type IDocDrawingModel } from './controllers/doc-drawing.controller';
|
|
19
|
-
export { SetDocDrawingApplyMutation, DocDrawingApplyType, type ISetDrawingApplyMutationParams } from './commands/mutations/set-drawing-apply.mutation';
|
package/lib/types/plugin.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export declare class DocDrawingService extends UnitDrawingService<IDocDrawing> {
|
|
|
15
15
|
}
|
|
16
16
|
export interface IDocDrawingService extends IUnitDrawingService<IDocDrawing> {
|
|
17
17
|
}
|
|
18
|
-
export declare const IDocDrawingService: import('@
|
|
18
|
+
export declare const IDocDrawingService: import('@wendellhu/redi').IdentifierDecorator<IDocDrawingService>;
|
|
19
19
|
export {};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(s,
|
|
1
|
+
(function(s,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("@univerjs/core"),require("@wendellhu/redi"),require("@univerjs/drawing"),require("rxjs/operators")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","@wendellhu/redi","@univerjs/drawing","rxjs/operators"],n):(s=typeof globalThis<"u"?globalThis:s||self,n(s.UniverDocsDrawing={},s.UniverCore,s["@wendellhu/redi"],s.UniverDrawing,s.rxjs.operators))})(this,function(s,n,g,S,h){"use strict";var L=Object.defineProperty;var N=(s,n,g)=>n in s?L(s,n,{enumerable:!0,configurable:!0,writable:!0,value:g}):s[n]=g;var w=(s,n,g)=>N(s,typeof n!="symbol"?n+"":n,g);var v;class l extends S.UnitDrawingService{}const _=g.createIdentifier("univer.doc.plugin.doc-drawing.service");var I=Object.defineProperty,U=Object.getOwnPropertyDescriptor,p=(t,i,e,r)=>{for(var a=r>1?void 0:r?U(i,e):i,c=t.length-1,o;c>=0;c--)(o=t[c])&&(a=(r?o(i,e,a):o(a))||a);return r&&a&&I(i,e,a),a},d=(t,i)=>(e,r)=>i(e,r,t);const f="DOC_DRAWING_PLUGIN";let u=class extends n.Disposable{constructor(t){super(),this._commandService=t}};u=p([n.OnLifecycle(n.LifecycleStages.Starting,u),d(0,n.ICommandService)],u);let D=class extends n.Disposable{constructor(t,i,e,r,a){super(),this._docDrawingService=t,this._drawingManagerService=i,this._resourceManagerService=e,this._univerInstanceService=r,this._lifecycleService=a,this._init()}_init(){this._initSnapshot(),this._drawingInitializeListener()}_initSnapshot(){const t=e=>{const r=this._docDrawingService.getDrawingDataForUnit(e);return r!=null&&r[e]?JSON.stringify(r==null?void 0:r[e]):""},i=e=>{if(!e)return{data:{},order:[]};try{return JSON.parse(e)}catch{return{data:{},order:[]}}};this.disposeWithMe(this._resourceManagerService.registerPluginResource({pluginName:f,businesses:[n.UniverInstanceType.UNIVER_DOC],toJson:e=>t(e),parseJson:e=>i(e),onUnLoad:e=>{this._setDrawingDataForUnit(e,{data:{},order:[]})},onLoad:(e,r)=>{var a,c;this._setDrawingDataForUnit(e,{data:(a=r.data)!=null?a:{},order:(c=r.order)!=null?c:[]})}}))}_setDrawingDataForUnit(t,i){const e=this._univerInstanceService.getUnit(t);e!=null&&(e.resetDrawing(i.data,i.order),this._initDataLoader())}_initDataLoader(){const t=this._univerInstanceService.getCurrentUnitForType(n.UniverInstanceType.UNIVER_DOC);if(!t)return!1;const i=t.getUnitId(),e=i,r=t.getDrawings(),a=t.getDrawingsOrder();if(!r||!a)return!1;Object.keys(r).forEach(o=>{const C=r[o];r[o]={...C}});const c={[e]:{unitId:i,subUnitId:e,data:r,order:a}};return this._docDrawingService.registerDrawingData(i,c),this._drawingManagerService.registerDrawingData(i,c),!0}_drawingInitializeListener(){this._lifecycleService.lifecycle$.pipe(h.filter(t=>t===n.LifecycleStages.Rendered),h.first()).subscribe(t=>{var e;const i=(e=this._univerInstanceService.getCurrentUnitForType(n.UniverInstanceType.UNIVER_DOC))==null?void 0:e.getUnitId();i&&(this._docDrawingService.initializeNotification(i),this._drawingManagerService.initializeNotification(i))})}};D=p([n.OnLifecycle(n.LifecycleStages.Starting,D),d(0,_),d(1,S.IDrawingManagerService),d(2,n.IResourceManagerService),d(3,n.IUniverInstanceService),d(4,g.Inject(n.LifecycleService))],D);var y=Object.defineProperty,O=Object.getOwnPropertyDescriptor,P=(t,i,e,r)=>{for(var a=r>1?void 0:r?O(i,e):i,c=t.length-1,o;c>=0;c--)(o=t[c])&&(a=(r?o(i,e,a):o(a))||a);return r&&a&&y(i,e,a),a},j=(t,i)=>(e,r)=>i(e,r,t);s.UniverDocsDrawingPlugin=(v=class extends n.Plugin{constructor(i,e){super(),this._injector=e}onStarting(i){[[u],[D],[l],[_,{useClass:l}]].forEach(e=>i.add(e))}},w(v,"pluginName",f),w(v,"type",n.UniverInstanceType.UNIVER_DOC),v),s.UniverDocsDrawingPlugin=P([j(1,g.Inject(g.Injector))],s.UniverDocsDrawingPlugin),s.DOCS_DRAWING_PLUGIN=f,s.DocDrawingService=l,s.IDocDrawingService=_,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/docs-drawing",
|
|
3
|
-
"version": "0.2.4
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -44,19 +44,21 @@
|
|
|
44
44
|
"lib"
|
|
45
45
|
],
|
|
46
46
|
"peerDependencies": {
|
|
47
|
+
"@wendellhu/redi": "0.16.0",
|
|
47
48
|
"rxjs": ">=7.0.0",
|
|
48
|
-
"@univerjs/core": "0.2.4
|
|
49
|
-
"@univerjs/drawing": "0.2.4
|
|
49
|
+
"@univerjs/core": "0.2.4",
|
|
50
|
+
"@univerjs/drawing": "0.2.4"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
53
|
+
"@wendellhu/redi": "0.16.0",
|
|
52
54
|
"typescript": "^5.5.3",
|
|
53
55
|
"vite": "^5.3.4",
|
|
54
56
|
"vitest": "^2.0.3",
|
|
55
|
-
"@univerjs/core": "0.2.4
|
|
56
|
-
"@univerjs/docs": "0.2.4
|
|
57
|
-
"@univerjs/
|
|
58
|
-
"@univerjs/
|
|
59
|
-
"@univerjs/shared": "0.2.4
|
|
57
|
+
"@univerjs/core": "0.2.4",
|
|
58
|
+
"@univerjs/docs": "0.2.4",
|
|
59
|
+
"@univerjs/drawing": "0.2.4",
|
|
60
|
+
"@univerjs/engine-render": "0.2.4",
|
|
61
|
+
"@univerjs/shared": "0.2.4"
|
|
60
62
|
},
|
|
61
63
|
"univerSpace": {
|
|
62
64
|
".": {
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IMutation } from '@univerjs/core';
|
|
2
|
-
import { IDrawingJson1Type } from '@univerjs/drawing';
|
|
3
|
-
|
|
4
|
-
export declare enum DocDrawingApplyType {
|
|
5
|
-
INSERT = 0,
|
|
6
|
-
REMOVE = 1,
|
|
7
|
-
UPDATE = 2,
|
|
8
|
-
ARRANGE = 3,
|
|
9
|
-
GROUP = 4,
|
|
10
|
-
UNGROUP = 5
|
|
11
|
-
}
|
|
12
|
-
export interface ISetDrawingApplyMutationParams extends IDrawingJson1Type {
|
|
13
|
-
type: DocDrawingApplyType;
|
|
14
|
-
}
|
|
15
|
-
export declare const SetDocDrawingApplyMutation: IMutation<ISetDrawingApplyMutationParams>;
|