dxfview 0.0.3 → 0.0.4-beta.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.
|
@@ -215,7 +215,7 @@ export declare class DxfLoader extends THREE.Loader {
|
|
|
215
215
|
private timer;
|
|
216
216
|
private ignorePaperSpace;
|
|
217
217
|
font?: FontManager;
|
|
218
|
-
|
|
218
|
+
encoding: string;
|
|
219
219
|
private overrideColor?;
|
|
220
220
|
private overrideHatchPatternLineThickness?;
|
|
221
221
|
angBase: number | IPoint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const DEFAULT_PUBLIC_KEY_HEX = "
|
|
1
|
+
export declare const DEFAULT_PUBLIC_KEY_HEX = "0xe98c5ce23e9da75c9169a670637a1ff68e373ddbf7e98cb85efdfb8a6106bf33";
|
|
@@ -20,7 +20,48 @@ export declare class AnnotationPlugin extends Plugin {
|
|
|
20
20
|
id: string;
|
|
21
21
|
position: THREE.Vector3;
|
|
22
22
|
title: string;
|
|
23
|
+
details: import("./BaseAnnotationDrawable").ClosedShape;
|
|
23
24
|
}[];
|
|
25
|
+
getAigcJson(): {
|
|
26
|
+
properties: {
|
|
27
|
+
uuid: number;
|
|
28
|
+
name: string;
|
|
29
|
+
modelLibraries: string[];
|
|
30
|
+
}[];
|
|
31
|
+
CAD: ({
|
|
32
|
+
itemName: string;
|
|
33
|
+
data: number[];
|
|
34
|
+
keyObjects?: undefined;
|
|
35
|
+
roomObjects?: undefined;
|
|
36
|
+
} | {
|
|
37
|
+
keyObjects: object[];
|
|
38
|
+
itemName?: undefined;
|
|
39
|
+
data?: undefined;
|
|
40
|
+
roomObjects?: undefined;
|
|
41
|
+
} | {
|
|
42
|
+
roomObjects: object[];
|
|
43
|
+
itemName?: undefined;
|
|
44
|
+
data?: undefined;
|
|
45
|
+
keyObjects?: undefined;
|
|
46
|
+
})[];
|
|
47
|
+
LLM: never[];
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* 获取标注的分区方案信息
|
|
51
|
+
*/
|
|
52
|
+
getAiPartitionScheme(): object[];
|
|
53
|
+
/**
|
|
54
|
+
* 检查标题是否匹配标签列表
|
|
55
|
+
*/
|
|
56
|
+
private isMatchingLabel;
|
|
57
|
+
/**
|
|
58
|
+
* 计算方向角度(基于第一条边)
|
|
59
|
+
*/
|
|
60
|
+
private calculateDirection;
|
|
61
|
+
/**
|
|
62
|
+
* 中文标签映射到英文
|
|
63
|
+
*/
|
|
64
|
+
private mapChineseToEnglish;
|
|
24
65
|
private initEvents;
|
|
25
66
|
protected get canvas(): HTMLCanvasElement;
|
|
26
67
|
protected get raycaster(): any;
|
|
@@ -13,16 +13,20 @@ export declare class RectDrawable extends BaseAnnotationDrawable {
|
|
|
13
13
|
constructor(id: string, osnapHelper: OSnapHelper, points: THREE.Vector3[], viewer?: BaseViewer);
|
|
14
14
|
draw(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* 根据当前点数据计算矩形的四个顶点
|
|
17
17
|
*/
|
|
18
18
|
private getRectPoints;
|
|
19
19
|
isPointInPath(p: THREE.Vector3): boolean;
|
|
20
20
|
getVertexes(): THREE.Vector3[];
|
|
21
21
|
getClassType(): string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* 重写更新方法,绘制时保持2个对角点,完成时转换为4个顶点
|
|
24
24
|
*/
|
|
25
25
|
update(points: THREE.Vector3[]): this;
|
|
26
|
+
/**
|
|
27
|
+
* 完成绘制时,将2个对角点转换为完整的4个顶点
|
|
28
|
+
*/
|
|
29
|
+
finalizePoints(): void;
|
|
26
30
|
/**
|
|
27
31
|
* 重写拖拽开始方法,处理4个顶点的拖拽
|
|
28
32
|
*/
|