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