build-dxf 0.0.44 → 0.0.45

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 (51) hide show
  1. package/package.json +1 -1
  2. package/src/build.d.ts +1 -2
  3. package/src/build.js +2012 -1454
  4. package/src/index.css +1 -1
  5. package/src/index.js +1 -1
  6. package/src/index3.js +230 -228
  7. package/src/pages/{Dxf.vue.d.ts → WallView.vue.d.ts} +3 -1
  8. package/src/selectLocalFile.js +1763 -4638
  9. package/src/utils/DxfSystem/components/DoorsAnalysis.d.ts +3 -3
  10. package/src/utils/DxfSystem/components/Dxf.d.ts +4 -4
  11. package/src/utils/DxfSystem/components/LineAnalysis.d.ts +3 -3
  12. package/src/utils/DxfSystem/components/ThreeVJia.d.ts +27 -2
  13. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/ClippingLine.d.ts +1 -1
  14. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/CommandFlowComponent.d.ts +2 -2
  15. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/Default.d.ts +1 -1
  16. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DrawWindow.d.ts +1 -1
  17. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/PointDrag.d.ts +1 -1
  18. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/SelectAll.d.ts +1 -1
  19. package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/VerticalCorrection.d.ts +2 -2
  20. package/src/utils/DxfSystem/plugin/Editor/components/RenderManager.d.ts +2 -2
  21. package/src/utils/DxfSystem/plugin/RenderPlugin/components/ModelDataRender.d.ts +1 -1
  22. package/src/utils/DxfSystem/plugin/RenderPlugin/components/Renderer.d.ts +2 -8
  23. package/src/utils/DxfSystem/type.d.ts +13 -4
  24. package/src/utils/DxfSystem/utils/AxisAlignCorr.d.ts +1 -1
  25. package/src/utils/DxfSystem/utils/BoundExt.d.ts +3 -3
  26. package/src/utils/DxfSystem/utils/DoubleWallHelper.d.ts +19 -0
  27. package/src/utils/DxfSystem/utils/clippingDoubleWall.d.ts +6 -0
  28. package/src/utils/DxfSystem/utils/clippingLineUserData.d.ts +7 -0
  29. package/src/utils/DxfSystem/utils/closedPathArea.d.ts +2 -0
  30. package/src/utils/DxfSystem/utils/createPointVirtualGrid.d.ts +3 -0
  31. package/src/utils/DxfSystem/utils/drawHelper.d.ts +4 -4
  32. package/src/utils/DxfSystem/utils/findClosedPolygons.d.ts +22 -0
  33. package/src/utils/DxfSystem/utils/findClosedPolygons01.d.ts +27 -0
  34. package/src/utils/DxfSystem/utils/findDiscretePointLine.d.ts +14 -0
  35. package/src/utils/DxfSystem/utils/findVerticalReference.d.ts +1 -1
  36. package/src/utils/DxfSystem/utils/lineDataToOriginalData.d.ts +3 -2
  37. package/src/utils/DxfSystem/utils/lineSegmentClipping.d.ts +1 -1
  38. package/src/utils/DxfSystem/utils/mergeLineUserData.d.ts +7 -0
  39. package/src/utils/DxfSystem/utils/originalDataToLineData.d.ts +1 -1
  40. package/src/utils/DxfSystem/utils/recomputedWindow.d.ts +1 -1
  41. package/src/utils/{Quadtree/LineSegment.d.ts → LineSegment.d.ts} +35 -3
  42. package/src/utils/Map.d.ts +17 -0
  43. package/src/utils/{Quadtree/Point.d.ts → Point.d.ts} +2 -0
  44. package/src/utils/PointVirtualGrid/index.d.ts +10 -7
  45. package/src/utils/{Quadtree/Quadtree.d.ts → Quadtree.d.ts} +2 -2
  46. package/src/utils/UndirectedGraph.d.ts +28 -0
  47. package/src/utils/UnionFindSet.d.ts +12 -0
  48. package/src/utils/cloneUserData.d.ts +7 -0
  49. package/src/utils/DxfSystem/utils/extractClosedPolygons.d.ts +0 -11
  50. /package/src/utils/{Quadtree/Box2.d.ts → Box2.d.ts} +0 -0
  51. /package/src/utils/{Quadtree/Rectangle.d.ts → Rectangle.d.ts} +0 -0
@@ -0,0 +1,12 @@
1
+ import { ArrayMap } from './Map';
2
+ export declare class UnionFindSet {
3
+ private parent;
4
+ private rank;
5
+ constructor(size: number);
6
+ find(x: number): number;
7
+ union(x: number, y: number): void;
8
+ /** 获取所有集合
9
+ * @returns
10
+ */
11
+ getAllSets(): ArrayMap<number, number>;
12
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 深拷贝纯数据对象(Plain Data Object)
3
+ * 支持:string、number、boolean、null、Array、嵌套 Object
4
+ * 不支持:function、Date、RegExp、Map、Set、Symbol、循环引用等
5
+ * 专为 CAD/建筑图纸中的 userData 设计(通常是配置数据)
6
+ */
7
+ export declare function cloneUserData<T extends Record<any, any>>(userData: T): T;
@@ -1,11 +0,0 @@
1
- import { LineSegment } from '../../Quadtree/LineSegment';
2
- import { Point } from '../../Quadtree/Point';
3
- /**
4
- * 多边形类型:点数组(闭合,最后一点连接第一点)
5
- */
6
- type Polygon = Point[];
7
- /**
8
- * 从线段集合中提取所有闭合多边形
9
- */
10
- export declare function extractClosedPolygons(segments: LineSegment[]): Polygon[];
11
- export {};
File without changes