@realsee/dnalogel 3.73.0 → 3.73.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +9 -1
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +4 -0
- package/dist/index.cjs.js +49 -49
- package/dist/index.js +3462 -3384
- package/dist/index.umd.js +68 -68
- package/dist/shared-utils/five/getFloorMesh.d.ts +3 -0
- package/libs/CruisePlugin/Move.js +3 -2
- package/libs/CruisePlugin/Work.js +3 -2
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/GuideLinePlugin/Controller.js +5 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +7 -6
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +230 -230
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.d.ts +9 -1
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +179 -131
- package/libs/PanoTagPlugin/controller/index.js +6 -5
- package/libs/PanoTagPlugin/index.js +12 -11
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +4 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +85 -71
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +44 -44
- package/libs/index.js +149 -148
- package/libs/shared-utils/five/getFloorMesh.d.ts +3 -0
- package/libs/shared-utils/five/getFloorMesh.js +11 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +151 -139
- 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 -70
- 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.getCoordsFromClient.html +0 -1
- package/docs/functions/Util.getCoordsFromElement.html +0 -1
- package/docs/functions/Util.getFrameTime.html +0 -3
- 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.tag.html +0 -1
- 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/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 -14
- package/docs/interfaces/State.html +0 -7
- package/docs/interfaces/TagCacheInterface.html +0 -9
- package/docs/interfaces/TagConfig.html +0 -164
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -3
- package/docs/interfaces/TagIconAnimationConfig.html +0 -7
- package/docs/interfaces/TagIconUrl.html +0 -20
- 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 -86
- package/docs/modules/Util.sculpt.html +0 -25
- package/docs/modules.html +0 -279
- 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 -5
- 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/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
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
var _ = Object.defineProperty;
|
|
2
2
|
var G = (p, l, e) => l in p ? _(p, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[l] = e;
|
|
3
3
|
var r = (p, l, e) => (G(p, typeof l != "symbol" ? l + "" : l, e), e);
|
|
4
|
-
var d = (p, l, e) => new Promise((t,
|
|
5
|
-
var
|
|
4
|
+
var d = (p, l, e) => new Promise((t, i) => {
|
|
5
|
+
var s = (o) => {
|
|
6
6
|
try {
|
|
7
7
|
n(e.next(o));
|
|
8
8
|
} catch (a) {
|
|
9
|
-
|
|
9
|
+
i(a);
|
|
10
10
|
}
|
|
11
11
|
}, h = (o) => {
|
|
12
12
|
try {
|
|
13
13
|
n(e.throw(o));
|
|
14
14
|
} catch (a) {
|
|
15
|
-
|
|
15
|
+
i(a);
|
|
16
16
|
}
|
|
17
|
-
}, n = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(
|
|
17
|
+
}, n = (o) => o.done ? t(o.value) : Promise.resolve(o.value).then(s, h);
|
|
18
18
|
n((e = e.apply(p, l)).next());
|
|
19
19
|
});
|
|
20
20
|
import * as y from "three";
|
|
21
|
-
import { Vector3 as
|
|
21
|
+
import { Vector3 as b } from "three";
|
|
22
22
|
import { centerPoint as I } from "../../../shared-utils/three/centerPoint.js";
|
|
23
23
|
import { loadPicture as E } from "../../../shared-utils/three/loadTexture.js";
|
|
24
24
|
import { QuadrangleGeometry as F, QuadrangleMesh as x } from "../../../shared-utils/three/Quadrangle.js";
|
|
25
|
-
import { getVideoTexture as
|
|
26
|
-
import { Image_Play_Icon_With_Text as
|
|
25
|
+
import { getVideoTexture as V } from "../../../shared-utils/three/loadVideoTexture.js";
|
|
26
|
+
import { Image_Play_Icon_With_Text as B, Image_Play_Icon as S } from "../../Assets/Icon.js";
|
|
27
27
|
import { getPositionsByObjectFit as M } from "../../../shared-utils/three/getPositionsByObjectFit.js";
|
|
28
|
-
import { FragmentTransparencyMaterial as
|
|
28
|
+
import { FragmentTransparencyMaterial as j } from "../../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
29
29
|
import { getNormal as P } from "../../../shared-utils/three/getNormal.js";
|
|
30
|
-
import { CONST as
|
|
30
|
+
import { CONST as T } from "../../../shared-utils/constants.js";
|
|
31
31
|
import "../../../shared-utils/math/pointsIsRectangle.js";
|
|
32
32
|
import "../../../shared-utils/device.js";
|
|
33
33
|
class H extends y.Mesh {
|
|
@@ -37,6 +37,20 @@ class H extends y.Mesh {
|
|
|
37
37
|
r(this, "src");
|
|
38
38
|
r(this, "objectFit");
|
|
39
39
|
}
|
|
40
|
+
/** 获取透明度 */
|
|
41
|
+
get opacity() {
|
|
42
|
+
var e, t;
|
|
43
|
+
return (t = (e = this.material) == null ? void 0 : e.opacity) != null ? t : 1;
|
|
44
|
+
}
|
|
45
|
+
/** 设置透明度 (0-1) */
|
|
46
|
+
set opacity(e) {
|
|
47
|
+
this.material && (this.material.opacity = e, this.material.transparent = e < 1, this.material.needsUpdate = !0), this.traverse((t) => {
|
|
48
|
+
if (t.isMesh && t !== this) {
|
|
49
|
+
const i = t;
|
|
50
|
+
i.material && (i.material.opacity = e, i.material.transparent = e < 1, i.material.needsUpdate = !0);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
40
54
|
removeFromParent() {
|
|
41
55
|
const e = this.parent;
|
|
42
56
|
return e !== null && e.remove(this), this;
|
|
@@ -45,60 +59,60 @@ class H extends y.Mesh {
|
|
|
45
59
|
this.traverse((e) => {
|
|
46
60
|
if (e.isMesh) {
|
|
47
61
|
const t = e;
|
|
48
|
-
t.geometry.dispose(), (t.material instanceof Array ? t.material : [t.material]).forEach((
|
|
49
|
-
|
|
62
|
+
t.geometry.dispose(), (t.material instanceof Array ? t.material : [t.material]).forEach((s) => {
|
|
63
|
+
s.dispose();
|
|
50
64
|
});
|
|
51
65
|
}
|
|
52
66
|
});
|
|
53
67
|
}
|
|
54
68
|
}
|
|
55
69
|
class z extends H {
|
|
56
|
-
constructor(e, t,
|
|
70
|
+
constructor(e, t, i) {
|
|
57
71
|
var n;
|
|
58
72
|
super();
|
|
59
73
|
r(this, "name", "PanoTagPluginImagePlane");
|
|
60
74
|
r(this, "originRatio");
|
|
61
75
|
this.src = e;
|
|
62
|
-
const
|
|
76
|
+
const s = (n = i == null ? void 0 : i.resolveZFighting) != null ? n : !0;
|
|
63
77
|
let h = t;
|
|
64
|
-
if (
|
|
65
|
-
const o = P(t).multiplyScalar(
|
|
78
|
+
if (s) {
|
|
79
|
+
const o = P(t).multiplyScalar(T.Z_FIGHTING_OFFSET);
|
|
66
80
|
h = t.map((a) => a.clone().add(o));
|
|
67
81
|
}
|
|
68
82
|
E(e).then(({ texture: o, transparent: a }) => {
|
|
69
83
|
var g;
|
|
70
84
|
const v = new y.MeshBasicMaterial({ map: o, transparent: a, side: y.DoubleSide });
|
|
71
|
-
this.originRatio = o.image.width / o.image.height, this.objectFit = (g =
|
|
72
|
-
const c = M(this.objectFit, h, o.image.width / o.image.height),
|
|
73
|
-
this.position.copy(
|
|
85
|
+
this.originRatio = o.image.width / o.image.height, this.objectFit = (g = i == null ? void 0 : i.objectFit) != null ? g : "contain";
|
|
86
|
+
const c = M(this.objectFit, h, o.image.width / o.image.height), m = I(...c), u = c.map((w) => w.clone().sub(m)), f = new F(u);
|
|
87
|
+
this.position.copy(m), this.geometry = f, this.material = v;
|
|
74
88
|
}).catch((o) => {
|
|
75
89
|
console.error(`Imageplane error: ${o == null ? void 0 : o.message}`);
|
|
76
90
|
});
|
|
77
91
|
}
|
|
78
92
|
changePointsOrParams(e) {
|
|
79
|
-
const { cornerPoints: t, params:
|
|
93
|
+
const { cornerPoints: t, params: i = {} } = e, { objectFit: s = this.objectFit } = i;
|
|
80
94
|
let h = t;
|
|
81
|
-
const { resolveZFighting: n } =
|
|
95
|
+
const { resolveZFighting: n } = i != null ? i : {};
|
|
82
96
|
if (n) {
|
|
83
|
-
const
|
|
84
|
-
h = t.map((
|
|
97
|
+
const m = P(t).multiplyScalar(T.Z_FIGHTING_OFFSET);
|
|
98
|
+
h = t.map((u) => u.clone().add(m));
|
|
85
99
|
}
|
|
86
|
-
const o = M(
|
|
87
|
-
this.objectFit =
|
|
100
|
+
const o = M(s != null ? s : "contain", h, this.originRatio), a = I(...o), v = o.map((m) => m.clone().sub(a)), c = new F(v);
|
|
101
|
+
this.objectFit = s != null ? s : "contain", this.position.copy(a), this.geometry = c;
|
|
88
102
|
}
|
|
89
103
|
}
|
|
90
104
|
class J extends H {
|
|
91
105
|
// eslint-disable-next-line max-params
|
|
92
|
-
constructor(e, t,
|
|
106
|
+
constructor(e, t, i) {
|
|
93
107
|
const {
|
|
94
|
-
videoCoverSrc:
|
|
108
|
+
videoCoverSrc: s,
|
|
95
109
|
objectFit: h = "contain",
|
|
96
110
|
playButton: n = "withText",
|
|
97
111
|
paused: o = !0,
|
|
98
112
|
videoTextureMap: a,
|
|
99
113
|
ImageTextureMap: v,
|
|
100
114
|
domEvents: c
|
|
101
|
-
} =
|
|
115
|
+
} = i != null ? i : {};
|
|
102
116
|
super();
|
|
103
117
|
r(this, "isVideoPlane", !0);
|
|
104
118
|
r(this, "name", "PanoTagPluginImagePlane");
|
|
@@ -114,13 +128,13 @@ class J extends H {
|
|
|
114
128
|
r(this, "buttonMesh");
|
|
115
129
|
r(this, "videoTextureMap");
|
|
116
130
|
r(this, "ImageTextureMap");
|
|
117
|
-
this.cornerPoints = t, this.src = e, this.buttonSrc = (() => n === "withText" ?
|
|
131
|
+
this.cornerPoints = t, this.src = e, this.buttonSrc = (() => n === "withText" ? B : n === "withoutText" ? S : typeof n == "string" ? n : S)(), this.videoCoverSrc = s, this.objectFit = h, this.videoTextureMap = a, this.ImageTextureMap = v, this.domEvents = c, this.position.copy(I(...t)), this.videoCoverSrc && o ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => {
|
|
118
132
|
o ? this.addButtonMesh() : this.play(!0);
|
|
119
133
|
}), this.addEventListener("removed", () => {
|
|
120
134
|
this.remove(...this.children);
|
|
121
135
|
}), this.addEventListener("dispose", () => {
|
|
122
|
-
var
|
|
123
|
-
(
|
|
136
|
+
var m;
|
|
137
|
+
(m = this.disposers) == null || m.forEach((u) => u == null ? void 0 : u());
|
|
124
138
|
});
|
|
125
139
|
}
|
|
126
140
|
play(e = !1) {
|
|
@@ -134,11 +148,11 @@ class J extends H {
|
|
|
134
148
|
this.videoInstance && (this.videoInstance.pause(), this.showPauseUI().then(() => this.render()));
|
|
135
149
|
}
|
|
136
150
|
initialRenderHooks(e) {
|
|
137
|
-
const
|
|
138
|
-
var
|
|
139
|
-
this.videoMesh && ((
|
|
151
|
+
const i = e(() => {
|
|
152
|
+
var s;
|
|
153
|
+
this.videoMesh && ((s = this.videoInstance) == null ? void 0 : s.paused) === !1 && (this.videoMesh.needsRender = !0);
|
|
140
154
|
});
|
|
141
|
-
this.disposers.push(() =>
|
|
155
|
+
this.disposers.push(() => i);
|
|
142
156
|
}
|
|
143
157
|
showPlayUI() {
|
|
144
158
|
this.coverMesh && (this.coverMesh.visible = !1), this.remove(this.buttonMesh), this.videoMesh.visible = !0;
|
|
@@ -161,9 +175,9 @@ class J extends H {
|
|
|
161
175
|
return this.coverMesh;
|
|
162
176
|
if (!this.videoCoverSrc)
|
|
163
177
|
return;
|
|
164
|
-
const { texture: t, transparent:
|
|
165
|
-
n.position.copy(new
|
|
166
|
-
const o = P(h).multiplyScalar(
|
|
178
|
+
const { texture: t, transparent: i } = yield this.getImageTexture(this.videoCoverSrc), s = new y.MeshBasicMaterial({ transparent: !1, map: t, side: y.DoubleSide }), h = M(this.objectFit, this.cornerPoints, t.image.width / t.image.height), n = new x(h, s);
|
|
179
|
+
n.position.copy(new b(0, 0, 0)), n.name = "videoCoverMesh";
|
|
180
|
+
const o = P(h).multiplyScalar(T.Z_FIGHTING_OFFSET);
|
|
167
181
|
return n.position.add(o), n;
|
|
168
182
|
}))();
|
|
169
183
|
return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
|
|
@@ -171,7 +185,7 @@ class J extends H {
|
|
|
171
185
|
}
|
|
172
186
|
addVideoMesh() {
|
|
173
187
|
return d(this, null, function* () {
|
|
174
|
-
var
|
|
188
|
+
var i;
|
|
175
189
|
if (this.children.includes(this.videoMesh))
|
|
176
190
|
return;
|
|
177
191
|
const e = yield (() => d(this, null, function* () {
|
|
@@ -179,14 +193,14 @@ class J extends H {
|
|
|
179
193
|
return this.videoMesh;
|
|
180
194
|
if (!this.src)
|
|
181
195
|
return;
|
|
182
|
-
const
|
|
183
|
-
|
|
196
|
+
const s = this.getVideoTexture(this.src), h = new y.MeshBasicMaterial({ transparent: !1, map: s, side: y.DoubleSide }), n = yield new Promise((v) => {
|
|
197
|
+
s.metadataLoaded ? v(M(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight)) : s.addEventListener(
|
|
184
198
|
"videoLoaded",
|
|
185
|
-
() => v(M(this.objectFit, this.cornerPoints,
|
|
199
|
+
() => v(M(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight))
|
|
186
200
|
);
|
|
187
201
|
}), o = new x(n, h);
|
|
188
|
-
o.name = "videoMesh", o.position.copy(new
|
|
189
|
-
const a = P(n).multiplyScalar(
|
|
202
|
+
o.name = "videoMesh", o.position.copy(new b(0, 0, 0));
|
|
203
|
+
const a = P(n).multiplyScalar(T.Z_FIGHTING_OFFSET);
|
|
190
204
|
return o.position.add(a), o;
|
|
191
205
|
}))();
|
|
192
206
|
if (!e)
|
|
@@ -195,13 +209,13 @@ class J extends H {
|
|
|
195
209
|
e,
|
|
196
210
|
"click",
|
|
197
211
|
() => {
|
|
198
|
-
var
|
|
199
|
-
!this.videoInstance.paused && ((
|
|
212
|
+
var s;
|
|
213
|
+
!this.videoInstance.paused && ((s = this.videoInstance) != null && s.muted) ? this.videoInstance.muted = !1 : this.pause();
|
|
200
214
|
},
|
|
201
215
|
{ noEmitWhenHide: !0 }
|
|
202
216
|
);
|
|
203
217
|
const t = e.material.map.image;
|
|
204
|
-
return (
|
|
218
|
+
return (i = this.onVideoReady) == null || i.call(this, t), t.addEventListener("playing", () => {
|
|
205
219
|
this.coverMesh || this.remove(this.buttonMesh), this.render();
|
|
206
220
|
}), t.addEventListener("pause", () => {
|
|
207
221
|
this.videoInstance.paused && (this.showPauseUI(), this.render());
|
|
@@ -213,11 +227,11 @@ class J extends H {
|
|
|
213
227
|
if (this.children.includes(this.buttonMesh))
|
|
214
228
|
return;
|
|
215
229
|
const e = yield (() => d(this, null, function* () {
|
|
216
|
-
var
|
|
230
|
+
var u, f, g, w;
|
|
217
231
|
if (this.buttonMesh)
|
|
218
232
|
return this.buttonMesh;
|
|
219
|
-
const t = (f = (
|
|
220
|
-
c.position.copy(new
|
|
233
|
+
const t = (f = (u = this.videoMesh) == null ? void 0 : u.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? f : 1 / 0, i = (w = (g = this.coverMesh) == null ? void 0 : g.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? w : 1 / 0, s = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), n = Math.min(t, i, s) / s * 0.3, { texture: o, transparent: a } = yield this.getImageTexture(this.buttonSrc), v = M("contain", this.cornerPoints, o.image.width / o.image.height), c = new x(v, new j(o));
|
|
234
|
+
c.position.copy(new b(0, 0, 0)), c.name = "buttonMesh", c.scale.set(n, n, n), c.material.side = y.DoubleSide, this.domEvents.addAutoBindEventListener(
|
|
221
235
|
c,
|
|
222
236
|
"click",
|
|
223
237
|
() => {
|
|
@@ -225,32 +239,32 @@ class J extends H {
|
|
|
225
239
|
},
|
|
226
240
|
{ noEmitWhenHide: !0 }
|
|
227
241
|
);
|
|
228
|
-
const
|
|
229
|
-
return c.position.add(
|
|
242
|
+
const m = P(v).multiplyScalar(T.Z_FIGHTING_OFFSET * 2);
|
|
243
|
+
return c.position.add(m), c;
|
|
230
244
|
}))();
|
|
231
245
|
return this.children.includes(this.buttonMesh) || (this.add(e), this.buttonMesh = e), e;
|
|
232
246
|
});
|
|
233
247
|
}
|
|
234
248
|
getImageTexture(e) {
|
|
235
249
|
return d(this, null, function* () {
|
|
236
|
-
var
|
|
237
|
-
if ((
|
|
250
|
+
var i, s;
|
|
251
|
+
if ((i = this.ImageTextureMap) != null && i.has(e))
|
|
238
252
|
return this.ImageTextureMap.get(e);
|
|
239
253
|
const t = yield E(e);
|
|
240
|
-
return (
|
|
254
|
+
return (s = this.ImageTextureMap) == null || s.set(e, t), t;
|
|
241
255
|
});
|
|
242
256
|
}
|
|
243
257
|
getVideoTexture(e) {
|
|
244
|
-
var
|
|
245
|
-
if ((
|
|
258
|
+
var i, s;
|
|
259
|
+
if ((i = this.videoTextureMap) != null && i.has(e))
|
|
246
260
|
return this.videoTextureMap.get(e);
|
|
247
|
-
const t =
|
|
248
|
-
return (
|
|
261
|
+
const t = V(e);
|
|
262
|
+
return (s = this.videoTextureMap) == null || s.set(e, t), t;
|
|
249
263
|
}
|
|
250
264
|
changePointsOrParams(e) {
|
|
251
265
|
return d(this, null, function* () {
|
|
252
|
-
const { cornerPoints: t, params:
|
|
253
|
-
t && (this.cornerPoints = t, this.position.copy(I(...t))),
|
|
266
|
+
const { cornerPoints: t, params: i } = e;
|
|
267
|
+
t && (this.cornerPoints = t, this.position.copy(I(...t))), i != null && i.objectFit && (this.objectFit = i.objectFit), yield this.updateAllMeshes();
|
|
254
268
|
});
|
|
255
269
|
}
|
|
256
270
|
updateAllMeshes() {
|
|
@@ -267,9 +281,9 @@ class J extends H {
|
|
|
267
281
|
"videoLoaded",
|
|
268
282
|
() => o(M(this.objectFit, this.cornerPoints, e.image.videoWidth / e.image.videoHeight))
|
|
269
283
|
);
|
|
270
|
-
}),
|
|
271
|
-
this.videoMesh.geometry.dispose(), this.videoMesh.geometry = h, this.videoMesh.position.copy(new
|
|
272
|
-
const n = P(t).multiplyScalar(
|
|
284
|
+
}), i = I(...t), s = t.map((o) => o.clone().sub(i)), h = new F(s);
|
|
285
|
+
this.videoMesh.geometry.dispose(), this.videoMesh.geometry = h, this.videoMesh.position.copy(new b(0, 0, 0));
|
|
286
|
+
const n = P(t).multiplyScalar(T.Z_FIGHTING_OFFSET);
|
|
273
287
|
this.videoMesh.position.add(n);
|
|
274
288
|
});
|
|
275
289
|
}
|
|
@@ -277,19 +291,19 @@ class J extends H {
|
|
|
277
291
|
return d(this, null, function* () {
|
|
278
292
|
if (!this.coverMesh || !this.videoCoverSrc)
|
|
279
293
|
return;
|
|
280
|
-
const { texture: e } = yield this.getImageTexture(this.videoCoverSrc), t = M(this.objectFit, this.cornerPoints, e.image.width / e.image.height),
|
|
281
|
-
this.coverMesh.geometry.dispose(), this.coverMesh.geometry = h, this.coverMesh.position.copy(new
|
|
294
|
+
const { texture: e } = yield this.getImageTexture(this.videoCoverSrc), t = M(this.objectFit, this.cornerPoints, e.image.width / e.image.height), i = I(...t), s = t.map((n) => n.clone().sub(i)), h = new F(s);
|
|
295
|
+
this.coverMesh.geometry.dispose(), this.coverMesh.geometry = h, this.coverMesh.position.copy(new b(0, 0, 0));
|
|
282
296
|
});
|
|
283
297
|
}
|
|
284
298
|
updateButtonMesh() {
|
|
285
299
|
return d(this, null, function* () {
|
|
286
|
-
var
|
|
300
|
+
var u, f, g, w;
|
|
287
301
|
if (!this.buttonMesh)
|
|
288
302
|
return;
|
|
289
|
-
const { texture: e } = yield this.getImageTexture(this.buttonSrc), t = M("contain", this.cornerPoints, e.image.width / e.image.height),
|
|
290
|
-
this.buttonMesh.geometry.dispose(), this.buttonMesh.geometry = h, this.buttonMesh.position.copy(new
|
|
291
|
-
const
|
|
292
|
-
this.buttonMesh.position.add(
|
|
303
|
+
const { texture: e } = yield this.getImageTexture(this.buttonSrc), t = M("contain", this.cornerPoints, e.image.width / e.image.height), i = I(...t), s = t.map((C) => C.clone().sub(i)), h = new F(s), n = (f = (u = this.videoMesh) == null ? void 0 : u.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? f : 1 / 0, o = (w = (g = this.coverMesh) == null ? void 0 : g.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? w : 1 / 0, a = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), c = Math.min(n, o, a) / a * 0.3;
|
|
304
|
+
this.buttonMesh.geometry.dispose(), this.buttonMesh.geometry = h, this.buttonMesh.position.copy(new b(0, 0, 0)), this.buttonMesh.scale.set(c, c, c);
|
|
305
|
+
const m = P(t).multiplyScalar(T.Z_FIGHTING_OFFSET * 2);
|
|
306
|
+
this.buttonMesh.position.add(m);
|
|
293
307
|
});
|
|
294
308
|
}
|
|
295
309
|
}
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
var O = Object.defineProperty, D = Object.defineProperties;
|
|
2
2
|
var T = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var b = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var k = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var v = (l, h, t) => h in l ? O(l, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[h] = t, m = (l, h) => {
|
|
6
6
|
for (var t in h || (h = {}))
|
|
7
|
-
|
|
7
|
+
k.call(h, t) && v(l, t, h[t]);
|
|
8
8
|
if (b)
|
|
9
9
|
for (var t of b(h))
|
|
10
|
-
|
|
10
|
+
H.call(h, t) && v(l, t, h[t]);
|
|
11
11
|
return l;
|
|
12
12
|
}, g = (l, h) => D(l, T(h));
|
|
13
13
|
var o = (l, h, t) => (v(l, typeof h != "symbol" ? h + "" : h, t), t);
|
|
14
14
|
var f = (l, h, t) => new Promise((e, i) => {
|
|
15
|
-
var s = (
|
|
15
|
+
var s = (a) => {
|
|
16
16
|
try {
|
|
17
|
-
r(t.next(
|
|
17
|
+
r(t.next(a));
|
|
18
18
|
} catch (d) {
|
|
19
19
|
i(d);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, n = (a) => {
|
|
22
22
|
try {
|
|
23
|
-
r(t.throw(
|
|
23
|
+
r(t.throw(a));
|
|
24
24
|
} catch (d) {
|
|
25
25
|
i(d);
|
|
26
26
|
}
|
|
27
|
-
}, r = (
|
|
27
|
+
}, r = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(s, n);
|
|
28
28
|
r((t = t.apply(l, h)).next());
|
|
29
29
|
});
|
|
30
30
|
import S from "./items.js";
|
|
31
31
|
import * as C from "three";
|
|
32
|
-
import { to as
|
|
32
|
+
import { to as R } from "../../shared-utils/to.js";
|
|
33
33
|
import { equal as U } from "../../shared-utils/equal.js";
|
|
34
34
|
import { Main as N } from "../Components/Main.js";
|
|
35
35
|
import { formatData as A } from "../utils/formatData.js";
|
|
@@ -156,7 +156,7 @@ function Q(l) {
|
|
|
156
156
|
}
|
|
157
157
|
class li extends G {
|
|
158
158
|
constructor(t, e) {
|
|
159
|
-
var
|
|
159
|
+
var a, d;
|
|
160
160
|
super(t);
|
|
161
161
|
// =============== public properties =================
|
|
162
162
|
o(this, "name", "modelFloorplanPlugin");
|
|
@@ -221,8 +221,8 @@ class li extends G {
|
|
|
221
221
|
o(this, "updateSize", () => {
|
|
222
222
|
if (!this.data || !this.container || !this.wrapper)
|
|
223
223
|
return !1;
|
|
224
|
-
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, s = e.y - t.y,
|
|
225
|
-
return this.size.width ===
|
|
224
|
+
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, s = e.y - t.y, n = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, r = B(this.five, this.wrapper, this.floorIndex, n), a = Math.ceil(i * r), d = Math.ceil(s * r);
|
|
225
|
+
return this.size.width === a && this.size.height === d || (this.container.style.width = a + "px", this.container.style.height = d + "px", this.size = { width: a, height: d }), !0;
|
|
226
226
|
});
|
|
227
227
|
o(this, "highlight", (t) => {
|
|
228
228
|
this.state.config.highlightEnable && (this.highlightData = t, this.render());
|
|
@@ -231,19 +231,19 @@ class li extends G {
|
|
|
231
231
|
this.highlightData = {}, this.render();
|
|
232
232
|
});
|
|
233
233
|
o(this, "_disable", (t) => {
|
|
234
|
-
var i, s,
|
|
234
|
+
var i, s, n;
|
|
235
235
|
const { userAction: e } = t;
|
|
236
|
-
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, c.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (
|
|
236
|
+
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, c.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (n = this.container) == null || n.remove(), this.removeEventListener();
|
|
237
237
|
});
|
|
238
238
|
o(this, "_enable", (t) => {
|
|
239
239
|
const { userAction: e } = t;
|
|
240
240
|
this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: e }), this.state.visible && this._show({ userAction: e }));
|
|
241
241
|
});
|
|
242
242
|
o(this, "_show", (t) => f(this, null, function* () {
|
|
243
|
-
var
|
|
243
|
+
var n;
|
|
244
244
|
if (!this.state.enabled)
|
|
245
245
|
return;
|
|
246
|
-
if (!((
|
|
246
|
+
if (!((n = this.fiveUtil.model) != null && n.loaded))
|
|
247
247
|
throw new Error(c.ModelNotLoaded);
|
|
248
248
|
if (!this.data)
|
|
249
249
|
throw new Error(c.DataNotLoaded);
|
|
@@ -257,23 +257,23 @@ class li extends G {
|
|
|
257
257
|
userAction: !0
|
|
258
258
|
}, i = m(m({}, e), t), s = () => f(this, null, function* () {
|
|
259
259
|
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
260
|
-
let r = !1,
|
|
260
|
+
let r = !1, a;
|
|
261
261
|
this.showRejection = (u) => {
|
|
262
|
-
r = !0,
|
|
262
|
+
r = !0, a = u;
|
|
263
263
|
};
|
|
264
|
-
const [d] = yield
|
|
264
|
+
const [d] = yield R(V(this.five, this.showState, i.userAction));
|
|
265
265
|
if (d)
|
|
266
266
|
throw d;
|
|
267
267
|
if (r)
|
|
268
|
-
throw
|
|
268
|
+
throw a ? new Error(a) : new Error(c.UnknownError);
|
|
269
269
|
if (!this.updateSize())
|
|
270
270
|
throw new Error(c.UpdateSizeError);
|
|
271
271
|
this.updatePosition(), this.floorIndex = i.floorIndex, this.fiveUtil.model.show(this.floorIndex);
|
|
272
272
|
});
|
|
273
273
|
return this.isHiddenByHideFunc = !1, this.showPromise = s().then(() => {
|
|
274
274
|
this.showPromise = void 0, this.showRejection = void 0;
|
|
275
|
-
const r = i.modelOpacity,
|
|
276
|
-
E(this.five, r,
|
|
275
|
+
const r = i.modelOpacity, a = i.immediately ? 0 : $;
|
|
276
|
+
E(this.five, r, a), this.render(a), this.hooks.emit("showAnimationEnded", {
|
|
277
277
|
auto: i.isAutoShow,
|
|
278
278
|
userAction: i.userAction
|
|
279
279
|
});
|
|
@@ -299,13 +299,13 @@ class li extends G {
|
|
|
299
299
|
});
|
|
300
300
|
/** modelLoaded 之后自动执行 append container 操作 */
|
|
301
301
|
o(this, "onFiveModelLoaded", () => {
|
|
302
|
-
const
|
|
303
|
-
if (this.showState.offset =
|
|
302
|
+
const i = this.five.models.find((n) => n.name === this.five.state.workCode).bounding.getCenter(new C.Vector3());
|
|
303
|
+
if (this.showState.offset = i, this.state.enabled === !1 || this.wrapper || !this.selector)
|
|
304
304
|
return;
|
|
305
|
-
const
|
|
306
|
-
if (!
|
|
305
|
+
const s = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
306
|
+
if (!s)
|
|
307
307
|
throw new Error("不正确的父容器选择器");
|
|
308
|
-
this.wrapper =
|
|
308
|
+
this.wrapper = s, s.append(this.container);
|
|
309
309
|
});
|
|
310
310
|
/** 更改模型时,自动隐藏户型图 */
|
|
311
311
|
o(this, "onFiveModeChange", (t) => {
|
|
@@ -360,7 +360,7 @@ class li extends G {
|
|
|
360
360
|
imageURL: X(e == null ? void 0 : e.staticPrefix, J),
|
|
361
361
|
imageWidth: 200,
|
|
362
362
|
imageHeight: 120,
|
|
363
|
-
text: (d = (
|
|
363
|
+
text: (d = (a = e.i18n) == null ? void 0 : a.call(e, "暂无平面图")) != null ? d : "暂无平面图",
|
|
364
364
|
textFontSize: 14
|
|
365
365
|
};
|
|
366
366
|
const i = {
|
|
@@ -386,7 +386,7 @@ class li extends G {
|
|
|
386
386
|
getRoomAreaText: (p) => (p / 1e6).toFixed(1) + "㎡",
|
|
387
387
|
getRoomDimensionText: (p, u) => (p / 1e3).toFixed(1) + "m × " + (u / 1e3).toFixed(1) + "m",
|
|
388
388
|
getRuleDistanceText: (p) => p.toString()
|
|
389
|
-
}, s = e ? F(e, ["selector", "scale"]) : {},
|
|
389
|
+
}, s = e ? F(e, ["selector", "scale"]) : {}, n = m(m({}, i.missingFloorConfig), s.missingFloorConfig), r = g(m(m({}, i), s), { missingFloorConfig: n });
|
|
390
390
|
this.state = { enabled: !0, visible: !1, config: r }, this.panoIndex = t.getCurrentState().panoIndex, this.initContainer(), Y(t).then(this.onFiveModelLoaded), t.once("dispose", this.dispose), this.addEventListener();
|
|
391
391
|
}
|
|
392
392
|
load(t, e, i = !0) {
|
|
@@ -394,22 +394,22 @@ class li extends G {
|
|
|
394
394
|
function s(p) {
|
|
395
395
|
return Object.prototype.hasOwnProperty.apply(p, ["version"]);
|
|
396
396
|
}
|
|
397
|
-
const
|
|
398
|
-
|
|
399
|
-
const r = JSON.parse(JSON.stringify(t)),
|
|
400
|
-
this.data = yield A(
|
|
397
|
+
const n = t;
|
|
398
|
+
n && q(n.version) && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
|
|
399
|
+
const r = JSON.parse(JSON.stringify(t)), a = s(r) ? r.data : r, d = this.data;
|
|
400
|
+
this.data = yield A(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, d), e && this.updateState(e, i), this.render();
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
403
|
loadItems(t) {
|
|
404
|
-
const { min: e, max: i } = this.data.bounding, s = i.x - e.x,
|
|
405
|
-
this.data.floorDatas.forEach((r,
|
|
406
|
-
r.items = t[
|
|
404
|
+
const { min: e, max: i } = this.data.bounding, s = i.x - e.x, n = i.y - e.y;
|
|
405
|
+
this.data.floorDatas.forEach((r, a) => {
|
|
406
|
+
r.items = t[a].filter((d) => d.displayName === "Item-SimpleItem").map((d) => {
|
|
407
407
|
const { x: p, y: u, width: P, height: x, notes: y, type: w, id: I, rotateX: M, rotateY: L, rotateZ: _ = 0 } = d;
|
|
408
408
|
return {
|
|
409
409
|
id: I,
|
|
410
|
-
positionInImage: { x: (p - e.x) / s, y: (i.y - u) /
|
|
410
|
+
positionInImage: { x: (p - e.x) / s, y: (i.y - u) / n },
|
|
411
411
|
width: P / s,
|
|
412
|
-
height: x /
|
|
412
|
+
height: x / n,
|
|
413
413
|
src: Z + S[w].href.replace(/\{\{\stheme\s\}\}/, "realsee"),
|
|
414
414
|
notes: y || S[w].description,
|
|
415
415
|
rotateX: M,
|
|
@@ -442,8 +442,8 @@ class li extends G {
|
|
|
442
442
|
setState(t, e = {}) {
|
|
443
443
|
const i = this.state, s = e.userAction !== void 0 ? e.userAction : !0;
|
|
444
444
|
if (this.updateState(t, s), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), t.visible !== void 0 && i.visible !== t.visible) {
|
|
445
|
-
const
|
|
446
|
-
t.visible ? this._show(
|
|
445
|
+
const n = { userAction: s };
|
|
446
|
+
t.visible ? this._show(n) : this._hide(n);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
changeConfigs(t, e = !0) {
|
|
@@ -455,8 +455,8 @@ class li extends G {
|
|
|
455
455
|
const t = j(this.five, this.floorIndex, this.state.config.attachedTo), e = (r = this.fiveUtil.model) == null ? void 0 : r.bounding.getCenter(new C.Vector3()).setY(t);
|
|
456
456
|
if (!e)
|
|
457
457
|
return;
|
|
458
|
-
const i = e.clone().project(this.five.camera), s = (i.x + 1) / 2,
|
|
459
|
-
this.container.style.left = s * 100 + "%", this.container.style.top =
|
|
458
|
+
const i = e.clone().project(this.five.camera), s = (i.x + 1) / 2, n = -(i.y - 1) / 2;
|
|
459
|
+
this.container.style.left = s * 100 + "%", this.container.style.top = n * 100 + "%";
|
|
460
460
|
}
|
|
461
461
|
formatData(t) {
|
|
462
462
|
return f(this, null, function* () {
|
|
@@ -465,8 +465,8 @@ class li extends G {
|
|
|
465
465
|
}
|
|
466
466
|
updateState(t, e) {
|
|
467
467
|
var r;
|
|
468
|
-
const i = this.state, s = (r = t.config) != null && r.missingFloorConfig ? m(m({}, i.config.missingFloorConfig), t.config.missingFloorConfig) : i.config.missingFloorConfig,
|
|
469
|
-
this.state = g(m(m({}, this.state), t), { config:
|
|
468
|
+
const i = this.state, s = (r = t.config) != null && r.missingFloorConfig ? m(m({}, i.config.missingFloorConfig), t.config.missingFloorConfig) : i.config.missingFloorConfig, n = t.config ? g(m(m({}, i.config), t.config), { missingFloorConfig: s }) : i.config;
|
|
469
|
+
this.state = g(m(m({}, this.state), t), { config: n }), !U(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
470
470
|
}
|
|
471
471
|
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
472
472
|
*
|