@realsee/dnalogel 3.77.10-alpha.0 → 3.77.11-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +847 -836
- package/dist/GuideLinePlugin/Controller.d.ts +34 -2
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +7 -2
- package/dist/index.cjs.js +17 -17
- package/dist/index.js +217 -188
- package/dist/index.umd.js +4 -4
- package/docs/.nojekyll +1 -0
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +127 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1493 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +59 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +71 -0
- package/docs/classes/CSS3DRender.html +100 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +21 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +70 -0
- package/docs/classes/ModelMakerPluginInstance.html +77 -0
- package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +46 -0
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +46 -0
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +47 -0
- package/docs/classes/ModelRoomLabelController.html +19 -0
- package/docs/classes/MoveController.html +45 -0
- package/docs/classes/Object3DHelperController.html +45 -0
- package/docs/classes/PaintBrush.html +15 -0
- package/docs/classes/PanoMeasurePluginLine.html +24 -0
- package/docs/classes/PanoMeasurePluginModel.html +23 -0
- package/docs/classes/PanoMeasurePluginPoint.html +7 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +27 -0
- package/docs/classes/PanoTagPluginController.html +111 -0
- package/docs/classes/Sculpt.html +71 -0
- package/docs/classes/Util.BetterTween.html +6 -0
- package/docs/classes/Util.FiveDomEvents.html +13 -0
- package/docs/classes/Util.FivePuppet.html +20 -0
- package/docs/classes/Util.Interval.html +11 -0
- package/docs/classes/Util.LegacyPointHelper.html +7 -0
- package/docs/classes/Util.LightTag.html +47 -0
- package/docs/classes/Util.LineSegments.html +4 -0
- package/docs/classes/Util.Magnifier.html +26 -0
- package/docs/classes/Util.Object3D.html +8 -0
- package/docs/classes/Util.PointDomHelper.html +8 -0
- package/docs/classes/Util.PointHelper.html +10 -0
- package/docs/classes/Util.PointSelector.html +60 -0
- package/docs/classes/Util.PointSelectorHelper.html +14 -0
- package/docs/classes/Util.Rectangle.html +12 -0
- package/docs/classes/Util.sculpt.BaseEditor.html +17 -0
- package/docs/classes/Util.sculpt.BoxMesh.html +47 -0
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.CircleMesh.html +26 -0
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +26 -0
- package/docs/classes/Util.sculpt.CylinderMesh.html +25 -0
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.LineMesh.html +34 -0
- package/docs/classes/Util.sculpt.PointMesh.html +24 -0
- package/docs/classes/Util.sculpt.PolygonMesh.html +40 -0
- package/docs/classes/Util.sculpt.PrismMesh.html +47 -0
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.RectangleMesh.html +41 -0
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +18 -0
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +44 -0
- package/docs/classes/WalkController.html +42 -0
- package/docs/enums/CameraMovementEffect.html +4 -0
- package/docs/enums/ContentType.html +34 -0
- package/docs/enums/DIRECTION.html +5 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -0
- package/docs/enums/DimensionType.html +4 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -0
- package/docs/enums/PaintBrushTypeEnum.html +4 -0
- package/docs/enums/PointType.html +4 -0
- package/docs/enums/Rotation.html +5 -0
- package/docs/functions/AreaMakerPlugin.html +1 -0
- package/docs/functions/CSS3DRenderPlugin.html +1 -0
- package/docs/functions/CameraMovementPlugin.html +2 -0
- package/docs/functions/CruisePlugin.html +1 -0
- package/docs/functions/CurrentPanoImagePlugin.html +1 -0
- package/docs/functions/FloorplanGuidePlugin.html +1 -0
- package/docs/functions/GuideLinePlugin.html +1 -0
- package/docs/functions/ItemLabelPlugin.html +1 -0
- package/docs/functions/MapviewFloorplanPlugin.html +1 -0
- package/docs/functions/MeasurePlugin.html +1 -0
- package/docs/functions/ModelChassisCompassPlugin.html +2 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -0
- package/docs/functions/ModelFloorplanPlugin.html +1 -0
- package/docs/functions/ModelItemLabelPlugin.html +1 -0
- package/docs/functions/ModelMakerPlugin.html +1 -0
- package/docs/functions/ModelRoomLabelPlugin.html +1 -0
- package/docs/functions/ModelTVVideoPlugin.html +1 -0
- package/docs/functions/ModelViewPlugin.html +2 -0
- package/docs/functions/MovePlugin.html +1 -0
- package/docs/functions/Object3DHelperPlugin.html +1 -0
- package/docs/functions/PanoCompassPlugin.html +1 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -0
- package/docs/functions/PanoDoorLabelPlugin.html +1 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -0
- package/docs/functions/PanoMeasurePlugin.html +1 -0
- package/docs/functions/PanoRulerPlugin.html +2 -0
- package/docs/functions/PanoRulerProPlugin.html +2 -0
- package/docs/functions/PanoSpatialTagPlugin.html +2 -0
- package/docs/functions/PanoTagPlugin.html +1 -0
- package/docs/functions/PanoVideoPlugin.html +10 -0
- package/docs/functions/PipelinePlugin.html +1 -0
- package/docs/functions/SculptPlugin.html +2 -0
- package/docs/functions/SculptPluginForFive.html +2 -0
- package/docs/functions/TopviewFloorplanPlugin.html +1 -0
- package/docs/functions/Util.awaitNextFrame.html +1 -0
- package/docs/functions/Util.blink.html +13 -0
- package/docs/functions/Util.blinkWithPreset.html +6 -0
- package/docs/functions/Util.bounding.html +1 -0
- package/docs/functions/Util.boundingBox.html +1 -0
- package/docs/functions/Util.boundingSphere.html +1 -0
- package/docs/functions/Util.boxVertex.html +7 -0
- package/docs/functions/Util.boxVertexes.html +1 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -0
- package/docs/functions/Util.cleanup.html +3 -0
- package/docs/functions/Util.convexHull.html +2 -0
- package/docs/functions/Util.equal.html +5 -0
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -0
- package/docs/functions/Util.getCoordsFromClient.html +1 -0
- package/docs/functions/Util.getCoordsFromElement.html +1 -0
- package/docs/functions/Util.getFrameTime.html +3 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -0
- package/docs/functions/Util.initialCSS3DRender.html +1 -0
- package/docs/functions/Util.inside.html +1 -0
- package/docs/functions/Util.isModelLike.html +1 -0
- package/docs/functions/Util.isNil.html +2 -0
- package/docs/functions/Util.isPanoramaLike.html +1 -0
- package/docs/functions/Util.lookObject.html +5 -0
- package/docs/functions/Util.lookPoint.html +5 -0
- package/docs/functions/Util.nextFrame.html +1 -0
- package/docs/functions/Util.notNil.html +2 -0
- package/docs/functions/Util.reblink.html +13 -0
- package/docs/functions/Util.replaceStaticPrefix.html +8 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -0
- package/docs/functions/Util.sculpt.createBox.html +1 -0
- package/docs/functions/Util.sculpt.createCircle.html +1 -0
- package/docs/functions/Util.sculpt.createCylinder.html +1 -0
- package/docs/functions/Util.sculpt.createLine.html +2 -0
- package/docs/functions/Util.sculpt.createPoint.html +1 -0
- package/docs/functions/Util.sculpt.createPolygon.html +1 -0
- package/docs/functions/Util.sculpt.createPrism.html +1 -0
- package/docs/functions/Util.sculpt.createRectangle.html +2 -0
- package/docs/functions/Util.tag.html +1 -0
- package/docs/functions/Util.tweenProgress.html +1 -0
- package/docs/functions/Util.uuid.html +2 -0
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -0
- package/docs/functions/Util.worldBounding.html +1 -0
- package/docs/functions/Util.worldBoundingBox.html +1 -0
- package/docs/functions/Util.worldBoundingSphere.html +1 -0
- package/docs/functions/createPolyline.html +2 -0
- package/docs/functions/pluginFlag.html +1 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +70 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +4 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +8 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +25 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +4 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +20 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +13 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +9 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +8 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +9 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +11 -0
- package/docs/interfaces/ContentTypeMapInterface.html +73 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +8 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +33 -0
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +6 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +16 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +19 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +20 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +15 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +13 -0
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +15 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +4 -0
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -0
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -0
- package/docs/interfaces/FloorplanBounding.html +9 -0
- package/docs/interfaces/FloorplanData.html +7 -0
- package/docs/interfaces/FloorplanEntrance.html +14 -0
- package/docs/interfaces/FloorplanExtraObject.html +9 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +5 -0
- package/docs/interfaces/FloorplanFloorData.html +9 -0
- package/docs/interfaces/FloorplanImagePosition.html +4 -0
- package/docs/interfaces/FloorplanObserver.html +8 -0
- package/docs/interfaces/FloorplanOutlineItem.html +6 -0
- package/docs/interfaces/FloorplanPosition.html +4 -0
- package/docs/interfaces/FloorplanRoomItem.html +24 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -0
- package/docs/interfaces/FloorplanServerBounding.html +9 -0
- package/docs/interfaces/FloorplanServerComputedData.html +6 -0
- package/docs/interfaces/FloorplanServerData.html +4 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +6 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -0
- package/docs/interfaces/FloorplanServerEntrance.html +14 -0
- package/docs/interfaces/FloorplanServerFloorData.html +8 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -0
- package/docs/interfaces/FloorplanServerObserver.html +8 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +6 -0
- package/docs/interfaces/FloorplanServerPosition.html +4 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +27 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +4 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +7 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -0
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +5 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +32 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +4 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +42 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +57 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +13 -0
- package/docs/interfaces/HelperOffset.html +4 -0
- package/docs/interfaces/ImagePlaneGroup.html +3 -0
- package/docs/interfaces/ItemLabelPluginData.html +2 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +7 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +5 -0
- package/docs/interfaces/MinMax.html +3 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +7 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -0
- package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +17 -0
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +18 -0
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +23 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +11 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +10 -0
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -0
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +10 -0
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +10 -0
- package/docs/interfaces/ModelMakerPluginType.State.html +8 -0
- package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +11 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +5 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -0
- package/docs/interfaces/ModelViewPluginExportType.html +8 -0
- package/docs/interfaces/Object3DHelperState.html +4 -0
- package/docs/interfaces/ObjectHelperControllers.html +5 -0
- package/docs/interfaces/PaintBrushAction.html +14 -0
- package/docs/interfaces/PaintBrushConfigs.html +8 -0
- package/docs/interfaces/PaintBrushState.html +6 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +16 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
- package/docs/interfaces/PanoMeasureParameterType.html +20 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +6 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +5 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -0
- package/docs/interfaces/PanoRulerProPluginState.html +4 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +7 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +6 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +9 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +6 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +9 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +7 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +6 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +14 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +13 -0
- package/docs/interfaces/PluginEventMap.html +16 -0
- package/docs/interfaces/Point.html +4 -0
- package/docs/interfaces/Room.html +5 -0
- package/docs/interfaces/RoomInfo.html +3 -0
- package/docs/interfaces/RoomLabel.html +16 -0
- package/docs/interfaces/RoomRules.html +1 -0
- package/docs/interfaces/Rooms.html +1 -0
- package/docs/interfaces/Scissor.html +13 -0
- package/docs/interfaces/SculptConfig.html +14 -0
- package/docs/interfaces/State.html +7 -0
- package/docs/interfaces/TagCacheInterface.html +9 -0
- package/docs/interfaces/TagConfig.html +164 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -0
- package/docs/interfaces/TagIconAnimationConfig.html +7 -0
- package/docs/interfaces/TagIconUrl.html +20 -0
- package/docs/interfaces/TagObjectGroup.html +3 -0
- package/docs/interfaces/TagState.html +3 -0
- package/docs/interfaces/TagStyle.html +5 -0
- package/docs/interfaces/Tags.html +8 -0
- package/docs/interfaces/TemporaryState.html +2 -0
- package/docs/interfaces/Util.AnimeInstance.html +14 -0
- package/docs/interfaces/Util.BlinkAnimeOptions.html +21 -0
- package/docs/interfaces/Util.EventHandlerConfig.html +21 -0
- package/docs/interfaces/Util.FiveDomEvent.html +7 -0
- package/docs/interfaces/Util.FiveDomEventMap.html +20 -0
- package/docs/interfaces/Util.LegacyMouseGroupParameter.html +4 -0
- package/docs/interfaces/Util.MagnifierParameter.html +13 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -0
- package/docs/interfaces/Util.ObjectInitialState.html +9 -0
- package/docs/interfaces/Util.PointIntersection.html +21 -0
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +6 -0
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +27 -0
- package/docs/modules/AreaMakerPluginType.html +17 -0
- package/docs/modules/CruisePluginTypes.html +14 -0
- package/docs/modules/CurrentPanoImagePluginType.html +6 -0
- package/docs/modules/GuideLineItem.html +2 -0
- package/docs/modules/GuideLineModeItem.html +3 -0
- package/docs/modules/GuideLinePluginType.html +25 -0
- package/docs/modules/ModelMakerPluginType.html +19 -0
- package/docs/modules/PanoVideoPluginType.html +8 -0
- package/docs/modules/SculptData.html +9 -0
- package/docs/modules/SculptType.html +2 -0
- package/docs/modules/Util.html +86 -0
- package/docs/modules/Util.sculpt.html +25 -0
- package/docs/modules.html +278 -0
- package/docs/types/AddObject3DHelperConfig.html +19 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +7 -0
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -0
- package/docs/types/ArrayPosition.html +1 -0
- package/docs/types/AudioAppearance.html +1 -0
- package/docs/types/CSS3DRenderExportType.html +1 -0
- package/docs/types/CSS3DRenderPluginExportType.html +1 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -0
- package/docs/types/ClassFunctionParameters.html +1 -0
- package/docs/types/Color.html +1 -0
- package/docs/types/ContentTypeConfigKey.html +1 -0
- package/docs/types/ContentTypeConfigKeySplit.html +1 -0
- package/docs/types/ContentTypeMap.html +1 -0
- package/docs/types/Create3DDomContainerReturnType.html +1 -0
- package/docs/types/Create3DElementReturnType.html +1 -0
- package/docs/types/CruisePluginExportType.html +1 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +5 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -0
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -0
- package/docs/types/DeprecatedTagProperty.html +3 -0
- package/docs/types/Direction-1.html +1 -0
- package/docs/types/Direction4.html +1 -0
- package/docs/types/ElementRenderer.html +2 -0
- package/docs/types/FloorplanGuidePluginParameterType.html +1 -0
- package/docs/types/FloorplanGuidePluginReturnType.html +1 -0
- package/docs/types/FloorplanRuleLabels.html +2 -0
- package/docs/types/FloorplanServerRuleLabels.html +1 -0
- package/docs/types/GuideLinePluginExportType.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -0
- package/docs/types/GuideLinePluginType.PathItem.html +2 -0
- package/docs/types/GuideLinePluginType.PluginData.html +2 -0
- package/docs/types/GuideLinePluginType.RouteConfig.html +4 -0
- package/docs/types/HelperEventMap.html +1 -0
- package/docs/types/InternalHelperEventMap.html +1 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -0
- package/docs/types/MeasureEndReason.html +1 -0
- package/docs/types/MeasurePluginConfig.html +5 -0
- package/docs/types/MediaData.html +2 -0
- package/docs/types/MediaStore.html +1 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -0
- package/docs/types/ModelId.html +1 -0
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -0
- package/docs/types/ModelMakerPluginType.ItemType.html +2 -0
- package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -0
- package/docs/types/ModelMakerPluginType.ServerItem.html +2 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -0
- package/docs/types/MoveArgs.html +2 -0
- package/docs/types/MoveOpts.html +2 -0
- package/docs/types/Object3DHelperEventMap.html +1 -0
- package/docs/types/ObjectFit.html +1 -0
- package/docs/types/PaintBrushEventMap.html +1 -0
- package/docs/types/PanoCompassPluginData.html +1 -0
- package/docs/types/PanoCompassPluginExportType.html +1 -0
- package/docs/types/PanoCompassPluginParameterType.html +1 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -0
- package/docs/types/PanoIndex.html +1 -0
- package/docs/types/PanoMeasurePluginEvent.html +1 -0
- package/docs/types/PanoMeasureReturnType.html +1 -0
- package/docs/types/PanoSpatialTagPluginId.html +1 -0
- package/docs/types/PanoTagPluginExportInterface.html +1 -0
- package/docs/types/PanoTagPluginParamsInterface.html +1 -0
- package/docs/types/PanoVideoPluginParameterType.html +1 -0
- package/docs/types/PanoVideoPluginReturnType.html +1 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -0
- package/docs/types/PipelinePluginParameterType.html +1 -0
- package/docs/types/PipelinePluginReturnType.html +1 -0
- package/docs/types/PlaneTag.html +2 -0
- package/docs/types/Point2DTag.html +2 -0
- package/docs/types/Point3DTag.html +2 -0
- package/docs/types/PointTagInstance.html +1 -0
- package/docs/types/Position.html +1 -0
- package/docs/types/PositionFrom.html +1 -0
- package/docs/types/RotateArgs.html +2 -0
- package/docs/types/RotateOpts.html +2 -0
- package/docs/types/RuleLabelsKey.html +1 -0
- package/docs/types/RuleLabelsValue.html +1 -0
- package/docs/types/ScaleCallback.html +1 -0
- package/docs/types/ScalePosition.html +3 -0
- package/docs/types/SculptData.BoxData.html +1 -0
- package/docs/types/SculptData.CircleData.html +1 -0
- package/docs/types/SculptData.CylinderData.html +1 -0
- package/docs/types/SculptData.PointData.html +1 -0
- package/docs/types/SculptData.PolygonData.html +1 -0
- package/docs/types/SculptData.PolylineData.html +1 -0
- package/docs/types/SculptData.PrismData.html +1 -0
- package/docs/types/SculptData.RectangleData.html +1 -0
- package/docs/types/SculptType.Theme.html +10 -0
- package/docs/types/StickType.html +1 -0
- package/docs/types/Tag.html +17 -0
- package/docs/types/Tag2D.html +2 -0
- package/docs/types/Tag3D.html +2 -0
- package/docs/types/TagClickParams.html +1 -0
- package/docs/types/TagConfigByKey.html +1 -0
- package/docs/types/TagContentType.html +1 -0
- package/docs/types/TagContentTypeMapping.html +1 -0
- package/docs/types/TagDimensionType.html +1 -0
- package/docs/types/TagElement.html +2 -0
- package/docs/types/TagEvents.html +1 -0
- package/docs/types/TagGLTFObject.html +1 -0
- package/docs/types/TagHooks.html +1 -0
- package/docs/types/TagId.html +1 -0
- package/docs/types/TagInstance.html +1 -0
- package/docs/types/TagPlacement.html +5 -0
- package/docs/types/TagPointType.html +2 -0
- package/docs/types/TagRendererMap.html +1 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -0
- package/docs/types/Util.ActionIfNoIntersection.html +1 -0
- package/docs/types/Util.AdherePoint.html +2 -0
- package/docs/types/Util.PointSelectorConfig.html +1 -0
- package/docs/types/Util.SupportedTarget.html +2 -0
- package/docs/types/Util.Target.html +2 -0
- package/docs/types/Util.ThreeObject.html +2 -0
- package/docs/types/WorkCode.html +1 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -0
- package/docs/variables/PLUGIN.html +1 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -0
- package/docs/variables/ROOM_TYPE_MAP.html +2 -0
- package/docs/variables/Util.ANIME_PRESETS.html +2 -0
- package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +2 -0
- package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +2 -0
- package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +2 -0
- package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +2 -0
- package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +2 -0
- package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +2 -0
- package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +2 -0
- package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +2 -0
- package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +2 -0
- package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +2 -0
- package/docs/variables/defaultGlobalConfig.html +1 -0
- package/docs/variables/itemLabelPluginServerParams.html +1 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -0
- package/libs/GuideLinePlugin/Components/Tag.js +151 -163
- package/libs/GuideLinePlugin/Controller.d.ts +34 -2
- package/libs/GuideLinePlugin/Controller.js +58 -24
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +76 -69
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +7 -2
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -9,9 +9,9 @@ var b = (a, p, t) => p in a ? V(a, p, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
for (var t of U(p))
|
|
10
10
|
R.call(p, t) && b(a, t, p[t]);
|
|
11
11
|
return a;
|
|
12
|
-
},
|
|
12
|
+
}, c = (a, p) => N(a, P(p));
|
|
13
13
|
var d = (a, p, t) => (b(a, typeof p != "symbol" ? p + "" : p, t), t);
|
|
14
|
-
var
|
|
14
|
+
var f = (a, p, t) => new Promise((i, s) => {
|
|
15
15
|
var e = (m) => {
|
|
16
16
|
try {
|
|
17
17
|
r(t.next(m));
|
|
@@ -43,7 +43,7 @@ import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
|
43
43
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
44
44
|
import "../vendor/earcut/src/earcut.js";
|
|
45
45
|
import { uuid as H } from "../shared-utils/uuid.js";
|
|
46
|
-
import { GUIDELINE_WHITE_ARROW_TEXTURE as
|
|
46
|
+
import { GUIDELINE_WHITE_ARROW_TEXTURE as F, GUIDELINE_DEFAULT_ARROW_TEXTURE as j } from "../shared-utils/url/defaultUrls.js";
|
|
47
47
|
import { replaceStaticPrefix as g } from "../shared-utils/url/replace-static-prefix.js";
|
|
48
48
|
import { equal as B } from "../shared-utils/equal.js";
|
|
49
49
|
import "../shared-utils/five/FivePuppet.js";
|
|
@@ -372,7 +372,7 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
|
372
372
|
import "../CruisePlugin/utils/safeCall.js";
|
|
373
373
|
import "../CruisePlugin/utils/sleep.js";
|
|
374
374
|
import "../shared-utils/five/fiveLoaded.js";
|
|
375
|
-
const _ = "GuideLinePlugin", E = `${_}`,
|
|
375
|
+
const _ = "GuideLinePlugin", E = `${_}`, fe = (a) => `${E}--${a}`;
|
|
376
376
|
class be extends k {
|
|
377
377
|
constructor(t, i) {
|
|
378
378
|
super(t, i);
|
|
@@ -401,43 +401,43 @@ class be extends k {
|
|
|
401
401
|
return this._disposed;
|
|
402
402
|
}
|
|
403
403
|
load(t, i, s = !0) {
|
|
404
|
-
return
|
|
405
|
-
var
|
|
404
|
+
return f(this, null, function* () {
|
|
405
|
+
var I, y, v, D, x, T, L;
|
|
406
406
|
const e = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, o = yield this.formatData(t);
|
|
407
407
|
this.hooks.emit("dataChange", o, e), this.data = o;
|
|
408
|
-
const r = o.config, m = !o.lines && o.routes, n = (
|
|
408
|
+
const r = o.config, m = !o.lines && o.routes, n = (I = r == null ? void 0 : r.arrowTextureUrl) != null ? I : g(this.staticPrefix, F), h = c(l({}, r), {
|
|
409
409
|
model_style: {
|
|
410
410
|
texture: { url: n }
|
|
411
411
|
},
|
|
412
412
|
panorama_style: {
|
|
413
413
|
visible: !!m,
|
|
414
|
-
unit_length: (
|
|
414
|
+
unit_length: (y = r == null ? void 0 : r.unitHeight) != null ? y : 0.4,
|
|
415
415
|
width: (v = r == null ? void 0 : r.unitWidth) != null ? v : 0.6,
|
|
416
416
|
texture: { url: n }
|
|
417
417
|
}
|
|
418
|
-
}), O = (
|
|
419
|
-
var
|
|
420
|
-
return G({}, h, { id: (
|
|
421
|
-
})) != null ?
|
|
418
|
+
}), O = (x = (D = o.routes) == null ? void 0 : D.map((u) => {
|
|
419
|
+
var w;
|
|
420
|
+
return G({}, h, { id: (w = u.id) != null ? w : H(), pano_group: u.panoIndexList });
|
|
421
|
+
})) != null ? x : [], S = (L = (T = o.lines) == null ? void 0 : T.map((u) => G({}, h, u))) != null ? L : [], M = [...O, ...S];
|
|
422
422
|
yield $(this.five), this.clear(), M.forEach((u) => {
|
|
423
423
|
this.addGuideLineItem(u);
|
|
424
424
|
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", o), console.debug(`${E} loaded`, o);
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
formatData(t) {
|
|
428
|
-
return
|
|
428
|
+
return f(this, null, function* () {
|
|
429
429
|
return this.getDataWithoutVersion(t);
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
432
|
/** 展示插件 */
|
|
433
433
|
show(t) {
|
|
434
|
-
return
|
|
434
|
+
return f(this, null, function* () {
|
|
435
435
|
this.setState({ visible: !0 }, t);
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
/** 隐藏插件 */
|
|
439
439
|
hide(t) {
|
|
440
|
-
return
|
|
440
|
+
return f(this, null, function* () {
|
|
441
441
|
this.setState({ visible: !1 }, t);
|
|
442
442
|
});
|
|
443
443
|
}
|
|
@@ -469,19 +469,19 @@ class be extends k {
|
|
|
469
469
|
}
|
|
470
470
|
processItemUrls(t) {
|
|
471
471
|
var e, o, r, m;
|
|
472
|
-
const i = l({}, t), s =
|
|
472
|
+
const i = l({}, t), s = j;
|
|
473
473
|
if (i.panorama_style) {
|
|
474
474
|
const n = (o = (e = i.panorama_style.texture) == null ? void 0 : e.url) != null ? o : s;
|
|
475
|
-
i.panorama_style =
|
|
476
|
-
texture:
|
|
475
|
+
i.panorama_style = c(l({}, i.panorama_style), {
|
|
476
|
+
texture: c(l({}, i.panorama_style.texture), {
|
|
477
477
|
url: g(this.staticPrefix, n)
|
|
478
478
|
})
|
|
479
479
|
});
|
|
480
480
|
}
|
|
481
481
|
if (i.model_style) {
|
|
482
482
|
const n = (m = (r = i.model_style.texture) == null ? void 0 : r.url) != null ? m : s;
|
|
483
|
-
i.model_style =
|
|
484
|
-
texture:
|
|
483
|
+
i.model_style = c(l({}, i.model_style), {
|
|
484
|
+
texture: c(l({}, i.model_style.texture), {
|
|
485
485
|
url: g(this.staticPrefix, n)
|
|
486
486
|
})
|
|
487
487
|
});
|
|
@@ -496,6 +496,37 @@ class be extends k {
|
|
|
496
496
|
removeGuideLineItem(t) {
|
|
497
497
|
this.itemMap.delete(t.id), t.panoramaItem.dispose(), t.modelItem.dispose();
|
|
498
498
|
}
|
|
499
|
+
/**
|
|
500
|
+
* 动态更新距离格式化函数,立即刷新所有路线标签的距离显示。
|
|
501
|
+
* 不传参时恢复为默认格式(i18n('全程') + 距离 + i18n('米'))。
|
|
502
|
+
* @param fn 格式化函数,输入米数,返回完整显示字符串
|
|
503
|
+
* @example
|
|
504
|
+
* // 室内英制:英尺 + 英寸(如 "全程 5'10"")
|
|
505
|
+
* plugin.setDistanceFormatter((m) => {
|
|
506
|
+
* const totalInches = Math.round(m * 39.3701)
|
|
507
|
+
* const feet = Math.floor(totalInches / 12)
|
|
508
|
+
* const inches = totalInches % 12
|
|
509
|
+
* return `全程 ${feet}'${inches}"`
|
|
510
|
+
* })
|
|
511
|
+
* // 室外英制:英里(如 "Total 1.24 mi")
|
|
512
|
+
* plugin.setDistanceFormatter((m) => `Total ${(m * 0.000621371).toFixed(2)} mi`)
|
|
513
|
+
* // 自动切换:近距离用英尺,远距离用英里
|
|
514
|
+
* plugin.setDistanceFormatter((m) => {
|
|
515
|
+
* if (m < 300) return `全程 ${Math.round(m * 3.28084)} ft`
|
|
516
|
+
* return `全程 ${(m * 0.000621371).toFixed(2)} mi`
|
|
517
|
+
* })
|
|
518
|
+
* // 恢复默认(i18n '米')
|
|
519
|
+
* plugin.setDistanceFormatter()
|
|
520
|
+
*/
|
|
521
|
+
setDistanceFormatter(t) {
|
|
522
|
+
this._config.formatDistance = t, this.updateTagDistances();
|
|
523
|
+
}
|
|
524
|
+
/** 更新所有 tag 的距离显示(当 formatDistance 函数改变时调用) */
|
|
525
|
+
updateTagDistances() {
|
|
526
|
+
this.itemMap.forEach((t) => {
|
|
527
|
+
t.panoramaItem.updateTagDistance(), t.modelItem.updateTagDistance();
|
|
528
|
+
});
|
|
529
|
+
}
|
|
499
530
|
/** 全量更新 tag */
|
|
500
531
|
updateTagsEnable() {
|
|
501
532
|
const t = [];
|
|
@@ -514,10 +545,13 @@ class be extends k {
|
|
|
514
545
|
}) : !1;
|
|
515
546
|
}
|
|
516
547
|
this.itemMap.forEach((o) => {
|
|
517
|
-
const r = o.modelItem.startTagContainer, m = o.modelItem.endTagContainer
|
|
518
|
-
|
|
548
|
+
const r = o.modelItem.startTagContainer, m = o.modelItem.endTagContainer;
|
|
549
|
+
if (!r && !m)
|
|
550
|
+
return;
|
|
551
|
+
const n = e(r);
|
|
552
|
+
n && r && t.push(r), r == null || r.plugin.setState({ enabled: n }, {});
|
|
519
553
|
const h = e(m);
|
|
520
|
-
h && t.push(m), m == null || m.plugin.setState({ enabled: h }, {});
|
|
554
|
+
h && m && t.push(m), m == null || m.plugin.setState({ enabled: h }, {});
|
|
521
555
|
});
|
|
522
556
|
}
|
|
523
557
|
/** 清空所有 GuideLineItem */
|
|
@@ -538,5 +572,5 @@ class be extends k {
|
|
|
538
572
|
}
|
|
539
573
|
export {
|
|
540
574
|
be as default,
|
|
541
|
-
|
|
575
|
+
fe as pluginFlag
|
|
542
576
|
};
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var P = Object.defineProperty, x = Object.defineProperties;
|
|
2
|
+
var L = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var S = Object.getOwnPropertySymbols;
|
|
4
|
+
var M = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var y = (l, e, t) => e in l ? P(l, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[e] = t, c = (l, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
7
|
+
M.call(e, t) && y(l, t, e[t]);
|
|
8
|
+
if (S)
|
|
9
|
+
for (var t of S(e))
|
|
10
|
+
_.call(e, t) && y(l, t, e[t]);
|
|
11
11
|
return l;
|
|
12
|
-
},
|
|
13
|
-
var i = (l, e, t) => (
|
|
12
|
+
}, T = (l, e) => x(l, L(e));
|
|
13
|
+
var i = (l, e, t) => (y(l, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
14
|
import * as n from "three";
|
|
15
|
-
import { logError as
|
|
16
|
-
import { createLineGeometry as
|
|
15
|
+
import { logError as O } from "../../shared-utils/log.js";
|
|
16
|
+
import { createLineGeometry as U } from "../utils/createLineGeometry.js";
|
|
17
17
|
import "../../shared-utils/tag.js";
|
|
18
|
-
import { isPanoramaLike as
|
|
18
|
+
import { isPanoramaLike as E, isModelLike as A } 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 G } 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
|
-
import { blink as
|
|
27
|
+
import { blink as B } from "../../shared-utils/three/blink.js";
|
|
28
28
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
29
29
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
30
30
|
import "../../vendor/earcut/src/earcut.js";
|
|
31
|
-
import { GUIDELINE_DEFAULT_ARROW_TEXTURE as
|
|
32
|
-
import { replaceStaticPrefix as
|
|
33
|
-
import { BetterTween as
|
|
31
|
+
import { GUIDELINE_DEFAULT_ARROW_TEXTURE as I } from "../../shared-utils/url/defaultUrls.js";
|
|
32
|
+
import { replaceStaticPrefix as R } from "../../shared-utils/url/replace-static-prefix.js";
|
|
33
|
+
import { BetterTween as W } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
34
34
|
import "../../shared-utils/five/FivePuppet.js";
|
|
35
|
-
import { loadTexture as
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import { filterAdjacentDistinct as
|
|
39
|
-
import { objectAssignDeepExports as
|
|
40
|
-
import { createPath as
|
|
41
|
-
import { getGlobalResponsiveFontSize as
|
|
42
|
-
const
|
|
35
|
+
import { loadTexture as z } from "../../shared-utils/three/loadTexture.js";
|
|
36
|
+
import V from "../../PanoTagPlugin/controller/index.js";
|
|
37
|
+
import D from "../Components/Tag.js";
|
|
38
|
+
import { filterAdjacentDistinct as N } from "../utils/index.js";
|
|
39
|
+
import { objectAssignDeepExports as H } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
40
|
+
import { createPath as $ } from "../utils/createPath.js";
|
|
41
|
+
import { getGlobalResponsiveFontSize as j, getCurrentFontSize as Y } from "../../shared-utils/fontSize.js";
|
|
42
|
+
const Z = (
|
|
43
43
|
/* glsl */
|
|
44
44
|
`
|
|
45
45
|
varying vec2 vUv;
|
|
@@ -52,7 +52,7 @@ const D = (
|
|
|
52
52
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
53
53
|
}
|
|
54
54
|
`
|
|
55
|
-
),
|
|
55
|
+
), X = (
|
|
56
56
|
/* glsl */
|
|
57
57
|
`
|
|
58
58
|
precision highp float;
|
|
@@ -171,7 +171,7 @@ const D = (
|
|
|
171
171
|
}
|
|
172
172
|
`
|
|
173
173
|
);
|
|
174
|
-
class
|
|
174
|
+
class q {
|
|
175
175
|
constructor(e, t) {
|
|
176
176
|
i(this, "name", "");
|
|
177
177
|
i(this, "startTagContainer");
|
|
@@ -183,6 +183,9 @@ class j {
|
|
|
183
183
|
i(this, "group", new n.Group());
|
|
184
184
|
i(this, "mesh");
|
|
185
185
|
i(this, "visible", null);
|
|
186
|
+
/** 保存原始的 tag 数据,用于更新距离显示 */
|
|
187
|
+
i(this, "startTagData", null);
|
|
188
|
+
i(this, "endTagData", null);
|
|
186
189
|
i(this, "five");
|
|
187
190
|
i(this, "mode");
|
|
188
191
|
i(this, "_curvePath", null);
|
|
@@ -207,15 +210,15 @@ class j {
|
|
|
207
210
|
i(this, "plugin");
|
|
208
211
|
i(this, "textureHasLoaded", !1);
|
|
209
212
|
i(this, "disposed", !1);
|
|
210
|
-
i(this, "flowAnime", new
|
|
213
|
+
i(this, "flowAnime", new W({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
|
|
211
214
|
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
212
215
|
i(this, "cacheLengths", []);
|
|
213
216
|
/** 为了让多条路线在高度上错开,每个路线都需要有个额外的 offset */
|
|
214
217
|
i(this, "heightOffset", 0);
|
|
215
218
|
/** 响应式字体大小管理器 */
|
|
216
|
-
i(this, "fontSizeManager",
|
|
219
|
+
i(this, "fontSizeManager", j());
|
|
217
220
|
/** 当前字体大小 */
|
|
218
|
-
i(this, "currentFontSize",
|
|
221
|
+
i(this, "currentFontSize", Y());
|
|
219
222
|
/** 字体大小订阅取消函数 */
|
|
220
223
|
i(this, "unsubscribeFontSize", null);
|
|
221
224
|
i(this, "dispose", () => {
|
|
@@ -232,7 +235,7 @@ class j {
|
|
|
232
235
|
});
|
|
233
236
|
/** 模型状态变更 */
|
|
234
237
|
i(this, "onFiveModeChange", (e) => {
|
|
235
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
238
|
+
this.modeVisible = this.mode === "panorama" ? E(e) : A(e), this.updateVisible();
|
|
236
239
|
});
|
|
237
240
|
i(this, "onFiveModelShownFloorChange", (e) => {
|
|
238
241
|
this.floorVisible = e === null || this.visibleFloorIndexes === null || this.visibleFloorIndexes.includes(e), this.updateVisible();
|
|
@@ -246,7 +249,7 @@ class j {
|
|
|
246
249
|
const { progress: t } = e;
|
|
247
250
|
this.mesh.material.uniforms.vOffset.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
248
251
|
});
|
|
249
|
-
i(this, "logError", (e) =>
|
|
252
|
+
i(this, "logError", (e) => O("GuideLineModeItem: ", e));
|
|
250
253
|
/** 更新标签字体大小 */
|
|
251
254
|
i(this, "updateTagFontSize", () => {
|
|
252
255
|
var e, t;
|
|
@@ -255,8 +258,8 @@ class j {
|
|
|
255
258
|
var a, o;
|
|
256
259
|
this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.group.name = "GuideLineModeItem";
|
|
257
260
|
const s = new n.BufferGeometry(), r = new n.ShaderMaterial({
|
|
258
|
-
vertexShader:
|
|
259
|
-
fragmentShader:
|
|
261
|
+
vertexShader: Z,
|
|
262
|
+
fragmentShader: X,
|
|
260
263
|
transparent: !0,
|
|
261
264
|
uniforms: {
|
|
262
265
|
map: { value: null },
|
|
@@ -324,28 +327,28 @@ class j {
|
|
|
324
327
|
return this.logError("disposed");
|
|
325
328
|
if (!this.five.work)
|
|
326
329
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
327
|
-
const s =
|
|
330
|
+
const s = N(e);
|
|
328
331
|
if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
|
|
329
|
-
const d = t.skipPanoGroup ? s.map((
|
|
332
|
+
const d = t.skipPanoGroup ? s.map((f) => this.plugin.workUtil.getObserverStandingPosition(f)).filter(G) : null;
|
|
330
333
|
this.skippedPositions = d;
|
|
331
334
|
}
|
|
332
|
-
const r = this.five.getCurrentState(), a = this.plugin.workUtil.workCode || r.workCode, o = this.five.works.getWork(a), h =
|
|
335
|
+
const r = this.five.getCurrentState(), a = this.plugin.workUtil.workCode || r.workCode, o = this.five.works.getWork(a), h = $(s, o, t);
|
|
333
336
|
this.path = h, this.setGeometryByPath(h, t);
|
|
334
337
|
}
|
|
335
338
|
/** 通过路径设置线条形状 */
|
|
336
339
|
setGeometryByPath(e, t) {
|
|
337
|
-
var g,
|
|
340
|
+
var g, m, u;
|
|
338
341
|
if (this.disposed)
|
|
339
342
|
return this.logError("disposed");
|
|
340
|
-
const s = (g = t == null ? void 0 : t.scale) != null ? g : this.scale, r = (
|
|
343
|
+
const s = (g = t == null ? void 0 : t.scale) != null ? g : this.scale, r = (m = t == null ? void 0 : t.width) != null ? m : this.width, a = (u = t == null ? void 0 : t.unit_length) != null ? u : this.unitLength;
|
|
341
344
|
this.scale = s, this.width = r, this.unitLength = a;
|
|
342
|
-
const { geometry: o, maxV: h, curvePath: d, curvePoints:
|
|
345
|
+
const { geometry: o, maxV: h, curvePath: d, curvePoints: f } = U({
|
|
343
346
|
path: e,
|
|
344
347
|
width: r * s,
|
|
345
348
|
unitLength: a * s,
|
|
346
349
|
skipPositions: this.skippedPositions
|
|
347
350
|
});
|
|
348
|
-
this._curvePath = d, this._curvePoints =
|
|
351
|
+
this._curvePath = d, this._curvePoints = f, this.mesh.geometry.copy(o), this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxV.value = h, this.five.needsRender = !0, this.path = e, this.geometryStyle = c(c({}, this.geometryStyle), t);
|
|
349
352
|
}
|
|
350
353
|
/** 设置线条材质 */
|
|
351
354
|
setMartial(e) {
|
|
@@ -353,9 +356,9 @@ class j {
|
|
|
353
356
|
if (this.disposed)
|
|
354
357
|
return this.logError("disposed");
|
|
355
358
|
this.setDefaultVisible((r = e == null ? void 0 : e.visible) != null ? r : !1), this.setColor((a = e == null ? void 0 : e.color) != null ? a : "#ffffff"), this.setOpacity((o = e == null ? void 0 : e.opacity) != null ? o : 0.5);
|
|
356
|
-
const t =
|
|
359
|
+
const t = R(this.plugin.staticPrefix, I);
|
|
357
360
|
this.setTextureUrl((d = (h = e == null ? void 0 : e.texture) == null ? void 0 : h.url) != null ? d : t), (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);
|
|
358
|
-
const s =
|
|
361
|
+
const s = c(c({}, this.materialStyle), e);
|
|
359
362
|
this.materialStyle = s;
|
|
360
363
|
}
|
|
361
364
|
/** 设置模型状态 */
|
|
@@ -364,7 +367,7 @@ class j {
|
|
|
364
367
|
const r = new n.Vector3(), a = new n.Vector3().fromArray(e.translate);
|
|
365
368
|
a.y += this.heightOffset, r.add(a), this.group.position.copy(r), s(this.startTagContainer, a), s(this.endTagContainer, a);
|
|
366
369
|
}
|
|
367
|
-
const t =
|
|
370
|
+
const t = c(c({}, this.meshStyle), e);
|
|
368
371
|
this.meshStyle = t;
|
|
369
372
|
function s(r, a) {
|
|
370
373
|
if (!(r != null && r.tag))
|
|
@@ -439,7 +442,7 @@ class j {
|
|
|
439
442
|
setTextureUrl(e) {
|
|
440
443
|
if (this.disposed)
|
|
441
444
|
return this.logError("disposed");
|
|
442
|
-
this.textureUrl = e,
|
|
445
|
+
this.textureUrl = e, z(e).then((t) => {
|
|
443
446
|
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());
|
|
444
447
|
});
|
|
445
448
|
}
|
|
@@ -450,17 +453,21 @@ class j {
|
|
|
450
453
|
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((s = (t = this.five.model) == null ? void 0 : t.shownFloor) != null ? s : null);
|
|
451
454
|
}
|
|
452
455
|
setStartTag(e) {
|
|
453
|
-
this.setTag("start", e);
|
|
456
|
+
this.startTagData = e, this.setTag("start", e);
|
|
454
457
|
}
|
|
455
458
|
setEndTag(e) {
|
|
456
|
-
this.setTag("end", e);
|
|
459
|
+
this.endTagData = e, this.setTag("end", e);
|
|
460
|
+
}
|
|
461
|
+
/** 更新 tag 的距离显示(当 formatDistance 函数改变时调用) */
|
|
462
|
+
updateTagDistance() {
|
|
463
|
+
this.curvePath && (this.startTagData && this.setTag("start", this.startTagData), this.endTagData && this.setTag("end", this.endTagData));
|
|
457
464
|
}
|
|
458
465
|
/** 闪烁 */
|
|
459
466
|
flicker() {
|
|
460
467
|
var e, t, s, r, a, o;
|
|
461
468
|
if (this.disposed)
|
|
462
469
|
return this.logError("disposed");
|
|
463
|
-
|
|
470
|
+
B([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].filter(Boolean), {
|
|
464
471
|
loop: 6,
|
|
465
472
|
updateRender: () => {
|
|
466
473
|
this.five.needsRender = !0;
|
|
@@ -477,41 +484,41 @@ class j {
|
|
|
477
484
|
return this.disposed ? this.logError("disposed") : this.cacheLengths.length !== 0 ? this.cacheLengths[e] : (this.cacheLengths = this.getPanoGroupLengths(), this.cacheLengths[e]);
|
|
478
485
|
}
|
|
479
486
|
getPanoGroupLengths() {
|
|
480
|
-
var d,
|
|
487
|
+
var d, f, g, m;
|
|
481
488
|
if (!this.curvePoints || !this.curvePath)
|
|
482
489
|
return [];
|
|
483
|
-
const e = this.curvePoints.length, t = (
|
|
490
|
+
const e = this.curvePoints.length, t = (f = (d = this.curvePath) == null ? void 0 : d.getLength()) != null ? f : 0, s = e - 1, r = t / s, a = (m = (g = this.curvePath) == null ? void 0 : g.getLengths(s)) != null ? m : [], o = [];
|
|
484
491
|
let h = 0;
|
|
485
492
|
for (let u = 0; u < e; u++) {
|
|
486
|
-
const v = this.curvePoints[u],
|
|
487
|
-
if (!
|
|
493
|
+
const v = this.curvePoints[u], p = this.plugin.workUtil.getObserverStandingPosition(h);
|
|
494
|
+
if (!p)
|
|
488
495
|
break;
|
|
489
|
-
|
|
496
|
+
p.clone().setY(0).distanceTo(v.clone().setY(0)) < r && (o.push(a[u]), h += 1);
|
|
490
497
|
}
|
|
491
498
|
return o;
|
|
492
499
|
}
|
|
493
500
|
setTag(e, t) {
|
|
494
|
-
var d,
|
|
501
|
+
var d, f;
|
|
495
502
|
const s = this.curvePath;
|
|
496
503
|
if (!(t != null && t.data))
|
|
497
504
|
return;
|
|
498
|
-
const r = e === "start" ? (d = this.startTagContainer) != null ? d : (() => (this.startTagContainer = { tag: null, plugin: new
|
|
505
|
+
const r = e === "start" ? (d = this.startTagContainer) != null ? d : (() => (this.startTagContainer = { tag: null, plugin: new V(this.five, { containerZIndex: 10 }) }, this.startTagContainer))() : (f = this.endTagContainer) != null ? f : (() => (this.endTagContainer = { tag: null, plugin: new V(this.five, { containerZIndex: 10 }) }, this.endTagContainer))(), o = H({}, {
|
|
499
506
|
contentType: "Custom",
|
|
500
507
|
stickType: "2DPoint",
|
|
501
508
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
502
509
|
style: { point: { enabled: !1 } },
|
|
503
510
|
data: {}
|
|
504
511
|
}, t);
|
|
505
|
-
r.tag = o,
|
|
506
|
-
var
|
|
507
|
-
(
|
|
508
|
-
const
|
|
509
|
-
return r.app =
|
|
512
|
+
r.tag = o, J(o) && (r.tag.element = (g) => {
|
|
513
|
+
var C, k, w;
|
|
514
|
+
(C = r.app) == null || C.$destroy();
|
|
515
|
+
const m = (k = s == null ? void 0 : s.getLength()) != null ? k : 0, u = (w = this.plugin.config.i18n) != null ? w : (F) => F, v = this.plugin.config.formatDistance ? this.plugin.config.formatDistance(m) : `${u("全程")}${Math.round(m)}${u("米")}`, p = e === "start" ? T(c({}, o.data), { name: this.name, distance: v }) : o.data, b = new D({ target: g, intro: !0, props: c({ fontSize: this.currentFontSize }, p) });
|
|
516
|
+
return r.app = b, () => b.$destroy();
|
|
510
517
|
}), r.plugin.load({ tagList: [r.tag] });
|
|
511
518
|
const h = this.meshStyle.translate;
|
|
512
519
|
if (h && o.position) {
|
|
513
|
-
const g = new n.Vector3().fromArray(o.position),
|
|
514
|
-
g.add(
|
|
520
|
+
const g = new n.Vector3().fromArray(o.position), m = new n.Vector3().fromArray(h);
|
|
521
|
+
g.add(m), g.y += this.heightOffset;
|
|
515
522
|
const u = g.toArray();
|
|
516
523
|
r.plugin.changeTagById(r.tag.id, { position: u });
|
|
517
524
|
}
|
|
@@ -525,14 +532,14 @@ class j {
|
|
|
525
532
|
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;
|
|
526
533
|
}
|
|
527
534
|
}
|
|
528
|
-
function
|
|
535
|
+
function J(l) {
|
|
529
536
|
return l.contentType === "Custom";
|
|
530
537
|
}
|
|
531
|
-
const
|
|
538
|
+
const Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
532
539
|
__proto__: null,
|
|
533
|
-
GuideLineModeItem:
|
|
540
|
+
GuideLineModeItem: q
|
|
534
541
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
535
542
|
export {
|
|
536
|
-
|
|
537
|
-
|
|
543
|
+
q as GuideLineModeItem,
|
|
544
|
+
Fe as GuideLineModeItem$1
|
|
538
545
|
};
|
|
@@ -23,8 +23,8 @@ declare class GuideLineModeItem {
|
|
|
23
23
|
/** THREE Curve 路径上的点 */
|
|
24
24
|
get curvePoints(): THREE.Vector3[];
|
|
25
25
|
name: string;
|
|
26
|
-
startTagContainer
|
|
27
|
-
endTagContainer
|
|
26
|
+
startTagContainer?: GuideLineTagContainer;
|
|
27
|
+
endTagContainer?: GuideLineTagContainer;
|
|
28
28
|
path: PluginType.PathItem[];
|
|
29
29
|
geometryStyle: PluginType.GuideLineGeometryStyle;
|
|
30
30
|
materialStyle: PluginType.GuideLineMaterialStyle;
|
|
@@ -32,6 +32,9 @@ declare class GuideLineModeItem {
|
|
|
32
32
|
readonly group: THREE.Group;
|
|
33
33
|
readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
|
|
34
34
|
visible: boolean | null;
|
|
35
|
+
/** 保存原始的 tag 数据,用于更新距离显示 */
|
|
36
|
+
private startTagData;
|
|
37
|
+
private endTagData;
|
|
35
38
|
private five;
|
|
36
39
|
private mode;
|
|
37
40
|
private _curvePath;
|
|
@@ -117,6 +120,8 @@ declare class GuideLineModeItem {
|
|
|
117
120
|
setVisibleFloorIndexes(floorIndexes: number[]): void;
|
|
118
121
|
setStartTag(tag: Tag | PluginType.ModelGuideLineTagData | null): void;
|
|
119
122
|
setEndTag(tag: Tag | PluginType.ModelGuideLineTagData | null): void;
|
|
123
|
+
/** 更新 tag 的距离显示(当 formatDistance 函数改变时调用) */
|
|
124
|
+
updateTagDistance(): void;
|
|
120
125
|
/** 闪烁 */
|
|
121
126
|
flicker(): void;
|
|
122
127
|
/** 求起点到 panoIndex 曲线长度
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.77.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.77.11-alpha.0",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|