build-dxf 0.1.111 → 0.1.113
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.
- package/package.json +1 -1
- package/src/build.js +3393 -3257
- package/src/{dxfSystem → dxf-system}/components/CorrectionDxf.d.ts +1 -1
- package/src/{dxfSystem → dxf-system}/components/Dxf.d.ts +3 -3
- package/src/{dxfSystem → dxf-system}/components/ThreeVJia.d.ts +1 -1
- package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/Default.d.ts +1 -1
- package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/DrawWindow.d.ts +1 -1
- package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/PropertiesPanel.d.ts +1 -1
- package/src/{dxfSystem → dxf-system}/plugins/editor/components/Editor.d.ts +1 -1
- package/src/{dxfSystem → dxf-system}/plugins/editor/components/RenderManager.d.ts +2 -2
- package/src/{dxfSystem → dxf-system}/plugins/editor/pages/EditorTool/EditorTool.vue.d.ts +1 -1
- package/src/{dxfSystem → dxf-system}/plugins/editor/pages/PropertiesPanel.vue.d.ts +1 -1
- package/src/{dxfSystem/utils/linePipeline/builtin/boundExt.d.ts → dxf-system/utils/BoundExt.d.ts} +5 -11
- package/src/{dxfSystem/utils/linePipeline/builtin → dxf-system/utils}/DoorFind.d.ts +5 -5
- package/src/{dxfSystem/utils/linePipeline/builtin → dxf-system/utils}/DoubleWallHelper.d.ts +3 -3
- package/src/{dxfSystem/utils/linePipeline/builtin → dxf-system/utils}/HeightQuery.d.ts +2 -2
- package/src/{dxfSystem/utils/threeVJiaPipeline.d.ts → dxf-system/utils/ThreeVJiaPipeline.d.ts} +1 -1
- package/src/dxf-system/utils/cad/DxfDataPlugin.d.ts +18 -0
- package/src/dxf-system/utils/cad/DxfDrawPlugin.d.ts +13 -0
- package/src/{dxfSystem/utils/CAD/drawDxfImage.d.ts → dxf-system/utils/cad/draw-dxf-image.d.ts} +1 -1
- package/src/{dxfSystem/utils/CAD/drawDxfString.d.ts → dxf-system/utils/cad/draw-dxf-string.d.ts} +1 -1
- package/src/{dxfSystem/utils/CAD → dxf-system/utils/cad}/index.d.ts +1 -27
- package/src/dxf-system/utils/index.d.ts +11 -0
- package/src/dxf-system/utils/line-pipeline/builtin/bound-ext.d.ts +8 -0
- package/src/{dxfSystem/utils/linePipeline/builtin/buildGroup → dxf-system/utils/line-pipeline/builtin/build-group}/index.d.ts +1 -1
- package/src/{dxfSystem/utils/linePipeline/builtin/doorToHole.d.ts → dxf-system/utils/line-pipeline/builtin/door-to-hole.d.ts} +1 -1
- package/src/{dxfSystem/utils/linePipeline/builtin/doubleWallAlignment.d.ts → dxf-system/utils/line-pipeline/builtin/double-wall-alignment.d.ts} +2 -2
- package/src/{dxfSystem/utils/linePipeline → dxf-system/utils/line-pipeline}/builtin/index.d.ts +7 -7
- package/src/{dxfSystem/utils/linePipeline → dxf-system/utils/line-pipeline}/builtin/init.d.ts +1 -1
- package/src/dxf-system/utils/line-pipeline/index.d.ts +20 -0
- package/src/{dxfSystem → dxf-system}/utils/tools.d.ts +1 -1
- package/src/index.css +50 -22
- package/src/index3.js +8 -8
- package/src/utils/algorithms/LineSegmentUtils.d.ts +15 -2
- package/src/utils/algorithms/PointSpatialHash.d.ts +21 -4
- package/src/utils/decorators/measure-time.d.ts +5 -0
- package/src/utils/index.d.ts +3 -3
- package/src/utils/modelScenario/scenario.d.ts +1 -1
- package/src/dxfSystem/utils/WallDrawManager.d.ts +0 -3
- package/src/dxfSystem/utils/index.d.ts +0 -11
- package/src/dxfSystem/utils/linePipeline/index.d.ts +0 -20
- /package/src/{dxfSystem → dxf-system}/DxfSystem.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/build.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/components/Variable.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/index.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/EditorPlugin.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/CFComponent.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/ClippingLine.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/DeleteSelectLine.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/DrawDoorLine.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/DrawLine.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/ManualDistance.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/MergeLine.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/PointDrag/index.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/PointDrag/modifyDoor.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/PointDrag/modifyLine.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/PointDrag/modifyWindow.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/RayDistance.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/SelectAll.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/TwoLineConnectionLine.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/TwoPointConnection.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/VerticalCorr.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/VerticalCorrContinue.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/VerticalReferenceLine.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/ViewAngle.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/UIService.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/components/index.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/index.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/pages/EditorTool/EditorToolContent.vue.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/pages/components/Input.vue.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/editor/type.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/index.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/model3d/components/DxfLineModel.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/model3d/components/WhiteModel.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/model3d/components/index.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/model3d/index.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/renderer/components/DomContainer.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/renderer/components/DomEventRegister.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/renderer/components/EventInput.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/renderer/components/ModelDataRender.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/renderer/components/Renderer.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/renderer/components/index.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/plugins/renderer/index.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/type.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/utils/BayWindowHelper.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/utils/LineGroupType.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/utils/LoadModel.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/utils/SceneAutoGenerat.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/utils/WallGroupManager.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/utils/WallInsertObject.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/utils/WallInsertObjectDrawData.d.ts +0 -0
- /package/src/{dxfSystem → dxf-system}/utils/ZHouseMockData.d.ts +0 -0
- /package/src/{dxfSystem/utils/CAD/drawData.d.ts → dxf-system/utils/cad/draw-data.d.ts} +0 -0
- /package/src/{dxfSystem/utils/clippingDoubleWall.d.ts → dxf-system/utils/clipping-double-wall.d.ts} +0 -0
- /package/src/{dxfSystem/utils/clippingLineUserData.d.ts → dxf-system/utils/clipping-line-user-data.d.ts} +0 -0
- /package/src/{dxfSystem/utils/drawHelper.d.ts → dxf-system/utils/draw-helper.d.ts} +0 -0
- /package/src/{dxfSystem/utils/findDiscrete.d.ts → dxf-system/utils/find-discrete.d.ts} +0 -0
- /package/src/{dxfSystem/utils/findRooms.d.ts → dxf-system/utils/find-rooms.d.ts} +0 -0
- /package/src/{dxfSystem/utils/getWinDrawData.d.ts → dxf-system/utils/get-win-draw-data.d.ts} +0 -0
- /package/src/{dxfSystem/utils/lineSegmentClipping.d.ts → dxf-system/utils/line-clipping.d.ts} +0 -0
- /package/src/{dxfSystem/utils/mergeChains.d.ts → dxf-system/utils/line-merge-chains.d.ts} +0 -0
- /package/src/{dxfSystem/utils/mergeLineUserData.d.ts → dxf-system/utils/line-merge-user-data.d.ts} +0 -0
- /package/src/{dxfSystem/utils/linePipeline/builtin/axisAlignCorr.d.ts → dxf-system/utils/line-pipeline/builtin/axis-align-corr.d.ts} +0 -0
- /package/src/{dxfSystem/utils/linePipeline/builtin/buildGroup/bayWindow.d.ts → dxf-system/utils/line-pipeline/builtin/build-group/bay-window.d.ts} +0 -0
- /package/src/{dxfSystem/utils/linePipeline/builtin/buildGroup/doubleWall.d.ts → dxf-system/utils/line-pipeline/builtin/build-group/double-wall.d.ts} +0 -0
- /package/src/{dxfSystem/utils/linePipeline/builtin/doorSpaceHandle.d.ts → dxf-system/utils/line-pipeline/builtin/door-space-handle.d.ts} +0 -0
- /package/src/{dxfSystem/utils/linePipeline/builtin/removeShortDoubleWall.d.ts → dxf-system/utils/line-pipeline/builtin/remove-short-double-wall.d.ts} +0 -0
- /package/src/{dxfSystem/utils/linePipeline/builtin/wallHeightHandle.d.ts → dxf-system/utils/line-pipeline/builtin/wall-height-handle.d.ts} +0 -0
- /package/src/{dxfSystem/utils/removeDangline.d.ts → dxf-system/utils/remove-dangline.d.ts} +0 -0
- /package/src/utils/{tools → algorithms}/lazy.d.ts +0 -0
- /package/src/utils/{threeObject3D → three-object-3d}/ExtrudeMesh.d.ts +0 -0
- /package/src/utils/{threeObject3D → three-object-3d}/Lines.d.ts +0 -0
- /package/src/utils/{threeObject3D → three-object-3d}/Lines2.d.ts +0 -0
- /package/src/utils/tools/{cloneUserData.d.ts → clone-user-data.d.ts} +0 -0
- /package/src/utils/tools/{createHtml.d.ts → create-html.d.ts} +0 -0
- /package/src/utils/tools/{createPromise.d.ts → create-promise.d.ts} +0 -0
- /package/src/utils/tools/{getJson.d.ts → get-json.d.ts} +0 -0
- /package/src/utils/tools/{isMobile.d.ts → is-mobile.d.ts} +0 -0
- /package/src/utils/tools/{repetitiveTask.d.ts → repetitive-task.d.ts} +0 -0
- /package/src/utils/tools/{selectLocalFile.d.ts → selectLocal-file.d.ts} +0 -0
|
@@ -3,8 +3,8 @@ import { Box2 } from '../../utils/algorithms/Box2';
|
|
|
3
3
|
import { LineSegment } from '../../utils/algorithms/LineSegment';
|
|
4
4
|
import { Quadtree } from '../../utils/algorithms/Quadtree';
|
|
5
5
|
import { SetDataOption, DataItem, LineUserData, OriginalDataItem, Unit } from '../type';
|
|
6
|
-
import { CAD } from '../utils/
|
|
7
|
-
import { LinePipeline } from '../utils/
|
|
6
|
+
import { CAD } from '../utils/cad';
|
|
7
|
+
import { LinePipeline } from '../utils/line-pipeline';
|
|
8
8
|
/**
|
|
9
9
|
* 将点云结构转换为DXF格式
|
|
10
10
|
*/
|
|
@@ -71,7 +71,7 @@ export declare class Dxf<TEventMap extends {} = {}> extends Component<{
|
|
|
71
71
|
downloadOriginalData(filename: string): Promise<void>;
|
|
72
72
|
/** 获取绘制数据
|
|
73
73
|
*/
|
|
74
|
-
toDrawData(unit?: Unit): import('../utils/
|
|
74
|
+
toDrawData(unit?: Unit): import('../utils/cad/draw-data').DrawData | undefined;
|
|
75
75
|
/** 获取 dxf 图片 二进制对象
|
|
76
76
|
* @param type
|
|
77
77
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Component } from '../../utils/ecs';
|
|
2
2
|
import { LineSegment } from '../../utils/algorithms/LineSegment';
|
|
3
3
|
import { LineUserData } from '../type';
|
|
4
|
-
import { ThreeVJiaJsonObject } from '../utils/
|
|
4
|
+
import { ThreeVJiaJsonObject } from '../utils/ThreeVJiaPipeline';
|
|
5
5
|
/**
|
|
6
6
|
* 转为 三维家 墙体结构
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LineSegment } from '../../../../../utils/algorithms/LineSegment';
|
|
2
2
|
import { CommandFlowComponent } from './CFComponent';
|
|
3
|
-
import { LineUserData } from '
|
|
3
|
+
import { LineUserData } from '../../../../../dxfSystem/type';
|
|
4
4
|
import * as THREE from "three";
|
|
5
5
|
/**
|
|
6
6
|
* 创建移动端集成页面
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommandFlowComponent } from './CFComponent';
|
|
2
2
|
import { LineSegment } from '../../../../../utils/algorithms/LineSegment';
|
|
3
3
|
import { ComponentSystem } from '../../../../../utils/ecs';
|
|
4
|
-
import { LineUserData } from '
|
|
4
|
+
import { LineUserData } from '../../../../../dxfSystem/type';
|
|
5
5
|
import * as THREE from "three";
|
|
6
6
|
export declare class DrawWindow extends CommandFlowComponent<{
|
|
7
7
|
pointerMove: {
|
package/src/{dxfSystem → dxf-system}/plugins/editor/components/CommandFlow/PropertiesPanel.d.ts
RENAMED
|
@@ -10,7 +10,7 @@ export declare class PropertiesPanel extends CommandFlowComponent<{}> {
|
|
|
10
10
|
isOpen: boolean;
|
|
11
11
|
onAddFromParent(parent: ComponentSystem): void;
|
|
12
12
|
getSelectLines(): {
|
|
13
|
-
list: LineSegment<
|
|
13
|
+
list: LineSegment<LineUserData>[];
|
|
14
14
|
winList: any[];
|
|
15
15
|
};
|
|
16
16
|
private constraint;
|
|
@@ -5,7 +5,7 @@ import { Renderer, DomContainer, DomEventRegister, EventInput } from '../../rend
|
|
|
5
5
|
import { RenderManager } from './RenderManager';
|
|
6
6
|
import { CommandManager } from '../../../../utils/command';
|
|
7
7
|
import { App } from 'vue';
|
|
8
|
-
import { DxfSystem } from '
|
|
8
|
+
import { DxfSystem } from '../../../../dxfSystem';
|
|
9
9
|
import * as THREE from "three";
|
|
10
10
|
export declare class Editor extends Component<{
|
|
11
11
|
pointerPositionChange: {
|
|
@@ -6,8 +6,8 @@ import { PointSpatialHash } from '../../../../utils/algorithms/PointSpatialHash'
|
|
|
6
6
|
import { Editor } from './Editor';
|
|
7
7
|
import { Quadtree } from '../../../../utils/algorithms/Quadtree';
|
|
8
8
|
import { DxfLineModel } from '../../model3d/components';
|
|
9
|
-
import { LineUserData
|
|
10
|
-
import { Dxf } from '
|
|
9
|
+
import { LineUserData } from '../../../../dxfSystem/type';
|
|
10
|
+
import { Dxf } from '../../../../dxfSystem/components/Dxf';
|
|
11
11
|
import * as THREE from "three";
|
|
12
12
|
export type AdsorptionResult = {
|
|
13
13
|
point: THREE.Vector3;
|
package/src/{dxfSystem/utils/linePipeline/builtin/boundExt.d.ts → dxf-system/utils/BoundExt.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { LineSegment } from '../../utils/algorithms/LineSegment';
|
|
2
|
+
import { Point } from '../../utils/algorithms/Point';
|
|
3
|
+
import { LineUserData, OriginalDataItem } from '../type';
|
|
4
4
|
interface IByTraj {
|
|
5
5
|
lines: LineSegment[];
|
|
6
6
|
trajectory: any;
|
|
@@ -27,8 +27,8 @@ export declare class BoundExt {
|
|
|
27
27
|
static findExtWallByTraj(lines: LineSegment<LineUserData & {
|
|
28
28
|
expandDirect?: 'left' | 'right' | 'on';
|
|
29
29
|
}>[], trajectoryPoints: Point[], minWidth?: number): LineSegment<{
|
|
30
|
-
quadtreeNode?: import('
|
|
31
|
-
} & import('
|
|
30
|
+
quadtreeNode?: import('../../utils/algorithms/Quadtree').QuadtreeNode;
|
|
31
|
+
} & import('../type').WallLineGlobalOption & {
|
|
32
32
|
expandDirect?: "left" | "right" | "on";
|
|
33
33
|
}>[];
|
|
34
34
|
/** 通过轨迹点外扩边线
|
|
@@ -48,10 +48,4 @@ export declare class BoundExt {
|
|
|
48
48
|
toOriginalData(originalZAverage: number): OriginalDataItem[];
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
/** 外扩
|
|
52
|
-
* @param lines
|
|
53
|
-
* @param param1
|
|
54
|
-
* @returns
|
|
55
|
-
*/
|
|
56
|
-
export declare function boundExt(lines: LineSegment[], { trajectory, onBoundExt }: SetDataOption): LineSegment<Record<string, any>>[];
|
|
57
51
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { LineSegment } from '
|
|
2
|
-
import { LineUserData } from '
|
|
3
|
-
import { PointSpatialHash } from '
|
|
4
|
-
import { Quadtree } from '
|
|
5
|
-
import { Point } from '
|
|
1
|
+
import { LineSegment } from '../../utils/algorithms/LineSegment';
|
|
2
|
+
import { LineUserData } from '../type';
|
|
3
|
+
import { PointSpatialHash } from '../../utils/algorithms/PointSpatialHash';
|
|
4
|
+
import { Quadtree } from '../../utils/algorithms/Quadtree';
|
|
5
|
+
import { Point } from '../../utils/algorithms/Point';
|
|
6
6
|
interface IDockInfo {
|
|
7
7
|
dockLine: LineSegment<LineUserData>;
|
|
8
8
|
dockPoint: Point<Record<string, any>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LineSegment } from '
|
|
2
|
-
import { Quadtree } from '
|
|
3
|
-
import { LineUserData } from '
|
|
1
|
+
import { LineSegment } from '../../utils/algorithms/LineSegment';
|
|
2
|
+
import { Quadtree } from '../../utils/algorithms/Quadtree';
|
|
3
|
+
import { LineUserData } from '../type';
|
|
4
4
|
type ProjectionAnalysisResult = {
|
|
5
5
|
source: LineSegment;
|
|
6
6
|
sourceIndex: number;
|
package/src/{dxfSystem/utils/threeVJiaPipeline.d.ts → dxf-system/utils/ThreeVJiaPipeline.d.ts}
RENAMED
|
@@ -2,7 +2,7 @@ import { LineSegment } from '../../utils/algorithms/LineSegment';
|
|
|
2
2
|
import { IPublicInfoFile, LineUserData } from '../type';
|
|
3
3
|
import { WallGroupManager } from './WallGroupManager';
|
|
4
4
|
import { Pipeline, HandlerContext } from '../../utils/algorithms/Pipeline';
|
|
5
|
-
import { IRoom } from './
|
|
5
|
+
import { IRoom } from './find-rooms';
|
|
6
6
|
type Vec2 = {
|
|
7
7
|
x: number;
|
|
8
8
|
y: number;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LineSegment } from '../../../utils/algorithms/LineSegment';
|
|
2
|
+
import { CAD, ICADPlugin } from '.';
|
|
3
|
+
import { WallGroupManager } from '../WallGroupManager';
|
|
4
|
+
import { LineUserData } from '../../type';
|
|
5
|
+
import { Pipeline } from '../../../utils/algorithms/Pipeline';
|
|
6
|
+
type DataOption = {
|
|
7
|
+
lines: LineSegment[];
|
|
8
|
+
};
|
|
9
|
+
/** dxf 数据处理插件
|
|
10
|
+
*/
|
|
11
|
+
export declare class DxfDataPlugin implements ICADPlugin {
|
|
12
|
+
manager: WallGroupManager;
|
|
13
|
+
lines: LineSegment<LineUserData>[];
|
|
14
|
+
pipeline: Pipeline<DataOption>;
|
|
15
|
+
constructor(lines: LineSegment<LineUserData>[]);
|
|
16
|
+
install(cad: CAD): void;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CAD, ICADPlugin } from '.';
|
|
2
|
+
/** dxf 绘制插件
|
|
3
|
+
*/
|
|
4
|
+
export declare class DxfDrawPlugin implements ICADPlugin {
|
|
5
|
+
/** 获取角度范围
|
|
6
|
+
* @param center
|
|
7
|
+
* @param p1
|
|
8
|
+
* @param p2
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
private getArcAngleRange;
|
|
12
|
+
install(cad: CAD): void;
|
|
13
|
+
}
|
package/src/{dxfSystem/utils/CAD/drawDxfImage.d.ts → dxf-system/utils/cad/draw-dxf-image.d.ts}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DrawData } from './
|
|
1
|
+
import { DrawData } from './draw-data';
|
|
2
2
|
export declare function toDxfImageBlob(data: DrawData, type?: string, background?: string): Promise<any>;
|
|
@@ -2,8 +2,6 @@ import { LineSegment } from '../../../utils/algorithms/LineSegment';
|
|
|
2
2
|
import { LineUserData, Unit } from '../../type';
|
|
3
3
|
import { SetMap } from '../../../utils/algorithms/Map';
|
|
4
4
|
import { Point } from '../../../utils/algorithms/Point';
|
|
5
|
-
import { WallGroupManager } from '../WallGroupManager';
|
|
6
|
-
import { Pipeline } from '../../../utils/algorithms/Pipeline';
|
|
7
5
|
type LineSegmentType = LineSegment<LineUserData>;
|
|
8
6
|
type JoinType = "jtMiter" | "jtSquare" | "jtRound";
|
|
9
7
|
type EndType = "etOpenSquare" | "etOpenButt" | "etOpenRound";
|
|
@@ -101,7 +99,7 @@ export declare class CAD {
|
|
|
101
99
|
* 转为绘制数据
|
|
102
100
|
*/
|
|
103
101
|
_cachedDrawDataMap: Map<string, DrawData>;
|
|
104
|
-
toDrawData(unit?: Unit): import('./
|
|
102
|
+
toDrawData(unit?: Unit): import('./draw-data').DrawData;
|
|
105
103
|
/** 转为图片
|
|
106
104
|
* @param type
|
|
107
105
|
*/
|
|
@@ -142,28 +140,4 @@ export declare class CAD {
|
|
|
142
140
|
referenceLine: LineSegment<Record<string, any>>;
|
|
143
141
|
};
|
|
144
142
|
}
|
|
145
|
-
/** dxf 绘制插件
|
|
146
|
-
*/
|
|
147
|
-
export declare class DxfDrawPlugin implements ICADPlugin {
|
|
148
|
-
/** 获取角度范围
|
|
149
|
-
* @param center
|
|
150
|
-
* @param p1
|
|
151
|
-
* @param p2
|
|
152
|
-
* @returns
|
|
153
|
-
*/
|
|
154
|
-
private getArcAngleRange;
|
|
155
|
-
install(cad: CAD): void;
|
|
156
|
-
}
|
|
157
|
-
type DataOption = {
|
|
158
|
-
lines: LineSegment[];
|
|
159
|
-
};
|
|
160
|
-
/** dxf 数据处理插件
|
|
161
|
-
*/
|
|
162
|
-
export declare class DxfDataPlugin implements ICADPlugin {
|
|
163
|
-
manager: WallGroupManager;
|
|
164
|
-
lines: LineSegment<LineUserData>[];
|
|
165
|
-
pipeline: Pipeline<DataOption>;
|
|
166
|
-
constructor(lines: LineSegment<LineUserData>[]);
|
|
167
|
-
install(cad: CAD): void;
|
|
168
|
-
}
|
|
169
143
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './line-clipping';
|
|
2
|
+
export * from './DoubleWallHelper';
|
|
3
|
+
export * from './clipping-double-wall';
|
|
4
|
+
export * from './clipping-line-user-data';
|
|
5
|
+
export * from './find-discrete';
|
|
6
|
+
export * from './line-merge-user-data';
|
|
7
|
+
export * from './LineGroupType';
|
|
8
|
+
export * from './SceneAutoGenerat';
|
|
9
|
+
export * from './ThreeVJiaPipeline';
|
|
10
|
+
export { BoundExt } from './BoundExt';
|
|
11
|
+
export * as tools from './tools';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SetDataOption } from '../../../type';
|
|
2
|
+
import { LineSegment } from '../../../../utils';
|
|
3
|
+
/** 外扩
|
|
4
|
+
* @param lines
|
|
5
|
+
* @param param1
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function boundExt(lines: LineSegment[], { trajectory, onBoundExt }: SetDataOption): LineSegment<Record<string, any>>[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { buildBayWindowGroup } from './
|
|
1
|
+
import { buildBayWindowGroup } from './bay-window';
|
|
2
2
|
export declare class BuildGroup {
|
|
3
3
|
static get bayWindow(): typeof buildBayWindowGroup;
|
|
4
4
|
static get doubleWall(): ((lines_: import('../../../../../utils').LineSegment<import('../../../../type').LineUserData>[], clearInternalLine?: boolean) => import('../../../../../utils').LineSegment<import('../../../../type').LineUserData>[]) & {
|
package/src/{dxfSystem/utils/linePipeline → dxf-system/utils/line-pipeline}/builtin/index.d.ts
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { axisAlignCorr } from './
|
|
1
|
+
import { axisAlignCorr } from './axis-align-corr';
|
|
2
2
|
import { init } from './init';
|
|
3
|
-
import { boundExt } from './
|
|
4
|
-
import { doubleWallAlignment } from './
|
|
5
|
-
import { wallHeightHandle } from './
|
|
6
|
-
import { doorSpaceHandle } from './
|
|
7
|
-
import { removeShortDoubleWall } from './
|
|
8
|
-
import { doorToHole } from './
|
|
3
|
+
import { boundExt } from './bound-ext';
|
|
4
|
+
import { doubleWallAlignment } from './double-wall-alignment';
|
|
5
|
+
import { wallHeightHandle } from './wall-height-handle';
|
|
6
|
+
import { doorSpaceHandle } from './door-space-handle';
|
|
7
|
+
import { removeShortDoubleWall } from './remove-short-double-wall';
|
|
8
|
+
import { doorToHole } from './door-to-hole';
|
|
9
9
|
import { LineSegment } from '../../../../utils/algorithms/LineSegment';
|
|
10
10
|
/**
|
|
11
11
|
* 默认提供的预处理函数
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LineSegment } from '../../../utils/algorithms/LineSegment';
|
|
2
|
+
import { Pipeline } from '../../../utils/algorithms/Pipeline';
|
|
3
|
+
import { LineUserData, SetDataOption } from '../../../dxfSystem/type';
|
|
4
|
+
export declare class LinePipeline<T = SetDataOption> extends Pipeline<LineSegment[], T> {
|
|
5
|
+
static get builtin(): {
|
|
6
|
+
init: typeof import('./builtin/init').init;
|
|
7
|
+
DoorToHole: typeof import('./builtin/door-to-hole').doorToHole;
|
|
8
|
+
AxisAlignCorr: typeof import('./builtin/axis-align-corr').axisAlignCorr;
|
|
9
|
+
DoorFind: (lines: LineSegment[]) => LineSegment<Record<string, any>>[];
|
|
10
|
+
BoundExt: typeof import('./builtin/bound-ext').boundExt;
|
|
11
|
+
DoubleWallAlignment: typeof import('./builtin/double-wall-alignment').doubleWallAlignment;
|
|
12
|
+
WallHeightHandle: typeof import('./builtin/wall-height-handle').wallHeightHandle;
|
|
13
|
+
DoorSpaceHandle: typeof import('./builtin/door-space-handle').doorSpaceHandle;
|
|
14
|
+
RemoveShortDoubleWall: typeof import('./builtin/remove-short-double-wall').removeShortDoubleWall;
|
|
15
|
+
};
|
|
16
|
+
constructor();
|
|
17
|
+
add(handle: (lines: LineSegment<LineUserData>[], option: T) => LineSegment<LineUserData>[]): this;
|
|
18
|
+
clear(): this;
|
|
19
|
+
execute(data: LineSegment<Record<string, any>>[], option: T): LineSegment<Record<string, any>>[];
|
|
20
|
+
}
|
|
@@ -2,7 +2,7 @@ import { PointSpatialHash } from '../../utils/algorithms/PointSpatialHash';
|
|
|
2
2
|
import { LineSegment } from '../../utils/algorithms/LineSegment';
|
|
3
3
|
import { Quadtree } from '../../utils/algorithms/Quadtree';
|
|
4
4
|
import { InsertObject, LineUserData, OriginalDataItem } from '../type';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './ThreeVJiaPipeline';
|
|
6
6
|
export * from './WallGroupManager';
|
|
7
7
|
/** 快捷创建查询网格
|
|
8
8
|
* @param lines
|
package/src/index.css
CHANGED
|
@@ -157,6 +157,10 @@
|
|
|
157
157
|
top: calc(var(--spacing) * 0);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
.top-2\.5 {
|
|
161
|
+
top: calc(var(--spacing) * 2.5);
|
|
162
|
+
}
|
|
163
|
+
|
|
160
164
|
.top-\[10px\] {
|
|
161
165
|
top: 10px;
|
|
162
166
|
}
|
|
@@ -173,6 +177,10 @@
|
|
|
173
177
|
right: calc(var(--spacing) * 0);
|
|
174
178
|
}
|
|
175
179
|
|
|
180
|
+
.right-2\.5 {
|
|
181
|
+
right: calc(var(--spacing) * 2.5);
|
|
182
|
+
}
|
|
183
|
+
|
|
176
184
|
.right-\[10px\] {
|
|
177
185
|
right: 10px;
|
|
178
186
|
}
|
|
@@ -291,6 +299,10 @@
|
|
|
291
299
|
margin: 10px 0;
|
|
292
300
|
}
|
|
293
301
|
|
|
302
|
+
.mt-2\.5 {
|
|
303
|
+
margin-top: calc(var(--spacing) * 2.5);
|
|
304
|
+
}
|
|
305
|
+
|
|
294
306
|
.mt-\[5px\] {
|
|
295
307
|
margin-top: 5px;
|
|
296
308
|
}
|
|
@@ -299,6 +311,10 @@
|
|
|
299
311
|
margin-top: 10px;
|
|
300
312
|
}
|
|
301
313
|
|
|
314
|
+
.mr-2\.5 {
|
|
315
|
+
margin-right: calc(var(--spacing) * 2.5);
|
|
316
|
+
}
|
|
317
|
+
|
|
302
318
|
.mr-\[5px\] {
|
|
303
319
|
margin-right: 5px;
|
|
304
320
|
}
|
|
@@ -315,12 +331,12 @@
|
|
|
315
331
|
margin-bottom: 5px;
|
|
316
332
|
}
|
|
317
333
|
|
|
318
|
-
.ml
|
|
319
|
-
margin-left: 1.
|
|
334
|
+
.ml-1\.25 {
|
|
335
|
+
margin-left: calc(var(--spacing) * 1.25);
|
|
320
336
|
}
|
|
321
337
|
|
|
322
|
-
.ml-\[
|
|
323
|
-
margin-left:
|
|
338
|
+
.ml-\[1\.4em\] {
|
|
339
|
+
margin-left: 1.4em;
|
|
324
340
|
}
|
|
325
341
|
|
|
326
342
|
.ml-\[20px\] {
|
|
@@ -543,6 +559,10 @@
|
|
|
543
559
|
gap: calc(var(--spacing) * 0);
|
|
544
560
|
}
|
|
545
561
|
|
|
562
|
+
.gap-2\.5 {
|
|
563
|
+
gap: calc(var(--spacing) * 2.5);
|
|
564
|
+
}
|
|
565
|
+
|
|
546
566
|
.gap-\[5px\] {
|
|
547
567
|
gap: 5px;
|
|
548
568
|
}
|
|
@@ -676,6 +696,10 @@
|
|
|
676
696
|
background-color: #f0f0f0;
|
|
677
697
|
}
|
|
678
698
|
|
|
699
|
+
.bg-\[--primary-color\]\! {
|
|
700
|
+
background-color: --primary-color !important;
|
|
701
|
+
}
|
|
702
|
+
|
|
679
703
|
.bg-\[rgba\(0\,0\,0\,0\.5\)\] {
|
|
680
704
|
background-color: #00000080;
|
|
681
705
|
}
|
|
@@ -710,6 +734,10 @@
|
|
|
710
734
|
padding: calc(var(--spacing) * 0);
|
|
711
735
|
}
|
|
712
736
|
|
|
737
|
+
.p-1\.25 {
|
|
738
|
+
padding: calc(var(--spacing) * 1.25);
|
|
739
|
+
}
|
|
740
|
+
|
|
713
741
|
.p-\[0_5px\], .p-\[0px_5px\] {
|
|
714
742
|
padding: 0 5px;
|
|
715
743
|
}
|
|
@@ -766,11 +794,6 @@
|
|
|
766
794
|
font-size: 16px;
|
|
767
795
|
}
|
|
768
796
|
|
|
769
|
-
.\!leading-\[88px\] {
|
|
770
|
-
--tw-leading: 88px !important;
|
|
771
|
-
line-height: 88px !important;
|
|
772
|
-
}
|
|
773
|
-
|
|
774
797
|
.leading-\[1\.4em\] {
|
|
775
798
|
--tw-leading: 1.4em;
|
|
776
799
|
line-height: 1.4em;
|
|
@@ -791,6 +814,11 @@
|
|
|
791
814
|
line-height: 40px;
|
|
792
815
|
}
|
|
793
816
|
|
|
817
|
+
.leading-\[88px\]\! {
|
|
818
|
+
--tw-leading: 88px !important;
|
|
819
|
+
line-height: 88px !important;
|
|
820
|
+
}
|
|
821
|
+
|
|
794
822
|
.font-bold {
|
|
795
823
|
--tw-font-weight: var(--font-weight-bold);
|
|
796
824
|
font-weight: var(--font-weight-bold);
|
|
@@ -1183,27 +1211,27 @@
|
|
|
1183
1211
|
-webkit-tap-highlight-color: transparent;
|
|
1184
1212
|
}
|
|
1185
1213
|
|
|
1186
|
-
ul li[data-v-
|
|
1214
|
+
ul li[data-v-b3b042a9]{
|
|
1187
1215
|
background: white;
|
|
1188
1216
|
line-height: 38px;
|
|
1189
1217
|
text-align: center;
|
|
1190
1218
|
border-radius: 6px;
|
|
1191
1219
|
}
|
|
1192
|
-
ul li[data-v-
|
|
1220
|
+
ul li[data-v-b3b042a9]:active {
|
|
1193
1221
|
background: #eee;
|
|
1194
1222
|
}
|
|
1195
|
-
.confirm[data-v-
|
|
1223
|
+
.confirm[data-v-b3b042a9] {
|
|
1196
1224
|
background: var(--primary-color);
|
|
1197
1225
|
color: #fff;
|
|
1198
1226
|
}
|
|
1199
|
-
.confirm[data-v-
|
|
1227
|
+
.confirm[data-v-b3b042a9]:active {
|
|
1200
1228
|
filter: grayscale(0.4);
|
|
1201
1229
|
background: var(--primary-color);
|
|
1202
1230
|
}
|
|
1203
|
-
.flashing-ani[data-v-
|
|
1204
|
-
animation: flashing-
|
|
1231
|
+
.flashing-ani[data-v-b3b042a9] {
|
|
1232
|
+
animation: flashing-b3b042a9 1s linear infinite;
|
|
1205
1233
|
}
|
|
1206
|
-
button[data-v-
|
|
1234
|
+
button[data-v-b3b042a9] {
|
|
1207
1235
|
padding: 4px 10px;
|
|
1208
1236
|
border: none;
|
|
1209
1237
|
border-radius: 6px;
|
|
@@ -1211,10 +1239,10 @@ button[data-v-624dc8f8] {
|
|
|
1211
1239
|
background: var(--primary-color);
|
|
1212
1240
|
font-size: 12px;
|
|
1213
1241
|
}
|
|
1214
|
-
button[data-v-
|
|
1242
|
+
button[data-v-b3b042a9]:active {
|
|
1215
1243
|
filter: grayscale(0.4);
|
|
1216
1244
|
}
|
|
1217
|
-
@keyframes flashing-
|
|
1245
|
+
@keyframes flashing-b3b042a9 {
|
|
1218
1246
|
0% {
|
|
1219
1247
|
opacity: 1;
|
|
1220
1248
|
}
|
|
@@ -1229,17 +1257,17 @@ button[data-v-624dc8f8]:active {
|
|
|
1229
1257
|
}
|
|
1230
1258
|
}
|
|
1231
1259
|
|
|
1232
|
-
[data-v-
|
|
1260
|
+
[data-v-cd7c599e] {
|
|
1233
1261
|
font-family: 微软雅黑;
|
|
1234
1262
|
}
|
|
1235
|
-
.number[data-v-
|
|
1263
|
+
.number[data-v-cd7c599e] {
|
|
1236
1264
|
color: #a7a7a7
|
|
1237
1265
|
}
|
|
1238
1266
|
|
|
1239
|
-
[data-v-
|
|
1267
|
+
[data-v-6ec3e5bb] {
|
|
1240
1268
|
font-family: 宋体;
|
|
1241
1269
|
}
|
|
1242
|
-
.button[data-v-
|
|
1270
|
+
.button[data-v-6ec3e5bb] {
|
|
1243
1271
|
padding: 5px 10px;
|
|
1244
1272
|
border: none;
|
|
1245
1273
|
background: var(--primary-color);
|
package/src/index3.js
CHANGED
|
@@ -11406,7 +11406,7 @@ const _hoisted_4$2 = {
|
|
|
11406
11406
|
const _hoisted_5$2 = { class: "grid grid-cols-4 grid-rows-4 gap-[5px] rounded-[6px] overflow-hidden" };
|
|
11407
11407
|
const _hoisted_6$2 = {
|
|
11408
11408
|
key: 1,
|
|
11409
|
-
class: "row-start-3 row-end-5 col-start-4 col-end-4
|
|
11409
|
+
class: "row-start-3 row-end-5 col-start-4 col-end-4 leading-[88px]!"
|
|
11410
11410
|
};
|
|
11411
11411
|
const _hoisted_7$2 = { key: 3 };
|
|
11412
11412
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
@@ -11523,7 +11523,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
11523
11523
|
}, "9"),
|
|
11524
11524
|
__props.showConfirm ? (openBlock(), createElementBlock("li", {
|
|
11525
11525
|
key: 0,
|
|
11526
|
-
class: "row-start-3 row-end-5 col-start-4 col-end-4
|
|
11526
|
+
class: "row-start-3 row-end-5 col-start-4 col-end-4 leading-[88px]! confirm",
|
|
11527
11527
|
onClick: _cache[15] || (_cache[15] = ($event) => emits("confirm", Number(value.value)))
|
|
11528
11528
|
}, "确认")) : (openBlock(), createElementBlock("li", _hoisted_6$2)),
|
|
11529
11529
|
createElementVNode("li", {
|
|
@@ -11546,7 +11546,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
11546
11546
|
}
|
|
11547
11547
|
return target;
|
|
11548
11548
|
};
|
|
11549
|
-
const NumberEditor = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
11549
|
+
const NumberEditor = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-b3b042a9"]]);
|
|
11550
11550
|
function createPromise() {
|
|
11551
11551
|
let resolve, reject;
|
|
11552
11552
|
const promise = new Promise((re2, rt2) => {
|
|
@@ -13906,7 +13906,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
13906
13906
|
};
|
|
13907
13907
|
}
|
|
13908
13908
|
});
|
|
13909
|
-
const PropertiesPanelView = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
13909
|
+
const PropertiesPanelView = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-cd7c599e"]]);
|
|
13910
13910
|
class PropertiesPanel extends CommandFlowComponent {
|
|
13911
13911
|
static name = "PropertiesPanel";
|
|
13912
13912
|
container = new THREE.Group();
|
|
@@ -15983,7 +15983,7 @@ function createPage(context, opt) {
|
|
|
15983
15983
|
"onClick": () => directionLock.value = !directionLock.value,
|
|
15984
15984
|
"class": {
|
|
15985
15985
|
"rounded-[100px] size-[32px] bg-[#717171] flex justify-center items-center transition-colors": true,
|
|
15986
|
-
"
|
|
15986
|
+
"bg-[--primary-color]!": directionLock.value
|
|
15987
15987
|
}
|
|
15988
15988
|
}, [createVNode("svg", {
|
|
15989
15989
|
"fill": "#fff",
|
|
@@ -16001,7 +16001,7 @@ function createPage(context, opt) {
|
|
|
16001
16001
|
"onClick": () => follow.value = !follow.value,
|
|
16002
16002
|
"class": {
|
|
16003
16003
|
"rounded-[100px] size-[32px] bg-[#717171] flex justify-center items-center transition-colors": true,
|
|
16004
|
-
"
|
|
16004
|
+
"bg-[--primary-color]!": follow.value
|
|
16005
16005
|
}
|
|
16006
16006
|
}, [createVNode("svg", {
|
|
16007
16007
|
"fill": "#fff",
|
|
@@ -16022,7 +16022,7 @@ function createPage(context, opt) {
|
|
|
16022
16022
|
"onClick": opt.onResetClick,
|
|
16023
16023
|
"class": {
|
|
16024
16024
|
"rounded-[6px] size-[32px] bg-[#717171] flex justify-center items-center transition-colors": true,
|
|
16025
|
-
"
|
|
16025
|
+
"bg-[--primary-color]! button": true
|
|
16026
16026
|
}
|
|
16027
16027
|
}, [createVNode("svg", {
|
|
16028
16028
|
"fill": "#fff",
|
|
@@ -17308,7 +17308,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
17308
17308
|
};
|
|
17309
17309
|
}
|
|
17310
17310
|
});
|
|
17311
|
-
const EditorToolContent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
17311
|
+
const EditorToolContent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-6ec3e5bb"]]);
|
|
17312
17312
|
class StorageHelper {
|
|
17313
17313
|
static get(key, defaultValue = void 0) {
|
|
17314
17314
|
const value = localStorage.getItem(key);
|