dxfview 0.0.4-beta.1 → 0.0.4

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.
@@ -1 +1 @@
1
- export declare const DEFAULT_PUBLIC_KEY_HEX = "0xe98c5ce23e9da75c9169a670637a1ff68e373ddbf7e98cb85efdfb8a6106bf33";
1
+ export declare const DEFAULT_PUBLIC_KEY_HEX = "0xe93f27a3147a0e2f67b718dffbf7553981ec8d9bb8bf7d18a4ba1f491736ea78";
@@ -20,48 +20,7 @@ export declare class AnnotationPlugin extends Plugin {
20
20
  id: string;
21
21
  position: THREE.Vector3;
22
22
  title: string;
23
- details: import("./BaseAnnotationDrawable").ClosedShape;
24
23
  }[];
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;
65
24
  private initEvents;
66
25
  protected get canvas(): HTMLCanvasElement;
67
26
  protected get raycaster(): any;
@@ -13,20 +13,16 @@ 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
- * 重写更新方法,绘制时保持2个对角点,完成时转换为4个顶点
23
+ * 重写更新方法,确保矩形只需要两个点
24
24
  */
25
25
  update(points: THREE.Vector3[]): this;
26
- /**
27
- * 完成绘制时,将2个对角点转换为完整的4个顶点
28
- */
29
- finalizePoints(): void;
30
26
  /**
31
27
  * 重写拖拽开始方法,处理4个顶点的拖拽
32
28
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dxfview",
3
- "version": "0.0.4-beta.1",
3
+ "version": "0.0.4",
4
4
  "homepage": "",
5
5
  "module": "dist/dxfview.esm.min.js",
6
6
  "main": "dist/dxfview.esm.min.js",