build-dxf 0.0.19 → 0.0.20-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.
Files changed (39) hide show
  1. package/README.md +30 -0
  2. package/package.json +1 -3
  3. package/src/build.d.ts +23 -1
  4. package/src/build.js +70 -16
  5. package/src/index.css +661 -1
  6. package/src/index.js +4 -2
  7. package/src/index2.js +9 -3681
  8. package/src/index3.js +1546 -410
  9. package/src/pages/Editor.vue.d.ts +3 -1
  10. package/src/selectLocalFile.js +444 -21
  11. package/src/utils/CommandManager/CommandFlow.d.ts +16 -0
  12. package/src/utils/CommandManager/CommandManager.d.ts +23 -0
  13. package/src/utils/ComponentManager/Component.d.ts +1 -0
  14. package/src/utils/ComponentManager/ComponentManager.d.ts +1 -1
  15. package/src/utils/DxfSystem/components/Dxf.d.ts +1 -0
  16. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/CommandFlowComponent.d.ts +13 -3
  17. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/ConnectionLine.d.ts +33 -0
  18. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/Default.d.ts +5 -19
  19. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DeleteSelectLine.d.ts +28 -0
  20. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DeleteSelectWindow.d.ts +33 -0
  21. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DrawDoorLine.d.ts +19 -3
  22. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DrawLine.d.ts +22 -5
  23. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DrawWindow.d.ts +22 -2
  24. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/IntersectionConnectionLine.d.ts +33 -0
  25. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/MergeLine.d.ts +32 -0
  26. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/PointDrag.d.ts +16 -2
  27. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/SelectAll.d.ts +30 -0
  28. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/VerticalCorrection.d.ts +63 -0
  29. package/src/utils/DxfSystem/plugin/Editor/components/Editor.d.ts +7 -0
  30. package/src/utils/DxfSystem/plugin/Editor/components/index.d.ts +1 -0
  31. package/src/utils/DxfSystem/plugin/Editor/index.d.ts +8 -1
  32. package/src/utils/DxfSystem/plugin/Editor/pages/EditorTool.vue.d.ts +5 -1
  33. package/src/utils/DxfSystem/plugin/RenderPlugin/components/DomEventRegister.d.ts +28 -6
  34. package/src/utils/DxfSystem/plugin/RenderPlugin/components/Renderer.d.ts +1 -1
  35. package/src/utils/DxfSystem/plugin/RenderPlugin/index.d.ts +2 -1
  36. package/src/utils/Quadtree/LineSegment.d.ts +2 -1
  37. package/src/utils/Quadtree/Point.d.ts +2 -1
  38. package/src/components/Editor.vue.d.ts +0 -26
  39. package/src/pages/Editor02.vue.d.ts +0 -4
@@ -4,7 +4,9 @@ import { Renderer } from '../../../RenderPlugin/components';
4
4
  import { LineSegment } from '../../../../../Quadtree/LineSegment';
5
5
  import { LineUserData } from '../RenderManager';
6
6
  import * as THREE from "three";
