@plait/core 0.62.0-next.7 → 0.62.0-next.9

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/package.json CHANGED
@@ -1,16 +1,29 @@
1
1
  {
2
2
  "name": "@plait/core",
3
- "version": "0.62.0-next.7",
3
+ "version": "0.62.0-next.9",
4
4
  "peerDependencies": {
5
5
  "immer": "^10.0.3",
6
6
  "is-hotkey": "^0.2.0",
7
7
  "rxjs": "~7.8.0",
8
8
  "roughjs": "^4.5.2",
9
- "slate": "^0.101.5"
9
+ "points-on-curve": "^1.0.0"
10
10
  },
11
11
  "dependencies": {
12
12
  "tslib": "^2.3.0"
13
13
  },
14
+ "license": "MIT",
15
+ "repository": "https://github.com/worktile/plait",
16
+ "keywords": [
17
+ "drawing",
18
+ "whiteboard",
19
+ "framework",
20
+ "mind map",
21
+ "flow chart",
22
+ "free hand",
23
+ "open-source"
24
+ ],
25
+ "module": "fesm2022/plait-core.mjs",
26
+ "typings": "index.d.ts",
14
27
  "exports": {
15
28
  "./package.json": {
16
29
  "default": "./package.json"
@@ -22,7 +35,5 @@
22
35
  "default": "./fesm2022/plait-core.mjs"
23
36
  }
24
37
  },
25
- "module": "fesm2022/plait-core.mjs",
26
- "typings": "index.d.ts",
27
38
  "sideEffects": false
28
39
  }
package/utils/common.d.ts CHANGED
@@ -5,9 +5,9 @@ export interface MoveNodeOption {
5
5
  newPath: Path;
6
6
  }
7
7
  export declare const throttleRAF: (board: PlaitBoard, key: string, fn: () => void) => void;
8
- export declare const debounce: (func: () => void, wait: number, options?: {
8
+ export declare const debounce: <T>(func: (args?: T | undefined) => void, wait: number, options?: {
9
9
  leading: boolean;
10
- }) => () => void;
10
+ }) => (args?: T | undefined) => void;
11
11
  export declare const getElementsIndices: (board: PlaitBoard, elements: PlaitElement[]) => number[];
12
12
  export declare const getHighestIndexOfElement: (board: PlaitBoard, elements: PlaitElement[]) => number;
13
13
  export declare const moveElementsToNewPath: (board: PlaitBoard, moveOptions: MoveNodeOption[]) => void;