dxfview 0.0.4-beta.5 → 0.0.4-beta.7
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/dist/dxfview.esm.min.js +2 -2
- package/dist/types/core/utils/MergeUtils.d.ts +1 -1
- package/dist/types/core/utils/utf8OrGBK.d.ts +4 -0
- package/dist/types/plugins/annotation/AnnotationPlugin.d.ts +7 -0
- package/dist/types/plugins/annotation/BaseAnnotationDrawable.d.ts +1 -0
- package/dist/types/plugins/annotation/RectDrawable.d.ts +1 -1
- package/dist/types/plugins/annotation/type.d.ts +1 -0
- package/dist/types/plugins/divide/DividePlugin.d.ts +3 -2
- package/package.json +1 -1
|
@@ -445,7 +445,7 @@ export declare class MergeUtils {
|
|
|
445
445
|
*
|
|
446
446
|
* @returns 是否可以合并 - true表示两个对象兼容,可以合并
|
|
447
447
|
*/
|
|
448
|
-
static areObjectsMergeable(o1: THREE.Object3D, o2: THREE.Object3D):
|
|
448
|
+
static areObjectsMergeable(o1: THREE.Object3D, o2: THREE.Object3D): boolean | undefined;
|
|
449
449
|
/**
|
|
450
450
|
* 检查网格是否为合并后的对象
|
|
451
451
|
*
|
|
@@ -15,6 +15,7 @@ export declare class AnnotationPlugin extends Plugin {
|
|
|
15
15
|
private activeAnnotationType;
|
|
16
16
|
private mobileTouchHelper?;
|
|
17
17
|
private selectedMaskColor?;
|
|
18
|
+
private readonly partitionLabels;
|
|
18
19
|
constructor(viewer: BaseViewer);
|
|
19
20
|
getDrawableList(): {
|
|
20
21
|
id: string;
|
|
@@ -22,6 +23,8 @@ export declare class AnnotationPlugin extends Plugin {
|
|
|
22
23
|
title: string;
|
|
23
24
|
details: import("./BaseAnnotationDrawable").ClosedShape;
|
|
24
25
|
}[];
|
|
26
|
+
getDrawableDatas(): AnnotationData[];
|
|
27
|
+
setDrawableDatas(datas: AnnotationData[]): void;
|
|
25
28
|
getAigcJson(): {
|
|
26
29
|
properties: {
|
|
27
30
|
uuid: number;
|
|
@@ -50,6 +53,10 @@ export declare class AnnotationPlugin extends Plugin {
|
|
|
50
53
|
* 获取标注的分区方案信息
|
|
51
54
|
*/
|
|
52
55
|
getAiPartitionScheme(): object[];
|
|
56
|
+
/**
|
|
57
|
+
* 扁平化points
|
|
58
|
+
*/
|
|
59
|
+
private flattenPoints;
|
|
53
60
|
/**
|
|
54
61
|
* 检查标题是否匹配标签列表
|
|
55
62
|
*/
|
|
@@ -110,6 +110,7 @@ export declare abstract class BaseAnnotationDrawable extends Drawable {
|
|
|
110
110
|
isPointInPath(p: THREE.Vector3): boolean;
|
|
111
111
|
setData(data: AnnotationData): void;
|
|
112
112
|
setParent(parent: BaseAnnotationDrawable): void;
|
|
113
|
+
setParentId(parentId: string): void;
|
|
113
114
|
update(points: THREE.Vector3[]): this;
|
|
114
115
|
/**
|
|
115
116
|
* 对封闭图形的点按从左上角顺时针方向排序
|
|
@@ -55,6 +55,7 @@ export interface PartitionDoorProperty extends BaseAnnotationProperty {
|
|
|
55
55
|
doorDirection: number;
|
|
56
56
|
doorArea: number;
|
|
57
57
|
openingAngle?: number;
|
|
58
|
+
crowdDensity?: number;
|
|
58
59
|
material?: string;
|
|
59
60
|
}
|
|
60
61
|
export interface PartitionWindowProperty extends BaseAnnotationProperty {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FrameDrawable } from "./FrameDrawable";
|
|
1
2
|
import type { DivideFrameInfo } from "./types";
|
|
2
3
|
import type { BaseViewer } from "../../core/viewers";
|
|
3
4
|
import { Plugin } from "../../core/viewers/Plugin";
|
|
@@ -172,10 +173,10 @@ export declare class DividePlugin extends Plugin {
|
|
|
172
173
|
* @param title 图框标题
|
|
173
174
|
* @param category 图框分类
|
|
174
175
|
*/
|
|
175
|
-
createFrameWithInfo(drawable:
|
|
176
|
+
createFrameWithInfo(drawable: FrameDrawable, title: string, category: string): void;
|
|
176
177
|
/**
|
|
177
178
|
* 取消图框创建
|
|
178
179
|
* @param drawable 要取消的绘制数据
|
|
179
180
|
*/
|
|
180
|
-
cancelFrameCreation(drawable:
|
|
181
|
+
cancelFrameCreation(drawable: FrameDrawable): void;
|
|
181
182
|
}
|