@plait/draw 0.87.0-next.0 → 0.87.0-next.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@plait/draw",
3
- "version": "0.87.0-next.0",
3
+ "version": "0.87.0-next.1",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
@@ -1,3 +1,3 @@
1
1
  import { PlaitBoard, Vector, Point } from '@plait/core';
2
2
  import { GeometryShapes, SwimlaneDrawSymbols } from '../interfaces';
3
- export declare const insertDrawByVector: (board: PlaitBoard, point: Point, shape: GeometryShapes | SwimlaneDrawSymbols, vector: Vector) => import("../interfaces").PlaitSwimlane | import("../interfaces").PlaitCommonGeometry<"geometry", [Point, Point], GeometryShapes> | null;
3
+ export declare const insertDrawByVector: (board: PlaitBoard, point: Point, shape: GeometryShapes | SwimlaneDrawSymbols, vector: Vector) => import("../interfaces").PlaitCommonGeometry<"geometry", [Point, Point], GeometryShapes> | import("../interfaces").PlaitSwimlane | null;
@@ -21,5 +21,5 @@ export declare const DrawTransforms: {
21
21
  removeSwimlaneColumn: (board: import("@plait/core").PlaitBoard, swimlane: import("@plait/draw").PlaitSwimlane, index: number, count?: number) => void;
22
22
  updateSwimlaneCount: (board: import("@plait/core").PlaitBoard, swimlane: import("@plait/draw").PlaitSwimlane, count: number) => void;
23
23
  setTableFill: (board: import("@plait/core").PlaitBoard, element: import("@plait/draw").PlaitBaseTable, fill: string | null, path: import("@plait/core").Path) => void;
24
- insertDrawByVector: (board: import("@plait/core").PlaitBoard, point: import("@plait/core").Point, shape: import("@plait/draw").GeometryShapes | import("@plait/draw").SwimlaneDrawSymbols, vector: import("@plait/core").Vector) => import("@plait/draw").PlaitSwimlane | import("@plait/draw").PlaitCommonGeometry<"geometry", [import("@plait/core").Point, import("@plait/core").Point], import("@plait/draw").GeometryShapes> | null;
24
+ insertDrawByVector: (board: import("@plait/core").PlaitBoard, point: import("@plait/core").Point, shape: import("@plait/draw").GeometryShapes | import("@plait/draw").SwimlaneDrawSymbols, vector: import("@plait/core").Vector) => import("@plait/draw").PlaitCommonGeometry<"geometry", [import("@plait/core").Point, import("@plait/core").Point], import("@plait/draw").GeometryShapes> | import("@plait/draw").PlaitSwimlane | null;
25
25
  };
@@ -66,9 +66,6 @@ export declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
66
66
  } | {
67
67
  width: number;
68
68
  height: number;
69
- } | {
70
- width: number;
71
- height: number;
72
69
  } | {
73
70
  width: number;
74
71
  height: number;
@@ -80,25 +77,12 @@ export declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
80
77
  } | {
81
78
  width: number;
82
79
  height: number;
83
- texts: {
84
- id: import("../interfaces").GeometryCommonTextKeys;
85
- text: string;
86
- align: Alignment;
87
- }[];
88
80
  } | {
89
81
  width: number;
90
82
  height: number;
91
- texts: {
92
- text: string;
93
- align: Alignment;
94
- }[];
95
83
  } | {
96
84
  width: number;
97
85
  height: number;
98
- texts: {
99
- text: string;
100
- align: Alignment;
101
- }[];
102
86
  } | {
103
87
  width: number;
104
88
  height: number;
@@ -117,9 +101,25 @@ export declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
117
101
  } | {
118
102
  width: number;
119
103
  height: number;
104
+ texts: {
105
+ id: import("../interfaces").GeometryCommonTextKeys;
106
+ text: string;
107
+ align: Alignment;
108
+ }[];
109
+ } | {
110
+ width: number;
111
+ height: number;
112
+ texts: {
113
+ text: string;
114
+ align: Alignment;
115
+ }[];
120
116
  } | {
121
117
  width: number;
122
118
  height: number;
119
+ texts: {
120
+ text: string;
121
+ align: Alignment;
122
+ }[];
123
123
  };
124
124
  export declare const getAutoCompletePoints: (board: PlaitBoard, element: PlaitShapeElement, isToActive?: boolean) => [Point, Point, Point, Point];
125
125
  export declare const getHitIndexOfAutoCompletePoint: (movingPoint: Point, points: Point[]) => number;
package/utils/hit.d.ts CHANGED
@@ -15,7 +15,7 @@ export declare const isRectangleHitRotatedPoints: (rectangle: RectangleClient, p
15
15
  export declare const getHitDrawElement: (board: PlaitBoard, elements: (PlaitDrawElement | PlaitCustomGeometry)[]) => PlaitElement;
16
16
  export declare const getFirstFilledDrawElement: (board: PlaitBoard, elements: (PlaitDrawElement | PlaitCustomGeometry)[]) => PlaitGeometry | PlaitCustomGeometry<string, Point[], string> | null;
17
17
  export declare const isFilledDrawElement: (board: PlaitBoard, element: PlaitDrawElement | PlaitCustomGeometry) => boolean;
18
- export declare const getSolidElements: (elements: PlaitElement[]) => (import("../interfaces/image").PlaitImage | import("../interfaces/line").PlaitLine | import("../interfaces").PlaitText)[] | null;
18
+ export declare const getSolidElements: (elements: PlaitElement[]) => (import("../interfaces/line").PlaitLine | import("../interfaces").PlaitText | import("../interfaces/image").PlaitImage)[] | null;
19
19
  export declare const isHitDrawElement: (board: PlaitBoard, element: PlaitElement, point: Point, isStrict?: boolean) => boolean | null;
20
20
  export declare const isHitEdgeOfShape: (board: PlaitBoard, element: PlaitShapeElement, point: Point, hitDistanceBuffer: number) => boolean;
21
21
  export declare const isInsideOfShape: (board: PlaitBoard, element: PlaitShapeElement, point: Point, hitDistanceBuffer: number) => boolean;
package/utils/shape.d.ts CHANGED
@@ -2,5 +2,5 @@ import { PlaitBoard } from '@plait/core';
2
2
  import { PlaitGeometry, PlaitShapeElement, TableSymbols } from '../interfaces';
3
3
  import { DrawPointerType } from '../constants/pointer';
4
4
  import { GeometryShapeGenerator, TableGenerator } from '../generators';
5
- export declare const getElementShape: (value: PlaitShapeElement) => import("../interfaces").GeometryShapes | import("../interfaces").SwimlaneSymbols | TableSymbols.table;
5
+ export declare const getElementShape: (value: PlaitShapeElement) => import("../interfaces").GeometryShapes | TableSymbols.table | import("../interfaces").SwimlaneSymbols;
6
6
  export declare const getGeometryGeneratorByShape: (board: PlaitBoard, shape: DrawPointerType) => GeometryShapeGenerator | TableGenerator<PlaitGeometry>;