@plait/draw 0.83.0 → 0.84.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/pointer.d.ts +1 -0
- package/fesm2022/plait-draw.mjs +502 -491
- package/fesm2022/plait-draw.mjs.map +1 -1
- package/package.json +1 -1
- package/plugins/with-geometry-create.d.ts +0 -5
- package/utils/hit.d.ts +1 -1
- package/utils/shape.d.ts +5 -1
- package/utils/swimlane.d.ts +2 -1
package/package.json
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { PlaitBoard } from '@plait/core';
|
|
2
|
-
import { PlaitGeometry } from '../interfaces';
|
|
3
|
-
import { GeometryShapeGenerator } from '../generators/geometry-shape.generator';
|
|
4
|
-
import { DrawPointerType } from '../constants';
|
|
5
2
|
import { TextManage } from '@plait/common';
|
|
6
|
-
import { TableGenerator } from '../generators/table.generator';
|
|
7
3
|
export interface FakeCreateTextRef {
|
|
8
4
|
g: SVGGElement;
|
|
9
5
|
textManage: TextManage;
|
|
10
6
|
}
|
|
11
|
-
export declare const getGeometryGeneratorByShape: (board: PlaitBoard, shape: DrawPointerType) => GeometryShapeGenerator | TableGenerator<PlaitGeometry>;
|
|
12
7
|
export declare const withGeometryCreateByDrag: (board: PlaitBoard) => PlaitBoard;
|
|
13
8
|
export declare const withGeometryCreateByDrawing: (board: PlaitBoard) => PlaitBoard;
|
package/utils/hit.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const isRectangleHitRotatedPoints: (rectangle: RectangleClient, p
|
|
|
16
16
|
export declare const getHitDrawElement: (board: PlaitBoard, elements: (PlaitDrawElement | PlaitCustomGeometry)[]) => PlaitElement;
|
|
17
17
|
export declare const getFirstFilledDrawElement: (board: PlaitBoard, elements: (PlaitDrawElement | PlaitCustomGeometry)[]) => PlaitGeometry | PlaitCustomGeometry<string, Point[], string> | null;
|
|
18
18
|
export declare const isFilledDrawElement: (board: PlaitBoard, element: PlaitDrawElement | PlaitCustomGeometry) => boolean;
|
|
19
|
-
export declare const getSolidElements: (elements: PlaitElement[]) => (import("../interfaces/
|
|
19
|
+
export declare const getSolidElements: (elements: PlaitElement[]) => (import("../interfaces/line").PlaitLine | import("../interfaces").PlaitText | import("../interfaces/image").PlaitImage)[] | null;
|
|
20
20
|
export declare const isHitDrawElement: (board: PlaitBoard, element: PlaitElement, point: Point, isStrict?: boolean) => boolean | null;
|
|
21
21
|
export declare const isHitEdgeOfShape: (board: PlaitBoard, element: PlaitShapeElement, point: Point, hitDistanceBuffer: number) => boolean;
|
|
22
22
|
export declare const isInsideOfShape: (board: PlaitBoard, element: PlaitShapeElement, point: Point, hitDistanceBuffer: number) => boolean;
|
package/utils/shape.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PlaitBoard } from '@plait/core';
|
|
2
|
+
import { PlaitGeometry, PlaitShapeElement, TableSymbols } from '../interfaces';
|
|
3
|
+
import { DrawPointerType } from '../constants/pointer';
|
|
4
|
+
import { GeometryShapeGenerator, TableGenerator } from '../generators';
|
|
2
5
|
export declare const getElementShape: (value: PlaitShapeElement) => import("../interfaces").GeometryShapes | TableSymbols.table | import("../interfaces").SwimlaneSymbols;
|
|
6
|
+
export declare const getGeometryGeneratorByShape: (board: PlaitBoard, shape: DrawPointerType) => GeometryShapeGenerator | TableGenerator<PlaitGeometry>;
|
package/utils/swimlane.d.ts
CHANGED
|
@@ -34,5 +34,6 @@ export declare const createDefaultCells: (shape: SwimlaneSymbols, rows: {
|
|
|
34
34
|
}[], header: boolean) => PlaitTableCell[];
|
|
35
35
|
export declare const getSwimlaneCount: (swimlane: PlaitSwimlane) => number;
|
|
36
36
|
export declare const isSwimlaneWithHeader: (shape: SwimlaneDrawSymbols) => boolean;
|
|
37
|
+
export declare const isSwimlaneShape: (shape: SwimlaneSymbols) => boolean;
|
|
37
38
|
export declare const adjustSwimlaneShape: (shape: SwimlaneDrawSymbols) => SwimlaneSymbols;
|
|
38
|
-
export declare const isSwimlanePointers: (board: PlaitBoard) => boolean;
|
|
39
|
+
export declare const isSwimlanePointers: (board: PlaitBoard, pointer?: string) => boolean;
|