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