@8btc/whiteboard 0.0.20-alpha.37 → 0.0.20-alpha.39

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/dist/maze.d.ts CHANGED
@@ -40,6 +40,9 @@ export declare function calculateBottomLeftOfCanvasContent(api: CanvasApi | null
40
40
  * 继承自 CanvasCore,只暴露必要的公开方法
41
41
  */
42
42
  declare class CanvasApi extends CanvasCore {
43
+ #private;
44
+ constructor(el: HTMLDivElement, options?: ConstructorParameters<typeof CanvasCore>[1]);
45
+ dispose(): void;
43
46
  /**
44
47
  * 获取所有可用的工具类型
45
48
  */
@@ -336,6 +339,7 @@ declare class CanvasApi extends CanvasCore {
336
339
  /* Excluded from this release type: _selectNodes */
337
340
  /* Excluded from this release type: deleteNodes */
338
341
  /* Excluded from this release type: deleteSelectedNodes */
342
+ /* Excluded from this release type: _getKeyboardEl */
339
343
  /**
340
344
  * 销毁 canvas
341
345
  */
@@ -457,9 +461,6 @@ declare class CanvasApi extends CanvasCore {
457
461
  * 重置光标样式
458
462
  */
459
463
  resetCursor(): void;
460
- /**
461
- * 销毁 Stage
462
- */
463
464
  destroy(): void;
464
465
  }
465
466
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8btc/whiteboard",
3
3
  "private": false,
4
- "version": "0.0.20-alpha.37",
4
+ "version": "0.0.20-alpha.39",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",
7
7
  "module": "./dist/index.js",
@@ -57,6 +57,7 @@
57
57
  "lucide-react": "^0.562.0",
58
58
  "mitt": "^3.0.1",
59
59
  "radix-ui": "^1.4.3",
60
+ "react-colorful": "^5.6.1",
60
61
  "react-hotkeys-hook": "^5.2.4",
61
62
  "tailwind-merge": "^3.4.0",
62
63
  "uuid": "^13.0.0",