@plait/draw 0.64.0 → 0.64.2

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.64.0",
3
+ "version": "0.64.2",
4
4
  "peerDependencies": {},
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
@@ -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, path: import("@plait/core").Path) => void;
24
- insertDrawByVector: (board: import("@plait/core").PlaitBoard, point: import("@plait/core").Point, shape: import("@plait/draw").SwimlaneDrawSymbols | import("@plait/draw").GeometryShapes, vector: import("@plait/core").Vector) => import("@plait/draw").PlaitCommonGeometry | import("@plait/draw").PlaitSwimlane | 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 | import("@plait/draw").PlaitSwimlane | null;
25
25
  };
@@ -1,7 +1,7 @@
1
1
  import { PlaitBoard, Point } from '@plait/core';
2
2
  import { PlaitArrowLine, PlaitDrawElement, PlaitGeometry, PlaitShapeElement } from '../interfaces';
3
3
  import { PlaitTable } from '../interfaces/table';
4
- export declare const buildClipboardData: (board: PlaitBoard, elements: PlaitDrawElement[], startPoint: Point) => (PlaitArrowLine | PlaitGeometry | import("../interfaces").PlaitBaseTable | import("../interfaces").PlaitVectorLine)[];
4
+ export declare const buildClipboardData: (board: PlaitBoard, elements: PlaitDrawElement[], startPoint: Point) => (PlaitGeometry | import("../interfaces").PlaitBaseTable | PlaitArrowLine | import("../interfaces").PlaitVectorLine)[];
5
5
  export declare const insertClipboardData: (board: PlaitBoard, elements: PlaitDrawElement[], startPoint: Point) => void;
6
6
  export declare const insertClipboardTableData: (board: PlaitBoard, elements: PlaitTable[], startPoint: Point, lines: PlaitArrowLine[]) => void;
7
7
  export declare const updateBoundArrowLinesId: (element: PlaitShapeElement, lines: PlaitArrowLine[], newId: string) => void;
@@ -67,9 +67,6 @@ export declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
67
67
  } | {
68
68
  width: number;
69
69
  height: number;
70
- } | {
71
- width: number;
72
- height: number;
73
70
  } | {
74
71
  width: number;
75
72
  height: number;
@@ -81,25 +78,12 @@ export declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
81
78
  } | {
82
79
  width: number;
83
80
  height: number;
84
- texts: {
85
- key: import("../interfaces").MultipleTextGeometryCommonTextKeys;
86
- text: string;
87
- align: Alignment;
88
- }[];
89
81
  } | {
90
82
  width: number;
91
83
  height: number;
92
- texts: {
93
- text: string;
94
- align: Alignment;
95
- }[];
96
84
  } | {
97
85
  width: number;
98
86
  height: number;
99
- texts: {
100
- text: string;
101
- align: Alignment;
102
- }[];
103
87
  } | {
104
88
  width: number;
105
89
  height: number;
@@ -118,11 +102,27 @@ export declare const getDefaultUMLProperty: (shape: UMLSymbols) => {
118
102
  } | {
119
103
  width: number;
120
104
  height: number;
105
+ texts: {
106
+ key: import("../interfaces").MultipleTextGeometryCommonTextKeys;
107
+ text: string;
108
+ align: Alignment;
109
+ }[];
110
+ } | {
111
+ width: number;
112
+ height: number;
113
+ texts: {
114
+ text: string;
115
+ align: Alignment;
116
+ }[];
121
117
  } | {
122
118
  width: number;
123
119
  height: number;
120
+ texts: {
121
+ text: string;
122
+ align: Alignment;
123
+ }[];
124
124
  };
125
- export declare const createDefaultFlowchart: (point: Point) => (import("../interfaces").PlaitArrowLine | PlaitGeometry)[];
125
+ export declare const createDefaultFlowchart: (point: Point) => (PlaitGeometry | import("../interfaces").PlaitArrowLine)[];
126
126
  export declare const getAutoCompletePoints: (element: PlaitShapeElement) => [Point, Point, Point, Point];
127
127
  export declare const getHitIndexOfAutoCompletePoint: (movingPoint: Point, points: Point[]) => number;
128
128
  export declare const getDrawDefaultStrokeColor: (theme: ThemeColorMode) => string;
package/utils/hit.d.ts CHANGED
@@ -10,7 +10,7 @@ export declare const isHitElementText: (element: PlaitCommonGeometry, point: Poi
10
10
  export declare const isRectangleHitDrawElement: (board: PlaitBoard, element: PlaitElement, selection: Selection) => boolean | null;
11
11
  export declare const getDrawHitElement: (board: PlaitBoard, elements: PlaitDrawElement[]) => PlaitElement;
12
12
  export declare const getFirstFilledDrawElement: (board: PlaitBoard, elements: PlaitDrawElement[]) => PlaitGeometry | null;
13
- export declare const getFirstTextOrLineElement: (elements: PlaitDrawElement[]) => PlaitArrowLine | PlaitGeometry | import("../interfaces/image").PlaitImage | import("../interfaces").PlaitBaseTable | PlaitVectorLine | null;
13
+ export declare const getFirstTextOrLineElement: (elements: PlaitDrawElement[]) => PlaitGeometry | import("../interfaces").PlaitBaseTable | import("../interfaces/image").PlaitImage | PlaitArrowLine | PlaitVectorLine | null;
14
14
  export declare const isHitDrawElement: (board: PlaitBoard, element: PlaitElement, point: Point) => boolean | null;
15
15
  export declare const isHitEdgeOfShape: (board: PlaitBoard, element: PlaitShapeElement, point: Point, hitDistanceBuffer: number) => boolean;
16
16
  export declare const isInsideOfShape: (board: PlaitBoard, element: PlaitShapeElement, point: Point, hitDistanceBuffer: number) => boolean;
package/utils/shape.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import { PlaitShapeElement, TableSymbols } from '../interfaces';
2
- export declare const getElementShape: (value: PlaitShapeElement) => TableSymbols.table | import("../interfaces").GeometryShapes | import("../interfaces").SwimlaneSymbols;
2
+ export declare const getElementShape: (value: PlaitShapeElement) => import("../interfaces").GeometryShapes | TableSymbols.table | import("../interfaces").SwimlaneSymbols;