build-dxf 0.0.41 → 0.0.42
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/README.md +1 -1
- package/package.json +1 -1
- package/src/build.js +617 -558
- package/src/index.js +1 -1
- package/src/index3.js +293 -286
- package/src/utils/DxfSystem/components/LineAnalysis.d.ts +14 -1
- package/src/utils/Quadtree/Point.d.ts +5 -0
|
@@ -22,6 +22,7 @@ type DoorPoint = {
|
|
|
22
22
|
declare class DoorsAnalysis {
|
|
23
23
|
possibleDoorPoints: DoorPoint[];
|
|
24
24
|
doorPoint: DoorPoint[];
|
|
25
|
+
calculatedDoorPoint: DoorPoint[];
|
|
25
26
|
dxf: Dxf;
|
|
26
27
|
pointVirtualGrid: PointVirtualGrid<LineSegment<Record<string, any>>>;
|
|
27
28
|
findPointVirtualGrid: PointVirtualGrid<LineSegment>;
|
|
@@ -35,6 +36,14 @@ declare class DoorsAnalysis {
|
|
|
35
36
|
continueFind: boolean;
|
|
36
37
|
constructor(lineAnalysis: LineAnalysis);
|
|
37
38
|
private handle;
|
|
39
|
+
/** 查找
|
|
40
|
+
* @param doorPoints
|
|
41
|
+
* @param possibleDoorPoints
|
|
42
|
+
* @param minDoorWidth
|
|
43
|
+
* @param doorSearchDistance
|
|
44
|
+
* @param doorSearchNearAngle
|
|
45
|
+
* @returns
|
|
46
|
+
*/
|
|
38
47
|
private search;
|
|
39
48
|
/** 添加可查找点的过滤规则
|
|
40
49
|
* @param rule
|
|
@@ -48,7 +57,10 @@ declare class DoorsAnalysis {
|
|
|
48
57
|
/**
|
|
49
58
|
* 查找已知为门的点位
|
|
50
59
|
*/
|
|
51
|
-
getDoorPoint():
|
|
60
|
+
getDoorPoint(): {
|
|
61
|
+
doorPoints: DoorPoint[];
|
|
62
|
+
calculatedDoorPoint: DoorPoint[];
|
|
63
|
+
};
|
|
52
64
|
/**
|
|
53
65
|
* 查找双线墙的点位
|
|
54
66
|
* @returns
|
|
@@ -153,6 +165,7 @@ export declare class LineAnalysis extends Component<{
|
|
|
153
165
|
doorSearchDistance: number;
|
|
154
166
|
doors: LineSegment[];
|
|
155
167
|
DoorsAnalysis?: DoorsAnalysis;
|
|
168
|
+
skipFindDoor: boolean;
|
|
156
169
|
doorsAnalysis(): void;
|
|
157
170
|
}
|
|
158
171
|
export {};
|
|
@@ -116,6 +116,11 @@ export declare class Point<T = Record<string, any>> {
|
|
|
116
116
|
* @returns
|
|
117
117
|
*/
|
|
118
118
|
angleBetween(point: Point, type?: 'radian' | 'cos' | 'angle', angle?: "180" | "360"): number;
|
|
119
|
+
/**
|
|
120
|
+
* @param point
|
|
121
|
+
* @returns
|
|
122
|
+
*/
|
|
123
|
+
angleBetween2(point: Point): number;
|
|
119
124
|
/** 获取向量长度
|
|
120
125
|
*/
|
|
121
126
|
length(): number;
|