build-dxf 0.1.8 → 0.1.10
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 +1 -1
- package/src/build.d.ts +1 -0
- package/src/build.js +3869 -4858
- package/src/index.css +1 -1
- package/src/index.js +10 -10
- package/src/index2.js +4 -352
- package/src/index3.js +5000 -134
- package/src/{DomEventRegister.js → index4.js} +380 -247
- package/src/utils/DxfSystem/DxfSystem.d.ts +0 -3
- package/src/utils/DxfSystem/components/CorrectionDxf.d.ts +5 -111
- package/src/utils/DxfSystem/components/DoorsAnalysis.d.ts +1 -4
- package/src/utils/DxfSystem/components/Dxf.d.ts +67 -122
- package/src/utils/DxfSystem/components/DxfOld.d.ts +183 -0
- package/src/utils/DxfSystem/plugin/ModelDataPlugin/components/WhiteModel.d.ts +0 -2
- package/src/utils/DxfSystem/plugin/ModelDataPlugin/components/index.d.ts +0 -1
- package/src/utils/DxfSystem/plugin/ModelDataPlugin/index.d.ts +0 -1
- package/src/utils/DxfSystem/plugin/RenderPlugin/components/index.d.ts +0 -2
- package/src/utils/DxfSystem/plugin/RenderPlugin/index.d.ts +0 -2
- package/src/utils/DxfSystem/utils/CAD.d.ts +1 -0
- package/src/utils/DxfSystem/utils/LineGroupType.d.ts +1 -1
- package/src/utils/modelScenario/SceneAutoGenerat.d.ts +7 -1
- package/src/components/Card.vue.d.ts +0 -9
- package/src/utils/DxfSystem/components/LineAnalysis.d.ts +0 -77
- package/src/utils/DxfSystem/plugin/ModelDataPlugin/components/DetailsPoint.d.ts +0 -39
- package/src/utils/DxfSystem/plugin/RenderPlugin/components/DetailsPointRender.d.ts +0 -48
- package/src/utils/DxfSystem/plugin/RenderPlugin/components/OriginalLineRender.d.ts +0 -16
|
@@ -22,10 +22,16 @@ export declare class SceneAutoGenerat {
|
|
|
22
22
|
/** 构建物品模型
|
|
23
23
|
*/
|
|
24
24
|
buildItem(): Promise<void>;
|
|
25
|
-
static itemParse(item: any
|
|
25
|
+
static itemParse(item: any): {
|
|
26
26
|
box: THREE.LineSegments<THREE.EdgesGeometry<THREE.ExtrudeGeometry>, THREE.LineBasicMaterial, THREE.Object3DEventMap>;
|
|
27
27
|
center: THREE.Vector3;
|
|
28
28
|
category: any;
|
|
29
29
|
angle: number;
|
|
30
|
+
info: {
|
|
31
|
+
center: THREE.Vector3;
|
|
32
|
+
start: THREE.Vector3;
|
|
33
|
+
end: THREE.Vector3;
|
|
34
|
+
length: number;
|
|
35
|
+
}[];
|
|
30
36
|
};
|
|
31
37
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
message: string;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
-
look: (...args: any[]) => void;
|
|
6
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
|
-
onLook?: ((...args: any[]) => any) | undefined;
|
|
8
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
|
-
export default _default;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { Component, ComponentManager } from '../../ComponentManager';
|
|
2
|
-
import { Dxf } from './Dxf';
|
|
3
|
-
import { Variable } from './Variable';
|
|
4
|
-
import { Quadtree } from '../../Quadtree';
|
|
5
|
-
import { LineSegment } from '../../LineSegment';
|
|
6
|
-
import { Point } from '../../Point';
|
|
7
|
-
import * as THREE from "three";
|
|
8
|
-
type ProjectionAnalysisResult = {
|
|
9
|
-
source: LineSegment;
|
|
10
|
-
sourceIndex: number;
|
|
11
|
-
target: LineSegment;
|
|
12
|
-
targetIndex: number;
|
|
13
|
-
project: LineSegment;
|
|
14
|
-
project2: LineSegment;
|
|
15
|
-
};
|
|
16
|
-
export declare class LineAnalysis extends Component<{
|
|
17
|
-
analysisCompleted: {};
|
|
18
|
-
}> {
|
|
19
|
-
static name: string;
|
|
20
|
-
Dxf: Dxf | null;
|
|
21
|
-
Variable: Variable | null;
|
|
22
|
-
lineSegmentList: LineSegment<{
|
|
23
|
-
isDoor: boolean;
|
|
24
|
-
isWindow: boolean;
|
|
25
|
-
}>[];
|
|
26
|
-
container: THREE.Group<THREE.Object3DEventMap>;
|
|
27
|
-
errorAngle: number;
|
|
28
|
-
width: number;
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @param parent
|
|
32
|
-
*/
|
|
33
|
-
onAddFromParent(parent: ComponentManager): void;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @param p1
|
|
37
|
-
* @param p2
|
|
38
|
-
* @param width
|
|
39
|
-
* @returns
|
|
40
|
-
*/
|
|
41
|
-
expandLineSegment(p1: Point, p2: Point, width?: number): {
|
|
42
|
-
points: Point<Record<string, any>>[];
|
|
43
|
-
indices: number[];
|
|
44
|
-
rectIndices: number[];
|
|
45
|
-
};
|
|
46
|
-
appendLineSegmentList: LineSegment[];
|
|
47
|
-
/**
|
|
48
|
-
* 追加数据
|
|
49
|
-
* @param p1
|
|
50
|
-
* @param p2
|
|
51
|
-
*/
|
|
52
|
-
addData(p1: Point, p2: Point): void;
|
|
53
|
-
/** 结果分析创建矩形
|
|
54
|
-
* @param result
|
|
55
|
-
*/
|
|
56
|
-
createRectangle(result: ProjectionAnalysisResult): void;
|
|
57
|
-
quadtree?: Quadtree;
|
|
58
|
-
/**
|
|
59
|
-
* 构建线段四叉树,快速查找,
|
|
60
|
-
*/
|
|
61
|
-
buildQuadtree(): void;
|
|
62
|
-
resultList: ProjectionAnalysisResult[];
|
|
63
|
-
mergeWallLines: LineSegment[][];
|
|
64
|
-
/** 线段分析
|
|
65
|
-
* @description 判断两条线段距离是否较短且趋近平行,然后查找两条线段的重合部分的投影线,以此判断两根线是否需要合并
|
|
66
|
-
* @param data
|
|
67
|
-
*/
|
|
68
|
-
lineAnalysis(): void;
|
|
69
|
-
/** 线段投影分析
|
|
70
|
-
* @param index
|
|
71
|
-
* @param sourceLineSegment
|
|
72
|
-
* @param lineSegmentList
|
|
73
|
-
* @returns
|
|
74
|
-
*/
|
|
75
|
-
private projectionAnalysis;
|
|
76
|
-
}
|
|
77
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Component, ComponentManager } from '../../../../ComponentManager';
|
|
2
|
-
import { Dxf } from '../../../components/Dxf';
|
|
3
|
-
import { Variable } from '../../../components/Variable';
|
|
4
|
-
import { WhiteModel } from './WhiteModel';
|
|
5
|
-
import * as THREE from "three";
|
|
6
|
-
interface IDesPointItem {
|
|
7
|
-
message: string;
|
|
8
|
-
position: THREE.Vector3;
|
|
9
|
-
intersection: THREE.Vector3;
|
|
10
|
-
}
|
|
11
|
-
export declare class DetailsPoint extends Component<{
|
|
12
|
-
handleSuccess: {
|
|
13
|
-
desPoints: IDesPointItem[];
|
|
14
|
-
};
|
|
15
|
-
}> {
|
|
16
|
-
static name: string;
|
|
17
|
-
Dxf: Dxf | null;
|
|
18
|
-
WhiteModel: WhiteModel | null;
|
|
19
|
-
Variable: Variable | null;
|
|
20
|
-
desPoints: IDesPointItem[];
|
|
21
|
-
raylines: [THREE.Vector3, THREE.Vector3][];
|
|
22
|
-
data: any[];
|
|
23
|
-
onAddFromParent(parent: ComponentManager): void;
|
|
24
|
-
/**
|
|
25
|
-
* 设置值
|
|
26
|
-
* @param data
|
|
27
|
-
*/
|
|
28
|
-
set(data: any): Promise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* 设置射线辅助
|
|
31
|
-
*/
|
|
32
|
-
racasterHelper(position: THREE.Vector3, direction: THREE.Vector3, far: number): void;
|
|
33
|
-
private _timer;
|
|
34
|
-
/**
|
|
35
|
-
* 更新模型
|
|
36
|
-
*/
|
|
37
|
-
updateModel(): void;
|
|
38
|
-
}
|
|
39
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Component, ComponentManager } from '../../../../ComponentManager';
|
|
2
|
-
import { Dxf } from '../../../components/Dxf';
|
|
3
|
-
import { Renderer } from './Renderer';
|
|
4
|
-
import { Variable } from '../../../components/Variable';
|
|
5
|
-
import { WhiteModel } from '../../ModelDataPlugin/components';
|
|
6
|
-
import * as THREE from "three";
|
|
7
|
-
export declare class DetailsPointRender extends Component {
|
|
8
|
-
static name: string;
|
|
9
|
-
Dxf: Dxf | null;
|
|
10
|
-
Renderer: Renderer | null;
|
|
11
|
-
WhiteModel: WhiteModel | null;
|
|
12
|
-
Variable: Variable | null;
|
|
13
|
-
desPointGroup: THREE.Group<THREE.Object3DEventMap>;
|
|
14
|
-
rayLineGroup: THREE.Group<THREE.Object3DEventMap>;
|
|
15
|
-
data: any[];
|
|
16
|
-
onAddFromParent(parent: ComponentManager): void;
|
|
17
|
-
/**
|
|
18
|
-
* 更新模型
|
|
19
|
-
*/
|
|
20
|
-
updateModel(): void;
|
|
21
|
-
createDesPoint(): void;
|
|
22
|
-
createRayline(): void;
|
|
23
|
-
private _desBoxInfo;
|
|
24
|
-
/**
|
|
25
|
-
* 显示详情div盒子
|
|
26
|
-
* @param point
|
|
27
|
-
* @param div
|
|
28
|
-
* @param param2
|
|
29
|
-
* @returns
|
|
30
|
-
*/
|
|
31
|
-
showDesBox(point: THREE.Vector3, div: HTMLDivElement, { message, position }: any): void;
|
|
32
|
-
/**
|
|
33
|
-
* 隐藏详情盒子
|
|
34
|
-
*/
|
|
35
|
-
hideDesBox(): void;
|
|
36
|
-
private orbitControlsTarget;
|
|
37
|
-
private fov;
|
|
38
|
-
/**
|
|
39
|
-
* 查看详情点
|
|
40
|
-
* @param point
|
|
41
|
-
* @param position
|
|
42
|
-
*/
|
|
43
|
-
onLook(point: THREE.Vector3, position: THREE.Vector3): void;
|
|
44
|
-
/**
|
|
45
|
-
* 取消查看详情点
|
|
46
|
-
*/
|
|
47
|
-
cancelLook(): void;
|
|
48
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Component, ComponentManager } from '../../../../ComponentManager';
|
|
2
|
-
import { Dxf } from '../../../components/Dxf';
|
|
3
|
-
import { Renderer } from './Renderer';
|
|
4
|
-
import * as THREE from "three";
|
|
5
|
-
export declare class OriginalLineRender extends Component {
|
|
6
|
-
static name: string;
|
|
7
|
-
Dxf: Dxf | null;
|
|
8
|
-
Renderer: Renderer | null;
|
|
9
|
-
originalLineMode: THREE.LineSegments<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>;
|
|
10
|
-
appendLineMode: THREE.LineSegments<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>;
|
|
11
|
-
textGroup: THREE.Group<THREE.Object3DEventMap>;
|
|
12
|
-
pointGroup: THREE.Group<THREE.Object3DEventMap>;
|
|
13
|
-
distanceGroup: THREE.Group<THREE.Object3DEventMap>;
|
|
14
|
-
onAddFromParent(parent: ComponentManager): void;
|
|
15
|
-
updateMode(data: any): void;
|
|
16
|
-
}
|