@realsee/dnalogel 3.37.2 → 3.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/GuideLinePlugin/Controller.d.ts +14 -1
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +13 -2
- package/dist/GuideLinePlugin/typing.d.ts +15 -2
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +11 -1
- package/dist/ModelMakerPlugin/Controller.d.ts +8 -1
- package/dist/ModelMakerPlugin/index.d.ts +1 -0
- package/dist/Sculpt/Meshes/Box.d.ts +1 -0
- package/dist/Sculpt/Meshes/Line.d.ts +2 -0
- package/dist/Sculpt/Meshes/Polyline.d.ts +1 -0
- package/dist/Sculpt/Objects/Base/index.d.ts +6 -0
- package/dist/Sculpt/utils/color.d.ts +7 -1
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +3 -0
- package/dist/index.cjs.js +87 -55
- package/dist/index.js +4957 -4826
- package/dist/index.umd.js +76 -44
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +7 -7
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +64 -50
- package/docs/classes/ModelMakerPluginInstance.html +26 -16
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/MoveController.html +3 -3
- package/docs/classes/Object3DHelperController.html +3 -3
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoMeasurePluginLine.html +3 -3
- package/docs/classes/PanoMeasurePluginModel.html +3 -3
- package/docs/classes/PanoMeasurePluginPoint.html +3 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
- package/docs/classes/PanoTagPluginController.html +3 -3
- package/docs/classes/Sculpt.html +3 -3
- package/docs/classes/Util.BetterTween.html +3 -3
- package/docs/classes/Util.Interval.html +3 -3
- package/docs/classes/Util.LineSegments.html +3 -3
- package/docs/classes/Util.Magnifier.html +3 -3
- package/docs/classes/Util.Object3D.html +3 -3
- package/docs/classes/Util.PointDomHelper.html +3 -3
- package/docs/classes/Util.PointHelper.html +3 -3
- package/docs/classes/Util.PointSelectorHelper.html +3 -3
- package/docs/classes/Util.Rectangle.html +3 -3
- package/docs/classes/WalkController.html +3 -3
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +3 -3
- package/docs/enums/DIRECTION.html +3 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/PaintBrushTypeEnum.html +3 -3
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +3 -3
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/CurrentPanoImagePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +3 -3
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelMakerPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/MovePlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/PipelinePlugin.html +3 -3
- package/docs/functions/SculptPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +3 -3
- package/docs/functions/Util.awaitNextFrame.html +3 -3
- package/docs/functions/Util.blink.html +3 -3
- package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
- package/docs/functions/Util.equal.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +3 -3
- package/docs/functions/Util.getCoordsFromElement.html +3 -3
- package/docs/functions/Util.getFrameTime.html +3 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
- package/docs/functions/Util.isAbsoluteURL.html +3 -3
- package/docs/functions/Util.isModelLike.html +3 -3
- package/docs/functions/Util.isNil.html +3 -3
- package/docs/functions/Util.isPanoramaLike.html +3 -3
- package/docs/functions/Util.nextFrame.html +3 -3
- package/docs/functions/Util.notNil.html +3 -3
- package/docs/functions/Util.reblink.html +3 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
- package/docs/functions/Util.tweenProgress.html +3 -3
- package/docs/functions/Util.uuid.html +3 -3
- package/docs/functions/pluginFlag.html +3 -3
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.html +3 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
- package/docs/interfaces/EventMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +3 -3
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +3 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +3 -3
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
- package/docs/interfaces/FloorplanServerEntrance.html +3 -3
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +16 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +8 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -14
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +5 -5
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +20 -20
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +55 -26
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -5
- package/docs/interfaces/GuideLinePluginType.PluginState.html +5 -5
- package/docs/interfaces/GuideLinePluginType.Route.html +8 -16
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +5 -12
- package/docs/interfaces/HelperOffset.html +3 -3
- package/docs/interfaces/ImagePlaneGroup.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +3 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/MinMax.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.State.html +3 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
- package/docs/interfaces/ModelViewPluginExportType.html +3 -3
- package/docs/interfaces/Object3DHelperState.html +3 -3
- package/docs/interfaces/ObjectHelperControllers.html +3 -3
- package/docs/interfaces/PaintBrushAction.html +3 -3
- package/docs/interfaces/PaintBrushConfigs.html +3 -3
- package/docs/interfaces/PaintBrushState.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
- package/docs/interfaces/PanoMeasureParameterType.html +3 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginState.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
- package/docs/interfaces/Point.html +3 -3
- package/docs/interfaces/Room.html +3 -3
- package/docs/interfaces/RoomInfo.html +3 -3
- package/docs/interfaces/RoomLabel.html +3 -3
- package/docs/interfaces/RoomRules.html +3 -3
- package/docs/interfaces/Rooms.html +3 -3
- package/docs/interfaces/Scissor.html +3 -3
- package/docs/interfaces/State.html +3 -3
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
- package/docs/interfaces/TagIconUrl.html +3 -3
- package/docs/interfaces/TagObjectGroup.html +3 -3
- package/docs/interfaces/TagStyle.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/interfaces/TemporaryState.html +3 -3
- package/docs/interfaces/Util.BlinkAnimeOptions.html +3 -3
- package/docs/interfaces/Util.MagnifierParameter.html +3 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
- package/docs/interfaces/Util.PointIntersection.html +3 -3
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +3 -3
- package/docs/modules/CruisePluginTypes.html +3 -3
- package/docs/modules/CurrentPanoImagePluginType.html +3 -3
- package/docs/modules/GuideLineItem.html +3 -3
- package/docs/modules/GuideLineModeItem.html +3 -3
- package/docs/modules/GuideLinePluginType.html +3 -3
- package/docs/modules/ModelMakerPluginType.html +3 -3
- package/docs/modules/PanoVideoPluginType.html +3 -3
- package/docs/modules/SculptData.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- package/docs/types/AddObject3DHelperConfig.html +3 -3
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
- package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
- package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
- package/docs/types/ArrayPosition.html +3 -3
- package/docs/types/AudioAppearance.html +3 -3
- package/docs/types/CSS3DRenderExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
- package/docs/types/ClassFunctionParameters.html +3 -3
- package/docs/types/Color.html +3 -3
- package/docs/types/ContentTypeConfigKey.html +3 -3
- package/docs/types/ContentTypeConfigKeySplit.html +3 -3
- package/docs/types/ContentTypeMap.html +3 -3
- package/docs/types/Create3DDomContainerReturnType.html +3 -3
- package/docs/types/Create3DElementReturnType.html +3 -3
- package/docs/types/CruisePluginExportType.html +3 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
- package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
- package/docs/types/DeprecatedTagProperty.html +3 -3
- package/docs/types/Direction-1.html +3 -3
- package/docs/types/Direction4.html +3 -3
- package/docs/types/ElementRenderer.html +3 -3
- package/docs/types/FloorplanRuleLabels.html +3 -3
- package/docs/types/FloorplanServerRuleLabels.html +3 -3
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +3 -3
- package/docs/types/InternalHelperEventMap.html +3 -3
- package/docs/types/LoadTagConfig.html +3 -3
- package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/MediaData.html +3 -3
- package/docs/types/MediaStore.html +3 -3
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
- package/docs/types/ModelId.html +3 -3
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +3 -3
- package/docs/types/ModelMakerPluginType.ItemType.html +3 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
- package/docs/types/MoveArgs.html +3 -3
- package/docs/types/MoveOpts.html +3 -3
- package/docs/types/Object3DHelperEventMap.html +3 -3
- package/docs/types/ObjectFit.html +3 -3
- package/docs/types/PaintBrushEventMap.html +3 -3
- package/docs/types/PanoCompassPluginData.html +3 -3
- package/docs/types/PanoCompassPluginExportType.html +3 -3
- package/docs/types/PanoCompassPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
- package/docs/types/PanoIndex.html +3 -3
- package/docs/types/PanoMeasurePluginEvent.html +3 -3
- package/docs/types/PanoMeasureReturnType.html +3 -3
- package/docs/types/PanoSpatialTagPluginId.html +3 -3
- package/docs/types/PanoTagPluginExportInterface.html +3 -3
- package/docs/types/PanoTagPluginParamsInterface.html +3 -3
- package/docs/types/PanoVideoPluginParameterType.html +3 -3
- package/docs/types/PanoVideoPluginReturnType.html +3 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
- package/docs/types/PipelinePluginParameterType.html +3 -3
- package/docs/types/PipelinePluginReturnType.html +3 -3
- package/docs/types/PlaneTag.html +3 -3
- package/docs/types/Point2DTag.html +3 -3
- package/docs/types/Point3DTag.html +3 -3
- package/docs/types/PointTag.html +3 -3
- package/docs/types/PointTagInstance.html +3 -3
- package/docs/types/Position.html +3 -3
- package/docs/types/PositionFrom.html +3 -3
- package/docs/types/RotateArgs.html +3 -3
- package/docs/types/RotateOpts.html +3 -3
- package/docs/types/RuleLabelsKey.html +3 -3
- package/docs/types/RuleLabelsValue.html +3 -3
- package/docs/types/ScaleCallback.html +3 -3
- package/docs/types/ScalePosition.html +3 -3
- package/docs/types/SculptData.BoxData.html +3 -3
- package/docs/types/SculptData.CircleData.html +3 -3
- package/docs/types/SculptData.CylinderData.html +3 -3
- package/docs/types/SculptData.PointData.html +3 -3
- package/docs/types/SculptData.PolygonData.html +3 -3
- package/docs/types/SculptData.PolylineData.html +3 -3
- package/docs/types/SculptData.PrismData.html +3 -3
- package/docs/types/SculptData.RectangleData.html +3 -3
- package/docs/types/StickType.html +3 -3
- package/docs/types/Tag.html +3 -3
- package/docs/types/Tag2D.html +3 -3
- package/docs/types/Tag3D.html +3 -3
- package/docs/types/TagConfigByKey.html +3 -3
- package/docs/types/TagContentType.html +3 -3
- package/docs/types/TagContentTypeMapping.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +3 -3
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +3 -3
- package/docs/types/TagId.html +3 -3
- package/docs/types/TagInstance.html +3 -3
- package/docs/types/TagPointType.html +3 -3
- package/docs/types/TagRendererMap.html +3 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/WorkCode.html +3 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
- package/docs/variables/PLUGIN.html +3 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
- package/docs/variables/ROOM_TYPE_MAP.html +3 -3
- package/docs/variables/defaultGlobalConfig.html +3 -3
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/Controller.d.ts +14 -1
- package/libs/GuideLinePlugin/Controller.js +34 -32
- package/libs/GuideLinePlugin/GuideLineItem/index.js +57 -56
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +176 -121
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +13 -2
- package/libs/GuideLinePlugin/typing.d.ts +15 -2
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +11 -1
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +70 -36
- package/libs/ModelMakerPlugin/Controller.d.ts +8 -1
- package/libs/ModelMakerPlugin/Controller.js +111 -99
- package/libs/ModelMakerPlugin/index.d.ts +1 -0
- package/libs/Sculpt/Meshes/Box.d.ts +1 -0
- package/libs/Sculpt/Meshes/Box.js +22 -17
- package/libs/Sculpt/Meshes/Line.d.ts +2 -0
- package/libs/Sculpt/Meshes/Line.js +56 -39
- package/libs/Sculpt/Meshes/Point.js +31 -31
- package/libs/Sculpt/Meshes/Polyline.d.ts +1 -0
- package/libs/Sculpt/Meshes/Polyline.js +41 -36
- package/libs/Sculpt/Objects/Base/index.d.ts +6 -0
- package/libs/Sculpt/Objects/Base/index.js +25 -25
- package/libs/Sculpt/utils/color.d.ts +7 -1
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +3 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +44 -25
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var x = Object.defineProperty, w = Object.defineProperties;
|
|
2
|
+
var M = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var D = Object.getOwnPropertySymbols;
|
|
4
|
+
var P = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var b = (l, e, t) => e in l ? x(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, m = (l, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
7
|
+
P.call(e, t) && b(l, t, e[t]);
|
|
8
|
+
if (D)
|
|
9
|
+
for (var t of D(e))
|
|
10
|
+
U.call(e, t) && b(l, t, e[t]);
|
|
11
11
|
return l;
|
|
12
|
-
},
|
|
13
|
-
var i = (l, e, t) => (
|
|
14
|
-
import * as
|
|
15
|
-
import { logWarning as
|
|
16
|
-
import { createLineGeometry as
|
|
17
|
-
import { isPanoramaLike as
|
|
12
|
+
}, c = (l, e) => w(l, M(e));
|
|
13
|
+
var i = (l, e, t) => (b(l, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
import * as h from "three";
|
|
15
|
+
import { logWarning as F, logError as L } from "../../shared-utils/log.js";
|
|
16
|
+
import { createLineGeometry as S } from "../utils/createLineGeometry.js";
|
|
17
|
+
import { isPanoramaLike as O, isModelLike as _ } from "../../shared-utils/five/mode.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
20
20
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
21
21
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
22
|
import "animejs";
|
|
23
|
-
import { notNil as
|
|
24
|
-
import { BetterTween as
|
|
23
|
+
import { notNil as V } from "../../shared-utils/isNil.js";
|
|
24
|
+
import { BetterTween as A, tweenProgress as E } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
25
25
|
import { loadTexture as G } from "../../shared-utils/three/loadTexture.js";
|
|
26
|
-
import
|
|
26
|
+
import k from "../../PanoTagPlugin/controller/index.js";
|
|
27
27
|
import B from "../Components/Tag.js";
|
|
28
|
-
import { filterAdjacentDistinct as
|
|
29
|
-
import { objectAssignDeepExports as
|
|
28
|
+
import { filterAdjacentDistinct as N } from "../utils/index.js";
|
|
29
|
+
import { objectAssignDeepExports as I } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
30
30
|
const R = (
|
|
31
31
|
/* glsl */
|
|
32
32
|
`
|
|
@@ -37,7 +37,7 @@ const R = (
|
|
|
37
37
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
38
38
|
}
|
|
39
39
|
`
|
|
40
|
-
),
|
|
40
|
+
), H = (
|
|
41
41
|
/* glsl */
|
|
42
42
|
`
|
|
43
43
|
// 是否使用颜色
|
|
@@ -63,7 +63,13 @@ const R = (
|
|
|
63
63
|
// 整体透明度
|
|
64
64
|
uniform float opacity;
|
|
65
65
|
// 最大 U 值
|
|
66
|
-
uniform float
|
|
66
|
+
uniform float maxV;
|
|
67
|
+
// 只显示 includeMinV ~ includeMaxV 之内的颜色
|
|
68
|
+
uniform float includeMinV;
|
|
69
|
+
uniform float includeMaxV;
|
|
70
|
+
// 不显示 excludeMinV ~ excludeMaxV 之内的颜色
|
|
71
|
+
uniform float excludeMinV;
|
|
72
|
+
uniform float excludeMaxV;
|
|
67
73
|
// v offset
|
|
68
74
|
uniform float vOffset;
|
|
69
75
|
// 闪烁动画值
|
|
@@ -75,6 +81,7 @@ const R = (
|
|
|
75
81
|
vec4 getImage() {
|
|
76
82
|
vec2 uv = vUv;
|
|
77
83
|
uv.y = uv.y - vOffset;
|
|
84
|
+
|
|
78
85
|
// 原始贴图颜色
|
|
79
86
|
vec4 image = texture2D(map, uv);
|
|
80
87
|
// 如果使用颜色
|
|
@@ -93,13 +100,14 @@ const R = (
|
|
|
93
100
|
float gradientLength = 1.0;
|
|
94
101
|
if (v <= gradientLength) {
|
|
95
102
|
return v / gradientLength; // 在 [0, gradientLength] 范围内,透明度为 [0, 1]
|
|
96
|
-
} else if (v <=
|
|
97
|
-
return 1.0; // 在 (gradientLength,
|
|
103
|
+
} else if (v <= maxV - gradientLength) {
|
|
104
|
+
return 1.0; // 在 (gradientLength, maxV - gradientLength) 范围内,透明度为 1
|
|
98
105
|
} else {
|
|
99
|
-
return (
|
|
106
|
+
return (maxV - v) / gradientLength; // 在 [maxV - gradientLength, maxV] 范围内,透明度为 [1, 0]
|
|
100
107
|
}
|
|
101
108
|
}
|
|
102
109
|
|
|
110
|
+
// 获取边框颜色
|
|
103
111
|
vec4 getBorder() {
|
|
104
112
|
float u = vUv.x;
|
|
105
113
|
if (u <= borderWidth || u >= 1.0 - borderWidth) {
|
|
@@ -108,6 +116,7 @@ const R = (
|
|
|
108
116
|
return vec4(0.0, 0.0, 0.0, 0.0);
|
|
109
117
|
}
|
|
110
118
|
|
|
119
|
+
// 获取背景色
|
|
111
120
|
vec4 getBackground() {
|
|
112
121
|
// border-box
|
|
113
122
|
if (backgroundClip == 0) {
|
|
@@ -122,7 +131,29 @@ const R = (
|
|
|
122
131
|
}
|
|
123
132
|
}
|
|
124
133
|
|
|
134
|
+
// 根据摄像机位置计算透明度
|
|
135
|
+
float distanceOpacity() {
|
|
136
|
+
return 1.0;
|
|
137
|
+
}
|
|
138
|
+
|
|
125
139
|
void main() {
|
|
140
|
+
float v = vUv.y;
|
|
141
|
+
if (includeMinV != -1.0 && includeMaxV != -1.0) {
|
|
142
|
+
if (v < includeMinV || v > includeMaxV) {
|
|
143
|
+
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
144
|
+
return;
|
|
145
|
+
} else {
|
|
146
|
+
// debug
|
|
147
|
+
// gl_FragColor = vec4(255.0, 255.0, 255.0, 0.6);
|
|
148
|
+
// return;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
if (excludeMinV != -1.0 && excludeMaxV != -1.0) {
|
|
152
|
+
if (v >= excludeMinV && v <= excludeMaxV) {
|
|
153
|
+
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
126
157
|
vec4 image = getImage();
|
|
127
158
|
vec4 border = getBorder();
|
|
128
159
|
vec4 background = getBackground();
|
|
@@ -135,11 +166,12 @@ const R = (
|
|
|
135
166
|
// 设置整体透明度
|
|
136
167
|
gl_FragColor.a = gl_FragColor.a * opacity;
|
|
137
168
|
gl_FragColor.a = gl_FragColor.a * linearGradientOpacity();
|
|
169
|
+
gl_FragColor.a = gl_FragColor.a * distanceOpacity();
|
|
138
170
|
gl_FragColor.a = gl_FragColor.a * flicker;
|
|
139
171
|
}
|
|
140
172
|
`
|
|
141
173
|
);
|
|
142
|
-
class
|
|
174
|
+
class Y {
|
|
143
175
|
constructor(e, t) {
|
|
144
176
|
i(this, "name", "");
|
|
145
177
|
i(this, "startTagContainer");
|
|
@@ -148,7 +180,9 @@ class H {
|
|
|
148
180
|
i(this, "geometryStyle", {});
|
|
149
181
|
i(this, "materialStyle", {});
|
|
150
182
|
i(this, "meshStyle", {});
|
|
151
|
-
i(this, "
|
|
183
|
+
i(this, "group", new h.Group());
|
|
184
|
+
i(this, "meshWithDepthTest");
|
|
185
|
+
i(this, "meshWithoutDepthTest");
|
|
152
186
|
i(this, "five");
|
|
153
187
|
i(this, "mode");
|
|
154
188
|
i(this, "_curvePath", null);
|
|
@@ -174,15 +208,17 @@ class H {
|
|
|
174
208
|
i(this, "plugin");
|
|
175
209
|
i(this, "textureHasLoaded", !1);
|
|
176
210
|
i(this, "disposed", !1);
|
|
177
|
-
i(this, "flowAnime", new
|
|
178
|
-
i(this, "flickerAnime",
|
|
211
|
+
i(this, "flowAnime", new A({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
|
|
212
|
+
i(this, "flickerAnime", E(300).yoyo(!0).repeat(5));
|
|
179
213
|
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
180
214
|
i(this, "cacheLengths", []);
|
|
181
215
|
/** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
182
216
|
i(this, "heightOffset", 0);
|
|
217
|
+
i(this, "panoMap", {});
|
|
218
|
+
i(this, "autoDepthTestEffectDistance");
|
|
183
219
|
i(this, "dispose", () => {
|
|
184
220
|
var e, t;
|
|
185
|
-
this.disposed || (this.disposed = !0, this.parent.hooks.off("show", this.updateVisible), this.parent.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("show", this.updateVisible), this.plugin.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("enable", this.updateVisible), this.plugin.hooks.off("disable", this.updateVisible), this.five.off("modeChange", this.onFiveModeChange), this.five.off("modelShownFloorChange", this.onFiveModelShownFloorChange), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (t = this.endTagContainer) == null || t.plugin.dispose());
|
|
221
|
+
this.disposed || (this.disposed = !0, this.parent.hooks.off("show", this.updateVisible), this.parent.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("show", this.updateVisible), this.plugin.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("enable", this.updateVisible), this.plugin.hooks.off("disable", this.updateVisible), this.five.off("modeChange", this.onFiveModeChange), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("modelShownFloorChange", this.onFiveModelShownFloorChange), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (t = this.endTagContainer) == null || t.plugin.dispose());
|
|
186
222
|
});
|
|
187
223
|
/** 开始走点动画 */
|
|
188
224
|
i(this, "onWalkAnimationStart", () => {
|
|
@@ -194,7 +230,20 @@ class H {
|
|
|
194
230
|
});
|
|
195
231
|
/** 模型状态变更 */
|
|
196
232
|
i(this, "onFiveModeChange", (e) => {
|
|
197
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
233
|
+
this.modeVisible = this.mode === "panorama" ? O(e) : _(e), this.updateVisible();
|
|
234
|
+
});
|
|
235
|
+
/** 走点 */
|
|
236
|
+
i(this, "onFivePanoArrived", (e) => {
|
|
237
|
+
var r, s, o;
|
|
238
|
+
const t = this.panoMap[e];
|
|
239
|
+
if (t === void 0)
|
|
240
|
+
this.group.children.includes(this.meshWithoutDepthTest) && this.group.remove(this.meshWithoutDepthTest), this.meshWithDepthTest.material.uniforms.excludeMinV.value = -1, this.meshWithDepthTest.material.uniforms.excludeMaxV.value = -1;
|
|
241
|
+
else {
|
|
242
|
+
this.group.children.includes(this.meshWithoutDepthTest) || this.group.add(this.meshWithoutDepthTest), this.meshWithoutDepthTest.visible = !0;
|
|
243
|
+
const a = this.meshWithDepthTest.geometry.getAttribute("uv"), n = 100 * ((r = this.autoDepthTestEffectDistance) != null ? r : 2), u = (s = a.getY((t - n) * 2)) != null ? s : 0, d = (o = a.getY((t + n) * 2)) != null ? o : a.getY(a.count - 1);
|
|
244
|
+
this.meshWithDepthTest.material.uniforms.excludeMinV.value = u, this.meshWithDepthTest.material.uniforms.excludeMaxV.value = d, this.meshWithoutDepthTest.material.uniforms.includeMinV.value = u, this.meshWithoutDepthTest.material.uniforms.includeMaxV.value = d;
|
|
245
|
+
}
|
|
246
|
+
this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
198
247
|
});
|
|
199
248
|
i(this, "onFiveModelShownFloorChange", (e) => {
|
|
200
249
|
this.floorVisible = e === null || this.visibleFloorIndexes === null || this.visibleFloorIndexes.includes(e), this.updateVisible();
|
|
@@ -206,43 +255,47 @@ class H {
|
|
|
206
255
|
});
|
|
207
256
|
i(this, "onFlowAnimeUpdate", (e) => {
|
|
208
257
|
const { progress: t } = e;
|
|
209
|
-
this.
|
|
258
|
+
this.meshWithDepthTest.material.uniforms.vOffset.value = t, this.meshWithoutDepthTest.material.uniforms.vOffset.value = t, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
210
259
|
});
|
|
211
260
|
i(this, "onFlickerAnimeUpdate", (e) => {
|
|
212
|
-
var
|
|
213
|
-
const { progress: t } = e,
|
|
214
|
-
this.
|
|
215
|
-
opacity:
|
|
261
|
+
var s, o, a, n;
|
|
262
|
+
const { progress: t } = e, r = 1 - t;
|
|
263
|
+
this.meshWithDepthTest.material.uniforms.flicker.value = r, this.meshWithoutDepthTest.material.uniforms.flicker.value = r, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && T(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$set(c(m({}, this.startTagContainer.tag.data), {
|
|
264
|
+
opacity: r,
|
|
216
265
|
name: this.name,
|
|
217
|
-
distance: Math.round((o = (
|
|
218
|
-
}))), this.endTagContainer.tag &&
|
|
266
|
+
distance: Math.round((o = (s = this.curvePath) == null ? void 0 : s.getLength()) != null ? o : 0)
|
|
267
|
+
}))), this.endTagContainer.tag && T(this.endTagContainer.tag) && ((n = this.endTagContainer.app) == null || n.$set(c(m({}, this.endTagContainer.tag.data), { opacity: r })));
|
|
219
268
|
});
|
|
220
|
-
i(this, "logWarning", (e) =>
|
|
221
|
-
i(this, "logError", (e) =>
|
|
269
|
+
i(this, "logWarning", (e) => F("GuideLineModeItem: ", e));
|
|
270
|
+
i(this, "logError", (e) => L("GuideLineModeItem: ", e));
|
|
222
271
|
var o, a;
|
|
223
|
-
this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new
|
|
224
|
-
const
|
|
272
|
+
this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.group.name = "GuideLineModeItem", this.startTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 1 }) }, this.endTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 1 }) };
|
|
273
|
+
const r = new h.BufferGeometry(), s = new h.ShaderMaterial({
|
|
225
274
|
vertexShader: R,
|
|
226
|
-
fragmentShader:
|
|
275
|
+
fragmentShader: H,
|
|
227
276
|
transparent: !0,
|
|
228
277
|
uniforms: {
|
|
229
278
|
map: { value: null },
|
|
230
279
|
useMapColor: { value: 0 },
|
|
231
|
-
mapColor: { value: new
|
|
280
|
+
mapColor: { value: new h.Color() },
|
|
232
281
|
mapOpacity: { value: 1 },
|
|
233
|
-
backgroundColor: { value: new
|
|
282
|
+
backgroundColor: { value: new h.Color() },
|
|
234
283
|
backgroundOpacity: { value: 0 },
|
|
235
|
-
borderColor: { value: new
|
|
284
|
+
borderColor: { value: new h.Color() },
|
|
236
285
|
borderOpacity: { value: 0 },
|
|
237
286
|
backgroundClip: { value: 0 },
|
|
238
287
|
borderWidth: { value: 0.05 },
|
|
239
288
|
opacity: { value: 1 },
|
|
240
289
|
flicker: { value: 1 },
|
|
241
|
-
|
|
242
|
-
vOffset: { value: 0 }
|
|
290
|
+
maxV: { value: 0 },
|
|
291
|
+
vOffset: { value: 0 },
|
|
292
|
+
includeMinV: { value: -1 },
|
|
293
|
+
includeMaxV: { value: -1 },
|
|
294
|
+
excludeMinV: { value: -1 },
|
|
295
|
+
excludeMaxV: { value: -1 }
|
|
243
296
|
}
|
|
244
297
|
});
|
|
245
|
-
this.
|
|
298
|
+
this.meshWithDepthTest = new h.Mesh(r, s), this.meshWithoutDepthTest = new h.Mesh(r, s.clone()), this.meshWithoutDepthTest.material.depthTest = !1, this.meshWithDepthTest.name = "GuideLineModeItemWithDepthTest", this.meshWithoutDepthTest.name = "GuideLineModeItemWithoutDepthTest", this.group.add(this.meshWithDepthTest), this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd), this.onFivePanoArrived(this.five.getCurrentState().panoIndex)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((a = (o = this.five.model) == null ? void 0 : o.shownFloor) != null ? a : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange), this.five.needsRender = !0;
|
|
246
299
|
}
|
|
247
300
|
get panoGroup() {
|
|
248
301
|
return this._panoGroup;
|
|
@@ -289,84 +342,86 @@ class H {
|
|
|
289
342
|
return this.logError("disposed");
|
|
290
343
|
if (!this.five.work)
|
|
291
344
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
292
|
-
const
|
|
293
|
-
if (this._panoGroup =
|
|
294
|
-
const o = t.skipPanoGroup ?
|
|
345
|
+
const r = N(e);
|
|
346
|
+
if (this._panoGroup = r, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
|
|
347
|
+
const o = t.skipPanoGroup ? r.map((a) => this.plugin.workUtil.getObserverStandingPosition(a)).filter(V) : null;
|
|
295
348
|
this.skippedPositions = o;
|
|
296
349
|
}
|
|
297
|
-
const
|
|
298
|
-
this.path =
|
|
350
|
+
const s = this.getPathFromPanoGroup(r, this.five.work, t);
|
|
351
|
+
this.path = s, this.setGeometryByPath(s, t);
|
|
299
352
|
}
|
|
300
353
|
/** 通过路径设置线条形状 */
|
|
301
354
|
setGeometryByPath(e, t) {
|
|
302
|
-
var
|
|
355
|
+
var f, y, W, C;
|
|
303
356
|
if (this.disposed)
|
|
304
357
|
return this.logError("disposed");
|
|
305
|
-
const
|
|
306
|
-
this.scale =
|
|
307
|
-
const { geometry: a,
|
|
358
|
+
const r = (f = t == null ? void 0 : t.scale) != null ? f : this.scale, s = (y = t == null ? void 0 : t.width) != null ? y : this.width, o = (W = t == null ? void 0 : t.unit_length) != null ? W : this.unitLength;
|
|
359
|
+
this.scale = r, this.width = s, this.unitLength = o;
|
|
360
|
+
const { geometry: a, maxV: n, curvePath: u, curvePoints: d, panoMap: p, totalLength: g } = S({
|
|
308
361
|
path: e,
|
|
309
|
-
width:
|
|
310
|
-
unitLength: o *
|
|
311
|
-
skipPositions: this.skippedPositions
|
|
362
|
+
width: s * r,
|
|
363
|
+
unitLength: o * r,
|
|
364
|
+
skipPositions: this.skippedPositions,
|
|
365
|
+
useAutoDepthTest: t.useAutoDepthTest
|
|
312
366
|
});
|
|
313
|
-
this.
|
|
314
|
-
|
|
315
|
-
|
|
367
|
+
this.autoDepthTestEffectDistance = (C = t.autoDepthTestEffectDistance) != null ? C : (() => {
|
|
368
|
+
const v = g / 10;
|
|
369
|
+
return v > 3 ? 3 : v < 1 ? 1 : v;
|
|
370
|
+
})(), this.panoMap = p, this._curvePath = u, this._curvePoints = d, this.meshWithDepthTest.geometry.copy(a), this.onFivePanoArrived(this.five.getCurrentState().panoIndex), this.meshWithDepthTest.material.needsUpdate = !0, this.meshWithDepthTest.material.uniforms.maxV.value = n, this.meshWithoutDepthTest.material.needsUpdate = !0, this.meshWithoutDepthTest.material.uniforms.maxV.value = n, this.five.needsRender = !0, this.path = e, this.geometryStyle = m(m({}, this.geometryStyle), t);
|
|
316
371
|
}
|
|
317
372
|
/** 设置线条材质 */
|
|
318
373
|
setMartial(e) {
|
|
319
|
-
var
|
|
374
|
+
var r, s, o, a, n;
|
|
320
375
|
if (this.disposed)
|
|
321
376
|
return this.logError("disposed");
|
|
322
|
-
this.setDefaultVisible((
|
|
323
|
-
const t =
|
|
377
|
+
this.setDefaultVisible((r = e == null ? void 0 : e.visible) != null ? r : !1), this.setColor((s = e == null ? void 0 : e.color) != null ? s : "#ffffff"), this.setOpacity((o = e == null ? void 0 : e.opacity) != null ? o : 0.5), this.setTextureUrl((n = (a = e == null ? void 0 : e.texture) == null ? void 0 : a.url) != null ? n : "https://vr-image-4.realsee-cdn.cn/release/web/arrow1.ebe7d0ff.png"), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity), (e == null ? void 0 : e.border_width) !== void 0 && this.setBorderWidth(e.border_width), (e == null ? void 0 : e.background_clip) !== void 0 && this.setBackgroundClip(e.background_clip);
|
|
378
|
+
const t = m(m({}, this.materialStyle), e);
|
|
324
379
|
this.materialStyle = t;
|
|
325
380
|
}
|
|
326
381
|
/** 设置模型状态 */
|
|
327
382
|
setMeshStyle(e) {
|
|
328
383
|
if (e != null && e.translate) {
|
|
329
|
-
const
|
|
330
|
-
o.y += this.heightOffset,
|
|
384
|
+
const s = new h.Vector3(), o = new h.Vector3().fromArray(e.translate);
|
|
385
|
+
o.y += this.heightOffset, s.add(o), this.group.position.copy(s), r(this.startTagContainer, o), r(this.endTagContainer, o);
|
|
331
386
|
}
|
|
332
|
-
const t =
|
|
387
|
+
const t = m(m({}, this.meshStyle), e);
|
|
333
388
|
this.meshStyle = t;
|
|
334
|
-
function s
|
|
335
|
-
if (!
|
|
389
|
+
function r(s, o) {
|
|
390
|
+
if (!s.tag)
|
|
336
391
|
return;
|
|
337
|
-
const a = new
|
|
392
|
+
const a = new h.Vector3().fromArray(s.tag.position);
|
|
338
393
|
a.add(o);
|
|
339
|
-
const
|
|
340
|
-
|
|
394
|
+
const n = a.toArray();
|
|
395
|
+
s.plugin.changeTagById(s.tag.id, { position: n });
|
|
341
396
|
}
|
|
342
397
|
}
|
|
343
398
|
/** 设置 Y 轴上的偏移量,为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
344
399
|
setHeightOffset(e) {
|
|
345
|
-
const t = new
|
|
346
|
-
this.meshStyle.translate && t.add(new
|
|
400
|
+
const t = new h.Vector3();
|
|
401
|
+
this.meshStyle.translate && t.add(new h.Vector3().fromArray(this.meshStyle.translate)), t.setY(t.y + e), this.group.position.copy(t), this.heightOffset = e, this.five.needsRender = !0;
|
|
347
402
|
}
|
|
348
403
|
/** 设置贴图颜色 */
|
|
349
404
|
setColor(e) {
|
|
350
405
|
if (this.disposed)
|
|
351
406
|
return this.logError("disposed");
|
|
352
|
-
e && (this.
|
|
407
|
+
e && (this.meshWithDepthTest.material.uniforms.mapColor.value = new h.Color().set(e), this.meshWithoutDepthTest.material.uniforms.mapColor.value = new h.Color().set(e)), this.meshWithDepthTest.material.uniforms.useMapColor.value = e ? 1 : 0, this.meshWithoutDepthTest.material.uniforms.useMapColor.value = e ? 1 : 0, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
353
408
|
}
|
|
354
409
|
/** 设置边框 */
|
|
355
410
|
setBorderColor(e) {
|
|
356
411
|
if (this.disposed)
|
|
357
412
|
return this.logError("disposed");
|
|
358
|
-
this.
|
|
413
|
+
this.meshWithDepthTest.material.uniforms.borderColor.value = new h.Color().set(e), this.meshWithoutDepthTest.material.uniforms.borderColor.value = new h.Color().set(e), this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
359
414
|
}
|
|
360
415
|
/** 设置边框透明度 */
|
|
361
416
|
setBorderOpacity(e) {
|
|
362
417
|
if (this.disposed)
|
|
363
418
|
return this.logError("disposed");
|
|
364
|
-
this.
|
|
419
|
+
this.meshWithDepthTest.material.uniforms.borderOpacity.value = e, this.meshWithoutDepthTest.material.uniforms.borderOpacity.value = e, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
365
420
|
}
|
|
366
421
|
setBackgroundClip(e) {
|
|
367
422
|
if (this.disposed)
|
|
368
423
|
return this.logError("disposed");
|
|
369
|
-
this.
|
|
424
|
+
this.meshWithDepthTest.material.uniforms.backgroundClip.value = e === "border-box" ? 0 : 1, this.meshWithoutDepthTest.material.uniforms.backgroundClip.value = e === "border-box" ? 0 : 1, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
370
425
|
}
|
|
371
426
|
/**
|
|
372
427
|
* @description: 设置边框宽度
|
|
@@ -374,45 +429,45 @@ class H {
|
|
|
374
429
|
setBorderWidth(e) {
|
|
375
430
|
if (this.disposed)
|
|
376
431
|
return this.logError("disposed");
|
|
377
|
-
this.
|
|
432
|
+
this.meshWithDepthTest.material.uniforms.borderWidth.value = e, this.meshWithoutDepthTest.material.uniforms.borderWidth.value = e, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
378
433
|
}
|
|
379
434
|
/** 设置背景颜色 */
|
|
380
435
|
setBackgroundColor(e) {
|
|
381
436
|
if (this.disposed)
|
|
382
437
|
return this.logError("disposed");
|
|
383
|
-
this.
|
|
438
|
+
this.meshWithDepthTest.material.uniforms.backgroundColor.value = new h.Color().set(e), this.meshWithoutDepthTest.material.uniforms.backgroundColor.value = new h.Color().set(e), this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
384
439
|
}
|
|
385
440
|
/** 设置背景透明度 */
|
|
386
441
|
setBackgroundOpacity(e) {
|
|
387
442
|
if (this.disposed)
|
|
388
443
|
return this.logError("disposed");
|
|
389
|
-
this.
|
|
444
|
+
this.meshWithDepthTest.material.uniforms.backgroundOpacity.value = e, this.meshWithoutDepthTest.material.uniforms.backgroundOpacity.value = e, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
390
445
|
}
|
|
391
446
|
/** 设置整体透明度 */
|
|
392
447
|
setOpacity(e) {
|
|
393
448
|
if (this.disposed)
|
|
394
449
|
return this.logError("disposed");
|
|
395
|
-
this.
|
|
450
|
+
this.meshWithDepthTest.material.uniforms.opacity.value = e, this.meshWithoutDepthTest.material.uniforms.opacity.value = e, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
396
451
|
}
|
|
397
452
|
/** 设置贴图透明度 */
|
|
398
453
|
setMapOpacity(e) {
|
|
399
454
|
if (this.disposed)
|
|
400
455
|
return this.logError("disposed");
|
|
401
|
-
this.
|
|
456
|
+
this.meshWithDepthTest.material.uniforms.mapOpacity.value = e, this.meshWithoutDepthTest.material.uniforms.mapOpacity.value = e, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
402
457
|
}
|
|
403
458
|
/** 设置贴图 */
|
|
404
459
|
setTextureUrl(e) {
|
|
405
460
|
if (this.disposed)
|
|
406
461
|
return this.logError("disposed");
|
|
407
462
|
this.textureUrl = e, G(e).then((t) => {
|
|
408
|
-
this.disposed || this.textureUrl === e && (t.wrapT =
|
|
463
|
+
this.disposed || this.textureUrl === e && (t.wrapT = h.RepeatWrapping, this.textureHasLoaded = !0, this.meshWithDepthTest.material.uniforms.map.value = t, this.meshWithoutDepthTest.material.uniforms.map.value = t, this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.meshWithDepthTest.material.needsUpdate = !0, this.meshWithoutDepthTest.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
|
|
409
464
|
});
|
|
410
465
|
}
|
|
411
466
|
setVisibleFloorIndexes(e) {
|
|
412
|
-
var t,
|
|
467
|
+
var t, r;
|
|
413
468
|
if (this.disposed)
|
|
414
469
|
return this.logError("disposed");
|
|
415
|
-
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((
|
|
470
|
+
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((r = (t = this.five.model) == null ? void 0 : t.shownFloor) != null ? r : null);
|
|
416
471
|
}
|
|
417
472
|
setStartTag(e) {
|
|
418
473
|
this.setTag("start", e);
|
|
@@ -439,66 +494,66 @@ class H {
|
|
|
439
494
|
var u;
|
|
440
495
|
if (!this.curvePoints || !this.curvePath)
|
|
441
496
|
return [];
|
|
442
|
-
const e = this.curvePoints.length, t = this.curvePath.getLength(),
|
|
443
|
-
let
|
|
444
|
-
for (let
|
|
445
|
-
const
|
|
446
|
-
if (!
|
|
497
|
+
const e = this.curvePoints.length, t = this.curvePath.getLength(), r = e - 1, s = t / r, o = (u = this.curvePath.getLengths(r)) != null ? u : [], a = [];
|
|
498
|
+
let n = 0;
|
|
499
|
+
for (let d = 0; d < e; d++) {
|
|
500
|
+
const p = this.curvePoints[d], g = this.plugin.workUtil.getObserverStandingPosition(n);
|
|
501
|
+
if (!g)
|
|
447
502
|
break;
|
|
448
|
-
|
|
503
|
+
g.clone().setY(0).distanceTo(p.clone().setY(0)) < s && (a.push(o[d]), n += 1);
|
|
449
504
|
}
|
|
450
505
|
return a;
|
|
451
506
|
}
|
|
452
507
|
setTag(e, t) {
|
|
453
|
-
const
|
|
508
|
+
const r = this.curvePath, s = e === "start" ? this.startTagContainer : this.endTagContainer;
|
|
454
509
|
if (!(t != null && t.data))
|
|
455
|
-
return
|
|
456
|
-
const a =
|
|
510
|
+
return s.plugin.clearTags();
|
|
511
|
+
const a = I({}, {
|
|
457
512
|
contentType: "Custom",
|
|
458
513
|
stickType: "2DPoint",
|
|
459
514
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
460
515
|
style: { point: { enabled: !1 } },
|
|
461
516
|
data: {}
|
|
462
517
|
}, t);
|
|
463
|
-
|
|
464
|
-
var
|
|
465
|
-
(
|
|
466
|
-
const
|
|
467
|
-
return
|
|
468
|
-
}),
|
|
469
|
-
const
|
|
470
|
-
if (
|
|
471
|
-
const u = new
|
|
472
|
-
u.add(
|
|
473
|
-
const
|
|
474
|
-
|
|
518
|
+
s.tag = a, T(a) && (s.tag.element = (u) => {
|
|
519
|
+
var g, f;
|
|
520
|
+
(g = s.app) == null || g.$destroy();
|
|
521
|
+
const d = e === "start" ? c(m({}, a.data), { name: this.name, distance: Math.round((f = r.getLength()) != null ? f : 0), i18n: this.plugin.config.i18n }) : a.data, p = new B({ target: u, intro: !0, props: d });
|
|
522
|
+
return s.app = p, () => p.$destroy();
|
|
523
|
+
}), s.plugin.load({ tagList: [s.tag] });
|
|
524
|
+
const n = this.meshStyle.translate;
|
|
525
|
+
if (n && a.position) {
|
|
526
|
+
const u = new h.Vector3().fromArray(a.position), d = new h.Vector3().fromArray(n);
|
|
527
|
+
u.add(d), u.y += this.heightOffset;
|
|
528
|
+
const p = u.toArray();
|
|
529
|
+
s.plugin.changeTagById(s.tag.id, { position: p });
|
|
475
530
|
}
|
|
476
531
|
}
|
|
477
532
|
doShow() {
|
|
478
|
-
this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.
|
|
533
|
+
this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.group), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
|
|
479
534
|
}
|
|
480
535
|
doHide() {
|
|
481
|
-
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.
|
|
536
|
+
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.group), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
|
|
482
537
|
}
|
|
483
538
|
/** 通过 panoIndex 数组计算路径 */
|
|
484
|
-
getPathFromPanoGroup(e, t,
|
|
539
|
+
getPathFromPanoGroup(e, t, r) {
|
|
485
540
|
if (e.length < 2)
|
|
486
541
|
return [];
|
|
487
|
-
const
|
|
542
|
+
const s = e.map((o) => {
|
|
488
543
|
var a;
|
|
489
544
|
return (a = this.plugin.workUtil.getObserverStandingPosition(o)) == null ? void 0 : a.toArray();
|
|
490
|
-
}).filter(
|
|
491
|
-
return [
|
|
545
|
+
}).filter(V);
|
|
546
|
+
return [c(m({ type: "CatmullRomCurve3", points: s }, r), { panoIndexList: e })];
|
|
492
547
|
}
|
|
493
548
|
}
|
|
494
|
-
function
|
|
549
|
+
function T(l) {
|
|
495
550
|
return l.contentType === "Custom";
|
|
496
551
|
}
|
|
497
|
-
const
|
|
552
|
+
const he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
498
553
|
__proto__: null,
|
|
499
|
-
GuideLineModeItem:
|
|
554
|
+
GuideLineModeItem: Y
|
|
500
555
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
501
556
|
export {
|
|
502
|
-
|
|
503
|
-
|
|
557
|
+
Y as GuideLineModeItem,
|
|
558
|
+
he as GuideLineModeItem$1
|
|
504
559
|
};
|
|
@@ -29,7 +29,9 @@ declare class GuideLineModeItem {
|
|
|
29
29
|
geometryStyle: PluginType.GuideLineGeometryStyle;
|
|
30
30
|
materialStyle: PluginType.GuideLineMaterialStyle;
|
|
31
31
|
meshStyle: PluginType.GuideLineMeshStyle;
|
|
32
|
-
readonly
|
|
32
|
+
readonly group: THREE.Group;
|
|
33
|
+
readonly meshWithDepthTest: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
|
|
34
|
+
readonly meshWithoutDepthTest: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
|
|
33
35
|
private five;
|
|
34
36
|
private mode;
|
|
35
37
|
private _curvePath;
|
|
@@ -61,6 +63,8 @@ declare class GuideLineModeItem {
|
|
|
61
63
|
private cacheLengths;
|
|
62
64
|
/** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
63
65
|
private heightOffset;
|
|
66
|
+
private panoMap;
|
|
67
|
+
private autoDepthTestEffectDistance?;
|
|
64
68
|
constructor(five: Five, options: {
|
|
65
69
|
mode: PluginType.GuideLineModeItemMode;
|
|
66
70
|
plugin: GuideLinePlugin;
|
|
@@ -78,9 +82,14 @@ declare class GuideLineModeItem {
|
|
|
78
82
|
/** 通过点位设置线条形状 */
|
|
79
83
|
setGeometryByPanoGroup(_panoGroup: number[], options?: CatmullRomCurve3RestParams & PluginType.GuideLineGeometryStyle & {
|
|
80
84
|
skipPanoGroup?: boolean;
|
|
85
|
+
useAutoDepthTest?: boolean;
|
|
86
|
+
autoDepthTestEffectDistance?: number;
|
|
81
87
|
}): void;
|
|
82
88
|
/** 通过路径设置线条形状 */
|
|
83
|
-
setGeometryByPath(path: PluginType.PathItem[], options?: PluginType.GuideLineGeometryStyle
|
|
89
|
+
setGeometryByPath(path: PluginType.PathItem[], options?: PluginType.GuideLineGeometryStyle & {
|
|
90
|
+
useAutoDepthTest?: boolean;
|
|
91
|
+
autoDepthTestEffectDistance?: number;
|
|
92
|
+
}): void;
|
|
84
93
|
/** 设置线条材质 */
|
|
85
94
|
setMartial(options?: PluginType.GuideLineMaterialStyle): void;
|
|
86
95
|
/** 设置模型状态 */
|
|
@@ -128,6 +137,8 @@ declare class GuideLineModeItem {
|
|
|
128
137
|
private onWalkAnimationEnd;
|
|
129
138
|
/** 模型状态变更 */
|
|
130
139
|
private onFiveModeChange;
|
|
140
|
+
/** 走点 */
|
|
141
|
+
private onFivePanoArrived;
|
|
131
142
|
private onFiveModelShownFloorChange;
|
|
132
143
|
/** 更新可见性 */
|
|
133
144
|
private updateVisible;
|
|
@@ -4,7 +4,6 @@ import type * as BasePluginWithData from '../base/BasePluginWithData';
|
|
|
4
4
|
import type { Tag } from '../PanoTagPlugin';
|
|
5
5
|
export interface RouteConfig {
|
|
6
6
|
arrowTextureUrl?: string;
|
|
7
|
-
skipPanoIndexMesh?: boolean;
|
|
8
7
|
unitWidth?: number;
|
|
9
8
|
unitHeight?: number;
|
|
10
9
|
}
|
|
@@ -88,8 +87,21 @@ export type GuideLineItem = RequireAtLeastOne<{
|
|
|
88
87
|
export interface PanoramaGuideLineStyle extends GuideLineStyle {
|
|
89
88
|
start_tag?: Tag;
|
|
90
89
|
end_tag?: Tag;
|
|
91
|
-
/**
|
|
90
|
+
/**
|
|
91
|
+
* @description 是否跳过点位
|
|
92
|
+
* @default false
|
|
93
|
+
*/
|
|
92
94
|
skip_group?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* @description 是否自动关闭点位附近路线的深度测试
|
|
97
|
+
* @default false
|
|
98
|
+
*/
|
|
99
|
+
use_auto_depthtest?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* @description use_auto_depthtest 开启时,自动关闭深度测试的距离
|
|
102
|
+
* @default 1~3 之间
|
|
103
|
+
*/
|
|
104
|
+
auto_depth_test_effect_distance?: number;
|
|
93
105
|
}
|
|
94
106
|
/** 模型路径样式 */
|
|
95
107
|
export interface ModelGuideLineStyle extends GuideLineStyle {
|
|
@@ -165,4 +177,5 @@ export interface CatmullRomCurve3 {
|
|
|
165
177
|
closed?: boolean;
|
|
166
178
|
curve_type?: string;
|
|
167
179
|
tension?: number;
|
|
180
|
+
panoIndexList?: number[];
|
|
168
181
|
}
|