@realsee/dnalogel 3.58.5-alpha.0 → 3.58.5-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Sculpt/Objects/Line/index.d.ts +1 -3
- package/dist/index.cjs.js +26 -26
- package/dist/index.js +905 -905
- package/dist/index.umd.js +30 -30
- package/dist/shared-utils/three/PointSelector/utils/PointHelper.d.ts +1 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +2 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +2 -2
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +2 -2
- package/docs/classes/PaintBrush.html +2 -2
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
- package/docs/classes/PanoTagPluginController.html +2 -2
- package/docs/classes/Sculpt.html +2 -2
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +2 -2
- package/docs/classes/Util.FivePuppet.html +2 -2
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LightTag.html +2 -2
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +2 -2
- package/docs/classes/Util.Object3D.html +2 -2
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +2 -2
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +2 -2
- package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
- package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.LineMesh.html +2 -2
- package/docs/classes/Util.sculpt.PointMesh.html +2 -2
- package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
- package/docs/classes/WalkController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +2 -2
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +2 -2
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +2 -2
- package/docs/enums/Rotation.html +2 -2
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMapInterface.html +2 -2
- package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +2 -2
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +2 -2
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +2 -2
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +2 -2
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +2 -2
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
- package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +2 -2
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
- package/docs/interfaces/PluginEventMap.html +2 -2
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +2 -2
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +2 -2
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +2 -2
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +2 -2
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoModelUnderMouse.html +1 -1
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/Sculpt/Objects/Line/index.d.ts +1 -3
- package/libs/Sculpt/Objects/Line/index.js +74 -74
- package/libs/Sculpt/Objects/Rectangle/index.js +49 -49
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.js +24 -24
- package/libs/shared-utils/three/PointSelector/utils/PointHelper.d.ts +1 -0
- package/libs/shared-utils/three/PointSelector/utils/PointHelper.js +24 -24
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var I = Object.defineProperty, k = Object.defineProperties;
|
|
2
|
+
var q = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var _ = Object.getOwnPropertySymbols;
|
|
4
|
+
var G = Object.prototype.hasOwnProperty, J = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var W = (o, n, e) => n in o ? I(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e, p = (o, n) => {
|
|
6
6
|
for (var e in n || (n = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
7
|
+
G.call(n, e) && W(o, e, n[e]);
|
|
8
|
+
if (_)
|
|
9
|
+
for (var e of _(n))
|
|
10
|
+
J.call(n, e) && W(o, e, n[e]);
|
|
11
11
|
return o;
|
|
12
|
-
}, w = (o, n) =>
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, w = (o, n) => k(o, q(n));
|
|
13
|
+
var O = (o, n, e) => (W(o, typeof n != "symbol" ? n + "" : n, e), e);
|
|
14
|
+
var j = (o, n, e) => new Promise((f, m) => {
|
|
15
15
|
var y = (c) => {
|
|
16
16
|
try {
|
|
17
17
|
i(e.next(c));
|
|
@@ -27,30 +27,30 @@ var _ = (o, n, e) => new Promise((f, m) => {
|
|
|
27
27
|
}, i = (c) => c.done ? f(c.value) : Promise.resolve(c.value).then(y, l);
|
|
28
28
|
i((e = e.apply(o, n)).next());
|
|
29
29
|
});
|
|
30
|
-
import { BaseObject as
|
|
30
|
+
import { BaseObject as K } from "../Base/index.js";
|
|
31
31
|
import * as s from "three";
|
|
32
32
|
import { PolylineWithDotsMesh as b } from "../../Meshes/Polyline.js";
|
|
33
|
-
import { RectangleMeshEditor as
|
|
34
|
-
import { RectangleWithEdgeMesh as
|
|
35
|
-
import { sortPositionsByCameraPosition as
|
|
36
|
-
import { Sculpt as
|
|
37
|
-
import { vector3ToArray as
|
|
38
|
-
import { anyPositionToVector3 as
|
|
39
|
-
import { withResolvers as
|
|
40
|
-
class
|
|
33
|
+
import { RectangleMeshEditor as Q } from "../../Editors/RectangleMeshEditor.js";
|
|
34
|
+
import { RectangleWithEdgeMesh as A } from "../../Meshes/RectangleWithEdge.js";
|
|
35
|
+
import { sortPositionsByCameraPosition as D } from "../../utils/sortPositionsByCameraPosition.js";
|
|
36
|
+
import { Sculpt as F } from "../../index.js";
|
|
37
|
+
import { vector3ToArray as X } from "../../../shared-utils/three/vector3ToArray.js";
|
|
38
|
+
import { anyPositionToVector3 as Y } from "../../../shared-utils/positionToVector3.js";
|
|
39
|
+
import { withResolvers as B } from "../../../shared-utils/promise/withResolvers.js";
|
|
40
|
+
class he extends K {
|
|
41
41
|
constructor(e, f) {
|
|
42
42
|
super(e, f);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
e && (this.rectangleMesh = new
|
|
43
|
+
O(this, "type", "Rectangle");
|
|
44
|
+
O(this, "rectangleMesh");
|
|
45
|
+
O(this, "_editor");
|
|
46
|
+
e && (this.rectangleMesh = new A(p(p({}, e.style), e)), this.add(this.rectangleMesh));
|
|
47
47
|
}
|
|
48
48
|
get editor() {
|
|
49
|
-
return this._editor || (this._editor = new
|
|
49
|
+
return this._editor || (this._editor = new Q(this.rectangleMesh)), this._editor;
|
|
50
50
|
}
|
|
51
51
|
get data() {
|
|
52
52
|
return w(p({}, this.baseData), {
|
|
53
|
-
points:
|
|
53
|
+
points: X(this.applyObjectMatrixWorld(this.rectangleMesh.points, this.rectangleMesh)),
|
|
54
54
|
style: {
|
|
55
55
|
color: this.rectangleMesh.color.getHex(),
|
|
56
56
|
opacity: this.rectangleMesh.opacity,
|
|
@@ -60,7 +60,7 @@ class ce extends J {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
setData(e) {
|
|
63
|
-
e.points && this.rectangleMesh.setPoints(this.applyObjectReversalMatrixWorld(e.points.map(
|
|
63
|
+
e.points && this.rectangleMesh.setPoints(this.applyObjectReversalMatrixWorld(e.points.map(Y))), this.rectangleMesh.setStyle(e.style), this._editor && this._editor.initialHelperMatrix();
|
|
64
64
|
}
|
|
65
65
|
highlight() {
|
|
66
66
|
var e;
|
|
@@ -71,20 +71,20 @@ class ce extends J {
|
|
|
71
71
|
(e = this.rectangleMesh) == null || e.unhighlight();
|
|
72
72
|
}
|
|
73
73
|
create(e) {
|
|
74
|
-
return
|
|
74
|
+
return j(this, null, function* () {
|
|
75
75
|
this.removeChildren();
|
|
76
|
-
const f = new
|
|
77
|
-
this.rectangleMesh = f, this.add(this.rectangleMesh), yield
|
|
76
|
+
const f = new A(e);
|
|
77
|
+
this.rectangleMesh = f, this.add(this.rectangleMesh), yield Z(this.rectangleMesh, this.pointSelector, e), this.config.canEdit && this.editor.enable();
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Z(o, n, e) {
|
|
82
82
|
var m;
|
|
83
|
-
return ((m = e == null ? void 0 : e.drawMethod) != null ? m : "diagonal") === "diagonal" ?
|
|
83
|
+
return ((m = e == null ? void 0 : e.drawMethod) != null ? m : "diagonal") === "diagonal" ? $(o, n, e) : S(o, n, e);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function $(o, n, e) {
|
|
86
86
|
var C;
|
|
87
|
-
const { promise: f, reject: m, resolve: y } =
|
|
87
|
+
const { promise: f, reject: m, resolve: y } = B(), l = o.parent;
|
|
88
88
|
if (!l)
|
|
89
89
|
return m(new Error("No container"));
|
|
90
90
|
const i = (C = e == null ? void 0 : e.limit) != null ? C : "none", c = new b(w(p({}, o.style), { dashed: !0 })), h = new b(w(p({}, o.style), { dashed: !0, lengthEnable: !1 })), P = new b(w(p({}, o.style), { dashed: !1, lengthEnable: !1 }));
|
|
@@ -94,12 +94,12 @@ function Z(o, n, e) {
|
|
|
94
94
|
const d = new s.Plane(), E = () => {
|
|
95
95
|
t.push(a.clone()), t.length === 1 ? (i === "xoz" && d.setFromNormalAndCoplanarPoint(new s.Vector3(0, 1, 0), t[0]), i === "none" && d.setFromNormalAndCoplanarPoint(L, t[0])) : t.length === 2 ? i === "y" || i === "xoz" ? (V(), y()) : P.setPoints([t[0], t[1]]) : t.length === 3 && (V(), y());
|
|
96
96
|
}, M = (r) => {
|
|
97
|
-
var N;
|
|
97
|
+
var N, z;
|
|
98
98
|
if (!(r != null && r.raycaster))
|
|
99
99
|
return;
|
|
100
100
|
const R = (N = t.at(-1)) == null ? void 0 : N.clone();
|
|
101
101
|
if (t.length === 0) {
|
|
102
|
-
a = r.point.clone(), L = r.face.normal;
|
|
102
|
+
a = r.point.clone(), L = (z = r.face) == null ? void 0 : z.normal;
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
105
|
if (t.length === 1 && i === "y") {
|
|
@@ -118,10 +118,10 @@ function Z(o, n, e) {
|
|
|
118
118
|
}
|
|
119
119
|
if (t.length === 2 && i === "none") {
|
|
120
120
|
l.remove(c);
|
|
121
|
-
const g = r.raycaster.ray.intersectPlane(d, new s.Vector3()), u = t[0].distanceTo(t[1]) / 2, v = new s.Vector3().lerpVectors(t[0], t[1], 0.5),
|
|
122
|
-
a = new s.Vector3().addVectors(v,
|
|
123
|
-
const
|
|
124
|
-
o.setPoints(
|
|
121
|
+
const g = r.raycaster.ray.intersectPlane(d, new s.Vector3()), u = t[0].distanceTo(t[1]) / 2, v = new s.Vector3().lerpVectors(t[0], t[1], 0.5), T = new s.Vector3().subVectors(g, v).normalize();
|
|
122
|
+
a = new s.Vector3().addVectors(v, T.multiplyScalar(u));
|
|
123
|
+
const H = [t[0], a, t[1]], U = D(H, F.modules.five.camera.position);
|
|
124
|
+
o.setPoints(U);
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
127
|
}, V = () => {
|
|
@@ -131,9 +131,9 @@ function Z(o, n, e) {
|
|
|
131
131
|
};
|
|
132
132
|
return n.on("select", E), n.on("intersectionUpdate", M), n.on("disable", x), f;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function S(o, n, e) {
|
|
135
135
|
var C;
|
|
136
|
-
const { promise: f, reject: m, resolve: y } =
|
|
136
|
+
const { promise: f, reject: m, resolve: y } = B(), l = o.parent;
|
|
137
137
|
if (!l)
|
|
138
138
|
return m(new Error("No container"));
|
|
139
139
|
const i = (C = e == null ? void 0 : e.limit) != null ? C : "none", c = new b(w(p({}, o.style), { dashed: !0 })), h = new b(w(p({}, o.style), { dashed: !0, lengthEnable: !1 })), P = new b(w(p({}, o.style), { dashed: !1, lengthEnable: !1 }));
|
|
@@ -143,12 +143,12 @@ function $(o, n, e) {
|
|
|
143
143
|
const d = new s.Plane(), E = () => {
|
|
144
144
|
t.push(a.clone()), t.length === 1 ? (i === "xoz" && d.setFromNormalAndCoplanarPoint(new s.Vector3(0, 1, 0), t[0]), i === "none" && d.setFromNormalAndCoplanarPoint(L, t[0])) : t.length === 2 ? (i === "y" && d.setFromCoplanarPoints(t[0], t[1], new s.Vector3(0, 1, 0).add(t[0])), P.setPoints([t[0], t[1]])) : t.length === 3 && (V(), y());
|
|
145
145
|
}, M = (r) => {
|
|
146
|
-
var N;
|
|
146
|
+
var N, z;
|
|
147
147
|
if (!(r != null && r.raycaster))
|
|
148
148
|
return;
|
|
149
149
|
const R = (N = t.at(-1)) == null ? void 0 : N.clone();
|
|
150
150
|
if (t.length === 0) {
|
|
151
|
-
a = r.point.clone(), L = r.face.normal;
|
|
151
|
+
a = r.point.clone(), L = (z = r.face) == null ? void 0 : z.normal;
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
154
|
if (t.length === 1 && i === "y") {
|
|
@@ -167,8 +167,8 @@ function $(o, n, e) {
|
|
|
167
167
|
l.remove(c);
|
|
168
168
|
const g = new s.Vector3().crossVectors(t[0].clone().sub(t[1]), d.normal).normalize();
|
|
169
169
|
a = new s.Line3(t[1].clone().add(g), t[1].clone().sub(g)).closestPointToPoint(r.point, !1, new s.Vector3());
|
|
170
|
-
const v = [t[0], t[1], a],
|
|
171
|
-
o.setPoints(
|
|
170
|
+
const v = [t[0], t[1], a], T = D(v, F.modules.five.camera.position);
|
|
171
|
+
o.setPoints(T);
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
174
|
}, V = () => {
|
|
@@ -179,6 +179,6 @@ function $(o, n, e) {
|
|
|
179
179
|
return n.on("select", E), n.on("intersectionUpdate", M), n.on("disable", x), f;
|
|
180
180
|
}
|
|
181
181
|
export {
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
he as Rectangle,
|
|
183
|
+
Z as createRectangle
|
|
184
184
|
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.58.5-alpha.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.58.5-alpha.1",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
var S = Object.defineProperty, w = Object.defineProperties;
|
|
2
2
|
var b = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var v = Object.getOwnPropertySymbols;
|
|
4
4
|
var E = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var f = (n, s, e) => s in n ? S(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e, c = (n, s) => {
|
|
6
6
|
for (var e in s || (s = {}))
|
|
7
|
-
E.call(s, e) &&
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
I.call(s, e) &&
|
|
7
|
+
E.call(s, e) && f(n, e, s[e]);
|
|
8
|
+
if (v)
|
|
9
|
+
for (var e of v(s))
|
|
10
|
+
I.call(s, e) && f(n, e, s[e]);
|
|
11
11
|
return n;
|
|
12
|
-
},
|
|
13
|
-
var i = (n, s, e) => (
|
|
12
|
+
}, m = (n, s) => w(n, b(s));
|
|
13
|
+
var i = (n, s, e) => (f(n, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
14
|
import { PointSelectorHelper as H } from "./utils/PointSelectorHelper.js";
|
|
15
15
|
import { isTouchDevice as y } from "../../isTouchDevice.js";
|
|
16
16
|
import * as d from "three";
|
|
17
17
|
import { Subscribe as M } from "../../Subscribe.js";
|
|
18
18
|
import { getIntersectByRaycaster as T, getVirtualIntersectByRaycaster as L } from "../../five/getPosition.js";
|
|
19
19
|
import { getRaycasterByNdcPosition as N } from "../../five/getRaycasterByNdcPosition.js";
|
|
20
|
-
import { CURSOR_NOT_ALLOW_URL as
|
|
20
|
+
import { CURSOR_NOT_ALLOW_URL as P } from "./utils/contents.js";
|
|
21
21
|
const F = new d.Vector3(), u = () => !1;
|
|
22
22
|
class V extends M {
|
|
23
23
|
constructor(e, t) {
|
|
24
|
-
var a,
|
|
24
|
+
var a, l, o;
|
|
25
25
|
super();
|
|
26
26
|
i(this, "_cursorError", !1);
|
|
27
27
|
i(this, "actionIfNoModelUnderMouse", "virtualPoint");
|
|
@@ -117,14 +117,14 @@ class V extends M {
|
|
|
117
117
|
* @description: 根据鼠标位置计算焦点位置并更新
|
|
118
118
|
*/
|
|
119
119
|
i(this, "updateByNdcPosition", (e) => {
|
|
120
|
-
var h, a;
|
|
120
|
+
var h, a, l;
|
|
121
121
|
const t = N(this.five, e), r = T(this.five, t);
|
|
122
122
|
if (r)
|
|
123
123
|
return this.updatePointSelectorHelperIntersect(r), this.lastIntersection = r, !0;
|
|
124
124
|
if (this.plane) {
|
|
125
125
|
const o = t.ray.intersectPlane(this.plane, F);
|
|
126
126
|
if (o) {
|
|
127
|
-
const
|
|
127
|
+
const p = {
|
|
128
128
|
distance: this.five.camera.position.distanceTo(o),
|
|
129
129
|
point: o.clone(),
|
|
130
130
|
object: new d.Object3D(),
|
|
@@ -132,14 +132,14 @@ class V extends M {
|
|
|
132
132
|
raycaster: t,
|
|
133
133
|
isVirtual: !0
|
|
134
134
|
};
|
|
135
|
-
return this.updatePointSelectorHelperIntersect(
|
|
135
|
+
return this.updatePointSelectorHelperIntersect(p), !0;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
if (this.actionIfNoModelUnderMouse === "lastPoint")
|
|
139
139
|
return this.updatePointSelectorHelperIntersect(this.lastIntersection), !0;
|
|
140
140
|
if (this.actionIfNoModelUnderMouse === "virtualPoint") {
|
|
141
141
|
const o = L(t, (h = this.lastIntersection) == null ? void 0 : h.distance);
|
|
142
|
-
return o.face = new d.Face3(0, 0, 0, (a = this.lastIntersection) == null ? void 0 : a.face.normal), o.isVirtual = !0, this.lastIntersection = o, this.updatePointSelectorHelperIntersect(o), !0;
|
|
142
|
+
return o.face = new d.Face3(0, 0, 0, (l = (a = this.lastIntersection) == null ? void 0 : a.face) == null ? void 0 : l.normal), o.isVirtual = !0, this.lastIntersection = o, this.updatePointSelectorHelperIntersect(o), !0;
|
|
143
143
|
} else if (this.actionIfNoModelUnderMouse === "disable")
|
|
144
144
|
return this.updatePointSelectorHelperIntersect(null), !1;
|
|
145
145
|
});
|
|
@@ -148,11 +148,11 @@ class V extends M {
|
|
|
148
148
|
*/
|
|
149
149
|
i(this, "updatePointSelectorHelperIntersect", (e) => {
|
|
150
150
|
if (!e) {
|
|
151
|
-
this.onLeave(), this.five.getElement().style.cursor =
|
|
151
|
+
this.onLeave(), this.five.getElement().style.cursor = P;
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
154
|
this.onEnter(), this.cursorError || (this.five.getElement().style.cursor = "");
|
|
155
|
-
const t =
|
|
155
|
+
const t = c({}, e);
|
|
156
156
|
let r = !1;
|
|
157
157
|
if (typeof this.adherePoints == "function" && typeof this.adherePointsRadius == "number") {
|
|
158
158
|
for (const h of this.adherePoints({ intersection: e, pointSelectorInstance: this }))
|
|
@@ -167,10 +167,10 @@ class V extends M {
|
|
|
167
167
|
const t = this.five.getElement();
|
|
168
168
|
if (!t)
|
|
169
169
|
return null;
|
|
170
|
-
const { top: r, left: h, width: a, height:
|
|
170
|
+
const { top: r, left: h, width: a, height: l } = t.getBoundingClientRect(), { clientX: o, clientY: p } = e;
|
|
171
171
|
return {
|
|
172
|
-
x: (
|
|
173
|
-
y: 1 - (
|
|
172
|
+
x: (o - h) / a,
|
|
173
|
+
y: 1 - (p - r) / l
|
|
174
174
|
};
|
|
175
175
|
});
|
|
176
176
|
i(this, "onFiveWantsPanGesture", () => {
|
|
@@ -183,15 +183,15 @@ class V extends M {
|
|
|
183
183
|
i(this, "emitIntersectionUpdate", (e) => {
|
|
184
184
|
this.emit("intersectionUpdate", e);
|
|
185
185
|
});
|
|
186
|
-
this.five = e, this.config =
|
|
187
|
-
const r = (
|
|
186
|
+
this.five = e, this.config = c(c({}, this.config), t), this.actionIfNoModelUnderMouse = (a = t == null ? void 0 : t.actionIfNoModelUnderMouse) != null ? a : "virtualPoint";
|
|
187
|
+
const r = (l = t == null ? void 0 : t.mode) != null ? l : "auto";
|
|
188
188
|
r === "auto" ? this.mode = y ? "fixed" : "cursor" : this.mode = r;
|
|
189
189
|
const h = {
|
|
190
190
|
autoFixPCPosition: this.mode === "cursor",
|
|
191
191
|
initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
|
|
192
192
|
};
|
|
193
|
-
this.pointSelectorHelper = new H(this.five,
|
|
194
|
-
magnifierParams:
|
|
193
|
+
this.pointSelectorHelper = new H(this.five, m(c({}, t == null ? void 0 : t.helper), {
|
|
194
|
+
magnifierParams: c(c({}, h), (o = t == null ? void 0 : t.helper) == null ? void 0 : o.magnifierParams)
|
|
195
195
|
})), this.pointSelectorHelper.hide();
|
|
196
196
|
}
|
|
197
197
|
get position() {
|
|
@@ -210,7 +210,7 @@ class V extends M {
|
|
|
210
210
|
return this._cursorError;
|
|
211
211
|
}
|
|
212
212
|
set cursorError(e) {
|
|
213
|
-
this._cursorError = e, this.five.getElement().style.cursor = e ?
|
|
213
|
+
this._cursorError = e, this.five.getElement().style.cursor = e ? P : "", e ? this.pointSelectorHelper.hide() : this.pointSelectorHelper.show();
|
|
214
214
|
}
|
|
215
215
|
set outOfFive(e) {
|
|
216
216
|
this._outOfFive = e;
|
|
@@ -21,6 +21,7 @@ export declare class PointHelper extends THREE.Object3D implements PointHelperAb
|
|
|
21
21
|
lineMesh: LineMesh;
|
|
22
22
|
ballMesh: BallMesh;
|
|
23
23
|
borderMesh: BorderMesh;
|
|
24
|
+
private five;
|
|
24
25
|
constructor(five: Five);
|
|
25
26
|
updateWithIntersect(intersect: Intersection): void;
|
|
26
27
|
show(): void;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var n = (r, s, e) => (
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var h = (r, s, e) => s in r ? a(r, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[s] = e;
|
|
3
|
+
var n = (r, s, e) => (h(r, typeof s != "symbol" ? s + "" : s, e), e);
|
|
4
4
|
import * as t from "three";
|
|
5
|
-
import { POINT_HELPER_TEXTURE_URL as
|
|
6
|
-
import { CSS3DObjectPlus as
|
|
5
|
+
import { POINT_HELPER_TEXTURE_URL as l } from "../../Assets/index.js";
|
|
6
|
+
import { CSS3DObjectPlus as d } from "../../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
7
7
|
import { rangePieceImg as c } from "./html.js";
|
|
8
|
-
import { initialCSS3DRender as
|
|
9
|
-
const
|
|
8
|
+
import { initialCSS3DRender as p } from "../../../five/initialCSS3DRender.js";
|
|
9
|
+
const M = `
|
|
10
10
|
varying vec2 vUv;
|
|
11
11
|
void main() {
|
|
12
12
|
vUv = uv;
|
|
13
13
|
vec4 mvPosition = modelViewMatrix * vec4(position, 1);
|
|
14
14
|
gl_Position = projectionMatrix * mvPosition;
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
16
|
+
`, u = `
|
|
17
17
|
varying vec2 vUv;
|
|
18
18
|
void main() {
|
|
19
19
|
vec2 uv = vec2(vUv.x, vUv.y);
|
|
@@ -22,28 +22,28 @@ void main() {
|
|
|
22
22
|
gl_FragColor = vec4(1.0,1.0,1.0,match);
|
|
23
23
|
}
|
|
24
24
|
`;
|
|
25
|
-
function
|
|
26
|
-
const r = new t.PlaneGeometry(0.4, 0.4), s =
|
|
25
|
+
function v() {
|
|
26
|
+
const r = new t.PlaneGeometry(0.4, 0.4), s = l, e = new t.TextureLoader().load(s);
|
|
27
27
|
e.encoding = t.sRGBEncoding, e.minFilter = t.LinearFilter;
|
|
28
|
-
const
|
|
28
|
+
const o = new t.MeshBasicMaterial({
|
|
29
29
|
map: e,
|
|
30
30
|
transparent: !0,
|
|
31
31
|
depthTest: !1
|
|
32
32
|
});
|
|
33
|
-
return new t.Mesh(r,
|
|
33
|
+
return new t.Mesh(r, o);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function m() {
|
|
36
36
|
const r = new t.CurvePath();
|
|
37
37
|
r.add(new t.LineCurve3(new t.Vector3(0, 0, 0), new t.Vector3(0, 0, 0.1)));
|
|
38
38
|
const s = new t.TubeGeometry(r, 8, 3e-3), e = new t.ShaderMaterial({
|
|
39
|
-
vertexShader:
|
|
40
|
-
fragmentShader:
|
|
39
|
+
vertexShader: M,
|
|
40
|
+
fragmentShader: u,
|
|
41
41
|
depthTest: !1,
|
|
42
42
|
transparent: !0
|
|
43
43
|
});
|
|
44
44
|
return new t.Mesh(s, e);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function b() {
|
|
47
47
|
const r = new t.SphereGeometry(0.01, 20, 20), s = new t.MeshBasicMaterial({
|
|
48
48
|
color: 10349931,
|
|
49
49
|
depthTest: !1,
|
|
@@ -52,8 +52,8 @@ function m() {
|
|
|
52
52
|
}), e = new t.Mesh(r, s);
|
|
53
53
|
return e.position.set(0, 0, 0.1), e;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
const s = new
|
|
55
|
+
function w() {
|
|
56
|
+
const s = new d({
|
|
57
57
|
pointerEvents: "none",
|
|
58
58
|
cornerPoints: [
|
|
59
59
|
new t.Vector3(-0.2, 0.2, 0),
|
|
@@ -71,17 +71,17 @@ class T extends t.Object3D {
|
|
|
71
71
|
n(this, "lineMesh");
|
|
72
72
|
n(this, "ballMesh");
|
|
73
73
|
n(this, "borderMesh");
|
|
74
|
-
|
|
74
|
+
n(this, "five");
|
|
75
|
+
this.planeMesh = v(), this.lineMesh = m(), this.ballMesh = b(), this.borderMesh = w(), this.addEventListener("added", () => {
|
|
75
76
|
this.add(this.planeMesh, this.lineMesh, this.ballMesh, this.borderMesh);
|
|
76
77
|
}), this.addEventListener("removed", () => {
|
|
77
78
|
this.remove(this.planeMesh, this.lineMesh, this.ballMesh, this.borderMesh);
|
|
78
|
-
}),
|
|
79
|
+
}), p(e), this.five = e;
|
|
79
80
|
}
|
|
80
81
|
updateWithIntersect(e) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
this.position.copy(e.point), this.lookAt(i);
|
|
82
|
+
var i;
|
|
83
|
+
const o = (i = e == null ? void 0 : e.face) != null && i.normal ? new t.Vector3().addVectors(e.point, e.face.normal) : this.five.camera.position;
|
|
84
|
+
this.position.copy(e.point), this.lookAt(o);
|
|
85
85
|
}
|
|
86
86
|
show() {
|
|
87
87
|
this.visible = !0, this.borderMesh.parent || this.add(this.borderMesh);
|