rm-build-dxf 0.1.186
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/README.md +6 -0
- package/package.json +50 -0
- package/src/App.vue.d.ts +2 -0
- package/src/DomEventRegister.js +1 -0
- package/src/api/getSocket.d.ts +1 -0
- package/src/api/index.d.ts +27 -0
- package/src/api/type.d.ts +46 -0
- package/src/build.js +1 -0
- package/src/components/DragContainer.vue.d.ts +48 -0
- package/src/components/NumberEditor.vue.d.ts +33 -0
- package/src/constants.d.ts +11 -0
- package/src/demo.d.ts +1 -0
- package/src/dxf-system/DxfSystem.d.ts +26 -0
- package/src/dxf-system/build.d.ts +94 -0
- package/src/dxf-system/components/CorrectionDxf.d.ts +44 -0
- package/src/dxf-system/components/Dxf.d.ts +96 -0
- package/src/dxf-system/components/ThreeVJia.d.ts +33 -0
- package/src/dxf-system/components/Variable.d.ts +41 -0
- package/src/dxf-system/index.d.ts +2 -0
- package/src/dxf-system/plugins/editor/Command/ClippingLine.d.ts +30 -0
- package/src/dxf-system/plugins/editor/Command/Command.d.ts +346 -0
- package/src/dxf-system/plugins/editor/Command/DefaultCommand.d.ts +56 -0
- package/src/dxf-system/plugins/editor/Command/DeleteSelectLine.d.ts +25 -0
- package/src/dxf-system/plugins/editor/Command/DrawBalconyRailing.d.ts +12 -0
- package/src/dxf-system/plugins/editor/Command/DrawBeam.d.ts +12 -0
- package/src/dxf-system/plugins/editor/Command/DrawDoorLine.d.ts +9 -0
- package/src/dxf-system/plugins/editor/Command/DrawHole.d.ts +67 -0
- package/src/dxf-system/plugins/editor/Command/DrawLine.d.ts +41 -0
- package/src/dxf-system/plugins/editor/Command/DrawPillar.d.ts +12 -0
- package/src/dxf-system/plugins/editor/Command/DrawWindow.d.ts +12 -0
- package/src/dxf-system/plugins/editor/Command/ManualDistance.d.ts +23 -0
- package/src/dxf-system/plugins/editor/Command/MergeLine.d.ts +33 -0
- package/src/dxf-system/plugins/editor/Command/PointDrag/index.d.ts +38 -0
- package/src/dxf-system/plugins/editor/Command/PointDrag/modifyDoor.d.ts +40 -0
- package/src/dxf-system/plugins/editor/Command/PointDrag/modifyLine.d.ts +34 -0
- package/src/dxf-system/plugins/editor/Command/PointDrag/modifyWindow.d.ts +25 -0
- package/src/dxf-system/plugins/editor/Command/PropertiesPanel.d.ts +33 -0
- package/src/dxf-system/plugins/editor/Command/RayDistance.d.ts +23 -0
- package/src/dxf-system/plugins/editor/Command/SelectAll.d.ts +30 -0
- package/src/dxf-system/plugins/editor/Command/TwoLineConnectionLine.d.ts +33 -0
- package/src/dxf-system/plugins/editor/Command/TwoPointConnection.d.ts +33 -0
- package/src/dxf-system/plugins/editor/Command/VerticalCorr.d.ts +66 -0
- package/src/dxf-system/plugins/editor/Command/VerticalCorrContinue.d.ts +35 -0
- package/src/dxf-system/plugins/editor/Command/ViewAngle.d.ts +21 -0
- package/src/dxf-system/plugins/editor/Editor.d.ts +56 -0
- package/src/dxf-system/plugins/editor/RenderManager.d.ts +101 -0
- package/src/dxf-system/plugins/editor/index.d.ts +9 -0
- package/src/dxf-system/plugins/editor/pages/EditorTool/EditorTool.vue.d.ts +7 -0
- package/src/dxf-system/plugins/editor/pages/EditorTool/EditorToolContent.vue.d.ts +7 -0
- package/src/dxf-system/plugins/editor/pages/PropertiesPanel.vue.d.ts +18 -0
- package/src/dxf-system/plugins/editor/pages/components/Button.vue.d.ts +17 -0
- package/src/dxf-system/plugins/editor/pages/components/Input.vue.d.ts +13 -0
- package/src/dxf-system/plugins/editor/pages/components/ToolToggle.vue.d.ts +20 -0
- package/src/dxf-system/plugins/editor/type.d.ts +11 -0
- package/src/dxf-system/plugins/editor/us-service/DragControlPoint.d.ts +48 -0
- package/src/dxf-system/plugins/editor/us-service/LineSelector.d.ts +44 -0
- package/src/dxf-system/plugins/editor/us-service/PointerFollowMove.d.ts +86 -0
- package/src/dxf-system/plugins/editor/us-service/SnapController.d.ts +32 -0
- package/src/dxf-system/plugins/editor/utils/Wall2D.d.ts +10 -0
- package/src/dxf-system/plugins/model3d/components/DxfLineModel.d.ts +14 -0
- package/src/dxf-system/plugins/model3d/components/WhiteModel.d.ts +61 -0
- package/src/dxf-system/plugins/model3d/components/index.d.ts +2 -0
- package/src/dxf-system/plugins/model3d/index.d.ts +11 -0
- package/src/dxf-system/plugins/renderer/components/DomContainer.d.ts +13 -0
- package/src/dxf-system/plugins/renderer/components/DomEventRegister.d.ts +116 -0
- package/src/dxf-system/plugins/renderer/components/EventInput.d.ts +74 -0
- package/src/dxf-system/plugins/renderer/components/ModelDataRender.d.ts +13 -0
- package/src/dxf-system/plugins/renderer/components/Renderer.d.ts +100 -0
- package/src/dxf-system/plugins/renderer/components/index.d.ts +5 -0
- package/src/dxf-system/plugins/renderer/index.d.ts +13 -0
- package/src/dxf-system/type.d.ts +218 -0
- package/src/dxf-system/utils/BayWindowHelper.d.ts +58 -0
- package/src/dxf-system/utils/BoundExt.d.ts +51 -0
- package/src/dxf-system/utils/DoorFind.d.ts +44 -0
- package/src/dxf-system/utils/DoubleWallFinder.d.ts +24 -0
- package/src/dxf-system/utils/HeightQuery.d.ts +12 -0
- package/src/dxf-system/utils/LineGroupType.d.ts +125 -0
- package/src/dxf-system/utils/LoadModel.d.ts +7 -0
- package/src/dxf-system/utils/RunJianPipeline.d.ts +92 -0
- package/src/dxf-system/utils/SceneAutoGenerat.d.ts +42 -0
- package/src/dxf-system/utils/ThreeVJiaPipeline.d.ts +154 -0
- package/src/dxf-system/utils/WallGroupManager.d.ts +27 -0
- package/src/dxf-system/utils/WallHole.d.ts +134 -0
- package/src/dxf-system/utils/WallHoleDrawData.d.ts +31 -0
- package/src/dxf-system/utils/ZHouseMockData.d.ts +127 -0
- package/src/dxf-system/utils/cad/DxfDataPlugin.d.ts +20 -0
- package/src/dxf-system/utils/cad/DxfDrawPlugin.d.ts +13 -0
- package/src/dxf-system/utils/cad/draw-data.d.ts +43 -0
- package/src/dxf-system/utils/cad/draw-dxf-image.d.ts +2 -0
- package/src/dxf-system/utils/cad/draw-dxf-string.d.ts +3 -0
- package/src/dxf-system/utils/cad/index.d.ts +143 -0
- package/src/dxf-system/utils/clipping-double-wall.d.ts +7 -0
- package/src/dxf-system/utils/draw-helper.d.ts +6 -0
- package/src/dxf-system/utils/find-discrete.d.ts +26 -0
- package/src/dxf-system/utils/find-rooms.d.ts +16 -0
- package/src/dxf-system/utils/get-win-draw-data.d.ts +18 -0
- package/src/dxf-system/utils/index.d.ts +8 -0
- package/src/dxf-system/utils/line-pipeline/builtin/axis-align-corr.d.ts +16 -0
- package/src/dxf-system/utils/line-pipeline/builtin/beam-support-line.d.ts +3 -0
- package/src/dxf-system/utils/line-pipeline/builtin/bound-ext.d.ts +8 -0
- package/src/dxf-system/utils/line-pipeline/builtin/build-group/bay-window.d.ts +7 -0
- package/src/dxf-system/utils/line-pipeline/builtin/build-group/double-wall.d.ts +6 -0
- package/src/dxf-system/utils/line-pipeline/builtin/build-group/index.d.ts +7 -0
- package/src/dxf-system/utils/line-pipeline/builtin/door-space-handle.d.ts +5 -0
- package/src/dxf-system/utils/line-pipeline/builtin/door-to-hole.d.ts +9 -0
- package/src/dxf-system/utils/line-pipeline/builtin/double-wall-alignment.d.ts +7 -0
- package/src/dxf-system/utils/line-pipeline/builtin/index.d.ts +39 -0
- package/src/dxf-system/utils/line-pipeline/builtin/init.d.ts +8 -0
- package/src/dxf-system/utils/line-pipeline/builtin/remove-room-sundries.d.ts +3 -0
- package/src/dxf-system/utils/line-pipeline/builtin/remove-short-double-wall.d.ts +6 -0
- package/src/dxf-system/utils/line-pipeline/builtin/wall-height-handle.d.ts +8 -0
- package/src/dxf-system/utils/line-pipeline/index.d.ts +22 -0
- package/src/dxf-system/utils/remove-dangline.d.ts +7 -0
- package/src/dxf-system/utils/tools.d.ts +91 -0
- package/src/index.css +1 -0
- package/src/index.js +1 -0
- package/src/index2.js +1 -0
- package/src/index3.js +1 -0
- package/src/main.d.ts +0 -0
- package/src/pages/CubeView.vue.d.ts +4 -0
- package/src/pages/DxfPreview.vue.d.ts +9 -0
- package/src/pages/Editor.vue.d.ts +8 -0
- package/src/pages/ExportGLB.vue.d.ts +2 -0
- package/src/pages/ImagePreview.vue.d.ts +9 -0
- package/src/pages/ModelView.vue.d.ts +11 -0
- package/src/pages/Setting.vue.d.ts +6 -0
- package/src/pages/Todo.vue.d.ts +2 -0
- package/src/pages/WallView.vue.d.ts +9 -0
- package/src/pages/WindowManager.vue.d.ts +2 -0
- package/src/pages/buildJson.vue.d.ts +4 -0
- package/src/pages/modelCarrier/index.vue.d.ts +4 -0
- package/src/router/index.d.ts +2 -0
- package/src/utils/EventDispatcher.d.ts +18 -0
- package/src/utils/algorithms/AlignToParallelSegments.d.ts +25 -0
- package/src/utils/algorithms/AxisAlignCorr.d.ts +38 -0
- package/src/utils/algorithms/Box2.d.ts +96 -0
- package/src/utils/algorithms/CheckPointCloudContinuity.d.ts +63 -0
- package/src/utils/algorithms/ConstraintSystem.d.ts +17 -0
- package/src/utils/algorithms/ConvexHullGraham.d.ts +16 -0
- package/src/utils/algorithms/Debouncing.d.ts +10 -0
- package/src/utils/algorithms/LineIndexGenerator.d.ts +12 -0
- package/src/utils/algorithms/LineQueryer.d.ts +42 -0
- package/src/utils/algorithms/LineSegment.d.ts +258 -0
- package/src/utils/algorithms/LineSegmentSpatialHash.d.ts +86 -0
- package/src/utils/algorithms/LineSegmentUtils.d.ts +185 -0
- package/src/utils/algorithms/Map.d.ts +38 -0
- package/src/utils/algorithms/MaxiCircles.d.ts +15 -0
- package/src/utils/algorithms/MiniCircles.d.ts +57 -0
- package/src/utils/algorithms/OBB.d.ts +30 -0
- package/src/utils/algorithms/PCSparseOctree.d.ts +56 -0
- package/src/utils/algorithms/Pipeline.d.ts +20 -0
- package/src/utils/algorithms/Point.d.ts +271 -0
- package/src/utils/algorithms/PointSpatialHash.d.ts +149 -0
- package/src/utils/algorithms/PointUtils.d.ts +47 -0
- package/src/utils/algorithms/Polygon.d.ts +164 -0
- package/src/utils/algorithms/PolygonUtils.d.ts +9 -0
- package/src/utils/algorithms/Quadtree.d.ts +89 -0
- package/src/utils/algorithms/Rectangle.d.ts +62 -0
- package/src/utils/algorithms/UndirectedGraph.d.ts +124 -0
- package/src/utils/algorithms/UnionFindSet.d.ts +12 -0
- package/src/utils/algorithms/ccw.d.ts +2 -0
- package/src/utils/algorithms/lazy.d.ts +14 -0
- package/src/utils/algorithms/precision.d.ts +3 -0
- package/src/utils/algorithms/stepElimination.d.ts +6 -0
- package/src/utils/algorithms/uuid.d.ts +1 -0
- package/src/utils/command/CommandFlow.d.ts +45 -0
- package/src/utils/command/CommandSystem.d.ts +96 -0
- package/src/utils/command/index.d.ts +2 -0
- package/src/utils/decorators/measure-time.d.ts +5 -0
- package/src/utils/ecs/Component.d.ts +18 -0
- package/src/utils/ecs/Container.d.ts +47 -0
- package/src/utils/ecs/index.d.ts +4 -0
- package/src/utils/geometry-manager/GeometryManager.d.ts +2 -0
- package/src/utils/index.d.ts +25 -0
- package/src/utils/modelScenario/bayWindow.d.ts +35 -0
- package/src/utils/modelScenario/scenario.d.ts +92 -0
- package/src/utils/three-object-3d/ExtrudeMesh.d.ts +11 -0
- package/src/utils/three-object-3d/LineAlignmentGuide.d.ts +20 -0
- package/src/utils/three-object-3d/Lines.d.ts +25 -0
- package/src/utils/three-object-3d/Lines2.d.ts +22 -0
- package/src/utils/three-object-3d/Shape2D.d.ts +61 -0
- package/src/utils/tools/GCHandle.d.ts +12 -0
- package/src/utils/tools/Gltf.d.ts +7 -0
- package/src/utils/tools/SnapLine.d.ts +19 -0
- package/src/utils/tools/StorageHelper.d.ts +8 -0
- package/src/utils/tools/clone-user-data.d.ts +7 -0
- package/src/utils/tools/create-html.d.ts +9 -0
- package/src/utils/tools/create-promise.d.ts +5 -0
- package/src/utils/tools/createVueApp.d.ts +1 -0
- package/src/utils/tools/download.d.ts +1 -0
- package/src/utils/tools/get-json.d.ts +5 -0
- package/src/utils/tools/include.d.ts +1 -0
- package/src/utils/tools/is-mobile.d.ts +2 -0
- package/src/utils/tools/repetitive-task.d.ts +1 -0
- package/src/utils/tools/selectLocal-file.d.ts +7 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
|
|
2
|
+
import { LineSegment } from '../algorithms/LineSegment';
|
|
3
|
+
import { LineUserData } from '../../dxf-system/type';
|
|
4
|
+
import { Brush } from 'three-bvh-csg';
|
|
5
|
+
import { Point } from '../algorithms/Point';
|
|
6
|
+
import * as THREE from 'three';
|
|
7
|
+
export declare const DEFAULT_WALL_HALF_WIDTH: number;
|
|
8
|
+
export default class Scenario {
|
|
9
|
+
camera: THREE.PerspectiveCamera;
|
|
10
|
+
scene: any;
|
|
11
|
+
renderer: THREE.WebGLRenderer;
|
|
12
|
+
controls: OrbitControls;
|
|
13
|
+
axesHelper: THREE.AxesHelper;
|
|
14
|
+
group: any;
|
|
15
|
+
closedArray: any;
|
|
16
|
+
lines: LineSegment<LineUserData>[];
|
|
17
|
+
singleLines: any;
|
|
18
|
+
doorGroup: any;
|
|
19
|
+
texture: any;
|
|
20
|
+
numdu: number;
|
|
21
|
+
color: number;
|
|
22
|
+
doorModely: any;
|
|
23
|
+
doubleDoorModely: any;
|
|
24
|
+
windowModely: any;
|
|
25
|
+
balconyModely: any;
|
|
26
|
+
doorHeight: number;
|
|
27
|
+
doorGroundHeight: number;
|
|
28
|
+
WindowHeight: number;
|
|
29
|
+
WindowGroundHeight: number;
|
|
30
|
+
CabinetModel: any;
|
|
31
|
+
tableModel: any;
|
|
32
|
+
chairModel: any;
|
|
33
|
+
switchModel: any;
|
|
34
|
+
socketModel: any;
|
|
35
|
+
waterCoolerModel: any;
|
|
36
|
+
height: any;
|
|
37
|
+
expandedList: any;
|
|
38
|
+
wallHeight: any;
|
|
39
|
+
box: any;
|
|
40
|
+
singleLineWallValue: any;
|
|
41
|
+
liangNum: number;
|
|
42
|
+
zhuNum: number;
|
|
43
|
+
poortNum: number;
|
|
44
|
+
doorNum: number;
|
|
45
|
+
windowNum: number;
|
|
46
|
+
windowForm: number;
|
|
47
|
+
private static _instance?;
|
|
48
|
+
static get Instance(): Scenario | undefined;
|
|
49
|
+
constructor(scene: THREE.Scene, camera: THREE.PerspectiveCamera, renderer: THREE.WebGLRenderer, controls: OrbitControls);
|
|
50
|
+
drawGraphics(lines: LineSegment[], z: number, trajectoryJson: any): Promise<any>;
|
|
51
|
+
splitProcessData(lines: LineSegment[], texture: THREE.DataTexture): void;
|
|
52
|
+
drawTheModel(data: any, num: number, index: number | string, wallHeight: number, originalData?: any): THREE.Mesh<THREE.ExtrudeGeometry, THREE.MeshStandardMaterial, THREE.Object3DEventMap> | null;
|
|
53
|
+
executionOffset(data: any, index: number, wallHeight: number, winDraw?: any): THREE.Mesh<THREE.ExtrudeGeometry, THREE.MeshStandardMaterial, THREE.Object3DEventMap> | null | undefined;
|
|
54
|
+
windowTreatment(dblWin: any, mesh: any, wallHeight: number): Brush;
|
|
55
|
+
windowTreatment1(dblWin: any, mesh: any, wallHeight: number): Brush;
|
|
56
|
+
TheHandlingOfTheDoor1(data: LineSegment<LineUserData>): any[];
|
|
57
|
+
TheHandlingOfTheDoor(data: LineSegment<LineUserData>[]): void;
|
|
58
|
+
doorCenterOffset(distanceFromB: number, point: any, pointc: THREE.Vector3): THREE.Vector3;
|
|
59
|
+
installWindows(data: any, index: string): void;
|
|
60
|
+
singleLineWallMountedDoor(data: any, index: string): void;
|
|
61
|
+
installBalconys(data: any, index: string): void;
|
|
62
|
+
installCabinet(): void;
|
|
63
|
+
installTable(): void;
|
|
64
|
+
installchair(): void;
|
|
65
|
+
winHoleOpening(data: any, mesh: any, winGroundHeight?: number, Height?: number): Brush;
|
|
66
|
+
doorHoleOpening(wallHeight: number, data: any, data1: any, groundHeight?: number, Height?: number, distance?: number, center?: THREE.Vector3, angleRad?: any, index?: string, doorList?: LineSegment): void;
|
|
67
|
+
angleToXAxisDegrees(x1: number, y1: number, x2: number, y2: number, wide: number, cd: boolean): number;
|
|
68
|
+
xinLine(x: number, y: number, point: THREE.Vector3 | Point, wallHeight: number): THREE.Vector3[];
|
|
69
|
+
expandRectangleAlongLongSide(p1: THREE.Vector3, p2: THREE.Vector3, p3: THREE.Vector3, p4: THREE.Vector3, expandAmount?: number): THREE.Vector3[];
|
|
70
|
+
expandRectangleSimple(p1: THREE.Vector3, p2: THREE.Vector3, p3: THREE.Vector3, p4: THREE.Vector3, expandAmount?: number): THREE.Vector3[];
|
|
71
|
+
xinLine1(x: number, y: number, pointa: THREE.Vector3, pointb: THREE.Vector3, num: number, wallHeight: number): any[];
|
|
72
|
+
createParallelepipedFromBase(points: any, height: number): THREE.ExtrudeGeometry;
|
|
73
|
+
correctionSorting(bitem: any): {
|
|
74
|
+
dian: THREE.Vector3;
|
|
75
|
+
zhong: string;
|
|
76
|
+
wallHeight: any;
|
|
77
|
+
shared: boolean;
|
|
78
|
+
}[];
|
|
79
|
+
balconyTreatment(bayWinList: any): void;
|
|
80
|
+
overhangWallOffset(data: any, index: string, height: number): THREE.Mesh<THREE.ExtrudeGeometry, THREE.MeshStandardMaterial, THREE.Object3DEventMap> | null;
|
|
81
|
+
dashedLineCeilingTreatment(data: any, index: number | string, item: any): THREE.Mesh<THREE.ExtrudeGeometry, THREE.MeshStandardMaterial, THREE.Object3DEventMap> | null;
|
|
82
|
+
overallTreatmentOfSingleLineWalls(data: any): void;
|
|
83
|
+
generateBeamModel(line: any): THREE.Mesh<THREE.ExtrudeGeometry, THREE.MeshStandardMaterial, THREE.Object3DEventMap>;
|
|
84
|
+
pierceTheBeam(model: any, line: LineSegment, wall: any, num: number): Brush;
|
|
85
|
+
generateColumnModel(data: any, lines: any, Height: number): THREE.Mesh<THREE.ExtrudeGeometry, THREE.MeshStandardMaterial, THREE.Object3DEventMap> | null;
|
|
86
|
+
addThePassModel(line: LineSegment): void;
|
|
87
|
+
createAPlane(lines: LineSegment<Record<string, any>>[], menList: LineSegment<Record<string, any>>[]): void;
|
|
88
|
+
modelLoader(): Promise<void>;
|
|
89
|
+
windowModelLoader(): Promise<void>;
|
|
90
|
+
balconyModelLoader(): Promise<void>;
|
|
91
|
+
damian(): void;
|
|
92
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Vector2 } from 'three';
|
|
2
|
+
import { Point } from '../algorithms/Point';
|
|
3
|
+
import * as THREE from "three";
|
|
4
|
+
type IPoint = Vector2 | Point;
|
|
5
|
+
export declare class ExtrudeMesh extends THREE.Mesh {
|
|
6
|
+
geometry: THREE.ExtrudeGeometry;
|
|
7
|
+
options?: THREE.ExtrudeGeometryOptions;
|
|
8
|
+
constructor(points: IPoint[], options?: THREE.ExtrudeGeometryOptions, material?: THREE.Material | THREE.Material[] | undefined);
|
|
9
|
+
setPoints(points: IPoint[], options?: THREE.ExtrudeGeometryOptions | undefined): void;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Vector3 } from 'three';
|
|
2
|
+
import { Lines } from './Lines';
|
|
3
|
+
import { Point } from '../algorithms/Point';
|
|
4
|
+
import { LineSegment } from '../algorithms/LineSegment';
|
|
5
|
+
import { CSS2DObject } from 'three/addons/renderers/CSS2DRenderer.js';
|
|
6
|
+
import type * as CSS from "csstype";
|
|
7
|
+
export declare class LineAlignmentGuide extends Lines {
|
|
8
|
+
start: Vector3;
|
|
9
|
+
end: Vector3;
|
|
10
|
+
constructor();
|
|
11
|
+
private line?;
|
|
12
|
+
set(line?: LineSegment, points?: Point[]): void;
|
|
13
|
+
/**
|
|
14
|
+
* 创建文本
|
|
15
|
+
* @param text
|
|
16
|
+
* @param pos
|
|
17
|
+
* @param style
|
|
18
|
+
*/
|
|
19
|
+
createText(text: any, pos?: Point | Vector3, style?: CSS.Properties): CSS2DObject;
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
export declare class Lines<TMaterial extends THREE.LineBasicMaterial | THREE.LineDashedMaterial = THREE.LineBasicMaterial, TEventMap extends THREE.Object3DEventMap = THREE.Object3DEventMap> extends THREE.LineSegments<THREE.BufferGeometry, TMaterial, TEventMap & {
|
|
3
|
+
updateGeometry: {
|
|
4
|
+
geometry: THREE.BufferGeometry;
|
|
5
|
+
};
|
|
6
|
+
}> {
|
|
7
|
+
geometry: THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>;
|
|
8
|
+
points: THREE.Vector3[];
|
|
9
|
+
pointsObject3D: THREE.Points;
|
|
10
|
+
continuous: boolean;
|
|
11
|
+
constructor(points?: THREE.Vector3[], color?: number);
|
|
12
|
+
addPoint(...points: THREE.Vector3[]): void;
|
|
13
|
+
setPoint(...points: THREE.Vector3[]): void;
|
|
14
|
+
setColor(color: number): void;
|
|
15
|
+
setOpacity(opacity: number): void;
|
|
16
|
+
getCenter(startIndex: number, endIndex?: number): THREE.Vector3;
|
|
17
|
+
getDistance(startIndex: number, endIndex?: number): number;
|
|
18
|
+
private _timer;
|
|
19
|
+
private updateGeometry;
|
|
20
|
+
}
|
|
21
|
+
export declare class LineDashed extends Lines<THREE.LineDashedMaterial> {
|
|
22
|
+
constructor(points?: THREE.Vector3[], color?: number, dashSize?: number, gapSize?: number);
|
|
23
|
+
setDashSize(dashSize: number): void;
|
|
24
|
+
setGapSize(gapSize: number): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Line2 as Line2_ } from 'three/examples/jsm/lines/Line2.js';
|
|
2
|
+
import { LineMaterialParameters } from 'three/examples/jsm/lines/LineMaterial.js';
|
|
3
|
+
import * as THREE from "three";
|
|
4
|
+
export declare class Lines2 extends Line2_ {
|
|
5
|
+
points: THREE.Vector3[];
|
|
6
|
+
continuous: boolean;
|
|
7
|
+
constructor(points?: THREE.Vector3[], color?: number, opt?: LineMaterialParameters);
|
|
8
|
+
addPoint(...points: THREE.Vector3[]): void;
|
|
9
|
+
setPoint(...points: THREE.Vector3[]): void;
|
|
10
|
+
setColor(color: number): void;
|
|
11
|
+
setOpacity(opacity: number): void;
|
|
12
|
+
setDashSize(dashSize: number): void;
|
|
13
|
+
setLinewidth(linewidth: number): void;
|
|
14
|
+
setGapSize(gapSize: number): void;
|
|
15
|
+
getCenter(startIndex: number, endIndex?: number): THREE.Vector3;
|
|
16
|
+
getDistance(startIndex: number, endIndex?: number): number;
|
|
17
|
+
private _timer;
|
|
18
|
+
private updateGeometry;
|
|
19
|
+
}
|
|
20
|
+
export declare class LineDashed2 extends Lines2 {
|
|
21
|
+
constructor(points?: THREE.Vector3[], color?: number, dashSize?: number, gapSize?: number, opt?: LineMaterialParameters);
|
|
22
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Rectangle } from '../algorithms/Rectangle';
|
|
2
|
+
import * as THREE from "three";
|
|
3
|
+
export declare class Shape2D extends THREE.Mesh {
|
|
4
|
+
geometry: THREE.BufferGeometry;
|
|
5
|
+
material: THREE.Material | THREE.Material[];
|
|
6
|
+
constructor(material?: THREE.Material | THREE.Material[]);
|
|
7
|
+
/**
|
|
8
|
+
* 子类实现
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* 设置顶点
|
|
12
|
+
*/
|
|
13
|
+
protected setPositions(vertices: ArrayLike<number>): void;
|
|
14
|
+
/**
|
|
15
|
+
* 设置 UV
|
|
16
|
+
*/
|
|
17
|
+
protected setUVs(uvs: ArrayLike<number>): void;
|
|
18
|
+
/**
|
|
19
|
+
* 设置索引
|
|
20
|
+
*/
|
|
21
|
+
protected setIndices(indices: ArrayLike<number>): void;
|
|
22
|
+
/**
|
|
23
|
+
* 从矩形创建
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* 从矩形创建
|
|
27
|
+
*/
|
|
28
|
+
fromRectangle(rect: Rectangle): this;
|
|
29
|
+
/**
|
|
30
|
+
* 设置贴图
|
|
31
|
+
*/
|
|
32
|
+
setTexture(map: THREE.Texture | string | HTMLImageElement | HTMLCanvasElement): Promise<THREE.Texture>;
|
|
33
|
+
/**
|
|
34
|
+
* 设置颜色
|
|
35
|
+
*/
|
|
36
|
+
setColor(color: THREE.ColorRepresentation): this;
|
|
37
|
+
/**
|
|
38
|
+
* 设置透明度
|
|
39
|
+
*/
|
|
40
|
+
setOpacity(opacity: number): this;
|
|
41
|
+
/**
|
|
42
|
+
* 获取包围盒
|
|
43
|
+
*/
|
|
44
|
+
getBounds(): THREE.Box3;
|
|
45
|
+
/**
|
|
46
|
+
* 获取尺寸
|
|
47
|
+
*/
|
|
48
|
+
getSize(): THREE.Vector3;
|
|
49
|
+
/**
|
|
50
|
+
* 获取中心点
|
|
51
|
+
*/
|
|
52
|
+
getCenter(): THREE.Vector3;
|
|
53
|
+
/**
|
|
54
|
+
* 清空 geometry
|
|
55
|
+
*/
|
|
56
|
+
clearGeometry(): this;
|
|
57
|
+
/**
|
|
58
|
+
* 销毁
|
|
59
|
+
*/
|
|
60
|
+
dispose(): void;
|
|
61
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Key = symbol | number | string;
|
|
2
|
+
export declare class GCHandler {
|
|
3
|
+
private static readonly map;
|
|
4
|
+
private static readonly registry;
|
|
5
|
+
static add<T = any>(target: object, opt: {
|
|
6
|
+
key?: Key;
|
|
7
|
+
value?: T;
|
|
8
|
+
onGc: (value: T) => void;
|
|
9
|
+
}): void;
|
|
10
|
+
static remove(key: Key): void;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
|
|
2
|
+
import { GLTFExporter } from 'three/addons/exporters/GLTFExporter.js';
|
|
3
|
+
export declare function GltfInit(): Promise<boolean>;
|
|
4
|
+
export declare const gltf: {
|
|
5
|
+
readonly GLTFLoader: typeof GLTFLoader;
|
|
6
|
+
readonly GLTFExporter: typeof GLTFExporter;
|
|
7
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type PointCluster = {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
z: number;
|
|
5
|
+
}[];
|
|
6
|
+
export type LineData = {
|
|
7
|
+
start: {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
};
|
|
11
|
+
end: {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
15
|
+
originalPoints: PointCluster;
|
|
16
|
+
};
|
|
17
|
+
export declare class SnapLine {
|
|
18
|
+
nearestPointCluster(lineDatas: LineData[], referenceLineData: LineData[]): LineData[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class StorageHelper {
|
|
2
|
+
static get(key: string, defaultValue?: any): any;
|
|
3
|
+
static getBoolean(key: string, defaultValue?: boolean): boolean;
|
|
4
|
+
static getNumber(key: string, defaultValue?: number): number;
|
|
5
|
+
static getJson<T = any>(key: string, defaultValue: T): any;
|
|
6
|
+
static set(key: string, vaalue: any): void;
|
|
7
|
+
static setJson<T = any>(key: string, value: T): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Properties } from 'csstype';
|
|
2
|
+
interface IOption {
|
|
3
|
+
style?: Properties;
|
|
4
|
+
text?: string;
|
|
5
|
+
html?: string;
|
|
6
|
+
parent?: HTMLElement;
|
|
7
|
+
}
|
|
8
|
+
export declare function createHtml<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions & IOption): HTMLElementTagNameMap[K];
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createVueApp(com: any, props?: any, parent?: HTMLElement): () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function download(path: string, file: any): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function include(path: string, exportDefault?: boolean): Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function repetitiveTask(count: number, callfun: (index: number) => void): void;
|