7
- export declare class Default extends Component<{}> {
7
+ export declare class Default extends Component<{
8
+ selectLineChange: {};
9
+ }> {
8
10
  static name: string;
9
11
  get editor(): Editor;
10
12
  renderer?: Renderer;
@@ -21,25 +23,9 @@ export declare class Default extends Component<{}> {
21
23
  */
22
24
  removeSelectLine(lineSegment: LineSegment): void;
23
25
  /**
24
- * 删除选择的线段
26
+ * 移除所有选中线段
25
27
  */
26
- deleteSelectLine(): void;
27
- /**
28
- * 删除选择线段上的窗户
29
- */
30
- deleteSelectWindow(): void;
31
- /**
32
- * 如果只选择两个线段,可为两个未链接的点创建连接
33
- */
34
- connection(): void;
35
- /**
36
- * 如果只选择两个线段,可为两个未链接的点创建连接, 通过计算交点,线段延长到交点
37
- */
38
- intersectionConnection(): void;
39
- /**
40
- * 如果只选择两个线段, 且两个线段在一条路径上,合并线段
41
- */
42
- mergeLine(): void;
28
+ removeSelectLineAll(): void;
43
29
  private _timer;
44
30
  /**
45
31
  * 更新选择的线段
@@ -0,0 +1,28 @@
1
+ import { CommandFlowComponent } from './CommandFlowComponent';
2
+ import { ComponentManager } from '../../../../../ComponentManager';
3
+ /**
4
+ * 删除选择的线段
5
+ */
6
+ export declare class DeleteSelectLine extends CommandFlowComponent<{}> {
7
+ static name: string;
8
+ shortcutKeys: string[];
9
+ static commandName: string;
10
+ onAddFromParent(parent: ComponentManager): void;
11
+ /**
12
+ * 进入命令约束
13
+ */
14
+ private constraint;
15
+ /** 开始
16
+ * @param next
17
+ */
18
+ private delete;
19
+ /** 回滚操作
20
+ * @param data
21
+ */
22
+ private rollback;
23
+ /** 撤回回滚
24
+ * @param lines
25
+ * @returns
26
+ */
27
+ private revokeRollback;
28
+ }
@@ -0,0 +1,33 @@
1
+ import { CommandFlowComponent } from './CommandFlowComponent';
2
+ import { ComponentManager } from '../../../../../ComponentManager';
3
+ /**
4
+ * 删除选择的线段上的窗户线
5
+ */
6
+ export declare class DeleteSelectWindow extends CommandFlowComponent<{}> {
7
+ static name: string;
8
+ shortcutKeys: string[];
9
+ static commandName: string;
10
+ onAddFromParent(parent: ComponentManager): void;
11
+ /**
12
+ * 进入命令约束
13
+ */
14
+ private constraint;
15
+ /** 开始
16
+ * @param next
17
+ */
18
+ private end;
19
+ /**
20
+ * 完成
21
+ * @param list
22
+ */
23
+ private completed;
24
+ /** 回滚操作
25
+ * @param data
26
+ */
27
+ private rollback;
28
+ /** 撤回回滚
29
+ * @param lines
30
+ * @returns
31
+ */
32
+ private revokeRollback;
33
+ }
@@ -1,5 +1,6 @@
1
1
  import { ComponentManager } from '../../../../../ComponentManager';
2
- import { Point } from '../../../../../Quadtree/Point';
2
+ import { LineSegment } from '../../../../../Quadtree/LineSegment';
3
+ import { LineUserData } from '../RenderManager';
3
4
  import { CommandFlowComponent } from './CommandFlowComponent';
4
5
  import * as THREE from "three";
5
6
  export declare class DrawDoorLine extends CommandFlowComponent<{}> {
@@ -12,8 +13,23 @@ export declare class DrawDoorLine extends CommandFlowComponent<{}> {
12
13
  /** 选择点
13
14
  * @param next
14
15
  */
15
- selectPoint(next: any): void;
16
+ private selectPoint;
17
+ /**
18
+ * 结束处理
19
+ * @param next
20
+ * @param points
21
+ */
22
+ private end;
16
23
  /** 执行完成
17
24
  */
18
- completed(points: Point[]): void;
25
+ completed(lines: LineSegment<LineUserData>[]): void;
26
+ /** 回滚操作
27
+ * @param data
28
+ */
29
+ private rollback;
30
+ /** 撤回回滚
31
+ * @param lines
32
+ * @returns
33
+ */
34
+ private revokeRollback;
19
35
  }
@@ -1,7 +1,11 @@
1
- import { Point } from '../../../../../Quadtree/Point';
2
1
  import { CommandFlowComponent } from './CommandFlowComponent';
2
+ import { ComponentManager } from '../../../../../ComponentManager';
3
3
  import * as THREE from "three";
4
- export declare class DrawLine extends CommandFlowComponent<{}> {
4
+ export declare class DrawLine extends CommandFlowComponent<{
5
+ pointerMove: {
6
+ point: THREE.Vector3;
7
+ };
8
+ }> {
5
9
  static name: string;
6
10
  container: THREE.Group<THREE.Object3DEventMap>;
7
11
  interruptKeys: string[];
@@ -9,12 +13,25 @@ export declare class DrawLine extends CommandFlowComponent<{}> {
9
13
  shortcutKeys: string[];
10
14
  confirmKeys: string[];
11
15
  commandName: string;
12
- onAddFromParent(): void;
16
+ onAddFromParent(parent: ComponentManager): void;
13
17
  /** 选择点
14
18
  * @param next
15
19
  */
16
- selectPoint(next: any): void;
20
+ private selectPoint;
21
+ /** 结束, 汇总结果
22
+ * @param points
23
+ */
24
+ private end;
17
25
  /** 执行完成
18
26
  */
19
- completed(points: Point[]): void;
27
+ private completed;
28
+ /** 回滚操作
29
+ * @param data
30
+ */
31
+ private rollback;
32
+ /** 撤回回滚
33
+ * @param lines
34
+ * @returns
35
+ */
36
+ private revokeRollback;
20
37
  }
@@ -1,5 +1,7 @@
1
1
  import { CommandFlowComponent } from './CommandFlowComponent';
2
2
  import { LineSegment } from '../../../../../Quadtree/LineSegment';
3
+ import { LineUserData } from '../RenderManager';
4
+ import { ComponentManager } from '../../../../../ComponentManager';
3
5
  import * as THREE from "three";
4
6
  export declare class DrawWindow extends CommandFlowComponent<{}> {
5
7
  static name: string;
@@ -7,7 +9,7 @@ export declare class DrawWindow extends CommandFlowComponent<{}> {
7
9
  interruptKeys: string[];
8
10
  shortcutKeys: string[];
9
11
  commandName: string;
10
- onAddFromParent(): void;
12
+ onAddFromParent(parent: ComponentManager): void;
11
13
  /** 选择开始点
12
14
  * @param next
13
15
  */
@@ -19,7 +21,25 @@ export declare class DrawWindow extends CommandFlowComponent<{}> {
19
21
  point: THREE.Vector3;
20
22
  line: LineSegment;
21
23
  }): void;
24
+ /**
25
+ * 结束处理
26
+ * @param next
27
+ * @param points
28
+ */
29
+ private end;
22
30
  /** 执行完成
23
31
  */
24
- completed(data: any): void;
32
+ completed({ doorDataItem, line }: {
33
+ doorDataItem: any;
34
+ line: LineSegment<LineUserData>;
35
+ }): void;
36
+ /** 回滚操作
37
+ * @param data
38
+ */
39
+ private rollback;
40
+ /** 撤回回滚
41
+ * @param data
42
+ * @returns
43
+ */
44
+ private revokeRollback;
25
45
  }
@@ -0,0 +1,33 @@
1
+ import { CommandFlowComponent } from './CommandFlowComponent';
2
+ import { ComponentManager } from '../../../../../ComponentManager';
3
+ /**
4
+ * 连接选择的线段
5
+ */
6
+ export declare class IntersectionConnectionLine extends CommandFlowComponent<{}> {
7
+ static name: string;
8
+ shortcutKeys: string[];
9
+ static commandName: string;
10
+ onAddFromParent(parent: ComponentManager): void;
11
+ /**
12
+ * 进入命令约束
13
+ */
14
+ private constraint;
15
+ /** 开始
16
+ * @param next
17
+ */
18
+ private connection;
19
+ /** 执行完成
20
+ * @param next
21
+ * @param selectLines
22
+ */
23
+ private completed;
24
+ /** 回滚操作
25
+ * @param data
26
+ */
27
+ private rollback;
28
+ /** 撤回回滚
29
+ * @param lines
30
+ * @returns
31
+ */
32
+ private revokeRollback;
33
+ }
@@ -0,0 +1,32 @@
1
+ import { CommandFlowComponent } from './CommandFlowComponent';
2
+ import { ComponentManager } from '../../../../../ComponentManager';
3
+ /**
4
+ * 合并同向线段
5
+ */
6
+ export declare class MergeLine extends CommandFlowComponent<{}> {
7
+ static name: string;
8
+ shortcutKeys: string[];
9
+ static commandName: string;
10
+ onAddFromParent(parent: ComponentManager): void;
11
+ /**
12
+ * 进入命令约束
13
+ */
14
+ private constraint;
15
+ /** 开始
16
+ * @param next
17
+ */
18
+ private mergeLine;
19
+ /** 执行完成
20
+ * @param data
21
+ */
22
+ private completed;
23
+ /** 回滚操作
24
+ * @param data
25
+ */
26
+ private rollback;
27
+ /** 撤回回滚
28
+ * @param lines
29
+ * @returns
30
+ */
31
+ private revokeRollback;
32
+ }
@@ -1,13 +1,18 @@
1
1
  import { CommandFlowComponent } from './CommandFlowComponent';
2
2
  import { LineSegment } from '../../../../../Quadtree/LineSegment';
3
+ import { ComponentManager } from '../../../../../ComponentManager';
3
4
  import * as THREE from "three";
4
- export declare class PointDrag extends CommandFlowComponent<{}> {
5
+ export declare class PointDrag extends CommandFlowComponent<{
6
+ pointerMove: {
7
+ point: THREE.Vector3;
8
+ };
9
+ }> {
5
10
  static name: string;
6
11
  container: THREE.Group<THREE.Object3DEventMap>;
7
12
  interruptKeys: string[];
8
13
  shortcutKeys: string[];
9
14
  commandName: string;
10
- onAddFromParent(): void;
15
+ onAddFromParent(parent: ComponentManager): void;
11
16
  /** 选择开始点
12
17
  * @param next
13
18
  */
@@ -24,4 +29,13 @@ export declare class PointDrag extends CommandFlowComponent<{}> {
24
29
  /** 执行完成
25
30
  */
26
31
  completed(data: any): void;
32
+ /** 回滚操作
33
+ * @param data
34
+ */
35
+ private rollback;
36
+ /** 撤回回滚
37
+ * @param lines
38
+ * @returns
39
+ */
40
+ private revokeRollback;
27
41
  }
@@ -0,0 +1,30 @@
1
+ import { CommandFlowComponent } from './CommandFlowComponent';
2
+ import { ComponentManager } from '../../../../../ComponentManager';
3
+ import { LineSegment } from '../../../../../Quadtree/LineSegment';
4
+ import * as THREE from "three";
5
+ /**
6
+ * 选择全部命令
7
+ */
8
+ export declare class SelectAll extends CommandFlowComponent<{}> {
9
+ static name: string;
10
+ container: THREE.Group<THREE.Object3DEventMap>;
11
+ shortcutKeys: string[];
12
+ static commandName: string;
13
+ onAddFromParent(parent: ComponentManager): void;
14
+ /** 开始
15
+ * @param next
16
+ */
17
+ selectAll(next: any): void;
18
+ /** 执行完成
19
+ */
20
+ completed(lines: LineSegment[]): void;
21
+ /** 回滚操作
22
+ * @param lines
23
+ */
24
+ private rollback;
25
+ /** 撤回回滚
26
+ * @param lines
27
+ * @returns
28
+ */
29
+ private revokeRollback;
30
+ }
@@ -0,0 +1,63 @@
1
+ import { CommandFlowComponent } from './CommandFlowComponent';
2
+ import { ComponentManager } from '../../../../../ComponentManager';
3
+ import { LineSegment } from '../../../../../Quadtree/LineSegment';
4
+ import { Point } from '../../../../../Quadtree/Point';
5
+ import * as THREE from "three";
6
+ /**
7
+ * 垂直纠正
8
+ */
9
+ export declare class VerticalCorrection extends CommandFlowComponent<{}> {
10
+ static name: string;
11
+ container: THREE.Group<THREE.Object3DEventMap>;
12
+ shortcutKeys: string[];
13
+ static commandName: string;
14
+ onAddFromParent(parent: ComponentManager): void;
15
+ /**
16
+ * 进入命令约束
17
+ */
18
+ constraint(next: any, selectLines: LineSegment[]): void;
19
+ /**
20
+ * 线段是否为结尾线段
21
+ * @param line
22
+ */
23
+ lineIsPathEnd(line: LineSegment): boolean;
24
+ /**
25
+ *
26
+ * @param line0
27
+ * @param line1
28
+ */
29
+ isTowLineSegmentConnect(line0: LineSegment, line1: LineSegment): boolean;
30
+ /**
31
+ * 获取所有相同点的位置信息
32
+ * @param point
33
+ * @param point2
34
+ */
35
+ getSamePointAll(point: Point, point2: Point): {
36
+ point: Point<Record<string, any>>;
37
+ oldPoint: Point<Record<string, any>>;
38
+ newPoint: Point<Record<string, any>>;
39
+ line: LineSegment;
40
+ }[];
41
+ /** 修正
42
+ * @param targettLine
43
+ * @param vistedList
44
+ */
45
+ correction(targettLine: LineSegment, resultList?: any[], vistedList?: Set<LineSegment>): any[] | undefined;
46
+ /** 开始
47
+ * @param next
48
+ */
49
+ verticalCorrection(next: any, selectLines: LineSegment[]): void;
50
+ /** 执行完成
51
+ * @param data
52
+ */
53
+ private completed;
54
+ /** 回滚操作
55
+ * @param data
56
+ */
57
+ private rollback;
58
+ /** 撤回回滚
59
+ * @param lines
60
+ * @returns
61
+ */
62
+ private revokeRollback;
63
+ }
@@ -10,6 +10,7 @@ export declare class Editor extends Component<{
10
10
  pointerPositionChange: {
11
11
  position: THREE.Vector2;
12
12
  };
13
+ cancelCommand: {};
13
14
  }> {
14
15
  static name: string;
15
16
  container: THREE.Group<THREE.Object3DEventMap>;
@@ -24,7 +25,13 @@ export declare class Editor extends Component<{
24
25
  plane: THREE.Mesh<THREE.PlaneGeometry, THREE.Material | THREE.Material[], THREE.Object3DEventMap>;
25
26
  app?: App<Element>;
26
27
  domElement: HTMLDivElement;
28
+ viewPermission?: "admin";
29
+ constructor(viewPermission?: "admin");
27
30
  onAddFromParent(): void;
31
+ /**
32
+ * 取消命令,由其他命令组件监听事件后注册事件监听实现
33
+ */
34
+ cancelCommand(): void;
28
35
  coords: THREE.Vector2;
29
36
  pointerPosition: THREE.Vector2;
30
37
  private _exitEditCallBack?;
@@ -4,3 +4,4 @@ export * from './CommandFlow/Default';
4
4
  export * from './CommandFlow/DrawDoorLine';
5
5
  export * from './CommandFlow/DrawLine';
6
6
  export * from './CommandFlow/DrawWindow';
7
+ export * from './CommandFlow/VerticalCorrection';
@@ -1,2 +1,9 @@
1
1
  import { DxfSystem } from '../..';
2
- export declare function Editor(dxfSystem: DxfSystem): void;
2
+ type Option = {
3
+ viewPermission?: "admin";
4
+ };
5
+ export declare function Editor_(dxfSystem: DxfSystem, option?: Option): void;
6
+ declare const Editor: typeof Editor_ & {
7
+ create(option?: Option): (dxfSystem: DxfSystem) => void;
8
+ };
9
+ export { Editor };
@@ -1,6 +1,10 @@
1
1
  import { DxfSystem } from '../../..';
2
2
  type __VLS_Props = {
3
3
  dxfSystem: DxfSystem;
4
+ permission?: "admin";
4
5
  };
5
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
7
+ elRef: HTMLDivElement;
8
+ toolBarRef: HTMLDivElement;
9
+ }, HTMLDivElement>;
6
10
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { Vector2 } from 'three';
2
- import { Component, ComponentManager } from '../../../../ComponentManager';
2
+ import { Component } from '../../../../ComponentManager';
3
3
  export declare class DomEventRegister extends Component<{
4
4
  mousemove: {
5
5
  x: number;
@@ -15,11 +15,32 @@ export declare class DomEventRegister extends Component<{
15
15
  static name: string;
16
16
  cancelDefaultBehaviorList: ((e: KeyboardEvent) => boolean)[];
17
17
  pointer: Vector2;
18
+ private _isMouseEnter;
19
+ set isMouseEnter(isMouseEnter: boolean);
20
+ get isMouseEnter(): boolean;
21
+ private _mouseMoveEventProxylock;
22
+ set mouseMoveEventProxylock(lock: boolean);
23
+ get mouseMoveEventProxylock(): boolean;
18
24
  /**
19
- *
20
- * @param parent
25
+ * 组件被添加到父组件上时调用
26
+ */
27
+ onAddFromParent(): void;
28
+ /**
29
+ * 初始化鼠标事件代理(判断鼠标是否在domElement上)
30
+ */
31
+ initMouseMoveEventProxy(): void;
32
+ /**
33
+ * 初始化键盘事件
34
+ */
35
+ initKeyEvent(): void;
36
+ /**
37
+ * 初始化滚轮事件
38
+ */
39
+ initWheelEvent(): void;
40
+ /**
41
+ * 根据domElement的cursor自动设置body的cursor
21
42
  */
22
- onAddFromParent(parent: ComponentManager): void;
43
+ autoBodyCursor(): void;
23
44
  /**
24
45
  *
25
46
  * @param callBack
@@ -32,11 +53,12 @@ export declare class DomEventRegister extends Component<{
32
53
  * @param offset
33
54
  * @param condition
34
55
  */
35
- dragMoveHelper(el: HTMLElement, callBack: (offset: {
56
+ static dragMoveHelper(el: HTMLElement, callBack: (offset: {
36
57
  x: number;
37
58
  y: number;
38
59
  }, mx: number, my: number) => void, offset?: {
39
60
  x: number;
40
61
  y: number;
41
- }, condition?: () => boolean): void;
62
+ }, condition?: () => boolean): () => void;
63
+ destroy(): void;
42
64
  }
@@ -17,7 +17,7 @@ export interface RendererDescription {
17
17
  };
18
18
  resizeObserver?: HTMLElement | null;
19
19
  scene?: THREE.Scene;
20
- camera?: THREE.PerspectiveCamera | THREE.OrthographicCamera;
20
+ camera?: THREE.PerspectiveCamera | THREE.OrthographicCamera | THREE.Camera;
21
21
  }
22
22
  export declare class Renderer extends Component<{
23
23
  resize: {
@@ -6,7 +6,8 @@ type Option = {
6
6
  originalLine?: boolean;
7
7
  modelData?: boolean;
8
8
  detailsPoint?: boolean;
9
- camera?: THREE.OrthographicCamera;
9
+ orbitControls?: boolean;
10
+ camera?: THREE.Camera;
10
11
  };
11
12
  declare function RenderPlugin_(dxfSystem: DxfSystem, option?: Option): void;
12
13
  declare const RenderPlugin: typeof RenderPlugin_ & {
@@ -11,6 +11,7 @@ export declare class LineSegment<T = Record<string, any>> {
11
11
  get start(): Point<Record<string, any>>;
12
12
  get end(): Point<Record<string, any>>;
13
13
  constructor(p1?: Point, p2?: Point);
14
+ set(p1: Point, p2: Point): void;
14
15
  /** 膨胀
15
16
  * @description 向线段的两个端点分别膨胀 width
16
17
  * @param width
@@ -71,7 +72,7 @@ export declare class LineSegment<T = Record<string, any>> {
71
72
  */
72
73
  projectPoint(p1: Point, clip?: boolean): Point | null;
73
74
  /**
74
- * 判断线段是与线段相交
75
+ * 判断线段是否与另一条线段相交(包含共用端点或部分重合的情况)
75
76
  * @param line
76
77
  */
77
78
  intersectLineSegment(line: LineSegment): boolean;
@@ -125,9 +125,10 @@ export declare class Point<T = Record<string, any>> {
125
125
  x: number;
126
126
  y: number;
127
127
  }): void;
128
- toJson(): {
128
+ toJson(z?: number): {
129
129
  x: number;
130
130
  y: number;
131
+ z: number;
131
132
  };
132
133
  static from(arr: any): Point<Record<string, any>>;
133
134
  static zero(): Point<Record<string, any>>;
@@ -1,26 +0,0 @@
1
- import { DxfSystem } from '../utils/DxfSystem';
2
- import { OriginalDataItem } from '../utils/DxfSystem/components/Dxf';
3
- import * as THREE from "three";
4
- type __VLS_Props = {
5
- lines?: OriginalDataItem[];
6
- detailsPoint?: {
7
- position: {
8
- x: number;
9
- y: number;
10
- z: number;
11
- };
12
- direction: {
13
- x: number;
14
- y: number;
15
- z: number;
16
- };
17
- desc: string;
18
- }[];
19
- camera?: THREE.OrthographicCamera;
20
- };
21
- declare const _default: import('vue').DefineComponent<__VLS_Props, {
22
- dxfSystem: DxfSystem;
23
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
24
- elRef: HTMLDivElement;
25
- }, HTMLDivElement>;
26
- export default _default;
@@ -1,4 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
2
- dom: HTMLDivElement;
3
- }, HTMLDivElement>;
4
- export default _default;