@univerjs/drawing 0.6.4 → 0.6.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.
@@ -18,7 +18,7 @@ export { DrawingManagerService, type IDrawingJson1Type, type IDrawingJsonUndo1,
18
18
  export { getDrawingShapeKeyByDrawingSearch } from './utils/get-image-shape-key';
19
19
  export { getImageSize } from './utils/get-image-size';
20
20
  export { UniverDrawingPlugin } from './plugin';
21
- export { type IImageData } from './models/image-model-interface';
21
+ export { type IDocFloatDomData, type IDocFloatDomDataBase, type IImageData } from './models/image-model-interface';
22
22
  export { IImageIoService, type IImageIoServiceParam, ImageSourceType, ImageUploadStatusType } from './services/image-io.service';
23
23
  export { ImageIoService } from './services/image-io-impl.service';
24
24
  export { type IDrawingGroupUpdateParam, IDrawingManagerService, type IDrawingMap, type IDrawingMapItem, type IDrawingMapItemData, type IDrawingOrderMapParam, type IDrawingOrderUpdateParam, type IDrawingSubunitMap, type IDrawingVisibleParam, type IUnitDrawingService, } from './services/drawing-manager.service';
@@ -1,4 +1,4 @@
1
- import { IDrawingParam, ISrcRect, Nullable, PresetGeometryType } from '@univerjs/core';
1
+ import { IDrawingParam, ISrcRect, Nullable, PresetGeometryType, Serializable } from '@univerjs/core';
2
2
  import { ImageSourceType } from '../services/image-io.service';
3
3
  export interface IImageData extends IDrawingParam {
4
4
  imageSourceType: ImageSourceType;
@@ -12,3 +12,10 @@ export interface IImageData extends IDrawingParam {
12
12
  */
13
13
  prstGeom?: Nullable<PresetGeometryType>;
14
14
  }
15
+ export interface IDocFloatDomDataBase {
16
+ componentKey: string;
17
+ data?: Serializable;
18
+ allowTransform?: boolean;
19
+ }
20
+ export interface IDocFloatDomData extends IDrawingParam, IDocFloatDomDataBase {
21
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/drawing",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,14 +47,14 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "ot-json1": "^1.0.2",
50
- "@univerjs/core": "0.6.4"
50
+ "@univerjs/core": "0.6.5"
51
51
  },
52
52
  "devDependencies": {
53
53
  "rxjs": "^7.8.1",
54
54
  "typescript": "^5.8.2",
55
- "vite": "^6.2.0",
56
- "vitest": "^3.0.7",
57
- "@univerjs-infra/shared": "0.6.4"
55
+ "vite": "^6.2.1",
56
+ "vitest": "^3.0.8",
57
+ "@univerjs-infra/shared": "0.6.5"
58
58
  },
59
59
  "scripts": {
60
60
  "test": "vitest run",