@realsee/dnalogel 3.51.0 → 3.52.1
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/CHANGELOG.md +15 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +9 -9
- package/dist/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
- package/dist/PanoMeasurePlugin/Model/area.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
- package/dist/PanoMeasurePlugin/typings/data.d.ts +1 -2
- package/dist/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
- package/dist/Sculpt/Meshes/Box.d.ts +6 -24
- package/dist/Sculpt/Meshes/Circle.d.ts +0 -4
- package/dist/Sculpt/Meshes/Cylinder.d.ts +0 -1
- package/dist/Sculpt/Meshes/Line.d.ts +9 -22
- package/dist/Sculpt/Meshes/Polygon.d.ts +1 -5
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Prism.d.ts +29 -10
- package/dist/Sculpt/Meshes/Rectangle.d.ts +1 -5
- package/dist/Sculpt/Objects/Base/index.d.ts +3 -3
- package/dist/Sculpt/Objects/Box/index.d.ts +7 -2
- package/dist/Sculpt/Objects/Circle/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Cylinder/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Polyline/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Prism/index.d.ts +3 -0
- package/dist/Sculpt/Objects/Rectangle/index.d.ts +13 -2
- package/dist/Sculpt/index.d.ts +10 -19
- package/dist/Sculpt/typings/style.d.ts +6 -0
- package/dist/Sculpt/utils/export.d.ts +24 -18
- package/dist/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
- package/dist/index.cjs.js +88 -3009
- package/dist/index.d.ts +79 -1
- package/dist/index.js +35141 -54254
- package/dist/index.umd.js +81 -3002
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
- package/dist/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
- package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
- package/dist/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
- package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
- package/dist/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
- package/dist/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
- package/dist/shared-utils/five/FiveLine.d.ts +18 -14
- package/dist/shared-utils/index.d.ts +0 -1
- package/dist/shared-utils/math/planimetry.d.ts +1 -1
- package/dist/shared-utils/tag.d.ts +5 -7
- package/dist/shared-utils/three/boundingBox.d.ts +14 -20
- package/dist/shared-utils/three/core/LineGeometry.d.ts +13 -0
- package/dist/shared-utils/three/core/PrismGeometry.d.ts +14 -0
- package/dist/shared-utils/three/geometryUtil.d.ts +8 -0
- package/dist/shared-utils/three/getNormal.d.ts +5 -2
- package/libs/AreaMakerPlugin/Controller.js +47 -100
- package/libs/AreaMakerPlugin/index.js +12 -65
- package/libs/AreaMakerPlugin/utils/Item.js +102 -157
- package/libs/CSS3DRenderPlugin/Controller.js +45 -93
- package/libs/CSS3DRenderPlugin/index.js +15 -63
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +51 -106
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +79 -131
- package/libs/CruisePlugin/BaseController.js +90 -143
- package/libs/CruisePlugin/Move.js +39 -83
- package/libs/CruisePlugin/Work.js +52 -96
- package/libs/CruisePlugin/index.js +23 -67
- package/libs/CurrentPanoImagePlugin/Controller.js +88 -141
- package/libs/CurrentPanoImagePlugin/index.js +11 -64
- package/libs/GuideLinePlugin/Controller.js +13 -57
- package/libs/GuideLinePlugin/GuideLineItem.js +20 -64
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -8
- package/libs/GuideLinePlugin/GuideLineModeItem.js +15 -59
- package/libs/GuideLinePlugin/index.js +23 -67
- package/libs/ModelMakerPlugin/Controller.js +125 -165
- package/libs/ModelMakerPlugin/index.js +23 -63
- package/libs/ModelMakerPlugin/item/baseItem.js +2 -3
- package/libs/ModelMakerPlugin/item/boxItem.js +2 -3
- package/libs/ModelMakerPlugin/item/polygonItem.js +6 -7
- package/libs/ModelMakerPlugin/item/prismItem.js +2 -3
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +2 -3
- package/libs/ModelTVVideoPlugin/Plugin.js +49 -97
- package/libs/ModelTVVideoPlugin/index.js +8 -56
- package/libs/Object3DHelperPlugin/Controller.d.ts +9 -9
- package/libs/Object3DHelperPlugin/Controller.js +105 -92
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +4 -2
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +35 -30
- package/libs/Object3DHelperPlugin/index.js +15 -30
- package/libs/PanoCompassPlugin/Controller.js +46 -93
- package/libs/PanoCompassPlugin/index.js +17 -64
- package/libs/PanoCursorRaycasterPlugin/index.js +4 -3
- package/libs/PanoDoorLabelPlugin/BaseController.js +27 -80
- package/libs/PanoDoorLabelPlugin/Controller.js +80 -133
- package/libs/PanoDoorLabelPlugin/index.js +11 -64
- package/libs/PanoMeasurePlugin/Components/Controller0.js +79 -128
- package/libs/PanoMeasurePlugin/Components/Controller1.js +92 -141
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +73 -122
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +72 -121
- package/libs/PanoMeasurePlugin/Controller/index.js +89 -135
- package/libs/PanoMeasurePlugin/Model/area.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/area.js +25 -74
- package/libs/PanoMeasurePlugin/Model/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/line.js +1 -0
- package/libs/PanoMeasurePlugin/Model/polygon.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/polygon.js +7 -7
- package/libs/PanoMeasurePlugin/Model/polyline.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -56
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +17 -66
- package/libs/PanoMeasurePlugin/index.js +18 -64
- package/libs/PanoMeasurePlugin/typings/data.d.ts +1 -2
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +5 -59
- package/libs/PanoMeasurePlugin/utils/line.js +3 -2
- package/libs/PanoRulerProPlugin/Controller.js +34 -89
- package/libs/PanoRulerProPlugin/RulerItems.js +92 -147
- package/libs/PanoRulerProPlugin/index.js +10 -65
- package/libs/PanoSpatialTagPlugin/Plugin.js +130 -178
- package/libs/PanoSpatialTagPlugin/index.js +6 -54
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +61 -116
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +138 -193
- package/libs/PanoTagPlugin/Components/Tag/index.js +140 -194
- package/libs/PanoTagPlugin/Components/TagContainer.js +58 -112
- package/libs/PanoTagPlugin/Components/TagItem.js +137 -191
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +109 -164
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +22 -76
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +33 -87
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +39 -94
- package/libs/PanoTagPlugin/controller/TagRender.js +18 -62
- package/libs/PanoTagPlugin/controller/TagUtil.js +80 -124
- package/libs/PanoTagPlugin/controller/index.js +37 -81
- package/libs/PanoTagPlugin/index.js +28 -72
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +14 -14
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +22 -77
- package/libs/PanoVideoPlugin/Controller.js +43 -96
- package/libs/PanoVideoPlugin/VideoMeshController.js +64 -119
- package/libs/PanoVideoPlugin/index.js +14 -67
- package/libs/PipelinePlugin/Controller.js +123 -176
- package/libs/PipelinePlugin/index.js +11 -64
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +15 -70
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +3 -58
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +42 -97
- package/libs/Sculpt/Editors/BoxMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/BoxMeshEditor.js +98 -0
- package/libs/Sculpt/Editors/CircleMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/CircleMeshEditor.js +9 -0
- package/libs/Sculpt/Editors/CylinderMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/CylinderMeshEditor.js +41 -0
- package/libs/Sculpt/Editors/PrismMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/PrismMeshEditor.js +43 -0
- package/libs/Sculpt/Editors/RectangleMeshEditor.d.ts +5 -0
- package/libs/Sculpt/Editors/RectangleMeshEditor.js +70 -0
- package/libs/Sculpt/Meshes/Box.d.ts +6 -24
- package/libs/Sculpt/Meshes/Box.js +22 -93
- package/libs/Sculpt/Meshes/Circle.d.ts +0 -4
- package/libs/Sculpt/Meshes/Circle.js +18 -27
- package/libs/Sculpt/Meshes/Cylinder.d.ts +0 -1
- package/libs/Sculpt/Meshes/Cylinder.js +17 -24
- package/libs/Sculpt/Meshes/Line.d.ts +9 -22
- package/libs/Sculpt/Meshes/Line.js +85 -104
- package/libs/Sculpt/Meshes/LineWithDots.js +10 -14
- package/libs/Sculpt/Meshes/Point.js +29 -34
- package/libs/Sculpt/Meshes/Polygon.d.ts +1 -5
- package/libs/Sculpt/Meshes/Polygon.js +40 -53
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Prism.d.ts +29 -10
- package/libs/Sculpt/Meshes/Prism.js +108 -84
- package/libs/Sculpt/Meshes/Rectangle.d.ts +1 -5
- package/libs/Sculpt/Meshes/Rectangle.js +12 -22
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +17 -20
- package/libs/Sculpt/Objects/Base/index.d.ts +3 -3
- package/libs/Sculpt/Objects/Base/index.js +20 -25
- package/libs/Sculpt/Objects/Box/index.d.ts +7 -2
- package/libs/Sculpt/Objects/Box/index.js +72 -60
- package/libs/Sculpt/Objects/Circle/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Circle/index.js +41 -37
- package/libs/Sculpt/Objects/Cylinder/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Cylinder/index.js +66 -62
- package/libs/Sculpt/Objects/Line/Editor.js +8 -10
- package/libs/Sculpt/Objects/Line/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Line/index.js +45 -41
- package/libs/Sculpt/Objects/Point/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Point/index.js +33 -29
- package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Polygon/index.js +67 -63
- package/libs/Sculpt/Objects/Polyline/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Polyline/index.js +46 -42
- package/libs/Sculpt/Objects/Prism/index.d.ts +3 -0
- package/libs/Sculpt/Objects/Prism/index.js +58 -53
- package/libs/Sculpt/Objects/Rectangle/index.d.ts +13 -2
- package/libs/Sculpt/Objects/Rectangle/index.js +143 -81
- package/libs/Sculpt/index.d.ts +10 -19
- package/libs/Sculpt/index.js +105 -107
- package/libs/Sculpt/typings/style.d.ts +6 -0
- package/libs/Sculpt/utils/export.d.ts +24 -18
- package/libs/Sculpt/utils/export.js +52 -19
- package/libs/Sculpt/utils/sortPositionsByCameraPosition.d.ts +5 -0
- package/libs/Sculpt/utils/sortPositionsByCameraPosition.js +9 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +4 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +40 -37
- package/libs/base/BasePlugin.js +10 -15
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +96 -147
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +12 -63
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +53 -105
- package/libs/floorplan/ModelFloorplanPlugin/index.js +11 -63
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +65 -118
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +11 -64
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +54 -106
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +11 -63
- package/libs/floorplan/index.js +0 -5
- package/libs/index.d.ts +79 -1
- package/libs/index.js +229 -215
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +112 -122
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +7 -3
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +60 -39
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +47 -47
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.d.ts +0 -1
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +28 -28
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +3 -1
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +25 -18
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +18 -14
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -0
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +2 -1
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.d.ts +4 -2
- package/libs/shared-utils/Object3DHelper/Helper/ScaleHelper.js +40 -28
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.d.ts +4 -1
- package/libs/shared-utils/Object3DHelper/utils/calculateScaleByCamera.js +4 -4
- package/libs/shared-utils/five/FiveDomEvents.js +88 -88
- package/libs/shared-utils/five/FiveLine.d.ts +18 -14
- package/libs/shared-utils/five/FiveLine.js +31 -13
- package/libs/shared-utils/five/index.js +2 -7
- package/libs/shared-utils/five/lookObject.js +27 -32
- package/libs/shared-utils/index.d.ts +0 -1
- package/libs/shared-utils/index.js +31 -33
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/math/planimetry.d.ts +1 -1
- package/libs/shared-utils/tag.d.ts +5 -7
- package/libs/shared-utils/tag.js +1 -1
- package/libs/shared-utils/three/boundingBox.d.ts +14 -20
- package/libs/shared-utils/three/core/LineGeometry.d.ts +13 -0
- package/libs/shared-utils/three/core/LineGeometry.js +26 -0
- package/libs/shared-utils/three/core/PrismGeometry.d.ts +14 -0
- package/libs/shared-utils/three/core/PrismGeometry.js +42 -0
- package/libs/shared-utils/three/earcut3D.js +5 -5
- package/libs/shared-utils/three/geometryUtil.d.ts +8 -0
- package/libs/shared-utils/three/geometryUtil.js +3 -1
- package/libs/shared-utils/three/getNormal.d.ts +5 -2
- package/libs/shared-utils/three/getNormal.js +6 -5
- package/libs/shared-utils/three/index.js +0 -5
- package/package.json +1 -1
- package/dist/Sculpt/Objects/Box/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Circle/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Prism/Editor.d.ts +0 -5
- package/dist/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
- package/dist/Sculpt/utils/getBetterNormal.d.ts +0 -2
- package/libs/Sculpt/Objects/Box/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Box/Editor.js +0 -44
- package/libs/Sculpt/Objects/Circle/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Circle/Editor.js +0 -9
- package/libs/Sculpt/Objects/Cylinder/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Cylinder/Editor.js +0 -41
- package/libs/Sculpt/Objects/Prism/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Prism/Editor.js +0 -44
- package/libs/Sculpt/Objects/Rectangle/Editor.d.ts +0 -5
- package/libs/Sculpt/Objects/Rectangle/Editor.js +0 -9
- package/libs/Sculpt/utils/getBetterNormal.d.ts +0 -2
- package/libs/Sculpt/utils/getBetterNormal.js +0 -8
- package/libs/vendor/three/build/three.module.js +0 -19336
- package/libs/vendor/three/examples/jsm/lines/LineGeometry.js +0 -28
- package/libs/vendor/three/examples/jsm/lines/LineSegmentsGeometry.js +0 -69
package/libs/Sculpt/index.d.ts
CHANGED
|
@@ -86,15 +86,6 @@ export declare class Sculpt extends Subscribe<Event> {
|
|
|
86
86
|
};
|
|
87
87
|
readonly id: string;
|
|
88
88
|
readonly type: string;
|
|
89
|
-
} | {
|
|
90
|
-
points: [import("..").ArrayPosition, import("..").ArrayPosition, import("..").ArrayPosition];
|
|
91
|
-
style: {
|
|
92
|
-
color: number;
|
|
93
|
-
lineWidth: number;
|
|
94
|
-
lineColor: number;
|
|
95
|
-
};
|
|
96
|
-
id: string;
|
|
97
|
-
type: string;
|
|
98
89
|
} | {
|
|
99
90
|
center: [number, number, number];
|
|
100
91
|
normal: [number, number, number];
|
|
@@ -136,43 +127,43 @@ export declare class Sculpt extends Subscribe<Event> {
|
|
|
136
127
|
/**
|
|
137
128
|
* @description: 开始绘制点
|
|
138
129
|
*/
|
|
139
|
-
createPoint(params
|
|
130
|
+
createPoint(...params: Parameters<Point['create']>): Promise<Point>;
|
|
140
131
|
/**
|
|
141
132
|
* @description: 开始绘制线段
|
|
142
133
|
*/
|
|
143
|
-
createLine(params
|
|
134
|
+
createLine(...params: Parameters<Line['create']>): Promise<Line>;
|
|
144
135
|
/**
|
|
145
136
|
* @deprecated use createLine instead
|
|
146
137
|
*/
|
|
147
|
-
createline(...params:
|
|
138
|
+
createline(...params: Parameters<Line['create']>): Promise<void>;
|
|
148
139
|
/**
|
|
149
140
|
* @description: 开始绘制空间折线
|
|
150
141
|
*/
|
|
151
|
-
createPolyline(params
|
|
142
|
+
createPolyline(...params: Parameters<Polyline['create']>): Promise<Polyline>;
|
|
152
143
|
/**
|
|
153
144
|
* @description: 开始绘制平面多边形
|
|
154
145
|
*/
|
|
155
|
-
createPolygon(params
|
|
146
|
+
createPolygon(...params: Parameters<Polygon['create']>): Promise<Polygon>;
|
|
156
147
|
/**
|
|
157
148
|
* @description: 开始绘制多棱柱
|
|
158
149
|
*/
|
|
159
|
-
createPrism(params
|
|
150
|
+
createPrism(...params: Parameters<Prism['create']>): Promise<Prism>;
|
|
160
151
|
/**
|
|
161
152
|
* @description: 开始绘制矩形
|
|
162
153
|
*/
|
|
163
|
-
createRectangle(params
|
|
154
|
+
createRectangle(...params: Parameters<Rectangle['create']>): Promise<Rectangle>;
|
|
164
155
|
/**
|
|
165
156
|
* @description: 开始绘制圆形
|
|
166
157
|
*/
|
|
167
|
-
createCircle(params
|
|
158
|
+
createCircle(...params: Parameters<Circle['create']>): Promise<Circle>;
|
|
168
159
|
/**
|
|
169
160
|
* @description: 开始绘制圆柱
|
|
170
161
|
*/
|
|
171
|
-
createCylinder(params
|
|
162
|
+
createCylinder(...params: Parameters<Cylinder['create']>): Promise<Cylinder>;
|
|
172
163
|
/**
|
|
173
164
|
* @description: 开始绘制 Box
|
|
174
165
|
*/
|
|
175
|
-
createBox(params
|
|
166
|
+
createBox(...params: Parameters<Box['create']>): Promise<Box>;
|
|
176
167
|
canUndo(): false | void;
|
|
177
168
|
canRedo(): false | void;
|
|
178
169
|
/**
|
package/libs/Sculpt/index.js
CHANGED
|
@@ -1,85 +1,83 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var L = Object.defineProperty, B = Object.defineProperties;
|
|
2
|
+
var U = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var y = Object.getOwnPropertySymbols;
|
|
4
|
+
var _ = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var g = (o, i, e) => i in o ? L(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e, a = (o, i) => {
|
|
6
6
|
for (var e in i || (i = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var c = (
|
|
7
|
+
_.call(i, e) && g(o, e, i[e]);
|
|
8
|
+
if (y)
|
|
9
|
+
for (var e of y(i))
|
|
10
|
+
x.call(i, e) && g(o, e, i[e]);
|
|
11
|
+
return o;
|
|
12
|
+
}, f = (o, i) => B(o, U(i));
|
|
13
|
+
var h = (o, i, e) => (g(o, typeof i != "symbol" ? i + "" : i, e), e);
|
|
14
|
+
var l = (o, i, e) => new Promise((t, r) => {
|
|
15
|
+
var c = (m) => {
|
|
16
16
|
try {
|
|
17
|
-
s(e.next(
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
s(e.next(m));
|
|
18
|
+
} catch (p) {
|
|
19
|
+
r(p);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, n = (m) => {
|
|
22
22
|
try {
|
|
23
|
-
s(e.throw(
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
s(e.throw(m));
|
|
24
|
+
} catch (p) {
|
|
25
|
+
r(p);
|
|
26
26
|
}
|
|
27
|
-
}, s = (
|
|
28
|
-
s((e = e.apply(
|
|
27
|
+
}, s = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(c, n);
|
|
28
|
+
s((e = e.apply(o, i)).next());
|
|
29
29
|
});
|
|
30
|
-
import { globalModules as
|
|
30
|
+
import { globalModules as E } from "./utils/Modules/Global.js";
|
|
31
31
|
import { Subscribe as S } from "../shared-utils/Subscribe.js";
|
|
32
|
-
import { IObject3D as
|
|
32
|
+
import { IObject3D as z } from "../shared-utils/three/IObject3D.js";
|
|
33
33
|
import "../shared-utils/tag.js";
|
|
34
34
|
import "three";
|
|
35
35
|
import "hammerjs";
|
|
36
36
|
import "../shared-utils/three/PointSelector/index.js";
|
|
37
37
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
38
38
|
import "@realsee/five/line";
|
|
39
|
-
import "../
|
|
39
|
+
import { notNil as k } from "../shared-utils/isNil.js";
|
|
40
40
|
import "../shared-utils/three/core/Sphere.js";
|
|
41
41
|
import "animejs";
|
|
42
|
-
import { notNil as H } from "../shared-utils/isNil.js";
|
|
43
42
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
44
|
-
import "
|
|
45
|
-
import { recurveFindObject as M } from "../shared-utils/three/recurveFindObject.js";
|
|
43
|
+
import { recurveFindObject as H } from "../shared-utils/three/recurveFindObject.js";
|
|
46
44
|
import { Polyline as I } from "./Objects/Polyline/index.js";
|
|
47
|
-
import { Point as
|
|
48
|
-
import { Polygon as
|
|
49
|
-
import { Prism as
|
|
50
|
-
import { Rectangle as
|
|
51
|
-
import { Circle as
|
|
52
|
-
import { Cylinder as
|
|
53
|
-
import { Box as
|
|
54
|
-
import { forReverseEach as
|
|
55
|
-
import { Line as
|
|
56
|
-
import { hotkeys as
|
|
57
|
-
const
|
|
45
|
+
import { Point as b } from "./Objects/Point/index.js";
|
|
46
|
+
import { Polygon as w } from "./Objects/Polygon/index.js";
|
|
47
|
+
import { Prism as j } from "./Objects/Prism/index.js";
|
|
48
|
+
import { Rectangle as O } from "./Objects/Rectangle/index.js";
|
|
49
|
+
import { Circle as P } from "./Objects/Circle/index.js";
|
|
50
|
+
import { Cylinder as v } from "./Objects/Cylinder/index.js";
|
|
51
|
+
import { Box as C } from "./Objects/Box/index.js";
|
|
52
|
+
import { forReverseEach as M } from "../shared-utils/forReverseEach.js";
|
|
53
|
+
import { Line as R } from "./Objects/Line/index.js";
|
|
54
|
+
import { hotkeys as D } from "../vendor/hotkeys-js/dist/hotkeys.esm.js";
|
|
55
|
+
const u = class extends S {
|
|
58
56
|
constructor(e, t) {
|
|
59
57
|
super();
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
h(this, "group");
|
|
59
|
+
h(this, "theme");
|
|
60
|
+
h(this, "five");
|
|
61
|
+
h(this, "creatingItem", null);
|
|
64
62
|
/**
|
|
65
63
|
* @description: 撤销
|
|
66
64
|
*/
|
|
67
|
-
|
|
65
|
+
h(this, "undo", () => {
|
|
68
66
|
var e;
|
|
69
67
|
console.log("undo"), (e = this.creatingItem) == null || e.undo(), this.five.needsRender = !0;
|
|
70
68
|
});
|
|
71
69
|
/**
|
|
72
70
|
* @description: 重做
|
|
73
71
|
*/
|
|
74
|
-
|
|
72
|
+
h(this, "redo", () => {
|
|
75
73
|
var e;
|
|
76
74
|
console.log("redo"), (e = this.creatingItem) == null || e.redo(), this.five.needsRender = !0;
|
|
77
75
|
});
|
|
78
|
-
this.five = e, this.theme = t, this.group = new
|
|
76
|
+
this.five = e, this.theme = t, this.group = new z(), this.group.name = "Sculpt", e.scene.add(this.group), u.modules.init(e), D("ctrl+z, command+z", this.undo), D("ctrl+shift+z, command+shift+z", this.redo), u.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: r, origDomEvent: c }) => {
|
|
79
77
|
var s;
|
|
80
|
-
const
|
|
81
|
-
return
|
|
82
|
-
}), window.__SCULPT_DEBUG__ = this, window.__SCULPT_MODULES_DEBUG__ =
|
|
78
|
+
const n = H((s = r == null ? void 0 : r[0]) == null ? void 0 : s.object, (m) => m.isSculptObject);
|
|
79
|
+
return n && !n.editing ? this.emit("click", c, n) : !1;
|
|
80
|
+
}), window.__SCULPT_DEBUG__ = this, window.__SCULPT_MODULES_DEBUG__ = u.modules;
|
|
83
81
|
}
|
|
84
82
|
get data() {
|
|
85
83
|
return {
|
|
@@ -89,7 +87,7 @@ const h = class extends S {
|
|
|
89
87
|
} catch (t) {
|
|
90
88
|
return console.error(t), null;
|
|
91
89
|
}
|
|
92
|
-
}).filter(
|
|
90
|
+
}).filter(k)
|
|
93
91
|
};
|
|
94
92
|
}
|
|
95
93
|
get items() {
|
|
@@ -101,14 +99,14 @@ const h = class extends S {
|
|
|
101
99
|
load(e, t) {
|
|
102
100
|
var c;
|
|
103
101
|
this.clear();
|
|
104
|
-
const
|
|
105
|
-
var
|
|
106
|
-
const s =
|
|
107
|
-
style:
|
|
102
|
+
const r = (c = e == null ? void 0 : e.items) == null ? void 0 : c.map((n) => {
|
|
103
|
+
var m;
|
|
104
|
+
const s = f(a({}, n), {
|
|
105
|
+
style: a(a({}, (m = this.theme) == null ? void 0 : m[n.type.toLowerCase()]), n.style)
|
|
108
106
|
});
|
|
109
|
-
return
|
|
107
|
+
return n.type === "Point" ? new b(s, t) : n.type === "line" ? new R(s, t) : n.type === "Polyline" ? new I(s, t) : n.type === "Polygon" ? new w(s, t) : n.type === "Prism" ? new j(s, t) : n.type === "Rectangle" ? new O(s, t) : n.type === "Circle" ? new P(s, t) : n.type === "Cylinder" ? new v(s, t) : n.type === "Box" ? new C(s, t) : null;
|
|
110
108
|
});
|
|
111
|
-
this.group.add(...
|
|
109
|
+
this.group.add(...r), this.five.needsRender = !0;
|
|
112
110
|
}
|
|
113
111
|
/**
|
|
114
112
|
* @description: 获取物体实例
|
|
@@ -122,96 +120,96 @@ const h = class extends S {
|
|
|
122
120
|
putObject(e) {
|
|
123
121
|
var c;
|
|
124
122
|
this.group.add(e);
|
|
125
|
-
const t =
|
|
126
|
-
return (c =
|
|
123
|
+
const t = u.modules.object3DHelper, r = t.addObject3DHelper(e);
|
|
124
|
+
return (c = r == null ? void 0 : r.moveController) == null || c.moveByMouse(), t;
|
|
127
125
|
}
|
|
128
126
|
/**
|
|
129
127
|
* @description: 开始绘制点
|
|
130
128
|
*/
|
|
131
|
-
createPoint(e) {
|
|
132
|
-
return
|
|
133
|
-
var t;
|
|
134
|
-
return
|
|
129
|
+
createPoint(...e) {
|
|
130
|
+
return l(this, null, function* () {
|
|
131
|
+
var t, r;
|
|
132
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.point, e[0]), this.createItem(b, ...e);
|
|
135
133
|
});
|
|
136
134
|
}
|
|
137
135
|
/**
|
|
138
136
|
* @description: 开始绘制线段
|
|
139
137
|
*/
|
|
140
|
-
createLine(e) {
|
|
141
|
-
return
|
|
142
|
-
var t;
|
|
143
|
-
return
|
|
138
|
+
createLine(...e) {
|
|
139
|
+
return l(this, null, function* () {
|
|
140
|
+
var t, r;
|
|
141
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.line, e[0]), this.createItem(R, ...e);
|
|
144
142
|
});
|
|
145
143
|
}
|
|
146
144
|
/**
|
|
147
145
|
* @deprecated use createLine instead
|
|
148
146
|
*/
|
|
149
147
|
createline(...e) {
|
|
150
|
-
return
|
|
148
|
+
return l(this, null, function* () {
|
|
151
149
|
this.createLine(...e);
|
|
152
150
|
});
|
|
153
151
|
}
|
|
154
152
|
/**
|
|
155
153
|
* @description: 开始绘制空间折线
|
|
156
154
|
*/
|
|
157
|
-
createPolyline(e) {
|
|
158
|
-
return
|
|
159
|
-
var t;
|
|
160
|
-
return
|
|
155
|
+
createPolyline(...e) {
|
|
156
|
+
return l(this, null, function* () {
|
|
157
|
+
var t, r;
|
|
158
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.polyline, e[0]), this.createItem(I, ...e);
|
|
161
159
|
});
|
|
162
160
|
}
|
|
163
161
|
/**
|
|
164
162
|
* @description: 开始绘制平面多边形
|
|
165
163
|
*/
|
|
166
|
-
createPolygon(e) {
|
|
167
|
-
return
|
|
168
|
-
var t;
|
|
169
|
-
return
|
|
164
|
+
createPolygon(...e) {
|
|
165
|
+
return l(this, null, function* () {
|
|
166
|
+
var t, r;
|
|
167
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.polygon, e[0]), this.createItem(w, ...e);
|
|
170
168
|
});
|
|
171
169
|
}
|
|
172
170
|
/**
|
|
173
171
|
* @description: 开始绘制多棱柱
|
|
174
172
|
*/
|
|
175
|
-
createPrism(e) {
|
|
176
|
-
return
|
|
177
|
-
var t;
|
|
178
|
-
return
|
|
173
|
+
createPrism(...e) {
|
|
174
|
+
return l(this, null, function* () {
|
|
175
|
+
var t, r;
|
|
176
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.prism, e[0]), this.createItem(j, ...e);
|
|
179
177
|
});
|
|
180
178
|
}
|
|
181
179
|
/**
|
|
182
180
|
* @description: 开始绘制矩形
|
|
183
181
|
*/
|
|
184
|
-
createRectangle(e) {
|
|
185
|
-
return
|
|
186
|
-
var t;
|
|
187
|
-
return
|
|
182
|
+
createRectangle(...e) {
|
|
183
|
+
return l(this, null, function* () {
|
|
184
|
+
var t, r;
|
|
185
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.rectangle, e[0]), this.createItem(O, ...e);
|
|
188
186
|
});
|
|
189
187
|
}
|
|
190
188
|
/**
|
|
191
189
|
* @description: 开始绘制圆形
|
|
192
190
|
*/
|
|
193
|
-
createCircle(e) {
|
|
194
|
-
return
|
|
195
|
-
var t;
|
|
196
|
-
return
|
|
191
|
+
createCircle(...e) {
|
|
192
|
+
return l(this, null, function* () {
|
|
193
|
+
var t, r;
|
|
194
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.circle, e[0]), this.createItem(P, ...e);
|
|
197
195
|
});
|
|
198
196
|
}
|
|
199
197
|
/**
|
|
200
198
|
* @description: 开始绘制圆柱
|
|
201
199
|
*/
|
|
202
|
-
createCylinder(e) {
|
|
203
|
-
return
|
|
204
|
-
var t;
|
|
205
|
-
return
|
|
200
|
+
createCylinder(...e) {
|
|
201
|
+
return l(this, null, function* () {
|
|
202
|
+
var t, r;
|
|
203
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.cylinder, e[0]), this.createItem(v, ...e);
|
|
206
204
|
});
|
|
207
205
|
}
|
|
208
206
|
/**
|
|
209
207
|
* @description: 开始绘制 Box
|
|
210
208
|
*/
|
|
211
|
-
createBox(e) {
|
|
212
|
-
return
|
|
213
|
-
var t;
|
|
214
|
-
return
|
|
209
|
+
createBox(...e) {
|
|
210
|
+
return l(this, null, function* () {
|
|
211
|
+
var t, r;
|
|
212
|
+
return Object.assign((t = e[0]) != null ? t : {}, (r = this.theme) == null ? void 0 : r.box, e[0]), this.createItem(C, ...e);
|
|
215
213
|
});
|
|
216
214
|
}
|
|
217
215
|
canUndo() {
|
|
@@ -226,22 +224,22 @@ const h = class extends S {
|
|
|
226
224
|
* @description: 清空数据
|
|
227
225
|
*/
|
|
228
226
|
clear() {
|
|
229
|
-
|
|
227
|
+
M(this.items, (e) => e.delete()), this.five.needsRender = !0;
|
|
230
228
|
}
|
|
231
229
|
createItem(e, ...t) {
|
|
232
|
-
return
|
|
230
|
+
return l(this, null, function* () {
|
|
233
231
|
this.creatingItem && (this.creatingItem.stopCreating(), this.creatingItem = null);
|
|
234
|
-
const
|
|
235
|
-
return this.creatingItem =
|
|
236
|
-
console.error(c), this.group.remove(
|
|
237
|
-
}),
|
|
232
|
+
const r = new e();
|
|
233
|
+
return this.creatingItem = r, this.group.add(r), yield r.create(...t).then((...c) => (this.creatingItem = null, c)).catch((c) => {
|
|
234
|
+
console.error(c), this.group.remove(r);
|
|
235
|
+
}), r;
|
|
238
236
|
});
|
|
239
237
|
}
|
|
240
238
|
};
|
|
241
|
-
let
|
|
242
|
-
|
|
243
|
-
const
|
|
239
|
+
let d = u;
|
|
240
|
+
h(d, "modules", E);
|
|
241
|
+
const ue = (o) => new d(o);
|
|
244
242
|
export {
|
|
245
|
-
|
|
246
|
-
|
|
243
|
+
d as Sculpt,
|
|
244
|
+
ue as SculptPlugin
|
|
247
245
|
};
|
|
@@ -58,9 +58,15 @@ export type OcclusionStyle = {
|
|
|
58
58
|
occlusionMode: 'translucence' | 'depthTest';
|
|
59
59
|
};
|
|
60
60
|
export type lengthConfig = {
|
|
61
|
+
/**
|
|
62
|
+
* @description 开启 距离 展示
|
|
63
|
+
*/
|
|
61
64
|
lengthEnable: boolean;
|
|
62
65
|
};
|
|
63
66
|
export type DisplayInfoConfig = {
|
|
67
|
+
/**
|
|
68
|
+
* @description 提示信息
|
|
69
|
+
*/
|
|
64
70
|
tip: string;
|
|
65
71
|
};
|
|
66
72
|
export type LineStyle = LineColorStyle & LineWidthStyle & OpacityStyle;
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
1
|
+
export { BaseEditor } from '../Objects/Base/Editor';
|
|
2
|
+
export { BoxMeshEditor } from '../Editors/BoxMeshEditor';
|
|
3
|
+
export { CircleMeshEditor } from '../Editors/CircleMeshEditor';
|
|
4
|
+
export { CylinderMeshEditor } from '../Editors/CylinderMeshEditor';
|
|
5
|
+
export { PrismMeshEditor } from '../Editors/PrismMeshEditor';
|
|
6
|
+
export { RectangleMeshEditor } from '../Editors/RectangleMeshEditor';
|
|
7
|
+
export { BoxMesh } from '../Meshes/Box';
|
|
8
|
+
export { CircleMesh } from '../Meshes/Circle';
|
|
9
|
+
export { CircleWithEdgeMesh } from '../Meshes/CircleWithEdge';
|
|
10
|
+
export { CylinderMesh } from '../Meshes/Cylinder';
|
|
11
|
+
export { LineMesh } from '../Meshes/Line';
|
|
12
|
+
export { PointMesh } from '../Meshes/Point';
|
|
13
|
+
export { PolygonMesh } from '../Meshes/Polygon';
|
|
14
|
+
export { PrismMesh } from '../Meshes/Prism';
|
|
15
|
+
export { RectangleMesh } from '../Meshes/Rectangle';
|
|
16
|
+
export { RectangleWithEdgeMesh } from '../Meshes/RectangleWithEdge';
|
|
17
|
+
export { createBox } from '../Objects/Box';
|
|
18
|
+
export { createCircle } from '../Objects/Circle';
|
|
19
|
+
export { createCylinder } from '../Objects/Cylinder';
|
|
20
|
+
export { createLine } from '../Objects/Line';
|
|
21
|
+
export { createPoint } from '../Objects/Point';
|
|
22
|
+
export { createPolygon } from '../Objects/Polygon';
|
|
23
|
+
export { createPrism } from '../Objects/Prism';
|
|
24
|
+
export { createRectangle } from '../Objects/Rectangle';
|
|
@@ -1,21 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
1
|
+
import { BaseEditor as r } from "../Objects/Base/Editor.js";
|
|
2
|
+
import { BoxMeshEditor as o } from "../Editors/BoxMeshEditor.js";
|
|
3
|
+
import { CircleMeshEditor as e } from "../Editors/CircleMeshEditor.js";
|
|
4
|
+
import { CylinderMeshEditor as t } from "../Editors/CylinderMeshEditor.js";
|
|
5
|
+
import { PrismMeshEditor as m } from "../Editors/PrismMeshEditor.js";
|
|
6
|
+
import { RectangleMeshEditor as i } from "../Editors/RectangleMeshEditor.js";
|
|
7
|
+
import { BoxMesh as p } from "../Meshes/Box.js";
|
|
8
|
+
import { CircleMesh as f } from "../Meshes/Circle.js";
|
|
9
|
+
import { CircleWithEdgeMesh as s } from "../Meshes/CircleWithEdge.js";
|
|
10
|
+
import { CylinderMesh as c } from "../Meshes/Cylinder.js";
|
|
11
|
+
import { LineMesh as l } from "../Meshes/Line.js";
|
|
12
|
+
import { PointMesh as h } from "../Meshes/Point.js";
|
|
13
|
+
import { PolygonMesh as n } from "../Meshes/Polygon.js";
|
|
14
|
+
import { PrismMesh as M } from "../Meshes/Prism.js";
|
|
15
|
+
import { RectangleMesh as a } from "../Meshes/Rectangle.js";
|
|
16
|
+
import { RectangleWithEdgeMesh as d } from "../Meshes/RectangleWithEdge.js";
|
|
17
|
+
import { createBox as g } from "../Objects/Box/index.js";
|
|
18
|
+
import { createCircle as E } from "../Objects/Circle/index.js";
|
|
19
|
+
import { createCylinder as P } from "../Objects/Cylinder/index.js";
|
|
20
|
+
import { createLine as y } from "../Objects/Line/index.js";
|
|
21
|
+
import { createPoint as C } from "../Objects/Point/index.js";
|
|
22
|
+
import { createPolygon as u } from "../Objects/Polygon/index.js";
|
|
23
|
+
import { createPrism as x } from "../Objects/Prism/index.js";
|
|
24
|
+
import { createRectangle as B } from "../Objects/Rectangle/index.js";
|
|
25
|
+
const U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26
|
+
__proto__: null,
|
|
27
|
+
BaseEditor: r,
|
|
28
|
+
BoxMesh: p,
|
|
29
|
+
BoxMeshEditor: o,
|
|
30
|
+
CircleMesh: f,
|
|
31
|
+
CircleMeshEditor: e,
|
|
32
|
+
CircleWithEdgeMesh: s,
|
|
33
|
+
CylinderMesh: c,
|
|
34
|
+
CylinderMeshEditor: t,
|
|
35
|
+
LineMesh: l,
|
|
36
|
+
PointMesh: h,
|
|
37
|
+
PolygonMesh: n,
|
|
38
|
+
PrismMesh: M,
|
|
39
|
+
PrismMeshEditor: m,
|
|
40
|
+
RectangleMesh: a,
|
|
41
|
+
RectangleMeshEditor: i,
|
|
42
|
+
RectangleWithEdgeMesh: d,
|
|
43
|
+
createBox: g,
|
|
44
|
+
createCircle: E,
|
|
45
|
+
createCylinder: P,
|
|
46
|
+
createLine: y,
|
|
47
|
+
createPoint: C,
|
|
48
|
+
createPolygon: u,
|
|
49
|
+
createPrism: x,
|
|
50
|
+
createRectangle: B
|
|
51
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
19
52
|
export {
|
|
20
|
-
|
|
53
|
+
U as sculpt
|
|
21
54
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getNormal as m } from "../../shared-utils/three/getNormal.js";
|
|
2
|
+
import { centerPoint as a } from "../../shared-utils/three/centerPoint.js";
|
|
3
|
+
function f(r, t) {
|
|
4
|
+
const e = m(r), n = a(...r), o = t.clone().sub(n);
|
|
5
|
+
return e.dot(o) >= 0 ? r : r.slice().reverse();
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
f as sortPositionsByCameraPosition
|
|
9
|
+
};
|
|
@@ -20,7 +20,11 @@ export default class ColoredMesh<TGeometry extends THREE.Geometry | THREE.Buffer
|
|
|
20
20
|
get geometry(): TGeometry;
|
|
21
21
|
private paramsStyle;
|
|
22
22
|
private _geometry;
|
|
23
|
+
private highlighted;
|
|
24
|
+
private opacityBeforeHighlight;
|
|
23
25
|
constructor(params?: Partial<ColoredMeshStyle>);
|
|
24
26
|
setStyle(params: Partial<ColoredMeshStyle>): void;
|
|
27
|
+
highlight(): void;
|
|
28
|
+
unhighlight(): void;
|
|
25
29
|
private setOcclusionVisibility;
|
|
26
30
|
}
|