@univerjs/sheets-drawing 0.15.2-insiders.20260124-12fc7f0 → 0.15.3-insiders.20260131-b9b8805

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/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createIdentifier as P, CommandType as C, Inject as N, IUniverInstanceService as M, ICommandService as j, IResourceManagerService as G, Disposable as T, UniverInstanceType as I, DrawingTypeEnum as D, generateRandomId as H, DependentOn as J, Injector as V, IConfigService as W, Plugin as L, merge as F } from "@univerjs/core";
1
+ import { createIdentifier as P, CommandType as C, Inject as N, IUniverInstanceService as M, Disposable as j, UniverInstanceType as I, DrawingTypeEnum as D, generateRandomId as G, ICommandService as T, IResourceManagerService as H, DependentOn as J, Injector as V, Plugin as W, merge as L, IConfigService as F } from "@univerjs/core";
2
2
  import { UnitDrawingService as x, IDrawingManagerService as O, UniverDrawingPlugin as A } from "@univerjs/drawing";
3
3
  import { SheetInterceptorService as B, RemoveSheetCommand as $, CopySheetCommand as K } from "@univerjs/sheets";
4
4
  var Y = /* @__PURE__ */ ((e) => (e.Position = "0", e.Both = "1", e.None = "2", e))(Y || {});
@@ -40,7 +40,7 @@ var q = Object.getOwnPropertyDescriptor, z = (e, i, t, r) => {
40
40
  return n;
41
41
  }, d = (e, i) => (t, r) => i(t, r, e);
42
42
  const R = "SHEET_DRAWING_PLUGIN";
