@univerjs/drawing 0.2.6 → 0.2.8

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.
@@ -1,7 +1,6 @@
1
1
  import { ISrcRect, Nullable, PresetGeometryType } from '@univerjs/core';
2
2
  import { IDrawingParam } from '../services/drawing-manager.service';
3
3
  import { ImageSourceType } from '../services/image-io.service';
4
-
5
4
  export interface IImageData extends IDrawingParam {
6
5
  imageSourceType: ImageSourceType;
7
6
  source: string;
@@ -1,5 +1,4 @@
1
1
  import { DependencyOverride, Injector, Plugin } from '@univerjs/core';
2
-
3
2
  export declare class UniverDrawingPlugin extends Plugin {
4
3
  private _config;
5
4
  protected _injector: Injector;
@@ -2,7 +2,6 @@ import { Observable } from 'rxjs';
2
2
  import { Nullable } from '@univerjs/core';
3
3
  import { JSONOp, JSONOpList } from 'ot-json1';
4
4
  import { IDrawingGroupUpdateParam, IDrawingMap, IDrawingMapItemData, IDrawingOrderMapParam, IDrawingOrderUpdateParam, IDrawingParam, IDrawingSearch, IDrawingSubunitMap, IDrawingVisibleParam, IUnitDrawingService } from './drawing-manager.service';
5
-
6
5
  export interface IDrawingJsonUndo1 {
7
6
  undo: JSONOp;
8
7
  redo: JSONOp;
@@ -1,7 +1,6 @@
1
1
  import { BooleanNumber, IDisposable, Nullable } from '@univerjs/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { ITransformState } from './interface';
4
-
5
4
  export declare const DEFAULT_DOCUMENT_SUB_COMPONENT_ID = "__default_document_sub_component_id20231101__";
6
5
  export declare enum ArrangeTypeEnum {
7
6
  forward = 0,
@@ -1,7 +1,6 @@
1
1
  import { Nullable } from '@univerjs/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { IImageIoService, IImageIoServiceParam, ImageSourceType } from './image-io.service';
4
-
5
4
  export declare class ImageIoService implements IImageIoService {
6
5
  private _waitCount;
7
6
  private _change$;
@@ -1,6 +1,5 @@
1
1
  import { Nullable } from '@univerjs/core';
2
2
  import { Observable } from 'rxjs';
3
-
4
3
  export declare enum ImageSourceType {
5
4
  URL = "URL",
6
5
  UUID = "UUID",
@@ -1,5 +1,4 @@
1
1
  import { IAbsoluteTransform } from '@univerjs/core';
2
-
3
2
  export interface IRotationSkewFlipTransform {
4
3
  angle?: number;
5
4
  skewX?: number;
@@ -1,3 +1,2 @@
1
1
  import { IDrawingSearch } from '@univerjs/core';
2
-
3
2
  export declare function getDrawingShapeKeyByDrawingSearch({ unitId, subUnitId, drawingId }: IDrawingSearch, index?: number): string;
@@ -1,5 +1,4 @@
1
1
  import { ISize } from '@univerjs/core';
2
-
3
2
  interface IImageParam extends ISize {
4
3
  image: HTMLImageElement;
5
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/drawing",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -45,20 +45,20 @@
45
45
  ],
46
46
  "peerDependencies": {
47
47
  "rxjs": ">=7.0.0",
48
- "@univerjs/core": "0.2.6"
48
+ "@univerjs/core": "0.2.8"
49
49
  },
50
50
  "dependencies": {
51
- "@univerjs/icons": "^0.1.70",
51
+ "@univerjs/icons": "^0.1.73",
52
52
  "ot-json1": "^1.0.2"
53
53
  },
54
54
  "devDependencies": {
55
55
  "less": "^4.2.0",
56
56
  "rxjs": "^7.8.1",
57
57
  "typescript": "^5.5.4",
58
- "vite": "^5.3.5",
59
- "vitest": "^2.0.4",
60
- "@univerjs/core": "0.2.6",
61
- "@univerjs/shared": "0.2.6"
58
+ "vite": "^5.4.0",
59
+ "vitest": "^2.0.5",
60
+ "@univerjs/core": "0.2.8",
61
+ "@univerjs/shared": "0.2.8"
62
62
  },
63
63
  "univerSpace": {
64
64
  ".": {