@univerjs/sheets-drawing-ui 0.6.2 → 0.6.3

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/facade.js CHANGED
@@ -169,7 +169,7 @@ let b = class {
169
169
  }
170
170
  /**
171
171
  * Set the horizontal position of the image
172
- * @param {number} column - The column index of the image start position
172
+ * @param {number} column - The column index of the image start position, start at 0
173
173
  * @returns {FOverGridImageBuilder} The `FOverGridImageBuilder` for chaining
174
174
  * @example
175
175
  * ```ts
@@ -190,7 +190,7 @@ let b = class {
190
190
  }
191
191
  /**
192
192
  * Set the vertical position of the image
193
- * @param {number} row - The row index of the image start position
193
+ * @param {number} row - The row index of the image start position, start at 0
194
194
  * @returns {FOverGridImageBuilder} The `FOverGridImageBuilder` for chaining
195
195
  * @example
196
196
  * ```ts
@@ -650,7 +650,7 @@ let m = class extends J {
650
650
  }
651
651
  /**
652
652
  * Move the image layer backward by one level
653
- * @returns success or not
653
+ * @returns {boolean} true if the image is moved backward successfully, otherwise false
654
654
  * @example
655
655
  * ```ts
656
656
  * const fWorkbook = univerAPI.getActiveWorkbook();
@@ -670,7 +670,7 @@ let m = class extends J {
670
670
  }
671
671
  /**
672
672
  * Move the image layer to the bottom layer
673
- * @returns success or not
673
+ * @returns {boolean} true if the image is moved to the bottom layer successfully, otherwise false
674
674
  * @example
675
675
  * ```ts
676
676
  * const fWorkbook = univerAPI.getActiveWorkbook();
@@ -690,7 +690,7 @@ let m = class extends J {
690
690
  }
691
691
  /**
692
692
  * Move the image layer to the top layer
693
- * @returns success or not
693
+ * @returns {boolean} true if the image is moved to the top layer successfully, otherwise false
694
694
  * @example
695
695
  * ```ts
696
696
  * const fWorkbook = univerAPI.getActiveWorkbook();
package/lib/es/index.js CHANGED
@@ -1932,11 +1932,7 @@ let dn = class extends le {
1932
1932
  this._remainDrawingSize(u, s, a);
1933
1933
  continue;
1934
1934
  }
1935
- const _ = z(
1936
- { ...c },
1937
- this._selectionRenderService,
1938
- this._skeletonManagerService
1939
- );
1935
+ const _ = z({ ...c }, this._selectionRenderService, this._skeletonManagerService);
1940
1936
  if (_ != null) {
1941
1937
  s.push({
1942
1938
  ...a,
@@ -88,7 +88,7 @@ export declare class FOverGridImageBuilder {
88
88
  getSourceType(): ImageSourceType;
89
89
  /**
90
90
  * Set the horizontal position of the image
91
- * @param {number} column - The column index of the image start position
91
+ * @param {number} column - The column index of the image start position, start at 0
92
92
  * @returns {FOverGridImageBuilder} The `FOverGridImageBuilder` for chaining
93
93
  * @example
94
94
  * ```ts
@@ -107,7 +107,7 @@ export declare class FOverGridImageBuilder {
107
107
  setColumn(column: number): FOverGridImageBuilder;
108
108
  /**
109
109
  * Set the vertical position of the image
110
- * @param {number} row - The row index of the image start position
110
+ * @param {number} row - The row index of the image start position, start at 0
111
111
  * @returns {FOverGridImageBuilder} The `FOverGridImageBuilder` for chaining
112
112
  * @example
113
113
  * ```ts
@@ -547,7 +547,7 @@ export declare class FOverGridImage extends FBase {
547
547
  setForward(): boolean;
548
548
  /**
549
549
  * Move the image layer backward by one level
550
- * @returns success or not
550
+ * @returns {boolean} true if the image is moved backward successfully, otherwise false
551
551
  * @example
552
552
  * ```ts
553
553
  * const fWorkbook = univerAPI.getActiveWorkbook();
@@ -560,7 +560,7 @@ export declare class FOverGridImage extends FBase {
560
560
  setBackward(): boolean;
561
561
  /**
562
562
  * Move the image layer to the bottom layer
563
- * @returns success or not
563
+ * @returns {boolean} true if the image is moved to the bottom layer successfully, otherwise false
564
564
  * @example
565
565
  * ```ts
566
566
  * const fWorkbook = univerAPI.getActiveWorkbook();
@@ -573,7 +573,7 @@ export declare class FOverGridImage extends FBase {
573
573
  setBack(): boolean;
574
574
  /**
575
575
  * Move the image layer to the top layer
576
- * @returns success or not
576
+ * @returns {boolean} true if the image is moved to the top layer successfully, otherwise false
577
577
  * @example
578
578
  * ```ts
579
579
  * const fWorkbook = univerAPI.getActiveWorkbook();
@@ -9,8 +9,10 @@ export interface IFRangeSheetDrawingMixin {
9
9
  * ```ts
10
10
  * const fWorkbook = univerAPI.getActiveWorkbook();
11
11
  * const fWorksheet = fWorkbook.getActiveSheet();
12
+ *
13
+ * // Insert an image into the cell A10
12
14
  * const fRange = fWorksheet.getRange('A10');
13
- * const result = fRange.insertCellImageAsync('https://avatars.githubusercontent.com/u/61444807?s=48&v=4');
15
+ * const result = await fRange.insertCellImageAsync('https://avatars.githubusercontent.com/u/61444807?s=48&v=4');
14
16
  * console.log(result);
15
17
  * ```
16
18
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/sheets-drawing-ui",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -58,17 +58,17 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@univerjs/icons": "^0.2.20",
61
- "@univerjs/core": "0.6.2",
62
- "@univerjs/design": "0.6.2",
63
- "@univerjs/docs-drawing": "0.6.2",
64
- "@univerjs/docs-ui": "0.6.2",
65
- "@univerjs/drawing-ui": "0.6.2",
66
- "@univerjs/engine-render": "0.6.2",
67
- "@univerjs/drawing": "0.6.2",
68
- "@univerjs/sheets": "0.6.2",
69
- "@univerjs/sheets-drawing": "0.6.2",
70
- "@univerjs/sheets-ui": "0.6.2",
71
- "@univerjs/ui": "0.6.2"
61
+ "@univerjs/core": "0.6.3",
62
+ "@univerjs/design": "0.6.3",
63
+ "@univerjs/docs-drawing": "0.6.3",
64
+ "@univerjs/drawing": "0.6.3",
65
+ "@univerjs/drawing-ui": "0.6.3",
66
+ "@univerjs/docs-ui": "0.6.3",
67
+ "@univerjs/engine-render": "0.6.3",
68
+ "@univerjs/sheets": "0.6.3",
69
+ "@univerjs/sheets-drawing": "0.6.3",
70
+ "@univerjs/ui": "0.6.3",
71
+ "@univerjs/sheets-ui": "0.6.3"
72
72
  },
73
73
  "devDependencies": {
74
74
  "less": "^4.2.2",
@@ -76,10 +76,10 @@
76
76
  "react": "18.3.1",
77
77
  "rxjs": "^7.8.1",
78
78
  "tailwindcss": "^3.4.17",
79
- "typescript": "^5.7.3",
79
+ "typescript": "^5.8.2",
80
80
  "vite": "^6.2.0",
81
81
  "vitest": "^3.0.7",
82
- "@univerjs-infra/shared": "0.6.2"
82
+ "@univerjs-infra/shared": "0.6.3"
83
83
  },
84
84
  "scripts": {
85
85
  "test": "vitest run",