@realsee/dnalogel 3.53.3 → 3.53.5-alpha.0
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 +4 -0
- package/README.md +116 -0
- package/dist/CruisePlugin/typing.d.ts +6 -2
- package/dist/Sculpt/Meshes/Circle.d.ts +3 -1
- package/dist/Sculpt/Meshes/Cylinder.d.ts +4 -2
- package/dist/Sculpt/Objects/Base/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Box/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Circle/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Cylinder/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Polygon/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Polyline/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Prism/index.d.ts +1 -0
- package/dist/Sculpt/Objects/Rectangle/index.d.ts +1 -0
- package/dist/index.cjs.js +25 -25
- package/dist/index.js +257 -217
- package/dist/index.umd.js +28 -28
- package/docs/.nojekyll +1 -0
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +127 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1493 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +61 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +71 -0
- package/docs/classes/CSS3DRender.html +100 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +21 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +71 -0
- package/docs/classes/ModelMakerPluginInstance.html +57 -0
- package/docs/classes/ModelRoomLabelController.html +19 -0
- package/docs/classes/MoveController.html +47 -0
- package/docs/classes/Object3DHelperController.html +47 -0
- package/docs/classes/PaintBrush.html +15 -0
- package/docs/classes/PanoMeasurePluginLine.html +24 -0
- package/docs/classes/PanoMeasurePluginModel.html +23 -0
- package/docs/classes/PanoMeasurePluginPoint.html +7 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +27 -0
- package/docs/classes/PanoTagPluginController.html +104 -0
- package/docs/classes/Sculpt.html +70 -0
- package/docs/classes/Util.BetterTween.html +6 -0
- package/docs/classes/Util.FiveDomEvents.html +12 -0
- package/docs/classes/Util.FivePuppet.html +20 -0
- package/docs/classes/Util.Interval.html +11 -0
- package/docs/classes/Util.LightTag.html +47 -0
- package/docs/classes/Util.LineSegments.html +4 -0
- package/docs/classes/Util.Magnifier.html +22 -0
- package/docs/classes/Util.Object3D.html +8 -0
- package/docs/classes/Util.PointHelper.html +10 -0
- package/docs/classes/Util.PointSelector.html +50 -0
- package/docs/classes/Util.PointSelectorHelper.html +14 -0
- package/docs/classes/Util.Rectangle.html +12 -0
- package/docs/classes/Util.sculpt.BaseEditor.html +16 -0
- package/docs/classes/Util.sculpt.BoxMesh.html +34 -0
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +16 -0
- package/docs/classes/Util.sculpt.CircleMesh.html +26 -0
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +16 -0
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +26 -0
- package/docs/classes/Util.sculpt.CylinderMesh.html +25 -0
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +16 -0
- package/docs/classes/Util.sculpt.LineMesh.html +29 -0
- package/docs/classes/Util.sculpt.PointMesh.html +20 -0
- package/docs/classes/Util.sculpt.PolygonMesh.html +34 -0
- package/docs/classes/Util.sculpt.PrismMesh.html +34 -0
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +16 -0
- package/docs/classes/Util.sculpt.RectangleMesh.html +35 -0
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +16 -0
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +38 -0
- package/docs/classes/WalkController.html +44 -0
- package/docs/enums/CameraMovementEffect.html +4 -0
- package/docs/enums/ContentType.html +34 -0
- package/docs/enums/DIRECTION.html +5 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -0
- package/docs/enums/DimensionType.html +4 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -0
- package/docs/enums/PaintBrushTypeEnum.html +4 -0
- package/docs/enums/PointType.html +4 -0
- package/docs/enums/Rotation.html +5 -0
- package/docs/functions/AreaMakerPlugin.html +1 -0
- package/docs/functions/CSS3DRenderPlugin.html +1 -0
- package/docs/functions/CameraMovementPlugin.html +2 -0
- package/docs/functions/CruisePlugin.html +1 -0
- package/docs/functions/CurrentPanoImagePlugin.html +1 -0
- package/docs/functions/GuideLinePlugin.html +1 -0
- package/docs/functions/ItemLabelPlugin.html +1 -0
- package/docs/functions/MapviewFloorplanPlugin.html +1 -0
- package/docs/functions/ModelChassisCompassPlugin.html +2 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -0
- package/docs/functions/ModelFloorplanPlugin.html +1 -0
- package/docs/functions/ModelItemLabelPlugin.html +1 -0
- package/docs/functions/ModelMakerPlugin.html +1 -0
- package/docs/functions/ModelRoomLabelPlugin.html +1 -0
- package/docs/functions/ModelTVVideoPlugin.html +1 -0
- package/docs/functions/ModelViewPlugin.html +2 -0
- package/docs/functions/MovePlugin.html +1 -0
- package/docs/functions/Object3DHelperPlugin.html +1 -0
- package/docs/functions/PanoCompassPlugin.html +1 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -0
- package/docs/functions/PanoDoorLabelPlugin.html +1 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -0
- package/docs/functions/PanoMeasurePlugin.html +1 -0
- package/docs/functions/PanoRulerPlugin.html +2 -0
- package/docs/functions/PanoRulerProPlugin.html +2 -0
- package/docs/functions/PanoSpatialTagPlugin.html +2 -0
- package/docs/functions/PanoTagPlugin.html +1 -0
- package/docs/functions/PanoVideoPlugin.html +10 -0
- package/docs/functions/PipelinePlugin.html +1 -0
- package/docs/functions/SculptPlugin.html +2 -0
- package/docs/functions/TopviewFloorplanPlugin.html +1 -0
- package/docs/functions/Util.absoluteUrl.html +2 -0
- package/docs/functions/Util.awaitNextFrame.html +1 -0
- package/docs/functions/Util.blink.html +6 -0
- package/docs/functions/Util.bounding.html +1 -0
- package/docs/functions/Util.boundingBox.html +1 -0
- package/docs/functions/Util.boundingSphere.html +1 -0
- package/docs/functions/Util.boxVertex.html +7 -0
- package/docs/functions/Util.boxVertexes.html +1 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -0
- package/docs/functions/Util.convexHull.html +2 -0
- package/docs/functions/Util.equal.html +5 -0
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -0
- package/docs/functions/Util.getCoordsFromClient.html +1 -0
- package/docs/functions/Util.getCoordsFromElement.html +1 -0
- package/docs/functions/Util.getFrameTime.html +3 -0
- package/docs/functions/Util.inside.html +1 -0
- package/docs/functions/Util.isAbsoluteURL.html +1 -0
- package/docs/functions/Util.isModelLike.html +1 -0
- package/docs/functions/Util.isNil.html +2 -0
- package/docs/functions/Util.isPanoramaLike.html +1 -0
- package/docs/functions/Util.lookObject.html +5 -0
- package/docs/functions/Util.lookPoint.html +5 -0
- package/docs/functions/Util.nextFrame.html +1 -0
- package/docs/functions/Util.notNil.html +2 -0
- package/docs/functions/Util.reblink.html +4 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -0
- package/docs/functions/Util.sculpt.createBox.html +1 -0
- package/docs/functions/Util.sculpt.createCircle.html +1 -0
- package/docs/functions/Util.sculpt.createCylinder.html +1 -0
- package/docs/functions/Util.sculpt.createLine.html +2 -0
- package/docs/functions/Util.sculpt.createPoint.html +1 -0
- package/docs/functions/Util.sculpt.createPolygon.html +1 -0
- package/docs/functions/Util.sculpt.createPrism.html +1 -0
- package/docs/functions/Util.sculpt.createRectangle.html +2 -0
- package/docs/functions/Util.tag.html +1 -0
- package/docs/functions/Util.tweenProgress.html +1 -0
- package/docs/functions/Util.uuid.html +2 -0
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -0
- package/docs/functions/Util.worldBounding.html +1 -0
- package/docs/functions/Util.worldBoundingBox.html +1 -0
- package/docs/functions/Util.worldBoundingSphere.html +1 -0
- package/docs/functions/createPolyline.html +2 -0
- package/docs/functions/pluginFlag.html +1 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +70 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +4 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +8 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +25 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +4 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +20 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +13 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +9 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +8 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +9 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +11 -0
- package/docs/interfaces/ContentTypeMapInterface.html +73 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +8 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +33 -0
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +6 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +16 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +19 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +20 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +15 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +13 -0
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +15 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +4 -0
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -0
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -0
- package/docs/interfaces/FloorplanBounding.html +9 -0
- package/docs/interfaces/FloorplanData.html +7 -0
- package/docs/interfaces/FloorplanEntrance.html +14 -0
- package/docs/interfaces/FloorplanExtraObject.html +9 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +5 -0
- package/docs/interfaces/FloorplanFloorData.html +6 -0
- package/docs/interfaces/FloorplanImagePosition.html +4 -0
- package/docs/interfaces/FloorplanObserver.html +8 -0
- package/docs/interfaces/FloorplanOutlineItem.html +6 -0
- package/docs/interfaces/FloorplanPosition.html +4 -0
- package/docs/interfaces/FloorplanRoomItem.html +23 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -0
- package/docs/interfaces/FloorplanServerBounding.html +9 -0
- package/docs/interfaces/FloorplanServerComputedData.html +6 -0
- package/docs/interfaces/FloorplanServerData.html +4 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +6 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -0
- package/docs/interfaces/FloorplanServerEntrance.html +14 -0
- package/docs/interfaces/FloorplanServerFloorData.html +6 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -0
- package/docs/interfaces/FloorplanServerObserver.html +8 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +6 -0
- package/docs/interfaces/FloorplanServerPosition.html +4 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +26 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +4 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +32 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +4 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +42 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +57 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +6 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +4 -0
- package/docs/interfaces/HelperOffset.html +4 -0
- package/docs/interfaces/ImagePlaneGroup.html +3 -0
- package/docs/interfaces/ItemLabelPluginData.html +2 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +7 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +5 -0
- package/docs/interfaces/MinMax.html +3 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +7 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -0
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +18 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +5 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +12 -0
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -0
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +14 -0
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +10 -0
- package/docs/interfaces/ModelMakerPluginType.State.html +8 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +5 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -0
- package/docs/interfaces/ModelViewPluginExportType.html +7 -0
- package/docs/interfaces/Object3DHelperState.html +4 -0
- package/docs/interfaces/ObjectHelperControllers.html +5 -0
- package/docs/interfaces/PaintBrushAction.html +14 -0
- package/docs/interfaces/PaintBrushConfigs.html +8 -0
- package/docs/interfaces/PaintBrushState.html +6 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +16 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
- package/docs/interfaces/PanoMeasureParameterType.html +20 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +6 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +5 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -0
- package/docs/interfaces/PanoRulerProPluginState.html +4 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +7 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +6 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +9 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +6 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +9 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +7 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +6 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +14 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +13 -0
- package/docs/interfaces/PluginEventMap.html +15 -0
- package/docs/interfaces/Point.html +4 -0
- package/docs/interfaces/Room.html +5 -0
- package/docs/interfaces/RoomInfo.html +3 -0
- package/docs/interfaces/RoomLabel.html +16 -0
- package/docs/interfaces/RoomRules.html +1 -0
- package/docs/interfaces/Rooms.html +1 -0
- package/docs/interfaces/Scissor.html +13 -0
- package/docs/interfaces/State.html +7 -0
- package/docs/interfaces/TagCacheInterface.html +9 -0
- package/docs/interfaces/TagConfig.html +111 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -0
- package/docs/interfaces/TagIconUrl.html +14 -0
- package/docs/interfaces/TagObjectGroup.html +3 -0
- package/docs/interfaces/TagStyle.html +5 -0
- package/docs/interfaces/Tags.html +8 -0
- package/docs/interfaces/TemporaryState.html +2 -0
- package/docs/interfaces/Util.AnimeInstance.html +3 -0
- package/docs/interfaces/Util.BlinkAnimeOptions.html +7 -0
- package/docs/interfaces/Util.EventHandlerConfig.html +16 -0
- package/docs/interfaces/Util.FiveDomEvent.html +7 -0
- package/docs/interfaces/Util.FiveDomEventMap.html +20 -0
- package/docs/interfaces/Util.MagnifierParameter.html +11 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -0
- package/docs/interfaces/Util.PointIntersection.html +9 -0
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +5 -0
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +8 -0
- package/docs/modules/AreaMakerPluginType.html +17 -0
- package/docs/modules/CruisePluginTypes.html +14 -0
- package/docs/modules/CurrentPanoImagePluginType.html +6 -0
- package/docs/modules/GuideLineItem.html +2 -0
- package/docs/modules/GuideLineModeItem.html +3 -0
- package/docs/modules/GuideLinePluginType.html +24 -0
- package/docs/modules/ModelMakerPluginType.html +11 -0
- package/docs/modules/PanoVideoPluginType.html +8 -0
- package/docs/modules/SculptData.html +9 -0
- package/docs/modules/Util.html +61 -0
- package/docs/modules/Util.sculpt.html +25 -0
- package/docs/modules.html +266 -0
- package/docs/types/AddObject3DHelperConfig.html +19 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +7 -0
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -0
- package/docs/types/ArrayPosition.html +1 -0
- package/docs/types/AudioAppearance.html +1 -0
- package/docs/types/CSS3DRenderExportType.html +1 -0
- package/docs/types/CSS3DRenderPluginExportType.html +1 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -0
- package/docs/types/ClassFunctionParameters.html +1 -0
- package/docs/types/Color.html +1 -0
- package/docs/types/ContentTypeConfigKey.html +1 -0
- package/docs/types/ContentTypeConfigKeySplit.html +1 -0
- package/docs/types/ContentTypeMap.html +1 -0
- package/docs/types/Create3DDomContainerReturnType.html +1 -0
- package/docs/types/Create3DElementReturnType.html +1 -0
- package/docs/types/CruisePluginExportType.html +1 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +5 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -0
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -0
- package/docs/types/DeprecatedTagProperty.html +3 -0
- package/docs/types/Direction-1.html +1 -0
- package/docs/types/Direction4.html +1 -0
- package/docs/types/ElementRenderer.html +2 -0
- package/docs/types/FloorplanRuleLabels.html +2 -0
- package/docs/types/FloorplanServerRuleLabels.html +1 -0
- package/docs/types/GuideLinePluginExportType.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +10 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -0
- package/docs/types/GuideLinePluginType.PathItem.html +2 -0
- package/docs/types/GuideLinePluginType.PluginData.html +2 -0
- package/docs/types/HelperEventMap.html +1 -0
- package/docs/types/InternalHelperEventMap.html +1 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -0
- package/docs/types/MediaData.html +2 -0
- package/docs/types/MediaStore.html +1 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -0
- package/docs/types/ModelId.html +1 -0
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -0
- package/docs/types/ModelMakerPluginType.ItemType.html +1 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -0
- package/docs/types/MoveArgs.html +2 -0
- package/docs/types/MoveOpts.html +2 -0
- package/docs/types/Object3DHelperEventMap.html +1 -0
- package/docs/types/ObjectFit.html +1 -0
- package/docs/types/PaintBrushEventMap.html +1 -0
- package/docs/types/PanoCompassPluginData.html +1 -0
- package/docs/types/PanoCompassPluginExportType.html +1 -0
- package/docs/types/PanoCompassPluginParameterType.html +1 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -0
- package/docs/types/PanoIndex.html +1 -0
- package/docs/types/PanoMeasurePluginEvent.html +1 -0
- package/docs/types/PanoMeasureReturnType.html +1 -0
- package/docs/types/PanoSpatialTagPluginId.html +1 -0
- package/docs/types/PanoTagPluginExportInterface.html +1 -0
- package/docs/types/PanoTagPluginParamsInterface.html +1 -0
- package/docs/types/PanoVideoPluginParameterType.html +1 -0
- package/docs/types/PanoVideoPluginReturnType.html +1 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -0
- package/docs/types/PipelinePluginParameterType.html +1 -0
- package/docs/types/PipelinePluginReturnType.html +1 -0
- package/docs/types/PlaneTag.html +2 -0
- package/docs/types/Point2DTag.html +2 -0
- package/docs/types/Point3DTag.html +2 -0
- package/docs/types/PointTagInstance.html +1 -0
- package/docs/types/Position.html +1 -0
- package/docs/types/PositionFrom.html +1 -0
- package/docs/types/RotateArgs.html +2 -0
- package/docs/types/RotateOpts.html +2 -0
- package/docs/types/RuleLabelsKey.html +1 -0
- package/docs/types/RuleLabelsValue.html +1 -0
- package/docs/types/ScaleCallback.html +1 -0
- package/docs/types/ScalePosition.html +3 -0
- package/docs/types/SculptData.BoxData.html +1 -0
- package/docs/types/SculptData.CircleData.html +1 -0
- package/docs/types/SculptData.CylinderData.html +1 -0
- package/docs/types/SculptData.PointData.html +1 -0
- package/docs/types/SculptData.PolygonData.html +1 -0
- package/docs/types/SculptData.PolylineData.html +1 -0
- package/docs/types/SculptData.PrismData.html +1 -0
- package/docs/types/SculptData.RectangleData.html +1 -0
- package/docs/types/StickType.html +1 -0
- package/docs/types/Tag.html +16 -0
- package/docs/types/Tag2D.html +2 -0
- package/docs/types/Tag3D.html +2 -0
- package/docs/types/TagClickParams.html +1 -0
- package/docs/types/TagConfigByKey.html +1 -0
- package/docs/types/TagContentType.html +1 -0
- package/docs/types/TagContentTypeMapping.html +1 -0
- package/docs/types/TagDimensionType.html +1 -0
- package/docs/types/TagElement.html +2 -0
- package/docs/types/TagEvents.html +1 -0
- package/docs/types/TagGLTFObject.html +1 -0
- package/docs/types/TagHooks.html +1 -0
- package/docs/types/TagId.html +1 -0
- package/docs/types/TagInstance.html +1 -0
- package/docs/types/TagPointType.html +2 -0
- package/docs/types/TagRendererMap.html +1 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -0
- package/docs/types/Util.ActionIfNoModelUnderMouse.html +1 -0
- package/docs/types/Util.PointSelectorConfig.html +1 -0
- package/docs/types/WorkCode.html +1 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -0
- package/docs/variables/PLUGIN.html +1 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -0
- package/docs/variables/ROOM_TYPE_MAP.html +2 -0
- package/docs/variables/Util.animeMap.html +1 -0
- package/docs/variables/defaultGlobalConfig.html +1 -0
- package/docs/variables/itemLabelPluginServerParams.html +1 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -0
- package/libs/CruisePlugin/typing.d.ts +6 -2
- package/libs/Sculpt/Meshes/Circle.d.ts +3 -1
- package/libs/Sculpt/Meshes/Circle.js +23 -17
- package/libs/Sculpt/Meshes/CircleWithEdge.js +30 -22
- package/libs/Sculpt/Meshes/Cylinder.d.ts +4 -2
- package/libs/Sculpt/Meshes/Cylinder.js +31 -35
- package/libs/Sculpt/Meshes/PolygonWithEdge.js +14 -14
- package/libs/Sculpt/Meshes/Prism.js +49 -48
- package/libs/Sculpt/Meshes/RectangleWithEdge.js +19 -18
- package/libs/Sculpt/Objects/Base/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Box/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Box/index.js +45 -42
- package/libs/Sculpt/Objects/Circle/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Circle/index.js +50 -47
- package/libs/Sculpt/Objects/Cylinder/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Cylinder/index.js +32 -29
- package/libs/Sculpt/Objects/Line/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Line/index.js +11 -8
- package/libs/Sculpt/Objects/Point/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Point/index.js +32 -28
- package/libs/Sculpt/Objects/Polygon/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Polygon/index.js +24 -21
- package/libs/Sculpt/Objects/Polyline/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Polyline/index.js +37 -34
- package/libs/Sculpt/Objects/Prism/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Prism/index.js +47 -44
- package/libs/Sculpt/Objects/Rectangle/index.d.ts +1 -0
- package/libs/Sculpt/Objects/Rectangle/index.js +86 -83
- package/libs/Sculpt/utils/three/ColoredMesh.js +1 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +3 -3
|
@@ -2,52 +2,52 @@ var H = Object.defineProperty, O = Object.defineProperties;
|
|
|
2
2
|
var W = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var w = Object.getOwnPropertySymbols;
|
|
4
4
|
var L = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
6
|
-
for (var t in
|
|
7
|
-
L.call(
|
|
5
|
+
var f = (o, e, t) => e in o ? H(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, m = (o, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
L.call(e, t) && f(o, t, e[t]);
|
|
8
8
|
if (w)
|
|
9
|
-
for (var t of w(
|
|
10
|
-
R.call(
|
|
11
|
-
return
|
|
12
|
-
}, E = (
|
|
13
|
-
var d = (
|
|
14
|
-
var
|
|
15
|
-
var
|
|
9
|
+
for (var t of w(e))
|
|
10
|
+
R.call(e, t) && f(o, t, e[t]);
|
|
11
|
+
return o;
|
|
12
|
+
}, E = (o, e) => O(o, W(e));
|
|
13
|
+
var d = (o, e, t) => (f(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
var b = (o, e, t) => new Promise((l, a) => {
|
|
15
|
+
var s = (i) => {
|
|
16
16
|
try {
|
|
17
|
-
n(t.next(
|
|
17
|
+
n(t.next(i));
|
|
18
18
|
} catch (r) {
|
|
19
|
-
|
|
19
|
+
a(r);
|
|
20
20
|
}
|
|
21
|
-
}, h = (
|
|
21
|
+
}, h = (i) => {
|
|
22
22
|
try {
|
|
23
|
-
n(t.throw(
|
|
23
|
+
n(t.throw(i));
|
|
24
24
|
} catch (r) {
|
|
25
|
-
|
|
25
|
+
a(r);
|
|
26
26
|
}
|
|
27
|
-
}, n = (
|
|
28
|
-
n((t = t.apply(
|
|
27
|
+
}, n = (i) => i.done ? l(i.value) : Promise.resolve(i.value).then(s, h);
|
|
28
|
+
n((t = t.apply(o, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import { BaseObject as _ } from "../Base/index.js";
|
|
31
31
|
import * as j from "three";
|
|
32
|
-
import { BoxMeshEditor as
|
|
32
|
+
import { BoxMeshEditor as D } from "../../Editors/BoxMeshEditor.js";
|
|
33
33
|
import { BoxMesh as v } from "../../Meshes/Box.js";
|
|
34
|
-
import { createRectangle as
|
|
35
|
-
import { LineMesh as
|
|
36
|
-
import { getNormal as
|
|
37
|
-
import { rayOnLine as
|
|
34
|
+
import { createRectangle as N } from "../Rectangle/index.js";
|
|
35
|
+
import { LineMesh as T } from "../../Meshes/Line.js";
|
|
36
|
+
import { getNormal as U } from "../../../shared-utils/three/getNormal.js";
|
|
37
|
+
import { rayOnLine as A } from "../../utils/three/rayOnLine.js";
|
|
38
38
|
import { vector3ToArray as B } from "../../../shared-utils/three/vector3ToArray.js";
|
|
39
39
|
import { RectangleWithEdgeMesh as k } from "../../Meshes/RectangleWithEdge.js";
|
|
40
40
|
import { centerPoint as q } from "../../../shared-utils/three/centerPoint.js";
|
|
41
41
|
class S extends _ {
|
|
42
|
-
constructor(t,
|
|
43
|
-
super(t,
|
|
42
|
+
constructor(t, l) {
|
|
43
|
+
super(t, l);
|
|
44
44
|
d(this, "type", "Box");
|
|
45
45
|
d(this, "boxMesh");
|
|
46
46
|
d(this, "_editor");
|
|
47
47
|
t && (this.boxMesh = new v(m(m({}, t.style), t)), this.add(this.boxMesh));
|
|
48
48
|
}
|
|
49
49
|
get editor() {
|
|
50
|
-
return this._editor || (this._editor = new
|
|
50
|
+
return this._editor || (this._editor = new D(this.boxMesh)), this._editor;
|
|
51
51
|
}
|
|
52
52
|
get data() {
|
|
53
53
|
return E(m({}, this.baseData), {
|
|
@@ -61,6 +61,9 @@ class S extends _ {
|
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
+
setData(t) {
|
|
65
|
+
this.boxMesh.setPoints(t), this.boxMesh.setStyle(t.style);
|
|
66
|
+
}
|
|
64
67
|
highlight() {
|
|
65
68
|
var t;
|
|
66
69
|
(t = this.boxMesh) == null || t.highlight();
|
|
@@ -70,42 +73,42 @@ class S extends _ {
|
|
|
70
73
|
(t = this.boxMesh) == null || t.unhighlight();
|
|
71
74
|
}
|
|
72
75
|
create(t) {
|
|
73
|
-
return
|
|
76
|
+
return b(this, null, function* () {
|
|
74
77
|
this.removeChildren(), this.boxMesh = new v(t), this.add(this.boxMesh), yield z(this.boxMesh, this.pointSelector, t), this.config.canEdit && this.editor.enable();
|
|
75
78
|
});
|
|
76
79
|
}
|
|
77
80
|
}
|
|
78
|
-
function z(
|
|
79
|
-
return
|
|
80
|
-
return new Promise((
|
|
81
|
-
const
|
|
82
|
-
if (!
|
|
83
|
-
|
|
81
|
+
function z(o, e, t) {
|
|
82
|
+
return b(this, null, function* () {
|
|
83
|
+
return new Promise((l, a) => b(this, null, function* () {
|
|
84
|
+
const s = o.parent;
|
|
85
|
+
if (!s) {
|
|
86
|
+
a(new Error("No container"));
|
|
84
87
|
return;
|
|
85
88
|
}
|
|
86
|
-
const h = new k(
|
|
87
|
-
|
|
88
|
-
const n = new
|
|
89
|
-
n.setPoints([p, x]),
|
|
89
|
+
const h = new k(o.style);
|
|
90
|
+
s.add(h), yield N(h, e, t), s.remove(h), o.setPoints({ points: h.points });
|
|
91
|
+
const n = new T(), i = U(o.bottomPositions), r = q(...o.bottomPositions), p = r.clone().add(i.clone().multiplyScalar(10)), x = r.clone().sub(i.clone().multiplyScalar(10));
|
|
92
|
+
n.setPoints([p, x]), s.add(n), e.enable();
|
|
90
93
|
const g = (c) => {
|
|
91
|
-
M(),
|
|
94
|
+
M(), l();
|
|
92
95
|
}, y = (c) => {
|
|
93
96
|
if (!(c != null && c.raycaster))
|
|
94
97
|
return;
|
|
95
|
-
const u =
|
|
98
|
+
const u = A({
|
|
96
99
|
raycaster: c.raycaster,
|
|
97
100
|
line: new j.Line3(p, x)
|
|
98
101
|
});
|
|
99
102
|
if (u) {
|
|
100
103
|
const C = u.clone().sub(r);
|
|
101
|
-
|
|
104
|
+
o.setPoints({ heightPoint: o.bottomPositions[0].clone().add(C) });
|
|
102
105
|
}
|
|
103
106
|
}, M = () => {
|
|
104
|
-
|
|
107
|
+
e.off("select", g), e.off("intersectionUpdate", y), e.off("disable", P), e.disable(), s == null || s.remove(n);
|
|
105
108
|
}, P = () => {
|
|
106
|
-
M(),
|
|
109
|
+
M(), s == null || s.remove(o), a(new Error("Cancelled"));
|
|
107
110
|
};
|
|
108
|
-
|
|
111
|
+
e.on("select", g), e.on("intersectionUpdate", y), e.on("disable", P);
|
|
109
112
|
}));
|
|
110
113
|
});
|
|
111
114
|
}
|
|
@@ -24,6 +24,7 @@ export declare class Circle extends BaseObject<CircleImportData> {
|
|
|
24
24
|
type: string;
|
|
25
25
|
};
|
|
26
26
|
constructor(data?: CircleImportData, config?: Partial<BaseObjectConfig>);
|
|
27
|
+
setData(data: Partial<CircleImportData>): void;
|
|
27
28
|
highlight(): void;
|
|
28
29
|
unhighlight(): void;
|
|
29
30
|
create(params?: Partial<CircleWithEdgeMeshStyle>): Promise<void>;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
var C = Object.defineProperty, x = Object.defineProperties;
|
|
2
2
|
var _ = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var u = Object.getOwnPropertySymbols;
|
|
4
4
|
var T = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var m = (
|
|
6
|
-
for (var e in
|
|
7
|
-
T.call(
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
A.call(
|
|
11
|
-
return
|
|
12
|
-
}, g = (
|
|
13
|
-
var f = (
|
|
14
|
-
var w = (
|
|
5
|
+
var m = (i, t, e) => t in i ? C(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, d = (i, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
T.call(t, e) && m(i, e, t[e]);
|
|
8
|
+
if (u)
|
|
9
|
+
for (var e of u(t))
|
|
10
|
+
A.call(t, e) && m(i, e, t[e]);
|
|
11
|
+
return i;
|
|
12
|
+
}, g = (i, t) => x(i, _(t));
|
|
13
|
+
var f = (i, t, e) => (m(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
+
var w = (i, t, e) => new Promise((c, r) => {
|
|
15
15
|
var a = (n) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
17
|
+
h(e.next(n));
|
|
18
|
+
} catch (o) {
|
|
19
|
+
r(o);
|
|
20
20
|
}
|
|
21
21
|
}, s = (n) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
|
|
23
|
+
h(e.throw(n));
|
|
24
|
+
} catch (o) {
|
|
25
|
+
r(o);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, h = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(a, s);
|
|
28
|
+
h((e = e.apply(i, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import { BaseObject as
|
|
30
|
+
import { BaseObject as D } from "../Base/index.js";
|
|
31
31
|
import * as y from "three";
|
|
32
|
-
import { PolylineMesh as
|
|
33
|
-
import { CircleMeshEditor as
|
|
32
|
+
import { PolylineMesh as H } from "../../Meshes/Polyline.js";
|
|
33
|
+
import { CircleMeshEditor as N } from "../../Editors/CircleMeshEditor.js";
|
|
34
34
|
import { CircleWithEdgeMesh as E } from "../../Meshes/CircleWithEdge.js";
|
|
35
|
-
import { vector3ToArray as
|
|
36
|
-
class L extends
|
|
35
|
+
import { vector3ToArray as P } from "../../../shared-utils/three/vector3ToArray.js";
|
|
36
|
+
class L extends D {
|
|
37
37
|
constructor(e, c) {
|
|
38
38
|
super(e, c);
|
|
39
39
|
f(this, "type", "Circle");
|
|
@@ -42,18 +42,21 @@ class L extends H {
|
|
|
42
42
|
e && (this.circleMesh = new E(d(d({}, e.style), e)), this.add(this.circleMesh));
|
|
43
43
|
}
|
|
44
44
|
get editor() {
|
|
45
|
-
return this._editor || (this._editor = new
|
|
45
|
+
return this._editor || (this._editor = new N(this.circleMesh)), this._editor;
|
|
46
46
|
}
|
|
47
47
|
get data() {
|
|
48
48
|
return g(d({}, this.baseData), {
|
|
49
|
-
center:
|
|
50
|
-
normal:
|
|
49
|
+
center: P(this.applyObjectMatrixWorld(this.circleMesh.center, this.circleMesh)),
|
|
50
|
+
normal: P(this.circleMesh.normal.clone().applyQuaternion(this.circleMesh.quaternion)),
|
|
51
51
|
radius: this.circleMesh.radius,
|
|
52
52
|
style: {
|
|
53
53
|
color: this.circleMesh.color.getHex()
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
+
setData(e) {
|
|
58
|
+
this.circleMesh.setPoints(e), this.circleMesh.setStyle(e.style);
|
|
59
|
+
}
|
|
57
60
|
highlight() {
|
|
58
61
|
var e;
|
|
59
62
|
(e = this.circleMesh) == null || e.highlight();
|
|
@@ -64,24 +67,24 @@ class L extends H {
|
|
|
64
67
|
}
|
|
65
68
|
create(e) {
|
|
66
69
|
return w(this, null, function* () {
|
|
67
|
-
this.children.forEach((
|
|
68
|
-
|
|
70
|
+
this.children.forEach((r) => {
|
|
71
|
+
r.parent === this && this.remove(r);
|
|
69
72
|
}), this.children.length = 0;
|
|
70
73
|
const c = new E(e);
|
|
71
|
-
this.circleMesh = c, this.add(this.circleMesh), yield
|
|
74
|
+
this.circleMesh = c, this.add(this.circleMesh), yield O(this.circleMesh, this.pointSelector), this.config.canEdit && this.editor.enable();
|
|
72
75
|
});
|
|
73
76
|
}
|
|
74
77
|
}
|
|
75
|
-
function
|
|
78
|
+
function O(i, t) {
|
|
76
79
|
return new Promise((e, c) => {
|
|
77
|
-
const
|
|
78
|
-
if (!
|
|
80
|
+
const r = i.parent;
|
|
81
|
+
if (!r) {
|
|
79
82
|
c(new Error("No container"));
|
|
80
83
|
return;
|
|
81
84
|
}
|
|
82
|
-
const a = new
|
|
83
|
-
|
|
84
|
-
let s,
|
|
85
|
+
const a = new H({ dashed: !0 });
|
|
86
|
+
r.add(a), t.enable();
|
|
87
|
+
let s, h;
|
|
85
88
|
const n = (l) => {
|
|
86
89
|
if (l) {
|
|
87
90
|
if (!s) {
|
|
@@ -91,25 +94,25 @@ function U(r, i) {
|
|
|
91
94
|
};
|
|
92
95
|
return;
|
|
93
96
|
}
|
|
94
|
-
s &&
|
|
97
|
+
s && h && (M(), e());
|
|
95
98
|
}
|
|
96
|
-
},
|
|
99
|
+
}, o = (l) => {
|
|
97
100
|
if (!l || !s)
|
|
98
101
|
return;
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
101
|
-
const v = s.point.distanceTo(
|
|
102
|
-
|
|
102
|
+
const b = new y.Plane().setFromNormalAndCoplanarPoint(s.normal, s.point);
|
|
103
|
+
if (h = l.raycaster.ray.intersectPlane(b, new y.Vector3()), h) {
|
|
104
|
+
const v = s.point.distanceTo(h);
|
|
105
|
+
i.setPoints({ center: s.point, normal: s.normal, radius: v });
|
|
103
106
|
}
|
|
107
|
+
}, M = () => {
|
|
108
|
+
t.off("select", n), t.off("intersectionUpdate", o), t.off("disable", p), t.disable(), r == null || r.remove(a);
|
|
104
109
|
}, p = () => {
|
|
105
|
-
|
|
106
|
-
}, u = () => {
|
|
107
|
-
p(), t == null || t.remove(r, a), c(new Error("Cancelled"));
|
|
110
|
+
M(), r == null || r.remove(i, a), c(new Error("Cancelled"));
|
|
108
111
|
};
|
|
109
|
-
|
|
112
|
+
t.on("select", n), t.on("intersectionUpdate", o), t.on("disable", p);
|
|
110
113
|
});
|
|
111
114
|
}
|
|
112
115
|
export {
|
|
113
116
|
L as Circle,
|
|
114
|
-
|
|
117
|
+
O as createCircle
|
|
115
118
|
};
|
|
@@ -25,6 +25,7 @@ export declare class Cylinder extends BaseObject<CylinderImportData> {
|
|
|
25
25
|
type: string;
|
|
26
26
|
};
|
|
27
27
|
constructor(data?: CylinderImportData, config?: Partial<BaseObjectConfig>);
|
|
28
|
+
setData(data: Partial<CylinderImportData>): void;
|
|
28
29
|
highlight(): void;
|
|
29
30
|
unhighlight(): void;
|
|
30
31
|
create(params?: Partial<CylinderStyle>): Promise<void>;
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
var L = Object.defineProperty, j = Object.defineProperties;
|
|
2
2
|
var _ = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var g = Object.getOwnPropertySymbols;
|
|
4
4
|
var T = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var p = (n, t, e) => t in n ? L(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, d = (n, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
7
|
T.call(t, e) && p(n, e, t[e]);
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
8
|
+
if (g)
|
|
9
|
+
for (var e of g(t))
|
|
10
10
|
A.call(t, e) && p(n, e, t[e]);
|
|
11
11
|
return n;
|
|
12
|
-
},
|
|
12
|
+
}, w = (n, t) => j(n, _(t));
|
|
13
13
|
var m = (n, t, e) => (p(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
-
var f = (n, t, e) => new Promise((
|
|
15
|
-
var c = (
|
|
14
|
+
var f = (n, t, e) => new Promise((r, s) => {
|
|
15
|
+
var c = (i) => {
|
|
16
16
|
try {
|
|
17
|
-
o(e.next(
|
|
17
|
+
o(e.next(i));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
s(l);
|
|
20
20
|
}
|
|
21
|
-
}, h = (
|
|
21
|
+
}, h = (i) => {
|
|
22
22
|
try {
|
|
23
|
-
o(e.throw(
|
|
23
|
+
o(e.throw(i));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
s(l);
|
|
26
26
|
}
|
|
27
|
-
}, o = (
|
|
27
|
+
}, o = (i) => i.done ? r(i.value) : Promise.resolve(i.value).then(c, h);
|
|
28
28
|
o((e = e.apply(n, t)).next());
|
|
29
29
|
});
|
|
30
30
|
import { CylinderMesh as E } from "../../Meshes/Cylinder.js";
|
|
31
|
-
import { LineMesh as
|
|
32
|
-
import { rayOnLine as
|
|
33
|
-
import { BaseObject as
|
|
34
|
-
import { createCircle as
|
|
31
|
+
import { LineMesh as D } from "../../Meshes/Line.js";
|
|
32
|
+
import { rayOnLine as U } from "../../utils/three/rayOnLine.js";
|
|
33
|
+
import { BaseObject as W } from "../Base/index.js";
|
|
34
|
+
import { createCircle as z } from "../Circle/index.js";
|
|
35
35
|
import * as b from "three";
|
|
36
36
|
import { vector3ToArray as O } from "../../../shared-utils/three/vector3ToArray.js";
|
|
37
|
-
import { CylinderMeshEditor as
|
|
38
|
-
class Q extends
|
|
39
|
-
constructor(e,
|
|
40
|
-
super(e,
|
|
37
|
+
import { CylinderMeshEditor as B } from "../../Editors/CylinderMeshEditor.js";
|
|
38
|
+
class Q extends W {
|
|
39
|
+
constructor(e, r) {
|
|
40
|
+
super(e, r);
|
|
41
41
|
m(this, "type", "Cylinder");
|
|
42
42
|
m(this, "cylinderMesh");
|
|
43
43
|
m(this, "_editor");
|
|
44
44
|
e && (this.cylinderMesh = new E(d(d({}, e.style), e)), this.add(this.cylinderMesh));
|
|
45
45
|
}
|
|
46
46
|
get editor() {
|
|
47
|
-
return this._editor || (this._editor = new
|
|
47
|
+
return this._editor || (this._editor = new B(this.cylinderMesh)), this._editor;
|
|
48
48
|
}
|
|
49
49
|
get data() {
|
|
50
|
-
return
|
|
50
|
+
return w(d({}, this.baseData), {
|
|
51
51
|
bottomCenter: O(this.applyObjectMatrixWorld(this.cylinderMesh.bottomCenter, this.cylinderMesh)),
|
|
52
52
|
topCenter: O(this.applyObjectMatrixWorld(this.cylinderMesh.topCenter, this.cylinderMesh)),
|
|
53
53
|
radius: this.cylinderMesh.radius,
|
|
@@ -56,6 +56,9 @@ class Q extends z {
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
+
setData(e) {
|
|
60
|
+
this.cylinderMesh.setPoints(e), this.cylinderMesh.setStyle(e.style);
|
|
61
|
+
}
|
|
59
62
|
highlight() {
|
|
60
63
|
var e;
|
|
61
64
|
(e = this.cylinderMesh) == null || e.highlight();
|
|
@@ -73,27 +76,27 @@ class Q extends z {
|
|
|
73
76
|
function F(n, t) {
|
|
74
77
|
return f(this, null, function* () {
|
|
75
78
|
const e = n.parent;
|
|
76
|
-
yield
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
+
yield z(n.bottomCircle, t);
|
|
80
|
+
const r = new D();
|
|
81
|
+
r.name = "LineHelper", e.add(r);
|
|
79
82
|
const s = t.position.point, c = n.normal.clone().normalize(), h = s.clone().add(c.clone().multiplyScalar(10)), o = s.clone().sub(c.clone().multiplyScalar(10));
|
|
80
|
-
return
|
|
83
|
+
return r.setPoints([h, o]), t.enable(), new Promise((i, l) => {
|
|
81
84
|
const C = (a) => {
|
|
82
|
-
M(),
|
|
85
|
+
M(), i();
|
|
83
86
|
}, u = (a) => {
|
|
84
87
|
if (!(a != null && a.raycaster))
|
|
85
88
|
return;
|
|
86
|
-
const y =
|
|
89
|
+
const y = U({
|
|
87
90
|
raycaster: a.raycaster,
|
|
88
91
|
line: new b.Line3(h, o)
|
|
89
92
|
}), v = new b.Plane().setFromNormalAndCoplanarPoint(n.normal, n.bottomCenter).projectPoint(y, new b.Vector3()), x = y.clone().sub(v), H = n.bottomCenter.clone().add(x);
|
|
90
93
|
y && n.setTopCenter(H);
|
|
91
94
|
}, M = () => {
|
|
92
|
-
t.off("select", C), t.off("intersectionUpdate", u), t.off("disable",
|
|
93
|
-
},
|
|
95
|
+
t.off("select", C), t.off("intersectionUpdate", u), t.off("disable", P), e.remove(r), t.disable();
|
|
96
|
+
}, P = () => {
|
|
94
97
|
M(), e.remove(n), l(new Error("Cancelled"));
|
|
95
98
|
};
|
|
96
|
-
t.on("select", C), t.on("intersectionUpdate", u), t.on("disable",
|
|
99
|
+
t.on("select", C), t.on("intersectionUpdate", u), t.on("disable", P);
|
|
97
100
|
});
|
|
98
101
|
});
|
|
99
102
|
}
|
|
@@ -26,6 +26,7 @@ export declare class Line extends BaseObject<LineImportData> {
|
|
|
26
26
|
type: string;
|
|
27
27
|
};
|
|
28
28
|
constructor(data?: LineImportData, config?: Partial<BaseObjectConfig>);
|
|
29
|
+
setData(data: Partial<LineImportData>): void;
|
|
29
30
|
highlight(): void;
|
|
30
31
|
unhighlight(): void;
|
|
31
32
|
canUndo(): void;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
1
|
+
var D = Object.defineProperty, A = Object.defineProperties;
|
|
2
2
|
var k = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var R = Object.getOwnPropertySymbols;
|
|
4
4
|
var z = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var j = (n, t, e) => t in n ?
|
|
5
|
+
var j = (n, t, e) => t in n ? D(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, f = (n, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
7
|
z.call(t, e) && j(n, e, t[e]);
|
|
8
8
|
if (R)
|
|
9
9
|
for (var e of R(t))
|
|
10
10
|
B.call(t, e) && j(n, e, t[e]);
|
|
11
11
|
return n;
|
|
12
|
-
}, v = (n, t) =>
|
|
12
|
+
}, v = (n, t) => A(n, k(t));
|
|
13
13
|
var p = (n, t, e) => (j(n, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
14
|
var U = (n, t, e) => new Promise((s, m) => {
|
|
15
15
|
var P = (o) => {
|
|
@@ -57,6 +57,9 @@ class ne extends F {
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
+
setData(e) {
|
|
61
|
+
e.points && this.lineMesh.setPoints(e.points), this.lineMesh.setStyle(e.style);
|
|
62
|
+
}
|
|
60
63
|
highlight() {
|
|
61
64
|
var e;
|
|
62
65
|
(e = this.lineMesh) == null || e.highlight();
|
|
@@ -100,10 +103,10 @@ function J(n, t, e) {
|
|
|
100
103
|
s.add(l), t.enable();
|
|
101
104
|
const i = [];
|
|
102
105
|
let h, d, y;
|
|
103
|
-
const g = [],
|
|
104
|
-
|
|
106
|
+
const g = [], M = () => i.length > 0, O = () => g.length > 0, W = () => {
|
|
107
|
+
M() && (g.push(i.pop()), n.setPoints(i), u(y), t.pointSelectorHelper.magnifier.render());
|
|
105
108
|
}, _ = () => {
|
|
106
|
-
|
|
109
|
+
O() && (i.push(g.pop()), n.setPoints(i), u(y), t.pointSelectorHelper.magnifier.render());
|
|
107
110
|
}, E = (r) => {
|
|
108
111
|
if (!r)
|
|
109
112
|
return;
|
|
@@ -130,8 +133,8 @@ function J(n, t, e) {
|
|
|
130
133
|
};
|
|
131
134
|
return t.on("select", E), t.on("intersectionUpdate", u), t.on("disable", x), {
|
|
132
135
|
finished: m,
|
|
133
|
-
canUndo:
|
|
134
|
-
canRedo:
|
|
136
|
+
canUndo: M,
|
|
137
|
+
canRedo: O,
|
|
135
138
|
undo: W,
|
|
136
139
|
redo: _
|
|
137
140
|
};
|
|
@@ -22,6 +22,7 @@ export declare class Point extends BaseObject<PointImportData> {
|
|
|
22
22
|
type: string;
|
|
23
23
|
};
|
|
24
24
|
constructor(data?: PointImportData, config?: Partial<BaseObjectConfig>);
|
|
25
|
+
setData(data: Partial<PointImportData>): void;
|
|
25
26
|
highlight(): void;
|
|
26
27
|
unhighlight(): void;
|
|
27
28
|
/**
|
|
@@ -1,49 +1,50 @@
|
|
|
1
|
-
var
|
|
1
|
+
var g = Object.defineProperty, u = Object.defineProperties;
|
|
2
2
|
var M = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var d = Object.getOwnPropertySymbols;
|
|
4
4
|
var P = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var c = (e, i, t) => i in e ? g(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, f = (e, i) => {
|
|
6
6
|
for (var t in i || (i = {}))
|
|
7
|
-
P.call(i, t) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
v.call(i, t) &&
|
|
7
|
+
P.call(i, t) && c(e, t, i[t]);
|
|
8
|
+
if (d)
|
|
9
|
+
for (var t of d(i))
|
|
10
|
+
v.call(i, t) && c(e, t, i[t]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, m = (e, i) => u(e, M(i));
|
|
13
|
+
var p = (e, i, t) => (c(e, typeof i != "symbol" ? i + "" : i, t), t);
|
|
14
|
+
var y = (e, i, t) => new Promise((h, n) => {
|
|
15
15
|
var r = (s) => {
|
|
16
16
|
try {
|
|
17
17
|
o(t.next(s));
|
|
18
|
-
} catch (
|
|
19
|
-
n(
|
|
18
|
+
} catch (l) {
|
|
19
|
+
n(l);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (s) => {
|
|
22
22
|
try {
|
|
23
23
|
o(t.throw(s));
|
|
24
|
-
} catch (
|
|
25
|
-
n(
|
|
24
|
+
} catch (l) {
|
|
25
|
+
n(l);
|
|
26
26
|
}
|
|
27
|
-
}, o = (s) => s.done ? h(s.value) : Promise.resolve(s.value).then(r,
|
|
27
|
+
}, o = (s) => s.done ? h(s.value) : Promise.resolve(s.value).then(r, a);
|
|
28
28
|
o((t = t.apply(e, i)).next());
|
|
29
29
|
});
|
|
30
|
-
import { PointMesh as
|
|
30
|
+
import { PointMesh as b } from "../../Meshes/Point.js";
|
|
31
31
|
import { BaseObject as w } from "../Base/index.js";
|
|
32
32
|
import { PointEditor as x } from "./Editor.js";
|
|
33
33
|
import { vector3ToArray as E } from "../../../shared-utils/three/vector3ToArray.js";
|
|
34
|
+
import { anyPositionToVector3 as _ } from "../../../shared-utils/positionToVector3.js";
|
|
34
35
|
class B extends w {
|
|
35
36
|
constructor(t, h) {
|
|
36
37
|
super(t, h);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
t && (this.pointMesh = new
|
|
38
|
+
p(this, "type", "Point");
|
|
39
|
+
p(this, "pointMesh");
|
|
40
|
+
p(this, "_editor");
|
|
41
|
+
t && (this.pointMesh = new b(f(f({}, t.style), t)), this.add(this.pointMesh));
|
|
41
42
|
}
|
|
42
43
|
get editor() {
|
|
43
44
|
return this._editor || (this._editor = new x(this)), this._editor;
|
|
44
45
|
}
|
|
45
46
|
get data() {
|
|
46
|
-
return
|
|
47
|
+
return m(f({}, this.baseData), {
|
|
47
48
|
point: E(this.applyObjectMatrixWorld(this.pointMesh.position)),
|
|
48
49
|
style: {
|
|
49
50
|
color: this.pointMesh.color.getHex(),
|
|
@@ -51,6 +52,9 @@ class B extends w {
|
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
54
|
}
|
|
55
|
+
setData(t) {
|
|
56
|
+
t.point && this.pointMesh.position.copy(_(t.point)), this.pointMesh.setStyle(t.style);
|
|
57
|
+
}
|
|
54
58
|
highlight() {
|
|
55
59
|
var t;
|
|
56
60
|
(t = this.pointMesh) == null || t.highlight();
|
|
@@ -71,19 +75,19 @@ class B extends w {
|
|
|
71
75
|
* @description: 创建点
|
|
72
76
|
*/
|
|
73
77
|
create(t) {
|
|
74
|
-
return
|
|
75
|
-
this.pointMesh && this.remove(this.pointMesh), this.add(this.pointMesh = new
|
|
78
|
+
return y(this, null, function* () {
|
|
79
|
+
this.pointMesh && this.remove(this.pointMesh), this.add(this.pointMesh = new b(t)), yield U(this.pointMesh, this.pointSelector), this.config.canEdit && this.editor.enable();
|
|
76
80
|
});
|
|
77
81
|
}
|
|
78
82
|
}
|
|
79
|
-
function
|
|
83
|
+
function U(e, i) {
|
|
80
84
|
return new Promise((t, h) => {
|
|
81
85
|
i.enable(), e.visible = !1;
|
|
82
86
|
const n = (s) => {
|
|
83
87
|
s && (e.visible = !0, e.position.copy(s.point));
|
|
84
88
|
}, r = (s) => {
|
|
85
|
-
s && (e.visible = !0, e.position.copy(s.point),
|
|
86
|
-
},
|
|
89
|
+
s && (e.visible = !0, e.position.copy(s.point), a());
|
|
90
|
+
}, a = () => {
|
|
87
91
|
i.off("select", r), i.off("disable", o), i.off("intersectionUpdate", n), i.disable(), t();
|
|
88
92
|
}, o = () => {
|
|
89
93
|
i.off("select", r), i.off("disable", o), i.off("intersectionUpdate", n), e.removeFromParent(), h(new Error("Cancelled"));
|
|
@@ -93,5 +97,5 @@ function _(e, i) {
|
|
|
93
97
|
}
|
|
94
98
|
export {
|
|
95
99
|
B as Point,
|
|
96
|
-
|
|
100
|
+
U as createPoint
|
|
97
101
|
};
|
|
@@ -26,6 +26,7 @@ export declare class Polygon extends BaseObject<PolygonImportData> {
|
|
|
26
26
|
type: string;
|
|
27
27
|
};
|
|
28
28
|
constructor(data?: PolygonImportData, config?: Partial<BaseObjectConfig>);
|
|
29
|
+
setData(data: Partial<PolygonImportData>): void;
|
|
29
30
|
highlight(): void;
|
|
30
31
|
unhighlight(): void;
|
|
31
32
|
canUndo(): void;
|