43
- let p = class extends T {
43
+ let p = class extends j {
44
44
  constructor(e, i, t, r, n, s) {
45
45
  super(), this._sheetInterceptorService = e, this._univerInstanceService = i, this._commandService = t, this._sheetDrawingService = r, this._drawingManagerService = n, this._resourceManagerService = s, this._initSnapshot(), this._initSheetChange(), this.disposeWithMe(this._commandService.registerCommand(g));
46
46
  }
@@ -120,7 +120,7 @@ let p = class extends T {
120
120
  const o = this._sheetDrawingService.getDrawingData(r, n), c = Object.values(o).filter((m) => m.drawingType !== D.DRAWING_CHART).map((m) => ({
121
121
  ...m,
122
122
  subUnitId: s,
123
- drawingId: H(6)
123
+ drawingId: G(6)
124
124
  }));
125
125
  if (c.length === 0)
126
126
  return { redos: [], undos: [] };
@@ -161,10 +161,10 @@ let p = class extends T {
161
161
  p = z([
162
162
  d(0, N(B)),
163
163
  d(1, N(M)),
164
- d(2, j),
164
+ d(2, T),
165
165
  d(3, E),
166
166
  d(4, O),
167
- d(5, G)
167
+ d(5, H)
168
168
  ], p);
169
169
  const Q = "sheets-drawing.config", b = {};
170
170
  var X = Object.defineProperty, Z = Object.getOwnPropertyDescriptor, y = (e, i, t) => i in e ? X(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, ee = (e, i, t, r) => {
@@ -172,10 +172,10 @@ var X = Object.defineProperty, Z = Object.getOwnPropertyDescriptor, y = (e, i, t
172
172
  (o = e[s]) && (n = o(n) || n);
173
173
  return n;
174
174
  }, w = (e, i) => (t, r) => i(t, r, e), l = (e, i, t) => y(e, typeof i != "symbol" ? i + "" : i, t);
175
- let f = class extends L {
175
+ let f = class extends W {
176
176
  constructor(e = b, i, t) {
177
177
  super(), this._config = e, this._injector = i, this._configService = t;
178
- const { ...r } = F(
178
+ const { ...r } = L(
179
179
  {},
180
180
  b,
181
181
  this._config
@@ -194,7 +194,7 @@ l(f, "type", I.UNIVER_SHEET);
194
194
  f = ee([
195
195
  J(A),
196
196
  w(1, N(V)),
197
- w(2, W)
197
+ w(2, F)
198
198
  ], f);
199
199
  export {
200
200
  h as DrawingApplyType,
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createIdentifier as P, CommandType as C, Inject as N, IUniverInstanceService as M, ICommandService as j, IResourceManagerService as G, Disposable as T, UniverInstanceType as I, DrawingTypeEnum as D, generateRandomId as H, DependentOn as J, Injector as V, IConfigService as W, Plugin as L, merge as F } from "@univerjs/core";
1
+ import { createIdentifier as P, CommandType as C, Inject as N, IUniverInstanceService as M, Disposable as j, UniverInstanceType as I, DrawingTypeEnum as D, generateRandomId as G, ICommandService as T, IResourceManagerService as H, DependentOn as J, Injector as V, Plugin as W, merge as L, IConfigService as F } from "@univerjs/core";
2
2
  import { UnitDrawingService as x, IDrawingManagerService as O, UniverDrawingPlugin as A } from "@univerjs/drawing";
3
3
  import { SheetInterceptorService as B, RemoveSheetCommand as $, CopySheetCommand as K } from "@univerjs/sheets";
4
4
  var Y = /* @__PURE__ */ ((e) => (e.Position = "0", e.Both = "1", e.None = "2", e))(Y || {});
@@ -40,7 +40,7 @@ var q = Object.getOwnPropertyDescriptor, z = (e, i, t, r) => {
40
40
  return n;
41
41
  }, d = (e, i) => (t, r) => i(t, r, e);
42
42
  const R = "SHEET_DRAWING_PLUGIN";
43
- let p = class extends T {
43
+ let p = class extends j {
44
44
  constructor(e, i, t, r, n, s) {
45
45
  super(), this._sheetInterceptorService = e, this._univerInstanceService = i, this._commandService = t, this._sheetDrawingService = r, this._drawingManagerService = n, this._resourceManagerService = s, this._initSnapshot(), this._initSheetChange(), this.disposeWithMe(this._commandService.registerCommand(g));
46
46
  }
@@ -120,7 +120,7 @@ let p = class extends T {
120
120
  const o = this._sheetDrawingService.getDrawingData(r, n), c = Object.values(o).filter((m) => m.drawingType !== D.DRAWING_CHART).map((m) => ({
121
121
  ...m,
122
122
  subUnitId: s,
123
- drawingId: H(6)
123
+ drawingId: G(6)
124
124
  }));
125
125
  if (c.length === 0)
126
126
  return { redos: [], undos: [] };
@@ -161,10 +161,10 @@ let p = class extends T {
161
161
  p = z([
162
162
  d(0, N(B)),
163
163
  d(1, N(M)),
164
- d(2, j),
164
+ d(2, T),
165
165
  d(3, E),
166
166
  d(4, O),
167
- d(5, G)
167
+ d(5, H)
168
168
  ], p);
169
169
  const Q = "sheets-drawing.config", b = {};
170
170
  var X = Object.defineProperty, Z = Object.getOwnPropertyDescriptor, y = (e, i, t) => i in e ? X(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, ee = (e, i, t, r) => {
@@ -172,10 +172,10 @@ var X = Object.defineProperty, Z = Object.getOwnPropertyDescriptor, y = (e, i, t
172
172
  (o = e[s]) && (n = o(n) || n);
173
173
  return n;
174
174
  }, w = (e, i) => (t, r) => i(t, r, e), l = (e, i, t) => y(e, typeof i != "symbol" ? i + "" : i, t);
175
- let f = class extends L {
175
+ let f = class extends W {
176
176
  constructor(e = b, i, t) {
177
177
  super(), this._config = e, this._injector = i, this._configService = t;
178
- const { ...r } = F(
178
+ const { ...r } = L(
179
179
  {},
180
180
  b,
181
181
  this._config
@@ -194,7 +194,7 @@ l(f, "type", I.UNIVER_SHEET);
194
194
  f = ee([
195
195
  J(A),
196
196
  w(1, N(V)),
197
- w(2, W)
197
+ w(2, F)
198
198
  ], f);
199
199
  export {
200
200
  h as DrawingApplyType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-drawing",
3
- "version": "0.15.2-insiders.20260124-12fc7f0",
3
+ "version": "0.15.3-insiders.20260131-b9b8805",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -43,15 +43,15 @@
43
43
  "lib"
44
44
  ],
45
45
  "dependencies": {
46
- "@univerjs/core": "0.15.2-insiders.20260124-12fc7f0",
47
- "@univerjs/drawing": "0.15.2-insiders.20260124-12fc7f0",
48
- "@univerjs/sheets": "0.15.2-insiders.20260124-12fc7f0"
46
+ "@univerjs/drawing": "0.15.3-insiders.20260131-b9b8805",
47
+ "@univerjs/core": "0.15.3-insiders.20260131-b9b8805",
48
+ "@univerjs/sheets": "0.15.3-insiders.20260131-b9b8805"
49
49
  },
50
50
  "devDependencies": {
51
51
  "typescript": "^5.9.3",
52
52
  "vite": "^7.3.1",
53
- "vitest": "^4.0.16",
54
- "@univerjs-infra/shared": "0.15.2"
53
+ "vitest": "^4.0.18",
54
+ "@univerjs-infra/shared": "0.15.3"
55
55
  },
56
56
  "scripts": {
57
57
  "test": "vitest run",