@realsee/dnalogel 2.27.3-dev.0 → 2.27.4-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaMakerPlugin/Controller.d.ts +94 -0
- package/dist/AreaMakerPlugin/index.d.ts +4 -0
- package/dist/AreaMakerPlugin/typing.d.ts +148 -0
- package/dist/AreaMakerPlugin/utils/Item.d.ts +114 -0
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +0 -2
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +1 -1
- package/dist/base/BasePluginWithData.d.ts +1 -1
- package/dist/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
- package/dist/components/AreaLabel/LabelItem.svelte.d.ts +1 -0
- package/dist/index.cjs.js +52 -52
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4946 -4289
- package/dist/index.umd.js +54 -54
- package/dist/shared-utils/index.d.ts +1 -0
- package/dist/shared-utils/math/planimetry.d.ts +1 -1
- package/dist/shared-utils/three/core/Object3D.d.ts +8 -0
- package/dist/shared-utils/three/index.d.ts +2 -0
- package/dist/shared-utils/three/objects/LineSegments.d.ts +9 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginPluginType.AreaMakerController.html +711 -0
- package/docs/classes/AreaMakerPluginPluginType.AreaMakerItem.html +671 -0
- package/docs/classes/CSS3DRender.html +33 -31
- package/docs/classes/CruisePluginController.html +29 -27
- package/docs/classes/GuideLineItem.GuideLineItem.html +22 -20
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +37 -35
- package/docs/classes/Magnifier.html +22 -20
- package/docs/classes/ModelRoomLabelController.html +13 -11
- package/docs/classes/Object3DHelperController.html +27 -25
- package/docs/classes/PaintBrush.html +17 -15
- package/docs/classes/PanoMeasurePluginLine.html +29 -27
- package/docs/classes/PanoMeasurePluginModel.html +29 -27
- package/docs/classes/PanoMeasurePluginPoint.html +13 -11
- package/docs/classes/PanoMeasurePluginPolyline.html +29 -27
- package/docs/classes/PanoTagPluginController.html +49 -47
- package/docs/classes/Util.BetterTween.html +13 -8
- package/docs/classes/Util.Interval.html +16 -11
- package/docs/classes/Util.LineSegments.html +379 -0
- package/docs/classes/Util.Magnifier.html +24 -19
- package/docs/classes/Util.Object3D.html +401 -0
- package/docs/classes/Util.PointDomHelper.html +15 -10
- package/docs/classes/Util.PointHelper.html +15 -10
- package/docs/classes/Util.PointSelectorHelper.html +20 -15
- package/docs/classes/Util.Rectangle.html +17 -12
- package/docs/enums/CameraMovementEffect.html +9 -7
- package/docs/enums/ContentType.html +22 -20
- package/docs/enums/DIRECTION.html +11 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -9
- package/docs/enums/DimensionType.html +9 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -9
- package/docs/enums/PaintBrushTypeEnum.html +10 -8
- package/docs/enums/PointType.html +9 -7
- package/docs/enums/Rotation.html +10 -8
- package/docs/functions/AreaMakerPluginPlugin.html +284 -0
- package/docs/functions/CSS3DRenderPlugin.html +6 -4
- package/docs/functions/CameraMovementPlugin.html +6 -4
- package/docs/functions/CruisePlugin.html +7 -5
- package/docs/functions/GuideLinePlugin.html +7 -5
- package/docs/functions/ItemLabelPlugin.html +6 -4
- package/docs/functions/MapviewFloorplanPlugin.html +6 -4
- package/docs/functions/ModelChassisCompassPlugin.html +6 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -4
- package/docs/functions/ModelFloorplanPlugin.html +6 -4
- package/docs/functions/ModelItemLabelPlugin.html +6 -4
- package/docs/functions/ModelRoomLabelPlugin.html +6 -4
- package/docs/functions/ModelTVVideoPlugin.html +6 -4
- package/docs/functions/ModelViewPlugin.html +6 -4
- package/docs/functions/Object3DHelperPlugin.html +6 -4
- package/docs/functions/PanoCompassPlugin.html +6 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -4
- package/docs/functions/PanoDoorLabelPlugin.html +6 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -4
- package/docs/functions/PanoMeasurePlugin.html +6 -4
- package/docs/functions/PanoRulerPlugin.html +6 -4
- package/docs/functions/PanoRulerProPlugin.html +6 -4
- package/docs/functions/PanoSpatialTagPlugin.html +6 -4
- package/docs/functions/PanoTagPlugin.html +6 -4
- package/docs/functions/PanoVideoPlugin.html +6 -4
- package/docs/functions/PipelinePlugin.html +6 -4
- package/docs/functions/TopviewFloorplanPlugin.html +6 -4
- package/docs/functions/Util.absoluteUrl.html +9 -4
- package/docs/functions/Util.equal.html +333 -0
- package/docs/functions/Util.getCoordsFromClient.html +9 -4
- package/docs/functions/Util.getCoordsFromElement.html +9 -4
- package/docs/functions/Util.getFrameTime.html +9 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +9 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +9 -4
- package/docs/functions/Util.isAbsoluteURL.html +9 -4
- package/docs/functions/Util.isModelLike.html +9 -4
- package/docs/functions/Util.isNil.html +9 -4
- package/docs/functions/Util.isPanoramaLike.html +9 -4
- package/docs/functions/Util.nextFrame.html +9 -4
- package/docs/functions/Util.notNil.html +9 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +9 -4
- package/docs/functions/Util.tweenProgress.html +9 -4
- package/docs/functions/Util.uuid.html +9 -4
- package/docs/functions/pluginFlag.html +7 -5
- package/docs/index.html +7 -5
- package/docs/interfaces/AddTagConfig.html +8 -6
- package/docs/interfaces/AreaMakerPluginPluginType.AnimeOptions.html +325 -0
- package/docs/interfaces/AreaMakerPluginPluginType.Config.html +330 -0
- package/docs/interfaces/AreaMakerPluginPluginType.EventMap.html +616 -0
- package/docs/interfaces/AreaMakerPluginPluginType.Params.html +329 -0
- package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItem.html +379 -0
- package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItemV1.html +364 -0
- package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV1.html +329 -0
- package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV2.html +322 -0
- package/docs/interfaces/AreaMakerPluginPluginType.ShowHideOptions.html +321 -0
- package/docs/interfaces/AreaMakerPluginPluginType.State.html +350 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +10 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +9 -7
- package/docs/interfaces/CruisePluginTypes.Config.html +10 -8
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +14 -12
- package/docs/interfaces/CruisePluginTypes.EventMap.html +22 -20
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +14 -12
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +16 -14
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +16 -14
- package/docs/interfaces/CruisePluginTypes.PluginData.html +11 -9
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -6
- package/docs/interfaces/CruisePluginTypes.PluginState.html +13 -11
- package/docs/interfaces/EventMap.html +17 -15
- package/docs/interfaces/FloorplanBounding.html +10 -8
- package/docs/interfaces/FloorplanData.html +12 -10
- package/docs/interfaces/FloorplanEntrance.html +13 -11
- package/docs/interfaces/FloorplanExtraObject.html +12 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +10 -8
- package/docs/interfaces/FloorplanFloorData.html +11 -9
- package/docs/interfaces/FloorplanImagePosition.html +9 -7
- package/docs/interfaces/FloorplanObserver.html +11 -9
- package/docs/interfaces/FloorplanOutlineItem.html +11 -9
- package/docs/interfaces/FloorplanPosition.html +9 -7
- package/docs/interfaces/FloorplanRoomItem.html +15 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +9 -7
- package/docs/interfaces/FloorplanServerBounding.html +10 -8
- package/docs/interfaces/FloorplanServerComputedData.html +12 -10
- package/docs/interfaces/FloorplanServerData.html +9 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +12 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +10 -8
- package/docs/interfaces/FloorplanServerEntrance.html +13 -11
- package/docs/interfaces/FloorplanServerFloorData.html +11 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +9 -7
- package/docs/interfaces/FloorplanServerObserver.html +11 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +11 -9
- package/docs/interfaces/FloorplanServerPosition.html +9 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +16 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -7
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -8
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +12 -10
- package/docs/interfaces/GuideLinePluginType.EventMap.html +15 -13
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +10 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +8 -6
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +15 -13
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +10 -8
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +20 -18
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -7
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +20 -18
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -5
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -6
- package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -8
- package/docs/interfaces/GuideLinePluginType.Route.html +13 -11
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +11 -9
- package/docs/interfaces/HelperOffset.html +10 -8
- package/docs/interfaces/ImagePlaneGroup.html +8 -6
- package/docs/interfaces/ItemLabelPluginData.html +8 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +11 -9
- package/docs/interfaces/MinMax.html +9 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +9 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +8 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +8 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +11 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -6
- package/docs/interfaces/ModelViewPluginExportType.html +13 -11
- package/docs/interfaces/Object3DHelperState.html +10 -8
- package/docs/interfaces/ObjectHelperControllers.html +11 -9
- package/docs/interfaces/PaintBrushAction.html +14 -12
- package/docs/interfaces/PaintBrushConfigs.html +14 -12
- package/docs/interfaces/PaintBrushState.html +12 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -5
- package/docs/interfaces/PanoMeasureParameterType.html +18 -16
- package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +12 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +9 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +10 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +11 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +9 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -7
- package/docs/interfaces/PanoRulerProPluginState.html +10 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -10
- package/docs/interfaces/Point.html +10 -8
- package/docs/interfaces/Room.html +11 -9
- package/docs/interfaces/RoomInfo.html +9 -7
- package/docs/interfaces/RoomLabel.html +16 -14
- package/docs/interfaces/RoomRules.html +7 -5
- package/docs/interfaces/Rooms.html +7 -5
- package/docs/interfaces/Scissor.html +11 -9
- package/docs/interfaces/State.html +10 -8
- package/docs/interfaces/TagCacheInterface.html +14 -12
- package/docs/interfaces/TagConfig.html +16 -14
- package/docs/interfaces/TagGLTFObjectGroup.html +8 -6
- package/docs/interfaces/TagIconUrl.html +14 -12
- package/docs/interfaces/TagObjectGroup.html +8 -6
- package/docs/interfaces/TagStyle.html +8 -6
- package/docs/interfaces/Tags.html +11 -9
- package/docs/interfaces/TemporaryState.html +8 -6
- package/docs/interfaces/Util.MagnifierParameter.html +15 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +12 -7
- package/docs/interfaces/Util.PointIntersection.html +12 -7
- package/docs/modules/AreaMakerPluginPluginType.html +319 -0
- package/docs/modules/CruisePluginTypes.html +7 -5
- package/docs/modules/GuideLineItem.html +7 -5
- package/docs/modules/GuideLineModeItem.html +7 -5
- package/docs/modules/GuideLinePluginType.html +7 -5
- package/docs/modules/PanoVideoPluginType.html +7 -5
- package/docs/modules/Util.html +12 -4
- package/docs/modules.html +10 -6
- package/docs/types/AreaMakerPluginPluginType.AreaMakerItemEventMap.html +327 -0
- package/docs/types/AreaMakerPluginPluginType.PluginData.html +297 -0
- package/docs/types/AreaMakerPluginPluginType.ServerData.html +297 -0
- package/docs/types/ArrayPosition.html +7 -5
- package/docs/types/AudioAppearance.html +7 -5
- package/docs/types/AudioTagTypeConfigKey.html +7 -5
- package/docs/types/CSS3DRenderExportType.html +7 -5
- package/docs/types/CSS3DRenderPluginExportType.html +7 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -5
- package/docs/types/ClassFunctionParameters.html +7 -5
- package/docs/types/Color.html +7 -5
- package/docs/types/ContentTypeConfigKey.html +7 -5
- package/docs/types/ContentTypeConfigKeySplit.html +7 -5
- package/docs/types/ContentTypeMap.html +7 -5
- package/docs/types/Create3DDomContainerReturnType.html +7 -5
- package/docs/types/Create3DElementReturnType.html +7 -5
- package/docs/types/CruisePluginExportType.html +7 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +7 -5
- package/docs/types/CruisePluginTypes.MoveEffect.html +7 -5
- package/docs/types/DeprecatedMediaPlaneProperty.html +7 -5
- package/docs/types/DeprecatedTagProperty.html +7 -5
- package/docs/types/Direction-1.html +7 -5
- package/docs/types/Direction4.html +7 -5
- package/docs/types/ElementRenderer.html +7 -5
- package/docs/types/FloorplanRuleLabels.html +7 -5
- package/docs/types/FloorplanServerRuleLabels.html +7 -5
- package/docs/types/GuideLinePluginExportType.html +7 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +7 -5
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +7 -5
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +7 -5
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +7 -5
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +7 -5
- package/docs/types/GuideLinePluginType.PathItem.html +7 -5
- package/docs/types/GuideLinePluginType.PluginData.html +7 -5
- package/docs/types/HelperEventMap.html +7 -5
- package/docs/types/LoadTagConfig.html +7 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -5
- package/docs/types/MediaData.html +7 -5
- package/docs/types/MediaStore.html +7 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -5
- package/docs/types/MoveArgs.html +7 -5
- package/docs/types/MoveOpts.html +7 -5
- package/docs/types/Object3DHelperEventMap.html +7 -5
- package/docs/types/ObjectFit.html +7 -5
- package/docs/types/PaintBrushEventMap.html +7 -5
- package/docs/types/PanoCompassPluginData.html +7 -5
- package/docs/types/PanoCompassPluginExportType.html +7 -5
- package/docs/types/PanoCompassPluginParameterType.html +7 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -5
- package/docs/types/PanoIndex.html +7 -5
- package/docs/types/PanoMeasurePluginEvent.html +7 -5
- package/docs/types/PanoMeasureReturnType.html +7 -5
- package/docs/types/PanoSpatialTagPluginId.html +7 -5
- package/docs/types/PanoTagPluginExportInterface.html +7 -5
- package/docs/types/PanoTagPluginParamsInterface.html +7 -5
- package/docs/types/PanoVideoPluginParameterType.html +7 -5
- package/docs/types/PanoVideoPluginReturnType.html +7 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +7 -5
- package/docs/types/PipelinePluginParameterType.html +7 -5
- package/docs/types/PipelinePluginReturnType.html +7 -5
- package/docs/types/PlaneTag.html +7 -5
- package/docs/types/Point2DTag.html +7 -5
- package/docs/types/Point3DTag.html +7 -5
- package/docs/types/PointTag.html +7 -5
- package/docs/types/PointTagInstance.html +7 -5
- package/docs/types/Position.html +7 -5
- package/docs/types/RotateArgs.html +7 -5
- package/docs/types/RotateOpts.html +7 -5
- package/docs/types/RuleLabelsKey.html +7 -5
- package/docs/types/RuleLabelsValue.html +7 -5
- package/docs/types/StickType.html +7 -5
- package/docs/types/Tag.html +9 -12
- package/docs/types/Tag2D.html +7 -5
- package/docs/types/Tag3D.html +7 -5
- package/docs/types/TagConfigByKey.html +7 -5
- package/docs/types/TagContentType.html +7 -5
- package/docs/types/TagDimensionType.html +7 -5
- package/docs/types/TagElement.html +7 -5
- package/docs/types/TagEvents.html +7 -5
- package/docs/types/TagGLTFObject.html +7 -5
- package/docs/types/TagHooks.html +7 -5
- package/docs/types/TagId.html +7 -5
- package/docs/types/TagInstance.html +7 -5
- package/docs/types/TagPointType.html +7 -5
- package/docs/types/TagRendererMap.html +7 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -5
- package/docs/types/WorkCode.html +7 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -5
- package/docs/variables/PLUGIN.html +7 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -5
- package/docs/variables/ROOM_TYPE_MAP.html +7 -5
- package/docs/variables/defaultGlobalConfig.html +8 -6
- package/docs/variables/itemLabelPluginServerParams.html +7 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -5
- package/libs/AreaMakerPlugin/Controller.d.ts +94 -0
- package/libs/AreaMakerPlugin/Controller.js +336 -0
- package/libs/AreaMakerPlugin/index.d.ts +4 -0
- package/libs/AreaMakerPlugin/index.js +37 -0
- package/libs/AreaMakerPlugin/typing.d.ts +148 -0
- package/libs/AreaMakerPlugin/typing.js +1 -0
- package/libs/AreaMakerPlugin/utils/Item.d.ts +114 -0
- package/libs/AreaMakerPlugin/utils/Item.js +263 -0
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +42 -39
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +13 -13
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +0 -2
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +10 -10
- package/libs/base/BasePlugin.js +1 -1
- package/libs/base/BasePluginWithData.d.ts +1 -1
- package/libs/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
- package/libs/components/AreaLabel/Assets/roomLabelBg.js +4 -0
- package/libs/components/AreaLabel/LabelItem.js +125 -0
- package/libs/components/AreaLabel/LabelItem.svelte.d.ts +1 -0
- package/libs/index.d.ts +1 -0
- package/libs/index.js +120 -112
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +27 -21
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/math/planimetry.d.ts +1 -1
- package/libs/shared-utils/math/planimetry.js +36 -29
- package/libs/shared-utils/three/core/Object3D.d.ts +8 -0
- package/libs/shared-utils/three/core/Object3D.js +22 -0
- package/libs/shared-utils/three/index.d.ts +2 -0
- package/libs/shared-utils/three/objects/LineSegments.d.ts +9 -0
- package/libs/shared-utils/three/objects/LineSegments.js +9 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelItemLabelPluginServerParams | 如视看房插件合集 - v2.27.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelItemLabelPluginServerParams | 如视看房插件合集 - v2.27.4-0</title><meta name="description" content="Documentation for 如视看房插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.27.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.27.4-0</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-content">
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<li class="tsd-parameter">
|
|
25
25
|
<h5><span class="tsd-kind-property">version</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
|
|
26
26
|
<ul>
|
|
27
|
-
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/
|
|
27
|
+
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/5de583b/plugins/src/ModelItemLabelPlugin/index.ts#L7">plugins/src/ModelItemLabelPlugin/index.ts:7</a></li></ul></aside></div>
|
|
28
28
|
<div class="col-sidebar">
|
|
29
29
|
<div class="page-menu">
|
|
30
30
|
<div class="tsd-navigation settings">
|
|
@@ -38,8 +38,9 @@
|
|
|
38
38
|
<div class="tsd-theme-toggle">
|
|
39
39
|
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
|
|
40
40
|
<div class="site-menu">
|
|
41
|
-
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视看房插件合集 -<wbr/> v2.27.
|
|
41
|
+
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视看房插件合集 -<wbr/> v2.27.4-<wbr/>0</span></a>
|
|
42
42
|
<ul class="tsd-small-nested-navigation">
|
|
43
|
+
<li><a href="../modules/AreaMakerPluginPluginType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Area<wbr/>Maker<wbr/>Plugin<wbr/>Plugin<wbr/>Type</span></a></li>
|
|
43
44
|
<li><a href="../modules/CruisePluginTypes.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Cruise<wbr/>Plugin<wbr/>Types</span></a></li>
|
|
44
45
|
<li><a href="../modules/GuideLineItem.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Guide<wbr/>Line<wbr/>Item</span></a></li>
|
|
45
46
|
<li><a href="../modules/GuideLineModeItem.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Guide<wbr/>Line<wbr/>Mode<wbr/>Item</span></a></li>
|
|
@@ -250,7 +251,8 @@
|
|
|
250
251
|
<li><a href="itemLabelPluginServerParams.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>item<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params</span></a></li>
|
|
251
252
|
<li><a href="modelItemLabelPluginServerParams.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>model<wbr/>Item<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params</span></a></li>
|
|
252
253
|
<li><a href="modelRoomLabelPluginServerParams.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>model<wbr/>Room<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params</span></a></li>
|
|
253
|
-
<li><a href="../functions/
|
|
254
|
+
<li><a href="../functions/AreaMakerPluginPlugin.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g></svg><span>Area<wbr/>Maker<wbr/>Plugin<wbr/>Plugin</span></a></li>
|
|
255
|
+
<li><a href="../functions/CSS3DRenderPlugin.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>CSS3DRender<wbr/>Plugin</span></a></li>
|
|
254
256
|
<li><a href="../functions/CameraMovementPlugin.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>Camera<wbr/>Movement<wbr/>Plugin</span></a></li>
|
|
255
257
|
<li><a href="../functions/CruisePlugin.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>Cruise<wbr/>Plugin</span></a></li>
|
|
256
258
|
<li><a href="../functions/GuideLinePlugin.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>Guide<wbr/>Line<wbr/>Plugin</span></a></li>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.27.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.27.4-0</title><meta name="description" content="Documentation for 如视看房插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.27.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.27.4-0</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-content">
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<li class="tsd-parameter">
|
|
25
25
|
<h5><span class="tsd-kind-property">version</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
|
|
26
26
|
<ul>
|
|
27
|
-
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/
|
|
27
|
+
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/5de583b/plugins/src/ModelRoomLabelPlugin/index.ts#L9">plugins/src/ModelRoomLabelPlugin/index.ts:9</a></li></ul></aside></div>
|
|
28
28
|
<div class="col-sidebar">
|
|
29
29
|
<div class="page-menu">
|
|
30
30
|
<div class="tsd-navigation settings">
|
|
@@ -38,8 +38,9 @@
|
|
|
38
38
|
<div class="tsd-theme-toggle">
|
|
39
39
|
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
|
|
40
40
|
<div class="site-menu">
|
|
41
|
-
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视看房插件合集 -<wbr/> v2.27.
|
|
41
|
+
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视看房插件合集 -<wbr/> v2.27.4-<wbr/>0</span></a>
|
|
42
42
|
<ul class="tsd-small-nested-navigation">
|
|
43
|
+
<li><a href="../modules/AreaMakerPluginPluginType.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Area<wbr/>Maker<wbr/>Plugin<wbr/>Plugin<wbr/>Type</span></a></li>
|
|
43
44
|
<li><a href="../modules/CruisePluginTypes.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Cruise<wbr/>Plugin<wbr/>Types</span></a></li>
|
|
44
45
|
<li><a href="../modules/GuideLineItem.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Guide<wbr/>Line<wbr/>Item</span></a></li>
|
|
45
46
|
<li><a href="../modules/GuideLineModeItem.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4"></use></svg><span>Guide<wbr/>Line<wbr/>Mode<wbr/>Item</span></a></li>
|
|
@@ -250,7 +251,8 @@
|
|
|
250
251
|
<li><a href="itemLabelPluginServerParams.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>item<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params</span></a></li>
|
|
251
252
|
<li><a href="modelItemLabelPluginServerParams.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>model<wbr/>Item<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params</span></a></li>
|
|
252
253
|
<li><a href="modelRoomLabelPluginServerParams.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-32"></use></svg><span>model<wbr/>Room<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params</span></a></li>
|
|
253
|
-
<li><a href="../functions/
|
|
254
|
+
<li><a href="../functions/AreaMakerPluginPlugin.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g></svg><span>Area<wbr/>Maker<wbr/>Plugin<wbr/>Plugin</span></a></li>
|
|
255
|
+
<li><a href="../functions/CSS3DRenderPlugin.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>CSS3DRender<wbr/>Plugin</span></a></li>
|
|
254
256
|
<li><a href="../functions/CameraMovementPlugin.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>Camera<wbr/>Movement<wbr/>Plugin</span></a></li>
|
|
255
257
|
<li><a href="../functions/CruisePlugin.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>Cruise<wbr/>Plugin</span></a></li>
|
|
256
258
|
<li><a href="../functions/GuideLinePlugin.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>Guide<wbr/>Line<wbr/>Plugin</span></a></li>
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import type { Five } from '@realsee/five';
|
|
3
|
+
import * as BasePlugin from '../base/BasePluginWithData';
|
|
4
|
+
import { AreaMakerItem } from './utils/Item';
|
|
5
|
+
import type * as PluginType from './typing';
|
|
6
|
+
export declare class Controller extends BasePlugin.Controller<PluginType.State, PluginType.EventMap, PluginType.ServerData, PluginType.PluginData> {
|
|
7
|
+
/** 插件当前状态 */
|
|
8
|
+
state: PluginType.State;
|
|
9
|
+
/** 标注模型 { id: item } 的映射表 */
|
|
10
|
+
itemMap: Map<string | number, AreaMakerItem>;
|
|
11
|
+
/** 标注模型容器 */
|
|
12
|
+
modelGroup: THREE.Group;
|
|
13
|
+
/** 当前使用的数据 */
|
|
14
|
+
data?: PluginType.PluginData;
|
|
15
|
+
/** tag 容器 */
|
|
16
|
+
tagDomContainer: HTMLDivElement;
|
|
17
|
+
/** 插件配置项 */
|
|
18
|
+
get config(): {
|
|
19
|
+
modelDepthTest: boolean;
|
|
20
|
+
};
|
|
21
|
+
/** 是否已经被销毁 */
|
|
22
|
+
get disposed(): boolean;
|
|
23
|
+
/** 查询问题使用的调试对象 */
|
|
24
|
+
checkMsg: {
|
|
25
|
+
childrenMountedState: string;
|
|
26
|
+
};
|
|
27
|
+
/** 是否在 Five Change Mode 动画中 */
|
|
28
|
+
private isInFiveChangeModeAnime;
|
|
29
|
+
/** 子组件是否挂载 */
|
|
30
|
+
private childrenMountedState;
|
|
31
|
+
/** config 的原始值 */
|
|
32
|
+
private _config;
|
|
33
|
+
/** disposed 的原始值 */
|
|
34
|
+
private _disposed;
|
|
35
|
+
/** AreaMakerPlugin
|
|
36
|
+
* @param `five` `<Five>` Five 实例
|
|
37
|
+
* @param `params` `<PluginType.Params> | <undefined>` 插件初始化参数
|
|
38
|
+
* @param `params.initialState` `<PluginType.State> | <undefined>` 插件初始化后,使用的状态
|
|
39
|
+
*/
|
|
40
|
+
constructor(five: Five, params?: PluginType.Params);
|
|
41
|
+
/** 加载数据,重复调用会使用新数据覆盖旧数据 */
|
|
42
|
+
load(data: PluginType.ServerData): Promise<void>;
|
|
43
|
+
/** 将插件的 DOM 容器添加到指定的 DOM 元素上 */
|
|
44
|
+
appendTo(wrapper: Element): void;
|
|
45
|
+
/** 启用插件
|
|
46
|
+
* @param `options` `<Option> | <undefined>`
|
|
47
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
48
|
+
*/
|
|
49
|
+
enable(options?: BasePlugin.BaseOptions): void;
|
|
50
|
+
/** 禁用插件
|
|
51
|
+
* @param `options` `<Option> | <undefined>`
|
|
52
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
53
|
+
*/
|
|
54
|
+
disable(options?: BasePlugin.BaseOptions): void;
|
|
55
|
+
/** 展示标注
|
|
56
|
+
* @param `options` `<Partial<ShowHideOptions>> | <undefined>`
|
|
57
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
58
|
+
*/
|
|
59
|
+
show(options?: Partial<PluginType.ShowHideOptions>): Promise<void>;
|
|
60
|
+
/** 插件内容整体隐藏
|
|
61
|
+
* @param `options` `<Partial<ShowHideOptions>> | <undefined>`
|
|
62
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
63
|
+
*/
|
|
64
|
+
hide(options?: Partial<PluginType.ShowHideOptions>): Promise<void>;
|
|
65
|
+
/** 更改插件 State
|
|
66
|
+
* @param `state` `<Partial<Plugin.State>>` 插件属性 `state` 的子集。
|
|
67
|
+
* @param `options` `<Option> | <undefined>`
|
|
68
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
69
|
+
*/
|
|
70
|
+
setState(state: Partial<PluginType.State>, options?: BasePlugin.BaseOptions): void;
|
|
71
|
+
/** 更改插件 Config
|
|
72
|
+
* @param `config` `<Partial<Plugin.Config>>` 插件属性 `config` 的子集。
|
|
73
|
+
* @param `options` `<Option> | <undefined>`
|
|
74
|
+
*/
|
|
75
|
+
updateConfig(config: Partial<PluginType.Config>, options?: BasePlugin.BaseOptions): void;
|
|
76
|
+
/** 根据 ID 获取标注 */
|
|
77
|
+
getMaskItemByID(id: string | number): AreaMakerItem;
|
|
78
|
+
/** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
|
|
79
|
+
dispose: () => void;
|
|
80
|
+
protected formatData(serverData: PluginType.ServerData): PluginType.PluginData;
|
|
81
|
+
private checkChildrenMountedState;
|
|
82
|
+
private updateChildrenMountedState;
|
|
83
|
+
private onFiveInitAnimationWillStart;
|
|
84
|
+
private onFiveInitAnimationEnded;
|
|
85
|
+
private onFiveCameraUpdate;
|
|
86
|
+
private onFiveModeChange;
|
|
87
|
+
private onMakerTagClick;
|
|
88
|
+
private updateState;
|
|
89
|
+
private _enable;
|
|
90
|
+
private onWantsFiveTapGesture;
|
|
91
|
+
private _disable;
|
|
92
|
+
private _show;
|
|
93
|
+
private _hide;
|
|
94
|
+
}
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
var C = Object.defineProperty, M = Object.defineProperties;
|
|
2
|
+
var A = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var f = Object.getOwnPropertySymbols;
|
|
4
|
+
var S = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (h, o, t) => o in h ? C(h, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[o] = t, d = (h, o) => {
|
|
6
|
+
for (var t in o || (o = {}))
|
|
7
|
+
S.call(o, t) && m(h, t, o[t]);
|
|
8
|
+
if (f)
|
|
9
|
+
for (var t of f(o))
|
|
10
|
+
_.call(o, t) && m(h, t, o[t]);
|
|
11
|
+
return h;
|
|
12
|
+
}, p = (h, o) => M(h, A(o));
|
|
13
|
+
var r = (h, o, t) => (m(h, typeof o != "symbol" ? o + "" : o, t), t);
|
|
14
|
+
var u = (h, o, t) => new Promise((i, e) => {
|
|
15
|
+
var s = (n) => {
|
|
16
|
+
try {
|
|
17
|
+
c(t.next(n));
|
|
18
|
+
} catch (l) {
|
|
19
|
+
e(l);
|
|
20
|
+
}
|
|
21
|
+
}, a = (n) => {
|
|
22
|
+
try {
|
|
23
|
+
c(t.throw(n));
|
|
24
|
+
} catch (l) {
|
|
25
|
+
e(l);
|
|
26
|
+
}
|
|
27
|
+
}, c = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(s, a);
|
|
28
|
+
c((t = t.apply(h, o)).next());
|
|
29
|
+
});
|
|
30
|
+
import * as g from "three";
|
|
31
|
+
import { Controller as k } from "../base/BasePluginWithData.js";
|
|
32
|
+
import "hammerjs";
|
|
33
|
+
import "@realsee/five";
|
|
34
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
35
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
36
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
37
|
+
import { equal as I } from "../shared-utils/equal.js";
|
|
38
|
+
import { AreaMakerItem as D } from "./utils/Item.js";
|
|
39
|
+
import "../base/BasePlugin.js";
|
|
40
|
+
import "../shared-utils/Subscribe.js";
|
|
41
|
+
import "../shared-utils/absoluteUrl.js";
|
|
42
|
+
import "../shared-utils/positionToVector3.js";
|
|
43
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
44
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
45
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
46
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
47
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
48
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
49
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
50
|
+
import "../shared-utils/three/centerPoint.js";
|
|
51
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
52
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
53
|
+
import "../shared-utils/isTruelyObject.js";
|
|
54
|
+
import "../shared-utils/three/core/Object3D.js";
|
|
55
|
+
import "../shared-utils/three/objects/LineSegments.js";
|
|
56
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
57
|
+
import "../shared-utils/animationFrame/index.js";
|
|
58
|
+
import "../components/AreaLabel/LabelItem.js";
|
|
59
|
+
import "../vendor/svelte/internal/index.js";
|
|
60
|
+
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
61
|
+
import "../shared-utils/math/planimetry.js";
|
|
62
|
+
class ot extends k {
|
|
63
|
+
/** AreaMakerPlugin
|
|
64
|
+
* @param `five` `<Five>` Five 实例
|
|
65
|
+
* @param `params` `<PluginType.Params> | <undefined>` 插件初始化参数
|
|
66
|
+
* @param `params.initialState` `<PluginType.State> | <undefined>` 插件初始化后,使用的状态
|
|
67
|
+
*/
|
|
68
|
+
constructor(t, i) {
|
|
69
|
+
super(t);
|
|
70
|
+
// ==================== public properties ====================
|
|
71
|
+
/** 插件当前状态 */
|
|
72
|
+
r(this, "state");
|
|
73
|
+
/** 标注模型 { id: item } 的映射表 */
|
|
74
|
+
r(this, "itemMap");
|
|
75
|
+
/** 标注模型容器 */
|
|
76
|
+
r(this, "modelGroup");
|
|
77
|
+
/** 当前使用的数据 */
|
|
78
|
+
r(this, "data");
|
|
79
|
+
/** tag 容器 */
|
|
80
|
+
r(this, "tagDomContainer");
|
|
81
|
+
/** 查询问题使用的调试对象 */
|
|
82
|
+
r(this, "checkMsg", {
|
|
83
|
+
childrenMountedState: ""
|
|
84
|
+
});
|
|
85
|
+
// ==================== private properties ====================
|
|
86
|
+
/** 是否在 Five Change Mode 动画中 */
|
|
87
|
+
r(this, "isInFiveChangeModeAnime", !1);
|
|
88
|
+
/** 子组件是否挂载 */
|
|
89
|
+
r(this, "childrenMountedState", !1);
|
|
90
|
+
/** config 的原始值 */
|
|
91
|
+
r(this, "_config");
|
|
92
|
+
/** disposed 的原始值 */
|
|
93
|
+
r(this, "_disposed", !1);
|
|
94
|
+
/** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
|
|
95
|
+
r(this, "dispose", () => {
|
|
96
|
+
this.five.scene.remove(this.modelGroup);
|
|
97
|
+
});
|
|
98
|
+
r(this, "onFiveInitAnimationWillStart", () => {
|
|
99
|
+
this.isInFiveChangeModeAnime = !0, this.updateChildrenMountedState();
|
|
100
|
+
});
|
|
101
|
+
r(this, "onFiveInitAnimationEnded", () => {
|
|
102
|
+
this.isInFiveChangeModeAnime = !1, this.updateChildrenMountedState();
|
|
103
|
+
});
|
|
104
|
+
r(this, "onFiveCameraUpdate", () => {
|
|
105
|
+
const t = this.five.camera;
|
|
106
|
+
[...this.itemMap.values()].sort((e, s) => {
|
|
107
|
+
const a = e.tagPosition.distanceTo(t.position);
|
|
108
|
+
return s.tagPosition.distanceTo(t.position) - a;
|
|
109
|
+
}).forEach((e, s) => {
|
|
110
|
+
var a;
|
|
111
|
+
(a = this.getMaskItemByID(e.id)) == null || a.setTagZIndex(s * 10);
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
r(this, "onFiveModeChange", () => {
|
|
115
|
+
this.updateChildrenMountedState();
|
|
116
|
+
});
|
|
117
|
+
r(this, "onMakerTagClick", (t) => {
|
|
118
|
+
this.hooks.emit("wantsTap", { target: t.target, intersectObjects: [] });
|
|
119
|
+
});
|
|
120
|
+
r(this, "onWantsFiveTapGesture", (t) => {
|
|
121
|
+
const i = Array.from(this.itemMap.values()).filter((n) => n.mounted && n.visible).map((n) => ({
|
|
122
|
+
makerItem: n,
|
|
123
|
+
intersects: n.modelGroup.getRaycastIntersects(t)
|
|
124
|
+
})).filter(({ intersects: n }) => n.length > 0);
|
|
125
|
+
if (i.length === 0)
|
|
126
|
+
return;
|
|
127
|
+
const e = i.reduce((n, l) => {
|
|
128
|
+
const v = n.intersects[0].distance, b = l.intersects[0].distance;
|
|
129
|
+
return v < b ? n : l;
|
|
130
|
+
}), s = this.five.model.intersectRaycaster(t)[0];
|
|
131
|
+
if (this.config.modelDepthTest && s && s.distance < e.intersects[0].distance)
|
|
132
|
+
return;
|
|
133
|
+
if (this.hooks.emit("wantsTap", {
|
|
134
|
+
target: e.makerItem,
|
|
135
|
+
intersectObjects: e.intersects
|
|
136
|
+
}))
|
|
137
|
+
return !1;
|
|
138
|
+
});
|
|
139
|
+
this.five = t, this.tagDomContainer = document.createElement("div"), this.tagDomContainer.style.position = "absolute", this.tagDomContainer.style.top = "0", this.tagDomContainer.style.left = "0", this.tagDomContainer.style.width = "100%", this.tagDomContainer.style.height = "100%", this.tagDomContainer.style.pointerEvents = "none";
|
|
140
|
+
const e = {
|
|
141
|
+
enabled: !0,
|
|
142
|
+
visible: !0
|
|
143
|
+
};
|
|
144
|
+
this.state = Object.assign(e, i == null ? void 0 : i.initialState);
|
|
145
|
+
const s = d({
|
|
146
|
+
modelDepthTest: !0
|
|
147
|
+
}, i == null ? void 0 : i.config);
|
|
148
|
+
this._config = s, this.modelGroup = new g.Group(), this.modelGroup.name = "ModelMakerPluginGroup", this.itemMap = /* @__PURE__ */ new Map(), this.state.enabled && this._enable({ userAction: !1 });
|
|
149
|
+
}
|
|
150
|
+
/** 插件配置项 */
|
|
151
|
+
get config() {
|
|
152
|
+
return d({}, this._config);
|
|
153
|
+
}
|
|
154
|
+
/** 是否已经被销毁 */
|
|
155
|
+
get disposed() {
|
|
156
|
+
return this._disposed;
|
|
157
|
+
}
|
|
158
|
+
/** 加载数据,重复调用会使用新数据覆盖旧数据 */
|
|
159
|
+
load(t) {
|
|
160
|
+
return u(this, null, function* () {
|
|
161
|
+
const i = this.data;
|
|
162
|
+
this.data = this.formatData(t), this.hooks.emit("dataChange", this.data, i), this.modelGroup.remove(...this.modelGroup.children), this.itemMap.clear(), this.data.list.forEach((e) => {
|
|
163
|
+
const s = new D(this, e);
|
|
164
|
+
this.modelGroup.add(s.modelGroup), this.itemMap.set(e.id, s), s.hooks.on("tagClick", this.onMakerTagClick);
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/** 将插件的 DOM 容器添加到指定的 DOM 元素上 */
|
|
169
|
+
appendTo(t) {
|
|
170
|
+
t.appendChild(this.tagDomContainer);
|
|
171
|
+
}
|
|
172
|
+
/** 启用插件
|
|
173
|
+
* @param `options` `<Option> | <undefined>`
|
|
174
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
175
|
+
*/
|
|
176
|
+
enable(t = {}) {
|
|
177
|
+
var e;
|
|
178
|
+
if (this.state.enabled)
|
|
179
|
+
return;
|
|
180
|
+
const i = (e = t.userAction) != null ? e : !0;
|
|
181
|
+
this.updateState({ enabled: !0 }, i), this._enable({ userAction: i });
|
|
182
|
+
}
|
|
183
|
+
/** 禁用插件
|
|
184
|
+
* @param `options` `<Option> | <undefined>`
|
|
185
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
186
|
+
*/
|
|
187
|
+
disable(t = {}) {
|
|
188
|
+
var e;
|
|
189
|
+
if (this.state.enabled === !1)
|
|
190
|
+
return;
|
|
191
|
+
const i = (e = t.userAction) != null ? e : !0;
|
|
192
|
+
this.updateState({ enabled: !1 }, i), this._disable({ userAction: i });
|
|
193
|
+
}
|
|
194
|
+
/** 展示标注
|
|
195
|
+
* @param `options` `<Partial<ShowHideOptions>> | <undefined>`
|
|
196
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
197
|
+
*/
|
|
198
|
+
show(t) {
|
|
199
|
+
return u(this, null, function* () {
|
|
200
|
+
if (this.state.visible)
|
|
201
|
+
return Promise.resolve();
|
|
202
|
+
if (this.disposed)
|
|
203
|
+
return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
|
|
204
|
+
const i = d({ userAction: !0 }, t);
|
|
205
|
+
this.updateState({ visible: !0 }, i.userAction), yield this._show(i);
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
/** 插件内容整体隐藏
|
|
209
|
+
* @param `options` `<Partial<ShowHideOptions>> | <undefined>`
|
|
210
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
211
|
+
*/
|
|
212
|
+
hide(t) {
|
|
213
|
+
return u(this, null, function* () {
|
|
214
|
+
if (this.state.visible === !1)
|
|
215
|
+
return;
|
|
216
|
+
const i = d({ userAction: !0 }, t);
|
|
217
|
+
this.updateState({ visible: !1 }, i.userAction), yield this._hide(i);
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
// 目前带动画的展示和隐藏功能有些需求细节没有确定,暂时不实现
|
|
221
|
+
// /** 展示标注
|
|
222
|
+
// * @param `options` `<Partial<ShowHideOptions>> | <undefined>`
|
|
223
|
+
// * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
224
|
+
// * @param `options.anime` `<AnimeOptions> | <undefined>` 动画配置。
|
|
225
|
+
// * @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
|
|
226
|
+
// */
|
|
227
|
+
// public async show(options?: Partial<PluginType.ShowHideOptions>): Promise<void> {
|
|
228
|
+
// if (this.state.visible) return Promise.resolve()
|
|
229
|
+
// if (this.disposed) return Promise.reject(new Error('不能在已销毁的插件上调用 show'))
|
|
230
|
+
// const mergedOptions: PluginType.ShowHideOptions = {
|
|
231
|
+
// userAction: true,
|
|
232
|
+
// anime: { duration: 500, ...options?.anime },
|
|
233
|
+
// ...options,
|
|
234
|
+
// }
|
|
235
|
+
// this.updateState({ visible: true }, mergedOptions.userAction)
|
|
236
|
+
// await this._show(mergedOptions)
|
|
237
|
+
// }
|
|
238
|
+
// /** 插件内容整体隐藏
|
|
239
|
+
// * @param `options` `<Partial<ShowHideOptions>> | <undefined>`
|
|
240
|
+
// * @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
241
|
+
// * @param `options.anime` `<AnimeOptions> | <undefined>` 动画配置。
|
|
242
|
+
// * @param `options.anime.duration` `<number> | <undefined>` 动画时间,默认是 500ms。
|
|
243
|
+
// */
|
|
244
|
+
// public async hide(options?: Partial<PluginType.ShowHideOptions>) {
|
|
245
|
+
// if (this.state.visible === false) return
|
|
246
|
+
// const mergedOptions: PluginType.ShowHideOptions = {
|
|
247
|
+
// userAction: true,
|
|
248
|
+
// anime: { duration: 500, ...options?.anime },
|
|
249
|
+
// ...options,
|
|
250
|
+
// }
|
|
251
|
+
// this.updateState({ visible: false }, mergedOptions.userAction)
|
|
252
|
+
// await this._hide(mergedOptions)
|
|
253
|
+
// }
|
|
254
|
+
/** 更改插件 State
|
|
255
|
+
* @param `state` `<Partial<Plugin.State>>` 插件属性 `state` 的子集。
|
|
256
|
+
* @param `options` `<Option> | <undefined>`
|
|
257
|
+
* @param `options.userAction` `<boolean> | <undefined>` 是否是用户操作。默认是 true。
|
|
258
|
+
*/
|
|
259
|
+
setState(t, i = {}) {
|
|
260
|
+
const e = this.state;
|
|
261
|
+
if (I(t, e, { deep: !0 }))
|
|
262
|
+
return;
|
|
263
|
+
const s = i.userAction !== void 0 ? i.userAction : !0;
|
|
264
|
+
if (this.updateState(t, s), t.enabled !== void 0 && e.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: s }) : this._disable({ userAction: s })), t.visible !== void 0 && e.visible !== t.visible) {
|
|
265
|
+
const a = { userAction: s, anime: { duration: 500 } };
|
|
266
|
+
t.visible ? this._show(a) : this._hide(a);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
/** 更改插件 Config
|
|
270
|
+
* @param `config` `<Partial<Plugin.Config>>` 插件属性 `config` 的子集。
|
|
271
|
+
* @param `options` `<Option> | <undefined>`
|
|
272
|
+
*/
|
|
273
|
+
updateConfig(t, i = {}) {
|
|
274
|
+
var a;
|
|
275
|
+
const e = this.config, s = d(d({}, e), t);
|
|
276
|
+
this._config = s, this.hooks.emit("configChange", { prevConfig: e, config: s, userAction: (a = i.userAction) != null ? a : !0 });
|
|
277
|
+
}
|
|
278
|
+
/** 根据 ID 获取标注 */
|
|
279
|
+
getMaskItemByID(t) {
|
|
280
|
+
return this.itemMap.get(t);
|
|
281
|
+
}
|
|
282
|
+
formatData(t) {
|
|
283
|
+
function i(e) {
|
|
284
|
+
return e.list.length === 0 ? !0 : !("shape" in e.list[0].object_data);
|
|
285
|
+
}
|
|
286
|
+
return i(t) ? {
|
|
287
|
+
list: t.list.filter((e) => e.object_data.points.length >= 3).map((e) => {
|
|
288
|
+
const s = new g.Shape(), a = e.object_data.points[0];
|
|
289
|
+
return s.moveTo(a[0], a[2]), e.object_data.points.slice(1).forEach((n) => s.lineTo(n[0], n[2])), s.lineTo(a[0], a[2]), p(d({}, e), {
|
|
290
|
+
floor_index: e.object_data.floorIndex,
|
|
291
|
+
object_data: p(d({}, e.object_data), {
|
|
292
|
+
bottom_y: a[1] + e.object_data.fixedY,
|
|
293
|
+
shape: s.toJSON(),
|
|
294
|
+
height: e.object_data.height + e.object_data.fixedHeight
|
|
295
|
+
})
|
|
296
|
+
});
|
|
297
|
+
})
|
|
298
|
+
} : t;
|
|
299
|
+
}
|
|
300
|
+
checkChildrenMountedState() {
|
|
301
|
+
const t = this.state, i = this.five;
|
|
302
|
+
if (!t.enabled)
|
|
303
|
+
return { result: !1, msg: "插件不可用" };
|
|
304
|
+
const e = i.getCurrentState().mode;
|
|
305
|
+
return e === "Panorama" ? { result: !1, msg: `Five 模态不符合条件, 当前模态为:${e}` } : this.isInFiveChangeModeAnime ? { result: !1, msg: "切换模态动画中不展示" } : { result: !0, msg: "" };
|
|
306
|
+
}
|
|
307
|
+
updateChildrenMountedState() {
|
|
308
|
+
const { result: t, msg: i } = this.checkChildrenMountedState();
|
|
309
|
+
this.checkMsg.childrenMountedState = i, t !== this.childrenMountedState && (this.childrenMountedState = t, this.itemMap.forEach((e) => {
|
|
310
|
+
this.childrenMountedState ? e.mount() : e.unmount();
|
|
311
|
+
}));
|
|
312
|
+
}
|
|
313
|
+
updateState(t, i) {
|
|
314
|
+
const e = this.state;
|
|
315
|
+
this.state = d(d({}, this.state), t), this.hooks.emit("stateChange", { state: this.state, prevState: e, userAction: i });
|
|
316
|
+
}
|
|
317
|
+
_enable(t) {
|
|
318
|
+
this.hooks.emit("enable", { userAction: t.userAction }), this.five.scene.add(this.modelGroup), this.five.needsRender = !0, this.five.on("wantsTapGesture", this.onWantsFiveTapGesture), this.five.on("initAnimationWillStart", this.onFiveInitAnimationWillStart), this.five.on("initAnimationEnded", this.onFiveInitAnimationEnded), this.five.on("modeChange", this.onFiveModeChange), this.five.on("cameraUpdate", this.onFiveCameraUpdate);
|
|
319
|
+
}
|
|
320
|
+
_disable(t) {
|
|
321
|
+
this.hooks.emit("disable", { userAction: t.userAction }), this.five.scene.remove(this.modelGroup), this.five.needsRender = !0, this.five.off("wantsTapGesture", this.onWantsFiveTapGesture), this.five.off("initAnimationWillStart", this.onFiveInitAnimationWillStart), this.five.off("initAnimationEnded", this.onFiveInitAnimationEnded), this.five.off("modeChange", this.onFiveModeChange), this.five.off("cameraUpdate", this.onFiveCameraUpdate);
|
|
322
|
+
}
|
|
323
|
+
_show(t) {
|
|
324
|
+
return u(this, null, function* () {
|
|
325
|
+
this.hooks.emit("show", t), this.five.needsRender = !0;
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
_hide(t) {
|
|
329
|
+
return u(this, null, function* () {
|
|
330
|
+
this.hooks.emit("hide", t), this.five.needsRender = !0;
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
export {
|
|
335
|
+
ot as Controller
|
|
336
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Controller as o } from "./Controller.js";
|
|
2
|
+
import "three";
|
|
3
|
+
import "../base/BasePluginWithData.js";
|
|
4
|
+
import "../base/BasePlugin.js";
|
|
5
|
+
import "../shared-utils/Subscribe.js";
|
|
6
|
+
import "hammerjs";
|
|
7
|
+
import "@realsee/five";
|
|
8
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
9
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
10
|
+
import "../shared-utils/positionToVector3.js";
|
|
11
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
12
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
13
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
14
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
15
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
16
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
17
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
18
|
+
import "../shared-utils/three/centerPoint.js";
|
|
19
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
20
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
21
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
|
+
import "../shared-utils/absoluteUrl.js";
|
|
23
|
+
import "../shared-utils/equal.js";
|
|
24
|
+
import "../shared-utils/isTruelyObject.js";
|
|
25
|
+
import "./utils/Item.js";
|
|
26
|
+
import "../shared-utils/three/core/Object3D.js";
|
|
27
|
+
import "../shared-utils/three/objects/LineSegments.js";
|
|
28
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
29
|
+
import "../shared-utils/animationFrame/index.js";
|
|
30
|
+
import "../components/AreaLabel/LabelItem.js";
|
|
31
|
+
import "../vendor/svelte/internal/index.js";
|
|
32
|
+
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
33
|
+
import "../shared-utils/math/planimetry.js";
|
|
34
|
+
const H = (r) => new o(r);
|
|
35
|
+
export {
|
|
36
|
+
H as AreaMakerPluginPlugin
|
|
37
|
+
};
|