@plait/core 0.0.39 → 0.0.41
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/board/board.component.d.ts +10 -8
- package/esm2020/board/board.component.mjs +34 -56
- package/esm2020/interfaces/board.mjs +1 -1
- package/esm2020/plugins/with-history.mjs +2 -2
- package/esm2020/plugins/with-move.mjs +66 -0
- package/esm2020/utils/weak-maps.mjs +2 -1
- package/fesm2015/plait-core.mjs +94 -54
- package/fesm2015/plait-core.mjs.map +1 -1
- package/fesm2020/plait-core.mjs +96 -55
- package/fesm2020/plait-core.mjs.map +1 -1
- package/interfaces/board.d.ts +0 -1
- package/package.json +1 -1
- package/plugins/with-history.d.ts +1 -1
- package/plugins/with-move.d.ts +2 -0
- package/utils/weak-maps.d.ts +2 -0
package/interfaces/board.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PlaitBoard } from '../interfaces';
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function withHistory<T extends PlaitBoard>(board: T): T;
|
package/utils/weak-maps.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { RoughSVG } from 'roughjs/bin/svg';
|
|
2
|
+
import { PlaitBoardComponent } from '../board/board.component';
|
|
2
3
|
import { PlaitBoard } from '../interfaces/board';
|
|
3
4
|
export declare const FLUSHING: WeakMap<PlaitBoard, boolean>;
|
|
4
5
|
export declare const IS_TEXT_EDITABLE: WeakMap<PlaitBoard, boolean>;
|
|
5
6
|
export declare const BOARD_TO_ON_CHANGE: WeakMap<PlaitBoard, () => void>;
|
|
6
7
|
export declare const HOST_TO_ROUGH_SVG: WeakMap<SVGElement, RoughSVG>;
|
|
8
|
+
export declare const PLAIT_BOARD_TO_COMPONENT: WeakMap<PlaitBoard, PlaitBoardComponent>;
|