@realsee/dnalogel 3.53.4 → 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/README.md +116 -0
- 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 +116 -77
- 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/Sculpt/Meshes/Circle.d.ts +3 -1
- package/libs/Sculpt/Meshes/Circle.js +23 -17
- package/libs/Sculpt/Meshes/Cylinder.d.ts +4 -2
- package/libs/Sculpt/Meshes/Cylinder.js +31 -35
- 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/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
import { radiusToSegments as
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var _ = (i, e, t) => e in i ? c(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
+
var o = (i, e, t) => (_(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import * as d from "three";
|
|
5
|
+
import { radiusToSegments as u } from "../utils/radiusToSegments.js";
|
|
6
6
|
import { ColoredMesh as m } from "../utils/three/ColoredMesh.js";
|
|
7
|
-
import { anyPositionToVector3 as
|
|
8
|
-
class
|
|
9
|
-
constructor(
|
|
10
|
-
super(
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
import { anyPositionToVector3 as h } from "../../shared-utils/positionToVector3.js";
|
|
8
|
+
class P extends m {
|
|
9
|
+
constructor(t) {
|
|
10
|
+
super(t);
|
|
11
|
+
o(this, "_normal");
|
|
12
|
+
o(this, "_center");
|
|
13
|
+
o(this, "_radius");
|
|
14
|
+
t != null && t.center && (t != null && t.normal) && (t != null && t.radius) && this.setPoints(t);
|
|
13
15
|
}
|
|
14
16
|
get center() {
|
|
15
17
|
return this.position.clone();
|
|
@@ -17,17 +19,21 @@ class T extends m {
|
|
|
17
19
|
get normal() {
|
|
18
20
|
return this._normal;
|
|
19
21
|
}
|
|
20
|
-
set normal(
|
|
21
|
-
this._normal =
|
|
22
|
+
set normal(t) {
|
|
23
|
+
this._normal = t;
|
|
22
24
|
}
|
|
23
25
|
get radius() {
|
|
24
26
|
return this.meshFont.geometry.parameters.radius;
|
|
25
27
|
}
|
|
26
|
-
setPoints(
|
|
27
|
-
|
|
28
|
-
this.
|
|
28
|
+
setPoints(t) {
|
|
29
|
+
var r, n, s;
|
|
30
|
+
if (this._center = (r = h(t.center)) != null ? r : this._center, this._normal = (n = h(t.normal)) != null ? n : this._normal, this._radius = (s = t.radius) != null ? s : this._radius, this._center && this._normal && this._radius) {
|
|
31
|
+
const l = u(this._radius);
|
|
32
|
+
this.geometry = new d.CircleGeometry(this._radius, l), this.position.copy(this._center), this.lookAt(this._normal.clone().add(this._center)), this.normal = this._normal.clone().normalize();
|
|
33
|
+
}
|
|
34
|
+
this.needsRender = !0;
|
|
29
35
|
}
|
|
30
36
|
}
|
|
31
37
|
export {
|
|
32
|
-
|
|
38
|
+
P as CircleMesh
|
|
33
39
|
};
|
|
@@ -21,11 +21,13 @@ export declare class CylinderMesh extends IObject3D {
|
|
|
21
21
|
protected edgeMesh: ColoredMesh;
|
|
22
22
|
private highlighted;
|
|
23
23
|
private params;
|
|
24
|
+
private _topCenter;
|
|
25
|
+
private _bottomCenter;
|
|
24
26
|
constructor(params?: Params);
|
|
25
|
-
setPoints(params: CylinderData): void;
|
|
27
|
+
setPoints(params: Partial<CylinderData>): void;
|
|
26
28
|
setTopCenter(center: THREE.Vector3): void;
|
|
27
29
|
setBottomCenter(center: THREE.Vector3): void;
|
|
28
|
-
setStyle(style: CylinderStyle): void;
|
|
30
|
+
setStyle(style: Partial<CylinderStyle>): void;
|
|
29
31
|
highlight(): void;
|
|
30
32
|
unhighlight(): void;
|
|
31
33
|
private setEdgeMesh;
|
|
@@ -1,32 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var n = (i, e, t) => e in i ?
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var C = Object.getOwnPropertySymbols;
|
|
3
|
+
var u = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var n = (i, e, t) => e in i ? m(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, l = (i, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
6
|
+
u.call(e, t) && n(i, t, e[t]);
|
|
7
|
+
if (C)
|
|
8
|
+
for (var t of C(e))
|
|
9
9
|
b.call(e, t) && n(i, t, e[t]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
12
|
var o = (i, e, t) => (n(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
-
import { IObject3D as
|
|
14
|
-
import * as
|
|
15
|
-
import "
|
|
16
|
-
import "
|
|
17
|
-
import "
|
|
18
|
-
import "
|
|
19
|
-
|
|
20
|
-
import { notNil as d } from "../../shared-utils/isNil.js";
|
|
21
|
-
import { anyPositionToVector3 as g } from "../../shared-utils/positionToVector3.js";
|
|
22
|
-
import "../../shared-utils/three/core/Sphere.js";
|
|
23
|
-
import "animejs";
|
|
24
|
-
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
25
|
-
import "../../shared-utils/five/FivePuppet.js";
|
|
26
|
-
import { CircleWithEdgeMesh as m } from "./CircleWithEdge.js";
|
|
27
|
-
import { radiusToSegments as M } from "../utils/radiusToSegments.js";
|
|
28
|
-
import { ColoredMesh as E } from "../utils/three/ColoredMesh.js";
|
|
29
|
-
class F extends f {
|
|
13
|
+
import { IObject3D as p } from "../../shared-utils/three/IObject3D.js";
|
|
14
|
+
import * as r from "three";
|
|
15
|
+
import { CircleWithEdgeMesh as c } from "./CircleWithEdge.js";
|
|
16
|
+
import { radiusToSegments as f } from "../utils/radiusToSegments.js";
|
|
17
|
+
import { ColoredMesh as M } from "../utils/three/ColoredMesh.js";
|
|
18
|
+
import { anyPositionToVector3 as d } from "../../shared-utils/positionToVector3.js";
|
|
19
|
+
class P extends p {
|
|
30
20
|
constructor(t) {
|
|
31
21
|
super();
|
|
32
22
|
o(this, "bottomCircle");
|
|
@@ -34,7 +24,9 @@ class F extends f {
|
|
|
34
24
|
o(this, "edgeMesh");
|
|
35
25
|
o(this, "highlighted", !1);
|
|
36
26
|
o(this, "params");
|
|
37
|
-
|
|
27
|
+
o(this, "_topCenter");
|
|
28
|
+
o(this, "_bottomCenter");
|
|
29
|
+
this.params = t, this.bottomCircle = new c(t), this.bottomCircle.name = "bottomCircle", this.topCircle = new c(t), this.topCircle.name = "topCircle", this.edgeMesh = new M(t), t != null && t.bottomCenter && (t != null && t.topCenter) && (t != null && t.radius) && this.setPoints(t), this.addIfNotExists(this.bottomCircle);
|
|
38
30
|
}
|
|
39
31
|
get bottomCenter() {
|
|
40
32
|
return this.bottomCircle.center;
|
|
@@ -52,8 +44,12 @@ class F extends f {
|
|
|
52
44
|
return this.bottomCircle.color;
|
|
53
45
|
}
|
|
54
46
|
setPoints(t) {
|
|
55
|
-
|
|
56
|
-
this.
|
|
47
|
+
var s, h;
|
|
48
|
+
if (this._topCenter = (s = d(t.topCenter)) != null ? s : this.topCenter, this._bottomCenter = (h = d(t.bottomCenter)) != null ? h : this.bottomCenter, this._topCenter && this._bottomCenter) {
|
|
49
|
+
const g = this._topCenter.clone().sub(this._bottomCenter).normalize();
|
|
50
|
+
this.bottomCircle.setPoints({ center: this._bottomCenter, normal: g, radius: t.radius }), this.setTopCenter(this._topCenter);
|
|
51
|
+
}
|
|
52
|
+
this.needsRender = !0;
|
|
57
53
|
}
|
|
58
54
|
setTopCenter(t) {
|
|
59
55
|
this.addIfNotExists(this.topCircle), this.topCircle.setPoints({ center: t, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
|
|
@@ -62,7 +58,7 @@ class F extends f {
|
|
|
62
58
|
this.addIfNotExists(this.bottomCircle), this.bottomCircle.setPoints({ center: t, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
|
|
63
59
|
}
|
|
64
60
|
setStyle(t) {
|
|
65
|
-
this.params = l(l({}, this.params), t),
|
|
61
|
+
this.params = l(l({}, this.params), t), this.bottomCircle.setStyle(this.params), this.topCircle.setStyle(this.params);
|
|
66
62
|
}
|
|
67
63
|
highlight() {
|
|
68
64
|
this.highlighted || (this.highlighted = !0, this.edgeMesh.highlight(), this.bottomCircle.highlight(), this.topCircle.highlight(), this.needsRender = !0);
|
|
@@ -72,19 +68,19 @@ class F extends f {
|
|
|
72
68
|
}
|
|
73
69
|
setEdgeMesh() {
|
|
74
70
|
this.addIfNotExists(this.edgeMesh);
|
|
75
|
-
const t = this.topCircle.center,
|
|
76
|
-
this.edgeMesh.geometry.dispose(), this.edgeMesh.geometry = new
|
|
71
|
+
const t = this.topCircle.center, s = this.bottomCircle.center;
|
|
72
|
+
this.edgeMesh.geometry.dispose(), this.edgeMesh.geometry = new r.CylinderGeometry(
|
|
77
73
|
this.radius,
|
|
78
74
|
this.radius,
|
|
79
|
-
t.distanceTo(
|
|
80
|
-
|
|
75
|
+
t.distanceTo(s),
|
|
76
|
+
f(this.radius),
|
|
81
77
|
1,
|
|
82
78
|
!0
|
|
83
79
|
);
|
|
84
|
-
const
|
|
85
|
-
this.edgeMesh.position.copy(new
|
|
80
|
+
const h = new r.Quaternion().setFromUnitVectors(new r.Vector3(0, 1, 0), this.normal.clone().normalize());
|
|
81
|
+
this.edgeMesh.position.copy(new r.Vector3().lerpVectors(s, t, 0.5)), this.edgeMesh.quaternion.copy(h);
|
|
86
82
|
}
|
|
87
83
|
}
|
|
88
84
|
export {
|
|
89
|
-
|
|
85
|
+
P as CylinderMesh
|
|
90
86
|
};
|
|
@@ -64,6 +64,7 @@ Config extends BaseObjectConfig = BaseObjectConfig> extends IObject3D {
|
|
|
64
64
|
};
|
|
65
65
|
protected get pointSelector(): import("../../../shared-utils").PointSelector;
|
|
66
66
|
constructor(data?: Partial<ImportData>, config?: Partial<Config>);
|
|
67
|
+
abstract setData(data: Partial<ImportData>): void;
|
|
67
68
|
on: <T extends keyof FiveDomEventMap>(event: T, callback: FiveDomEventMap[T], config?: EventHandlerConfig) => void;
|
|
68
69
|
off: (event?: keyof FiveDomEventMap, callback?: (e: import("../../../shared-utils/five/FiveDomEvents").FiveDomEvent) => any, ...args: any[]) => void;
|
|
69
70
|
/**
|
|
@@ -26,6 +26,7 @@ export declare class Box extends BaseObject<BoxImportData> {
|
|
|
26
26
|
type: string;
|
|
27
27
|
};
|
|
28
28
|
constructor(data?: BoxImportData, config?: Partial<BaseObjectConfig>);
|
|
29
|
+
setData(data: Partial<BoxImportData>): void;
|
|
29
30
|
highlight(): void;
|
|
30
31
|
unhighlight(): void;
|
|
31
32
|
create(params?: Partial<BoxStyle & CreateLimitConfig & DrawMethodConfig>): Promise<void>;
|
|
@@ -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>;
|