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.
@@ -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): any;
448
+ static areObjectsMergeable(o1: THREE.Object3D, o2: THREE.Object3D): boolean | undefined;
449
449
  /**
450
450
  * 检查网格是否为合并后的对象
451
451
  *
@@ -0,0 +1,4 @@
1
+ /**
2
+ * 判断是否为utf-8
3
+ */
4
+ export declare function isUTF8(bytes: Uint8Array): boolean;
@@ -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
  * 对封闭图形的点按从左上角顺时针方向排序
@@ -25,7 +25,7 @@ export declare class RectDrawable extends BaseAnnotationDrawable {
25
25
  */
26
26
  update(points: THREE.Vector3[]): this;
27
27
  /**
28
- * 完成绘制时,将2个对角点转换为完整的4个顶点
28
+ * 完成绘制时,确保使用完整的4个顶点
29
29
  */
30
30
  finalizePoints(): void;
31
31
  /**
@@ -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: any, title: string, category: string): void;
176
+ createFrameWithInfo(drawable: FrameDrawable, title: string, category: string): void;
176
177
  /**
177
178
  * 取消图框创建
178
179
  * @param drawable 要取消的绘制数据
179
180
  */
180
- cancelFrameCreation(drawable: any): void;
181
+ cancelFrameCreation(drawable: FrameDrawable): void;
181
182
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dxfview",
3
- "version": "0.0.4-beta.5",
3
+ "version": "0.0.4-beta.7",
4
4
  "homepage": "",
5
5
  "module": "dist/dxfview.esm.min.js",
6
6
  "main": "dist/dxfview.esm.min.js",