@plait/mind 0.38.0 → 0.40.0
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/esm2022/interfaces/options.mjs +1 -1
- package/esm2022/plugins/with-node-resize.mjs +39 -104
- package/fesm2022/plait-mind.mjs +38 -104
- package/fesm2022/plait-mind.mjs.map +1 -1
- package/interfaces/options.d.ts +0 -2
- package/package.json +1 -1
- package/plugins/with-node-resize.d.ts +0 -4
- package/styles/styles.scss +0 -4
package/interfaces/options.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { ImageBaseComponent } from '@plait/common';
|
|
2
1
|
import { ComponentType, WithPluginOptions } from '@plait/core';
|
|
3
2
|
import { MindEmojiBaseComponent } from '../base/emoji-base.component';
|
|
4
3
|
export interface WithMindOptions extends WithPluginOptions {
|
|
5
4
|
emojiPadding: number;
|
|
6
5
|
spaceBetweenEmojis: number;
|
|
7
|
-
imageComponentType?: ComponentType<ImageBaseComponent>;
|
|
8
6
|
emojiComponentType?: ComponentType<MindEmojiBaseComponent>;
|
|
9
7
|
}
|
package/package.json
CHANGED
|
@@ -2,9 +2,5 @@ import { PlaitBoard, Point, RectangleClient } from '@plait/core';
|
|
|
2
2
|
import { MindElement } from '../interfaces/element';
|
|
3
3
|
import { PlaitMindBoard } from './with-mind.board';
|
|
4
4
|
export declare const withNodeResize: (board: PlaitBoard) => PlaitBoard;
|
|
5
|
-
export declare const IS_MIND_NODE_RESIZING: WeakMap<PlaitBoard, boolean>;
|
|
6
|
-
export declare const isMindNodeResizing: (board: PlaitBoard) => boolean;
|
|
7
|
-
export declare const addResizing: (board: PlaitBoard, element: MindElement) => void;
|
|
8
|
-
export declare const removeResizing: (board: PlaitBoard, element: MindElement) => void;
|
|
9
5
|
export declare const getSelectedTarget: (board: PlaitMindBoard, point: Point) => MindElement<import("@plait/mind").BaseData> | null;
|
|
10
6
|
export declare const getResizeActiveRectangle: (board: PlaitBoard, element: MindElement) => RectangleClient;
|