@plait/mind 0.17.0 → 0.19.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/constants/node-style.d.ts +16 -7
- package/esm2020/constants/node-style.mjs +14 -8
- package/esm2020/drawer/node-active.drawer.mjs +10 -9
- package/esm2020/node.component.mjs +1 -1
- package/esm2020/plugins/with-mind.mjs +2 -10
- package/esm2020/transforms/abstract-node.mjs +3 -3
- package/esm2020/utils/draw/abstract-outline.mjs +44 -2
- package/esm2020/utils/draw/node-link/logic-link.mjs +2 -2
- package/esm2020/utils/draw/node-shape.mjs +5 -7
- package/esm2020/utils/node-style/branch.mjs +3 -3
- package/esm2020/utils/node-style/shape.mjs +15 -4
- package/fesm2015/plait-mind.mjs +85 -34
- package/fesm2015/plait-mind.mjs.map +1 -1
- package/fesm2020/plait-mind.mjs +85 -34
- package/fesm2020/plait-mind.mjs.map +1 -1
- package/package.json +1 -1
- package/utils/draw/abstract-outline.d.ts +2 -0
- package/utils/node-style/shape.d.ts +2 -0
package/package.json
CHANGED
|
@@ -2,9 +2,11 @@ import { PlaitBoard } from '@plait/core';
|
|
|
2
2
|
import { RoughSVG } from 'roughjs/bin/svg';
|
|
3
3
|
import { MindElement } from '../../interfaces';
|
|
4
4
|
import { AbstractHandlePosition } from '../../plugins/with-abstract-resize.board';
|
|
5
|
+
import { Options } from 'roughjs/bin/core';
|
|
5
6
|
export declare function drawAbstractIncludedOutline(board: PlaitBoard, roughSVG: RoughSVG, element: MindElement, activeHandlePosition?: AbstractHandlePosition, resizingLocation?: number): SVGGElement;
|
|
6
7
|
export declare function getHandleOption(isHover: boolean): {
|
|
7
8
|
stroke: string;
|
|
8
9
|
strokeWidth: number;
|
|
9
10
|
fillStyle: string;
|
|
10
11
|
};
|
|
12
|
+
export declare function drawAbstractRoundRectangle(rs: RoughSVG, x1: number, y1: number, x2: number, y2: number, isHorizontal: boolean, options: Options): SVGGElement;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { PlaitBoard } from '@plait/core';
|
|
2
2
|
import { MindElement, MindElementShape } from '../../interfaces/element';
|
|
3
3
|
export declare const getStrokeByMindElement: (board: PlaitBoard, element: MindElement) => any;
|
|
4
|
+
export declare const getStrokeWidthByElement: (board: PlaitBoard, element: MindElement) => number;
|
|
5
|
+
export declare const getFillByElement: (board: PlaitBoard, element: MindElement) => string;
|
|
4
6
|
export declare const getShapeByElement: (board: PlaitBoard, element: MindElement) => MindElementShape;
|