@realsee/dnalogel 3.63.4-alpha.4 → 3.64.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 +5 -0
- package/dist/GuideLinePlugin/Controller.d.ts +2 -13
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +3 -15
- package/dist/GuideLinePlugin/typing.d.ts +21 -4
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -12
- package/dist/GuideLinePlugin/utils/createPath.d.ts +3 -0
- package/dist/GuideLinePlugin/utils/index.d.ts +0 -7
- package/dist/MeasurePlugin/Controller.d.ts +1 -11
- package/dist/MeasurePlugin/utils/MeasureMesh.d.ts +2 -7
- package/dist/Sculpt/index.d.ts +8 -6
- package/dist/Sculpt/typings/index.d.ts +22 -11
- package/dist/Sculpt/typings/style.d.ts +1 -1
- package/dist/index.cjs.js +63 -83
- package/dist/index.js +10542 -10680
- package/dist/index.umd.js +65 -85
- package/dist/shared-utils/three/PointSelector/index.d.ts +3 -3
- package/dist/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +25 -25
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +28 -28
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +27 -28
- package/docs/classes/ModelMakerPluginInstance.html +15 -15
- package/docs/classes/ModelRoomLabelController.html +6 -6
- package/docs/classes/MoveController.html +17 -17
- package/docs/classes/Object3DHelperController.html +15 -15
- package/docs/classes/PaintBrush.html +5 -5
- 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 +4 -4
- package/docs/classes/PanoTagPluginController.html +34 -34
- package/docs/classes/Sculpt.html +23 -23
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +4 -4
- package/docs/classes/Util.FivePuppet.html +3 -3
- package/docs/classes/Util.Interval.html +5 -5
- package/docs/classes/Util.LightTag.html +14 -14
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +6 -6
- package/docs/classes/Util.Object3D.html +4 -4
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +16 -16
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +5 -5
- package/docs/classes/Util.sculpt.BaseEditor.html +7 -7
- package/docs/classes/Util.sculpt.BoxMesh.html +6 -6
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.CircleMesh.html +4 -4
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +4 -4
- package/docs/classes/Util.sculpt.CylinderMesh.html +5 -5
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.LineMesh.html +5 -5
- package/docs/classes/Util.sculpt.PointMesh.html +5 -5
- package/docs/classes/Util.sculpt.PolygonMesh.html +6 -6
- package/docs/classes/Util.sculpt.PrismMesh.html +6 -6
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.RectangleMesh.html +7 -7
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +7 -7
- package/docs/classes/WalkController.html +18 -18
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +18 -18
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +3 -3
- 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 +3 -3
- package/docs/enums/Rotation.html +3 -3
- 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/MeasurePlugin.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.initialCSS3DRender.html +1 -1
- 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 +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +12 -12
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +4 -4
- 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 +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.html +15 -15
- package/docs/interfaces/CruisePluginTypes.Config.html +4 -4
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +17 -17
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +4 -4
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +9 -9
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +10 -10
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.PluginData.html +4 -4
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +7 -7
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +7 -7
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +8 -8
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +5 -5
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +8 -8
- package/docs/interfaces/FloorplanExtraObject.html +5 -5
- 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 +8 -8
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +5 -5
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +8 -8
- 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 +9 -9
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -5
- package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -5
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +5 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +16 -16
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +19 -19
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -4
- package/docs/interfaces/GuideLinePluginType.Route.html +9 -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 +10 -10
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.State.html +5 -5
- 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 +7 -7
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +6 -6
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
- 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 +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +7 -7
- package/docs/interfaces/PluginEventMap.html +4 -4
- 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 +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +6 -6
- package/docs/interfaces/State.html +4 -4
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +4 -4
- 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 +4 -4
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +10 -10
- package/docs/interfaces/Util.MagnifierParameter.html +5 -5
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +11 -11
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
- 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 +4 -3
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/SculptType.html +2 -0
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +3 -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 -10
- 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/GuideLinePluginType.RouteConfig.html +4 -0
- 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/SculptType.Theme.html +10 -0
- 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.ActionIfNoIntersection.html +1 -1
- package/docs/types/Util.AdherePoint.html +2 -2
- 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/AreaMakerPlugin/Controller.js +2 -3
- package/libs/AreaMakerPlugin/index.js +2 -3
- package/libs/AreaMakerPlugin/utils/Item.js +2 -3
- package/libs/CSS3DRenderPlugin/Controller.js +2 -3
- package/libs/CSS3DRenderPlugin/index.js +5 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +2 -3
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +2 -3
- package/libs/CruisePlugin/BaseController.js +4 -5
- package/libs/CruisePlugin/Move.js +1 -1
- package/libs/CruisePlugin/Work.js +1 -1
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/CurrentPanoImagePlugin/Controller.js +2 -3
- package/libs/CurrentPanoImagePlugin/index.js +3 -4
- package/libs/GuideLinePlugin/Controller.d.ts +2 -13
- package/libs/GuideLinePlugin/Controller.js +53 -54
- package/libs/GuideLinePlugin/GuideLineItem/index.js +52 -50
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +109 -175
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +3 -15
- package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/typing.d.ts +21 -4
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -12
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +88 -124
- package/libs/GuideLinePlugin/utils/createPath.d.ts +3 -0
- package/libs/GuideLinePlugin/utils/createPath.js +33 -0
- package/libs/GuideLinePlugin/utils/index.d.ts +0 -7
- package/libs/GuideLinePlugin/utils/index.js +3 -11
- package/libs/MeasurePlugin/Controller.d.ts +1 -11
- package/libs/MeasurePlugin/Controller.js +80 -111
- package/libs/MeasurePlugin/index.js +2 -3
- package/libs/MeasurePlugin/utils/MeasureMesh.d.ts +2 -7
- package/libs/MeasurePlugin/utils/MeasureMesh.js +16 -30
- package/libs/ModelMakerPlugin/Controller.js +2 -3
- package/libs/ModelMakerPlugin/index.js +2 -3
- package/libs/ModelMakerPlugin/item/baseItem.js +2 -3
- package/libs/ModelMakerPlugin/item/boxItem.js +2 -3
- package/libs/ModelMakerPlugin/item/polygonItem.js +2 -3
- package/libs/ModelMakerPlugin/item/prismItem.js +2 -3
- package/libs/ModelTVVideoPlugin/Plugin.js +3 -4
- package/libs/ModelTVVideoPlugin/index.js +2 -3
- package/libs/ModelViewPlugin/Plugin.js +3 -4
- package/libs/ModelViewPlugin/index.js +0 -1
- package/libs/Object3DHelperPlugin/Controller.js +15 -16
- package/libs/Object3DHelperPlugin/index.js +5 -6
- package/libs/PanoCompassPlugin/Controller.js +2 -3
- package/libs/PanoCompassPlugin/index.js +3 -4
- package/libs/PanoDoorLabelPlugin/Controller.js +2 -3
- package/libs/PanoDoorLabelPlugin/index.js +3 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +2 -3
- package/libs/PanoMeasurePlugin/Components/Controller1.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +2 -3
- package/libs/PanoMeasurePlugin/Controller/index.js +2 -3
- package/libs/PanoMeasurePlugin/Model/area.js +11 -12
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +0 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +2 -3
- package/libs/PanoMeasurePlugin/index.js +13 -14
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +2 -3
- package/libs/PanoRulerProPlugin/Controller.js +2 -3
- package/libs/PanoRulerProPlugin/RulerItems.js +2 -3
- package/libs/PanoRulerProPlugin/index.js +3 -4
- package/libs/PanoSpatialTagPlugin/Plugin.js +63 -64
- package/libs/PanoSpatialTagPlugin/index.js +0 -1
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +2 -3
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +2 -3
- package/libs/PanoTagPlugin/Components/Tag/index.js +2 -3
- package/libs/PanoTagPlugin/Components/TagContainer.js +2 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +2 -3
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +2 -3
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +2 -3
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +26 -27
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +2 -3
- package/libs/PanoTagPlugin/controller/TagRender.js +2 -3
- package/libs/PanoTagPlugin/controller/TagUtil.js +2 -3
- package/libs/PanoTagPlugin/controller/index.js +5 -6
- package/libs/PanoTagPlugin/index.js +11 -12
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +16 -17
- package/libs/PanoVideoPlugin/Controller.js +2 -3
- package/libs/PanoVideoPlugin/VideoMeshController.js +2 -3
- package/libs/PanoVideoPlugin/index.js +5 -6
- package/libs/PipelinePlugin/Controller.js +19 -20
- package/libs/PipelinePlugin/index.js +3 -4
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +2 -3
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +2 -3
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +0 -1
- package/libs/Sculpt/Meshes/Line.js +75 -75
- package/libs/Sculpt/Meshes/Polygon.js +11 -7
- package/libs/Sculpt/index.d.ts +8 -6
- package/libs/Sculpt/index.js +20 -20
- package/libs/Sculpt/typings/index.d.ts +22 -11
- package/libs/Sculpt/typings/style.d.ts +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +21 -22
- package/libs/base/BasePlugin.js +3 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +2 -3
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +2 -3
- package/libs/floorplan/ModelFloorplanPlugin/index.js +3 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +2 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +3 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +2 -3
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -4
- package/libs/index.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.js +1 -3
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.d.ts +3 -3
- package/libs/shared-utils/three/PointSelector/index.js +5 -6
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -3
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +91 -91
- package/package.json +1 -1
- package/dist/Sculpt/utils/unit.d.ts +0 -2
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -4
- package/libs/Sculpt/utils/unit.d.ts +0 -2
- package/libs/Sculpt/utils/unit.js +0 -14
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var w = Object.defineProperty, V = Object.defineProperties;
|
|
2
|
+
var P = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var y = Object.getOwnPropertySymbols;
|
|
4
|
+
var x = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var p = (h, e, t) => e in h ? w(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t, f = (h, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var i = (
|
|
14
|
-
import * as
|
|
15
|
-
import { logError as
|
|
16
|
-
import { createLineGeometry as
|
|
7
|
+
x.call(e, t) && p(h, t, e[t]);
|
|
8
|
+
if (y)
|
|
9
|
+
for (var t of y(e))
|
|
10
|
+
T.call(e, t) && p(h, t, e[t]);
|
|
11
|
+
return h;
|
|
12
|
+
}, C = (h, e) => V(h, P(e));
|
|
13
|
+
var i = (h, e, t) => (p(h, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
import * as n from "three";
|
|
15
|
+
import { logError as L } from "../../shared-utils/log.js";
|
|
16
|
+
import { createLineGeometry as F } from "../utils/createLineGeometry.js";
|
|
17
17
|
import "../../shared-utils/tag.js";
|
|
18
|
-
import { isPanoramaLike as
|
|
18
|
+
import { isPanoramaLike as S, isModelLike as M } from "../../shared-utils/five/mode.js";
|
|
19
19
|
import "../../vendor/hammerjs/hammer.js";
|
|
20
20
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
21
21
|
import "../../shared-utils/three/CSS3DRenderer/index.js";
|
|
22
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
23
|
import "@realsee/five/line";
|
|
24
|
-
import { notNil as
|
|
24
|
+
import { notNil as _ } from "../../shared-utils/isNil.js";
|
|
25
25
|
import "../../shared-utils/three/core/Five_LineMaterial2.js";
|
|
26
26
|
import "../../shared-utils/three/core/Sphere.js";
|
|
27
27
|
import { blink as O } from "../../shared-utils/three/blink.js";
|
|
28
|
-
import { BetterTween as
|
|
28
|
+
import { BetterTween as U } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
29
29
|
import "../../shared-utils/five/FivePuppet.js";
|
|
30
|
-
import { loadTexture as
|
|
31
|
-
import
|
|
32
|
-
import
|
|
30
|
+
import { loadTexture as E } from "../../shared-utils/three/loadTexture.js";
|
|
31
|
+
import k from "../../PanoTagPlugin/controller/index.js";
|
|
32
|
+
import A from "../Components/Tag.js";
|
|
33
33
|
import { filterAdjacentDistinct as G } from "../utils/index.js";
|
|
34
34
|
import { objectAssignDeepExports as B } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
35
|
-
|
|
35
|
+
import { createPath as I } from "../utils/createPath.js";
|
|
36
|
+
const W = (
|
|
36
37
|
/* glsl */
|
|
37
38
|
`
|
|
38
39
|
varying vec2 vUv;
|
|
@@ -45,7 +46,7 @@ const I = (
|
|
|
45
46
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
46
47
|
}
|
|
47
48
|
`
|
|
48
|
-
),
|
|
49
|
+
), R = (
|
|
49
50
|
/* glsl */
|
|
50
51
|
`
|
|
51
52
|
precision highp float;
|
|
@@ -74,12 +75,6 @@ const I = (
|
|
|
74
75
|
uniform float opacity;
|
|
75
76
|
// 最大 U 值
|
|
76
77
|
uniform float maxV;
|
|
77
|
-
// 只显示 includeMinV ~ includeMaxV 之内的颜色
|
|
78
|
-
uniform float includeMinV;
|
|
79
|
-
uniform float includeMaxV;
|
|
80
|
-
// 不显示 excludeMinV ~ excludeMaxV 之内的颜色
|
|
81
|
-
uniform float excludeMinV;
|
|
82
|
-
uniform float excludeMaxV;
|
|
83
78
|
// v offset
|
|
84
79
|
uniform float vOffset;
|
|
85
80
|
// 闪烁动画值
|
|
@@ -153,20 +148,6 @@ const I = (
|
|
|
153
148
|
|
|
154
149
|
void main() {
|
|
155
150
|
float v = vUv.y;
|
|
156
|
-
// 低版本 webgl 有精度问题,所以这里不能用 includeMinV != -1.0 && includeMaxV != -1.0
|
|
157
|
-
if (includeMinV > -0.9 && includeMaxV > -0.9) {
|
|
158
|
-
if (v < includeMinV || v > includeMaxV) {
|
|
159
|
-
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
160
|
-
return;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
// 同上
|
|
164
|
-
if (excludeMinV > -0.9 && excludeMaxV > -0.9) {
|
|
165
|
-
if (v >= excludeMinV && v <= excludeMaxV) {
|
|
166
|
-
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
151
|
vec4 image = getImage();
|
|
171
152
|
vec4 border = getBorder();
|
|
172
153
|
vec4 background = getBackground();
|
|
@@ -184,7 +165,7 @@ const I = (
|
|
|
184
165
|
}
|
|
185
166
|
`
|
|
186
167
|
);
|
|
187
|
-
class
|
|
168
|
+
class N {
|
|
188
169
|
constructor(e, t) {
|
|
189
170
|
i(this, "name", "");
|
|
190
171
|
i(this, "startTagContainer");
|
|
@@ -193,9 +174,8 @@ class R {
|
|
|
193
174
|
i(this, "geometryStyle", {});
|
|
194
175
|
i(this, "materialStyle", {});
|
|
195
176
|
i(this, "meshStyle", {});
|
|
196
|
-
i(this, "group", new
|
|
197
|
-
i(this, "
|
|
198
|
-
i(this, "meshWithoutDepthTest");
|
|
177
|
+
i(this, "group", new n.Group());
|
|
178
|
+
i(this, "mesh");
|
|
199
179
|
i(this, "visible", null);
|
|
200
180
|
i(this, "five");
|
|
201
181
|
i(this, "mode");
|
|
@@ -221,16 +201,14 @@ class R {
|
|
|
221
201
|
i(this, "plugin");
|
|
222
202
|
i(this, "textureHasLoaded", !1);
|
|
223
203
|
i(this, "disposed", !1);
|
|
224
|
-
i(this, "flowAnime", new
|
|
204
|
+
i(this, "flowAnime", new U({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
|
|
225
205
|
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
226
206
|
i(this, "cacheLengths", []);
|
|
227
207
|
/** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
228
208
|
i(this, "heightOffset", 0);
|
|
229
|
-
i(this, "panoMap", {});
|
|
230
|
-
i(this, "autoDepthTestEffectDistance");
|
|
231
209
|
i(this, "dispose", () => {
|
|
232
210
|
var e, t;
|
|
233
|
-
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("
|
|
211
|
+
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());
|
|
234
212
|
});
|
|
235
213
|
/** 开始走点动画 */
|
|
236
214
|
i(this, "onWalkAnimationStart", () => {
|
|
@@ -242,20 +220,7 @@ class R {
|
|
|
242
220
|
});
|
|
243
221
|
/** 模型状态变更 */
|
|
244
222
|
i(this, "onFiveModeChange", (e) => {
|
|
245
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
246
|
-
});
|
|
247
|
-
/** 走点 */
|
|
248
|
-
i(this, "onFivePanoArrived", (e) => {
|
|
249
|
-
var s, a, o, n, l, d;
|
|
250
|
-
const t = (o = (a = (s = this.path) == null ? void 0 : s[0]) == null ? void 0 : a.panoIndexMap) == null ? void 0 : o[e], r = this.panoMap[t != null ? t : e];
|
|
251
|
-
if (r === void 0)
|
|
252
|
-
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;
|
|
253
|
-
else {
|
|
254
|
-
this.group.children.includes(this.meshWithoutDepthTest) || this.group.add(this.meshWithoutDepthTest), this.meshWithoutDepthTest.visible = !0;
|
|
255
|
-
const u = this.meshWithDepthTest.geometry.getAttribute("uv"), p = 100 * ((n = this.autoDepthTestEffectDistance) != null ? n : 2), g = (l = u.getY((r - p) * 2)) != null ? l : 0, f = (d = u.getY((r + p) * 2)) != null ? d : u.getY(u.count - 1);
|
|
256
|
-
this.meshWithDepthTest.material.uniforms.excludeMinV.value = g, this.meshWithDepthTest.material.uniforms.excludeMaxV.value = f, this.meshWithDepthTest.material.uniforms.includeMinV.value = -1, this.meshWithDepthTest.material.uniforms.includeMaxV.value = -1, this.meshWithoutDepthTest.material.uniforms.includeMinV.value = g, this.meshWithoutDepthTest.material.uniforms.includeMaxV.value = f, this.meshWithoutDepthTest.material.uniforms.excludeMinV.value = -1, this.meshWithoutDepthTest.material.uniforms.excludeMaxV.value = -1;
|
|
257
|
-
}
|
|
258
|
-
this.meshWithDepthTest.material.uniformsNeedUpdate = !0, this.meshWithoutDepthTest.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
223
|
+
this.modeVisible = this.mode === "panorama" ? S(e) : M(e), this.updateVisible();
|
|
259
224
|
});
|
|
260
225
|
i(this, "onFiveModelShownFloorChange", (e) => {
|
|
261
226
|
this.floorVisible = e === null || this.visibleFloorIndexes === null || this.visibleFloorIndexes.includes(e), this.updateVisible();
|
|
@@ -267,37 +232,33 @@ class R {
|
|
|
267
232
|
});
|
|
268
233
|
i(this, "onFlowAnimeUpdate", (e) => {
|
|
269
234
|
const { progress: t } = e;
|
|
270
|
-
this.
|
|
235
|
+
this.mesh.material.uniforms.vOffset.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
271
236
|
});
|
|
272
|
-
i(this, "logError", (e) =>
|
|
237
|
+
i(this, "logError", (e) => L("GuideLineModeItem: ", e));
|
|
273
238
|
var a, o;
|
|
274
239
|
this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.group.name = "GuideLineModeItem";
|
|
275
|
-
const
|
|
276
|
-
vertexShader:
|
|
277
|
-
fragmentShader:
|
|
240
|
+
const s = new n.BufferGeometry(), r = new n.ShaderMaterial({
|
|
241
|
+
vertexShader: W,
|
|
242
|
+
fragmentShader: R,
|
|
278
243
|
transparent: !0,
|
|
279
244
|
uniforms: {
|
|
280
245
|
map: { value: null },
|
|
281
246
|
useMapColor: { value: 0 },
|
|
282
|
-
mapColor: { value: new
|
|
247
|
+
mapColor: { value: new n.Color() },
|
|
283
248
|
mapOpacity: { value: 1 },
|
|
284
|
-
backgroundColor: { value: new
|
|
249
|
+
backgroundColor: { value: new n.Color() },
|
|
285
250
|
backgroundOpacity: { value: 0 },
|
|
286
|
-
borderColor: { value: new
|
|
251
|
+
borderColor: { value: new n.Color() },
|
|
287
252
|
borderOpacity: { value: 0 },
|
|
288
253
|
backgroundClip: { value: 0 },
|
|
289
254
|
borderWidth: { value: 0.05 },
|
|
290
255
|
opacity: { value: 1 },
|
|
291
256
|
flicker: { value: 1 },
|
|
292
257
|
maxV: { value: 0 },
|
|
293
|
-
vOffset: { value: 0 }
|
|
294
|
-
includeMinV: { value: -1 },
|
|
295
|
-
includeMaxV: { value: -1 },
|
|
296
|
-
excludeMinV: { value: -1 },
|
|
297
|
-
excludeMaxV: { value: -1 }
|
|
258
|
+
vOffset: { value: 0 }
|
|
298
259
|
}
|
|
299
260
|
});
|
|
300
|
-
this.
|
|
261
|
+
this.mesh = new n.Mesh(s, r), this.mesh.name = "GuideLineModeItem", this.group.add(this.mesh), this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((o = (a = this.five.model) == null ? void 0 : a.shownFloor) != null ? o : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), 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("modelShownFloorChange", this.onFiveModelShownFloorChange), this.five.needsRender = !0;
|
|
301
262
|
}
|
|
302
263
|
get panoGroup() {
|
|
303
264
|
return this._panoGroup;
|
|
@@ -344,86 +305,82 @@ class R {
|
|
|
344
305
|
return this.logError("disposed");
|
|
345
306
|
if (!this.five.work)
|
|
346
307
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
347
|
-
const
|
|
348
|
-
if (this._panoGroup =
|
|
349
|
-
const a = t.skipPanoGroup ?
|
|
308
|
+
const s = G(e);
|
|
309
|
+
if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
|
|
310
|
+
const a = t.skipPanoGroup ? s.map((o) => this.plugin.workUtil.getObserverStandingPosition(o)).filter(_) : null;
|
|
350
311
|
this.skippedPositions = a;
|
|
351
312
|
}
|
|
352
|
-
const
|
|
353
|
-
this.path =
|
|
313
|
+
const r = I(s, this.five.work, t);
|
|
314
|
+
this.path = r, this.setGeometryByPath(r, t);
|
|
354
315
|
}
|
|
355
316
|
/** 通过路径设置线条形状 */
|
|
356
317
|
setGeometryByPath(e, t) {
|
|
357
|
-
var
|
|
318
|
+
var d, g, m;
|
|
358
319
|
if (this.disposed)
|
|
359
320
|
return this.logError("disposed");
|
|
360
|
-
const
|
|
361
|
-
this.scale =
|
|
362
|
-
const { geometry: o, maxV:
|
|
321
|
+
const s = (d = t == null ? void 0 : t.scale) != null ? d : this.scale, r = (g = t == null ? void 0 : t.width) != null ? g : this.width, a = (m = t == null ? void 0 : t.unit_length) != null ? m : this.unitLength;
|
|
322
|
+
this.scale = s, this.width = r, this.unitLength = a;
|
|
323
|
+
const { geometry: o, maxV: l, curvePath: c, curvePoints: u } = F({
|
|
363
324
|
path: e,
|
|
364
|
-
width:
|
|
365
|
-
unitLength: a *
|
|
366
|
-
skipPositions: this.skippedPositions
|
|
367
|
-
useAutoDepthTest: t.useAutoDepthTest
|
|
325
|
+
width: r * s,
|
|
326
|
+
unitLength: a * s,
|
|
327
|
+
skipPositions: this.skippedPositions
|
|
368
328
|
});
|
|
369
|
-
this.
|
|
370
|
-
const b = p / 10;
|
|
371
|
-
return b > 3 ? 3 : b < 1 ? 1 : b;
|
|
372
|
-
})(), this.panoMap = u, this._curvePath = l, this._curvePoints = d, this.meshWithDepthTest.geometry.copy(o), 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 = c(c({}, this.geometryStyle), t);
|
|
329
|
+
this._curvePath = c, this._curvePoints = u, this.mesh.geometry.copy(o), this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxV.value = l, this.five.needsRender = !0, this.path = e, this.geometryStyle = f(f({}, this.geometryStyle), t);
|
|
373
330
|
}
|
|
374
331
|
/** 设置线条材质 */
|
|
375
332
|
setMartial(e) {
|
|
376
|
-
var
|
|
333
|
+
var s, r, a, o, l;
|
|
377
334
|
if (this.disposed)
|
|
378
335
|
return this.logError("disposed");
|
|
379
|
-
this.setDefaultVisible((
|
|
380
|
-
const t =
|
|
336
|
+
this.setDefaultVisible((s = e == null ? void 0 : e.visible) != null ? s : !1), this.setColor((r = e == null ? void 0 : e.color) != null ? r : "#ffffff"), this.setOpacity((a = e == null ? void 0 : e.opacity) != null ? a : 0.5), this.setTextureUrl((l = (o = e == null ? void 0 : e.texture) == null ? void 0 : o.url) != null ? l : "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);
|
|
337
|
+
const t = f(f({}, this.materialStyle), e);
|
|
381
338
|
this.materialStyle = t;
|
|
382
339
|
}
|
|
383
340
|
/** 设置模型状态 */
|
|
384
341
|
setMeshStyle(e) {
|
|
385
342
|
if (e != null && e.translate) {
|
|
386
|
-
const
|
|
387
|
-
a.y += this.heightOffset,
|
|
343
|
+
const r = new n.Vector3(), a = new n.Vector3().fromArray(e.translate);
|
|
344
|
+
a.y += this.heightOffset, r.add(a), this.group.position.copy(r), s(this.startTagContainer, a), s(this.endTagContainer, a);
|
|
388
345
|
}
|
|
389
|
-
const t =
|
|
346
|
+
const t = f(f({}, this.meshStyle), e);
|
|
390
347
|
this.meshStyle = t;
|
|
391
|
-
function r
|
|
392
|
-
if (!(
|
|
348
|
+
function s(r, a) {
|
|
349
|
+
if (!(r != null && r.tag))
|
|
393
350
|
return;
|
|
394
|
-
const o = new
|
|
351
|
+
const o = new n.Vector3().fromArray(r.tag.position);
|
|
395
352
|
o.add(a);
|
|
396
|
-
const
|
|
397
|
-
|
|
353
|
+
const l = o.toArray();
|
|
354
|
+
r.plugin.changeTagById(r.tag.id, { position: l });
|
|
398
355
|
}
|
|
399
356
|
}
|
|
400
357
|
/** 设置 Y 轴上的偏移量,为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
401
358
|
setHeightOffset(e) {
|
|
402
|
-
const t = new
|
|
403
|
-
this.meshStyle.translate && t.add(new
|
|
359
|
+
const t = new n.Vector3();
|
|
360
|
+
this.meshStyle.translate && t.add(new n.Vector3().fromArray(this.meshStyle.translate)), t.setY(t.y + e), this.group.position.copy(t), this.heightOffset = e, this.five.needsRender = !0;
|
|
404
361
|
}
|
|
405
362
|
/** 设置贴图颜色 */
|
|
406
363
|
setColor(e) {
|
|
407
364
|
if (this.disposed)
|
|
408
365
|
return this.logError("disposed");
|
|
409
|
-
e && (this.
|
|
366
|
+
e && (this.mesh.material.uniforms.mapColor.value = new n.Color().set(e)), this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
410
367
|
}
|
|
411
368
|
/** 设置边框 */
|
|
412
369
|
setBorderColor(e) {
|
|
413
370
|
if (this.disposed)
|
|
414
371
|
return this.logError("disposed");
|
|
415
|
-
this.
|
|
372
|
+
this.mesh.material.uniforms.borderColor.value = new n.Color().set(e), this.five.needsRender = !0;
|
|
416
373
|
}
|
|
417
374
|
/** 设置边框透明度 */
|
|
418
375
|
setBorderOpacity(e) {
|
|
419
376
|
if (this.disposed)
|
|
420
377
|
return this.logError("disposed");
|
|
421
|
-
this.
|
|
378
|
+
this.mesh.material.uniforms.borderOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
422
379
|
}
|
|
423
380
|
setBackgroundClip(e) {
|
|
424
381
|
if (this.disposed)
|
|
425
382
|
return this.logError("disposed");
|
|
426
|
-
this.
|
|
383
|
+
this.mesh.material.uniforms.backgroundClip.value = e === "border-box" ? 0 : 1, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
427
384
|
}
|
|
428
385
|
/**
|
|
429
386
|
* @description: 设置边框宽度
|
|
@@ -431,45 +388,45 @@ class R {
|
|
|
431
388
|
setBorderWidth(e) {
|
|
432
389
|
if (this.disposed)
|
|
433
390
|
return this.logError("disposed");
|
|
434
|
-
this.
|
|
391
|
+
this.mesh.material.uniforms.borderWidth.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
435
392
|
}
|
|
436
393
|
/** 设置背景颜色 */
|
|
437
394
|
setBackgroundColor(e) {
|
|
438
395
|
if (this.disposed)
|
|
439
396
|
return this.logError("disposed");
|
|
440
|
-
this.
|
|
397
|
+
this.mesh.material.uniforms.backgroundColor.value = new n.Color().set(e), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
441
398
|
}
|
|
442
399
|
/** 设置背景透明度 */
|
|
443
400
|
setBackgroundOpacity(e) {
|
|
444
401
|
if (this.disposed)
|
|
445
402
|
return this.logError("disposed");
|
|
446
|
-
this.
|
|
403
|
+
this.mesh.material.uniforms.backgroundOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
447
404
|
}
|
|
448
405
|
/** 设置整体透明度 */
|
|
449
406
|
setOpacity(e) {
|
|
450
407
|
if (this.disposed)
|
|
451
408
|
return this.logError("disposed");
|
|
452
|
-
this.
|
|
409
|
+
this.mesh.material.uniforms.opacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
453
410
|
}
|
|
454
411
|
/** 设置贴图透明度 */
|
|
455
412
|
setMapOpacity(e) {
|
|
456
413
|
if (this.disposed)
|
|
457
414
|
return this.logError("disposed");
|
|
458
|
-
this.
|
|
415
|
+
this.mesh.material.uniforms.mapOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
459
416
|
}
|
|
460
417
|
/** 设置贴图 */
|
|
461
418
|
setTextureUrl(e) {
|
|
462
419
|
if (this.disposed)
|
|
463
420
|
return this.logError("disposed");
|
|
464
|
-
this.textureUrl = e,
|
|
465
|
-
this.disposed || this.textureUrl === e && (t.wrapT =
|
|
421
|
+
this.textureUrl = e, E(e).then((t) => {
|
|
422
|
+
this.disposed || this.textureUrl === e && (t.wrapT = n.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
|
|
466
423
|
});
|
|
467
424
|
}
|
|
468
425
|
setVisibleFloorIndexes(e) {
|
|
469
|
-
var t,
|
|
426
|
+
var t, s;
|
|
470
427
|
if (this.disposed)
|
|
471
428
|
return this.logError("disposed");
|
|
472
|
-
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((
|
|
429
|
+
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((s = (t = this.five.model) == null ? void 0 : t.shownFloor) != null ? s : null);
|
|
473
430
|
}
|
|
474
431
|
setStartTag(e) {
|
|
475
432
|
this.setTag("start", e);
|
|
@@ -479,10 +436,10 @@ class R {
|
|
|
479
436
|
}
|
|
480
437
|
/** 闪烁 */
|
|
481
438
|
flicker() {
|
|
482
|
-
var e, t,
|
|
439
|
+
var e, t, s, r, a, o;
|
|
483
440
|
if (this.disposed)
|
|
484
441
|
return this.logError("disposed");
|
|
485
|
-
O([this.group, (
|
|
442
|
+
O([this.group, (s = (t = (e = this.startTagContainer) == null ? void 0 : e.plugin) == null ? void 0 : t.tags[0]) == null ? void 0 : s.dom, (o = (a = (r = this.endTagContainer) == null ? void 0 : r.plugin) == null ? void 0 : a.tags[0]) == null ? void 0 : o.dom], {
|
|
486
443
|
loop: 6,
|
|
487
444
|
updateRender: () => {
|
|
488
445
|
this.five.needsRender = !0;
|
|
@@ -499,43 +456,43 @@ class R {
|
|
|
499
456
|
return this.disposed ? this.logError("disposed") : this.cacheLengths.length !== 0 ? this.cacheLengths[e] : (this.cacheLengths = this.getPanoGroupLengths(), this.cacheLengths[e]);
|
|
500
457
|
}
|
|
501
458
|
getPanoGroupLengths() {
|
|
502
|
-
var
|
|
459
|
+
var c;
|
|
503
460
|
if (!this.curvePoints || !this.curvePath)
|
|
504
461
|
return [];
|
|
505
|
-
const e = this.curvePoints.length, t = this.curvePath.getLength(),
|
|
506
|
-
let
|
|
507
|
-
for (let
|
|
508
|
-
const
|
|
509
|
-
if (!
|
|
462
|
+
const e = this.curvePoints.length, t = this.curvePath.getLength(), s = e - 1, r = t / s, a = (c = this.curvePath.getLengths(s)) != null ? c : [], o = [];
|
|
463
|
+
let l = 0;
|
|
464
|
+
for (let u = 0; u < e; u++) {
|
|
465
|
+
const d = this.curvePoints[u], g = this.plugin.workUtil.getObserverStandingPosition(l);
|
|
466
|
+
if (!g)
|
|
510
467
|
break;
|
|
511
|
-
|
|
468
|
+
g.clone().setY(0).distanceTo(d.clone().setY(0)) < r && (o.push(a[u]), l += 1);
|
|
512
469
|
}
|
|
513
470
|
return o;
|
|
514
471
|
}
|
|
515
472
|
setTag(e, t) {
|
|
516
|
-
var
|
|
517
|
-
const
|
|
473
|
+
var c, u;
|
|
474
|
+
const s = this.curvePath;
|
|
518
475
|
if (!(t != null && t.data))
|
|
519
476
|
return;
|
|
520
|
-
const
|
|
477
|
+
const r = e === "start" ? (c = this.startTagContainer) != null ? c : (() => (this.startTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 1 }) }, this.startTagContainer))() : (u = this.endTagContainer) != null ? u : (() => (this.endTagContainer = { tag: null, plugin: new k(this.five, { containerZIndex: 1 }) }, this.endTagContainer))(), o = B({}, {
|
|
521
478
|
contentType: "Custom",
|
|
522
479
|
stickType: "2DPoint",
|
|
523
480
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
524
481
|
style: { point: { enabled: !1 } },
|
|
525
482
|
data: {}
|
|
526
483
|
}, t);
|
|
527
|
-
|
|
528
|
-
var
|
|
529
|
-
(
|
|
530
|
-
const
|
|
531
|
-
return
|
|
532
|
-
}),
|
|
533
|
-
const
|
|
534
|
-
if (
|
|
535
|
-
const
|
|
536
|
-
|
|
537
|
-
const
|
|
538
|
-
|
|
484
|
+
r.tag = o, H(o) && (r.tag.element = (d) => {
|
|
485
|
+
var v, b;
|
|
486
|
+
(v = r.app) == null || v.$destroy();
|
|
487
|
+
const g = e === "start" ? C(f({}, o.data), { name: this.name, distance: Math.round((b = s.getLength()) != null ? b : 0), i18n: this.plugin.config.i18n }) : o.data, m = new A({ target: d, intro: !0, props: g });
|
|
488
|
+
return r.app = m, () => m.$destroy();
|
|
489
|
+
}), r.plugin.load({ tagList: [r.tag] });
|
|
490
|
+
const l = this.meshStyle.translate;
|
|
491
|
+
if (l && o.position) {
|
|
492
|
+
const d = new n.Vector3().fromArray(o.position), g = new n.Vector3().fromArray(l);
|
|
493
|
+
d.add(g), d.y += this.heightOffset;
|
|
494
|
+
const m = d.toArray();
|
|
495
|
+
r.plugin.changeTagById(r.tag.id, { position: m });
|
|
539
496
|
}
|
|
540
497
|
}
|
|
541
498
|
doShow() {
|
|
@@ -546,38 +503,15 @@ class R {
|
|
|
546
503
|
var e, t;
|
|
547
504
|
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.group), (e = this.startTagContainer) == null || e.plugin.hide(), (t = this.endTagContainer) == null || t.plugin.hide(), this.five.needsRender = !0;
|
|
548
505
|
}
|
|
549
|
-
/** 通过 panoIndex 数组计算路径 */
|
|
550
|
-
getPathFromPanoGroup(e, t, r) {
|
|
551
|
-
if (e.length < 2)
|
|
552
|
-
return [];
|
|
553
|
-
const s = {}, a = e.map((l, d) => {
|
|
554
|
-
const u = this.plugin.workUtil.getObserverStandingPosition(l);
|
|
555
|
-
if (!u)
|
|
556
|
-
return;
|
|
557
|
-
const p = e[d - 1];
|
|
558
|
-
if ((d === 0 ? 999 : u.distanceTo(this.plugin.workUtil.getObserverStandingPosition(p))) < 0.05) {
|
|
559
|
-
let f = p;
|
|
560
|
-
for (; s[f] !== void 0; )
|
|
561
|
-
f = s[f];
|
|
562
|
-
s[l] = f;
|
|
563
|
-
return;
|
|
564
|
-
}
|
|
565
|
-
return {
|
|
566
|
-
position: u,
|
|
567
|
-
panoIndex: l
|
|
568
|
-
};
|
|
569
|
-
}).filter(V), o = a.map((l) => l.position.toArray()), n = a.map((l) => l.panoIndex);
|
|
570
|
-
return [y(c({ type: "CatmullRomCurve3", points: o }, r), { panoIndexList: n, panoIndexMap: s })];
|
|
571
|
-
}
|
|
572
506
|
}
|
|
573
|
-
function H(
|
|
574
|
-
return
|
|
507
|
+
function H(h) {
|
|
508
|
+
return h.contentType === "Custom";
|
|
575
509
|
}
|
|
576
|
-
const
|
|
510
|
+
const ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
577
511
|
__proto__: null,
|
|
578
|
-
GuideLineModeItem:
|
|
512
|
+
GuideLineModeItem: N
|
|
579
513
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
580
514
|
export {
|
|
581
|
-
|
|
582
|
-
|
|
515
|
+
N as GuideLineModeItem,
|
|
516
|
+
ue as GuideLineModeItem$1
|
|
583
517
|
};
|
|
@@ -30,8 +30,7 @@ declare class GuideLineModeItem {
|
|
|
30
30
|
materialStyle: PluginType.GuideLineMaterialStyle;
|
|
31
31
|
meshStyle: PluginType.GuideLineMeshStyle;
|
|
32
32
|
readonly group: THREE.Group;
|
|
33
|
-
readonly
|
|
34
|
-
readonly meshWithoutDepthTest: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
|
|
33
|
+
readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
|
|
35
34
|
visible: boolean | null;
|
|
36
35
|
private five;
|
|
37
36
|
private mode;
|
|
@@ -62,8 +61,6 @@ declare class GuideLineModeItem {
|
|
|
62
61
|
private cacheLengths;
|
|
63
62
|
/** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
64
63
|
private heightOffset;
|
|
65
|
-
private panoMap;
|
|
66
|
-
private autoDepthTestEffectDistance?;
|
|
67
64
|
constructor(five: Five, options: {
|
|
68
65
|
mode: PluginType.GuideLineModeItemMode;
|
|
69
66
|
plugin: GuideLinePlugin;
|
|
@@ -79,16 +76,11 @@ declare class GuideLineModeItem {
|
|
|
79
76
|
/** 设置缩放 */
|
|
80
77
|
setScale(scale: number): void;
|
|
81
78
|
/** 通过点位设置线条形状 */
|
|
82
|
-
setGeometryByPanoGroup(_panoGroup: number[], options?: CatmullRomCurve3RestParams & PluginType.GuideLineGeometryStyle & {
|
|
79
|
+
setGeometryByPanoGroup(_panoGroup: number[], options?: CatmullRomCurve3RestParams & PluginType.ExtraRouteData & PluginType.GuideLineGeometryStyle & {
|
|
83
80
|
skipPanoGroup?: boolean;
|
|
84
|
-
useAutoDepthTest?: boolean;
|
|
85
|
-
autoDepthTestEffectDistance?: number;
|
|
86
81
|
}): void;
|
|
87
82
|
/** 通过路径设置线条形状 */
|
|
88
|
-
setGeometryByPath(path: PluginType.PathItem[], options?: PluginType.GuideLineGeometryStyle
|
|
89
|
-
useAutoDepthTest?: boolean;
|
|
90
|
-
autoDepthTestEffectDistance?: number;
|
|
91
|
-
}): void;
|
|
83
|
+
setGeometryByPath(path: PluginType.PathItem[], options?: PluginType.GuideLineGeometryStyle): void;
|
|
92
84
|
/** 设置线条材质 */
|
|
93
85
|
setMartial(options?: PluginType.GuideLineMaterialStyle): void;
|
|
94
86
|
/** 设置模型状态 */
|
|
@@ -136,15 +128,11 @@ declare class GuideLineModeItem {
|
|
|
136
128
|
private onWalkAnimationEnd;
|
|
137
129
|
/** 模型状态变更 */
|
|
138
130
|
private onFiveModeChange;
|
|
139
|
-
/** 走点 */
|
|
140
|
-
private onFivePanoArrived;
|
|
141
131
|
private onFiveModelShownFloorChange;
|
|
142
132
|
/** 更新可见性 */
|
|
143
133
|
private updateVisible;
|
|
144
134
|
private doShow;
|
|
145
135
|
private doHide;
|
|
146
|
-
/** 通过 panoIndex 数组计算路径 */
|
|
147
|
-
private getPathFromPanoGroup;
|
|
148
136
|
private onFlowAnimeUpdate;
|
|
149
137
|
private logError;
|
|
150
138
|
}
|
|
@@ -19,6 +19,7 @@ import "../PanoTagPlugin/controller/index.js";
|
|
|
19
19
|
import "./Components/Tag.js";
|
|
20
20
|
import "./utils/index.js";
|
|
21
21
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
22
|
+
import "./utils/createPath.js";
|
|
22
23
|
import { GuideLineModeItem as Nm } from "./GuideLineModeItem/index.js";
|
|
23
24
|
import "../vendor/polyline-normals/index.js";
|
|
24
25
|
import "../vendor/polyline-miter-util/index.js";
|
|
@@ -68,7 +69,6 @@ import "../shared-utils/three/core/LineGeometry.js";
|
|
|
68
69
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
69
70
|
import "../shared-utils/three/core/Line2.js";
|
|
70
71
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
71
|
-
import "../Sculpt/utils/unit.js";
|
|
72
72
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
73
73
|
import "../shared-utils/isTouchDevice.js";
|
|
74
74
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -55,7 +55,6 @@ import "../shared-utils/three/core/LineGeometry.js";
|
|
|
55
55
|
import "../shared-utils/three/core/LineMaterial.js";
|
|
56
56
|
import "../shared-utils/three/core/Line2.js";
|
|
57
57
|
import "../shared-utils/three/core/LineMaterial2.js";
|
|
58
|
-
import "../Sculpt/utils/unit.js";
|
|
59
58
|
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
60
59
|
import "../shared-utils/isTouchDevice.js";
|
|
61
60
|
import "../shared-utils/five/getPosition.js";
|
|
@@ -210,6 +209,7 @@ import "../PanoTagPlugin/Components/TagItem.js";
|
|
|
210
209
|
import "../PanoTagPlugin/Components/Common/TagPoint.js";
|
|
211
210
|
import "./Components/Tag.js";
|
|
212
211
|
import "./utils/index.js";
|
|
212
|
+
import "./utils/createPath.js";
|
|
213
213
|
import "../shared-utils/to.js";
|
|
214
214
|
import "../shared-utils/five/changeMode.js";
|
|
215
215
|
import "../shared-utils/nearlyEqual.js";
|