build-dxf 0.0.20-14 → 0.0.20-15

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,15 +1,21 @@
1
1
  import { CommandFlowComponent } from './CommandFlowComponent';
2
2
  import { ComponentManager } from '../../../../../ComponentManager';
3
3
  /**
4
- * 查看线段角度
4
+ * 合并同向线段
5
5
  */
6
6
  export declare class ViewAngle extends CommandFlowComponent<{}> {
7
7
  static name: string;
8
8
  shortcutKeys: string[];
9
9
  static commandName: string;
10
10
  onAddFromParent(parent: ComponentManager): void;
11
- /** 执行完成
12
- * @param data
11
+ /**
12
+ * 进入命令约束
13
13
  */
14
- private completed;
14
+ private constraint;
15
+ /**
16
+ *
17
+ * @param next
18
+ * @param selectLines
19
+ */
20
+ private viewAngle;
15
21
  }
@@ -12,6 +12,24 @@ export declare class LineSegment<T = Record<string, any>> {
12
12
  get end(): Point<Record<string, any>>;
13
13
  constructor(p1?: Point, p2?: Point);
14
14
  set(p1: Point, p2: Point): void;
15
+ /**
16
+ * 是否有相同端点
17
+ * @param line
18
+ * @returns
19
+ */
20
+ sameEndpoint(line: LineSegment): boolean;
21
+ /**
22
+ * 相同端点是否为开始
23
+ * @param line
24
+ * @returns
25
+ */
26
+ sameEndpointAsStart(line: LineSegment): boolean;
27
+ /**
28
+ * 相同端点是否为结束
29
+ * @param line
30
+ * @returns
31
+ */
32
+ sameEndpointAsEnd(line: LineSegment): boolean;
15
33
  /** 膨胀
16
34
  * @description 向线段的两个端点分别膨胀 width
17
35
  * @param width