@realsee/dnalogel 2.27.4 → 2.28.0-dev.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/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +5 -0
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +4 -2
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +0 -2
- package/dist/base/BasePluginWithData.d.ts +1 -1
- package/dist/floorplan/FloorplanRoomsPlugin/BasePlugin.d.ts +114 -0
- package/dist/floorplan/FloorplanRoomsPlugin/BasePluginWithData.d.ts +23 -0
- package/dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.svelte.d.ts +1 -0
- package/dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.svelte.d.ts +1 -0
- package/dist/floorplan/FloorplanRoomsPlugin/Components/Main.svelte.d.ts +1 -0
- package/dist/floorplan/FloorplanRoomsPlugin/Controller.d.ts +40 -0
- package/dist/floorplan/FloorplanRoomsPlugin/index.d.ts +6 -0
- package/dist/floorplan/FloorplanRoomsPlugin/typing.d.ts +60 -0
- package/dist/floorplan/index.d.ts +1 -0
- package/dist/index.cjs.js +67 -67
- package/dist/index.d.ts +0 -1
- package/dist/index.js +7269 -6976
- package/dist/index.umd.js +60 -60
- package/dist/shared-utils/index.d.ts +0 -1
- package/dist/shared-utils/math/planimetry.d.ts +1 -1
- package/dist/shared-utils/three/index.d.ts +0 -2
- package/dist/shared-utils/three/loadVideoTexture.d.ts +1 -1
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +120 -0
- package/docs/assets/main.js +58 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1367 -0
- package/docs/classes/CSS3DRender.html +770 -0
- package/docs/classes/CruisePluginController.html +669 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +488 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +789 -0
- package/docs/classes/Magnifier.html +477 -0
- package/docs/classes/ModelRoomLabelController.html +395 -0
- package/docs/classes/Object3DHelperController.html +637 -0
- package/docs/classes/PaintBrush.html +499 -0
- package/docs/classes/PanoMeasurePluginLine.html +519 -0
- package/docs/classes/PanoMeasurePluginModel.html +568 -0
- package/docs/classes/PanoMeasurePluginPoint.html +359 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +564 -0
- package/docs/classes/PanoTagPluginController.html +1087 -0
- package/docs/classes/Util.BetterTween.html +409 -0
- package/docs/classes/Util.Interval.html +425 -0
- package/docs/classes/Util.Magnifier.html +496 -0
- package/docs/classes/Util.PointDomHelper.html +400 -0
- package/docs/classes/Util.PointHelper.html +391 -0
- package/docs/classes/Util.PointSelectorHelper.html +447 -0
- package/docs/classes/Util.Rectangle.html +448 -0
- package/docs/enums/CameraMovementEffect.html +307 -0
- package/docs/enums/ContentType.html +443 -0
- package/docs/enums/DIRECTION.html +317 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +317 -0
- package/docs/enums/DimensionType.html +307 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +310 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +317 -0
- package/docs/enums/PaintBrushTypeEnum.html +310 -0
- package/docs/enums/PointType.html +307 -0
- package/docs/enums/Rotation.html +314 -0
- package/docs/functions/CSS3DRenderPlugin.html +285 -0
- package/docs/functions/CameraMovementPlugin.html +290 -0
- package/docs/functions/CruisePlugin.html +287 -0
- package/docs/functions/FloorplanRoomsPlugin.html +285 -0
- package/docs/functions/GuideLinePlugin.html +287 -0
- package/docs/functions/ItemLabelPlugin.html +287 -0
- package/docs/functions/MapviewFloorplanPlugin.html +287 -0
- package/docs/functions/ModelChassisCompassPlugin.html +290 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +290 -0
- package/docs/functions/ModelFloorplanPlugin.html +287 -0
- package/docs/functions/ModelItemLabelPlugin.html +287 -0
- package/docs/functions/ModelRoomLabelPlugin.html +285 -0
- package/docs/functions/ModelTVVideoPlugin.html +287 -0
- package/docs/functions/ModelViewPlugin.html +290 -0
- package/docs/functions/Object3DHelperPlugin.html +285 -0
- package/docs/functions/PanoCompassPlugin.html +287 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +291 -0
- package/docs/functions/PanoDoorLabelPlugin.html +287 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +287 -0
- package/docs/functions/PanoMeasurePlugin.html +287 -0
- package/docs/functions/PanoRulerPlugin.html +290 -0
- package/docs/functions/PanoRulerProPlugin.html +290 -0
- package/docs/functions/PanoSpatialTagPlugin.html +290 -0
- package/docs/functions/PanoTagPlugin.html +292 -0
- package/docs/functions/PanoVideoPlugin.html +296 -0
- package/docs/functions/PipelinePlugin.html +285 -0
- package/docs/functions/TopviewFloorplanPlugin.html +287 -0
- package/docs/functions/Util.absoluteUrl.html +319 -0
- package/docs/functions/Util.getCoordsFromClient.html +321 -0
- package/docs/functions/Util.getCoordsFromElement.html +321 -0
- package/docs/functions/Util.getFrameTime.html +313 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +321 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +321 -0
- package/docs/functions/Util.isAbsoluteURL.html +314 -0
- package/docs/functions/Util.isModelLike.html +314 -0
- package/docs/functions/Util.isNil.html +322 -0
- package/docs/functions/Util.isPanoramaLike.html +314 -0
- package/docs/functions/Util.nextFrame.html +327 -0
- package/docs/functions/Util.notNil.html +322 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +343 -0
- package/docs/functions/Util.tweenProgress.html +316 -0
- package/docs/functions/Util.uuid.html +312 -0
- package/docs/functions/pluginFlag.html +285 -0
- package/docs/index.html +351 -0
- package/docs/interfaces/AddTagConfig.html +300 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +446 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +322 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +355 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +356 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +358 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +693 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +382 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +418 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +408 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +348 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +316 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +405 -0
- package/docs/interfaces/EventMap.html +539 -0
- package/docs/interfaces/FloorplanBounding.html +329 -0
- package/docs/interfaces/FloorplanData.html +332 -0
- package/docs/interfaces/FloorplanEntrance.html +357 -0
- package/docs/interfaces/FloorplanExtraObject.html +347 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +336 -0
- package/docs/interfaces/FloorplanFloorData.html +325 -0
- package/docs/interfaces/FloorplanImagePosition.html +311 -0
- package/docs/interfaces/FloorplanObserver.html +329 -0
- package/docs/interfaces/FloorplanOutlineItem.html +325 -0
- package/docs/interfaces/FloorplanPosition.html +311 -0
- package/docs/interfaces/FloorplanRoomItem.html +376 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +317 -0
- package/docs/interfaces/FloorplanServerBounding.html +329 -0
- package/docs/interfaces/FloorplanServerComputedData.html +328 -0
- package/docs/interfaces/FloorplanServerData.html +311 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +328 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +314 -0
- package/docs/interfaces/FloorplanServerEntrance.html +357 -0
- package/docs/interfaces/FloorplanServerFloorData.html +325 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +311 -0
- package/docs/interfaces/FloorplanServerObserver.html +329 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +325 -0
- package/docs/interfaces/FloorplanServerPosition.html +311 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +388 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +317 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +320 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +358 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +522 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +353 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +344 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +411 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +343 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +468 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +340 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +468 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +305 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +326 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +351 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +367 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +349 -0
- package/docs/interfaces/HelperOffset.html +329 -0
- package/docs/interfaces/ImagePlaneGroup.html +303 -0
- package/docs/interfaces/ItemLabelPluginData.html +300 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +385 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +321 -0
- package/docs/interfaces/MinMax.html +307 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +307 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +343 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +307 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +314 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +351 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +300 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +385 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +307 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +300 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +321 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +345 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +300 -0
- package/docs/interfaces/ModelViewPluginExportType.html +413 -0
- package/docs/interfaces/Object3DHelperState.html +314 -0
- package/docs/interfaces/ObjectHelperControllers.html +321 -0
- package/docs/interfaces/PaintBrushAction.html +360 -0
- package/docs/interfaces/PaintBrushConfigs.html +358 -0
- package/docs/interfaces/PaintBrushState.html +342 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +422 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +279 -0
- package/docs/interfaces/PanoMeasureParameterType.html +446 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +314 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +311 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +307 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +317 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +374 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +323 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +314 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +350 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +320 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +307 -0
- package/docs/interfaces/PanoRulerProPluginState.html +314 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +293 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +282 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +350 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +332 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +428 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +328 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +349 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +335 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +328 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +320 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +338 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +311 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +417 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +311 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +346 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +365 -0
- package/docs/interfaces/Point.html +314 -0
- package/docs/interfaces/Room.html +321 -0
- package/docs/interfaces/RoomInfo.html +307 -0
- package/docs/interfaces/RoomLabel.html +383 -0
- package/docs/interfaces/RoomRules.html +282 -0
- package/docs/interfaces/Rooms.html +282 -0
- package/docs/interfaces/Scissor.html +341 -0
- package/docs/interfaces/State.html +328 -0
- package/docs/interfaces/TagCacheInterface.html +352 -0
- package/docs/interfaces/TagConfig.html +542 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +303 -0
- package/docs/interfaces/TagIconUrl.html +360 -0
- package/docs/interfaces/TagObjectGroup.html +303 -0
- package/docs/interfaces/TagStyle.html +313 -0
- package/docs/interfaces/Tags.html +543 -0
- package/docs/interfaces/TemporaryState.html +300 -0
- package/docs/interfaces/Util.MagnifierParameter.html +384 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +343 -0
- package/docs/interfaces/Util.PointIntersection.html +358 -0
- package/docs/modules/CruisePluginTypes.html +325 -0
- package/docs/modules/GuideLineItem.html +286 -0
- package/docs/modules/GuideLineModeItem.html +291 -0
- package/docs/modules/GuideLinePluginType.html +345 -0
- package/docs/modules/PanoVideoPluginType.html +298 -0
- package/docs/modules/Util.html +340 -0
- package/docs/modules.html +534 -0
- package/docs/types/ArrayPosition.html +276 -0
- package/docs/types/AudioAppearance.html +276 -0
- package/docs/types/AudioTagTypeConfigKey.html +276 -0
- package/docs/types/CSS3DRenderExportType.html +276 -0
- package/docs/types/CSS3DRenderPluginExportType.html +276 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +276 -0
- package/docs/types/ClassFunctionParameters.html +283 -0
- package/docs/types/Color.html +276 -0
- package/docs/types/ContentTypeConfigKey.html +276 -0
- package/docs/types/ContentTypeConfigKeySplit.html +276 -0
- package/docs/types/ContentTypeMap.html +276 -0
- package/docs/types/Create3DDomContainerReturnType.html +276 -0
- package/docs/types/Create3DElementReturnType.html +276 -0
- package/docs/types/CruisePluginExportType.html +276 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +315 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +292 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +288 -0
- package/docs/types/DeprecatedTagProperty.html +291 -0
- package/docs/types/Direction-1.html +276 -0
- package/docs/types/Direction4.html +276 -0
- package/docs/types/ElementRenderer.html +300 -0
- package/docs/types/FloorplanRoomsPluginParameterType.html +276 -0
- package/docs/types/FloorplanRoomsPluginReturnType.html +276 -0
- package/docs/types/FloorplanRuleLabels.html +279 -0
- package/docs/types/FloorplanServerRuleLabels.html +276 -0
- package/docs/types/GuideLinePluginExportType.html +276 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +348 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +369 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +302 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +305 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +305 -0
- package/docs/types/GuideLinePluginType.PathItem.html +305 -0
- package/docs/types/GuideLinePluginType.PluginData.html +314 -0
- package/docs/types/HelperEventMap.html +514 -0
- package/docs/types/LoadTagConfig.html +276 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +276 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +276 -0
- package/docs/types/MediaData.html +292 -0
- package/docs/types/MediaStore.html +281 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +283 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +276 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +276 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +276 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +276 -0
- package/docs/types/MoveArgs.html +286 -0
- package/docs/types/MoveOpts.html +284 -0
- package/docs/types/Object3DHelperEventMap.html +369 -0
- package/docs/types/ObjectFit.html +276 -0
- package/docs/types/PaintBrushEventMap.html +307 -0
- package/docs/types/PanoCompassPluginData.html +276 -0
- package/docs/types/PanoCompassPluginExportType.html +276 -0
- package/docs/types/PanoCompassPluginParameterType.html +276 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +276 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +276 -0
- package/docs/types/PanoIndex.html +276 -0
- package/docs/types/PanoMeasurePluginEvent.html +276 -0
- package/docs/types/PanoMeasureReturnType.html +276 -0
- package/docs/types/PanoSpatialTagPluginId.html +276 -0
- package/docs/types/PanoTagPluginExportInterface.html +276 -0
- package/docs/types/PanoTagPluginParamsInterface.html +276 -0
- package/docs/types/PanoVideoPluginParameterType.html +276 -0
- package/docs/types/PanoVideoPluginReturnType.html +276 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +284 -0
- package/docs/types/PipelinePluginParameterType.html +276 -0
- package/docs/types/PipelinePluginReturnType.html +276 -0
- package/docs/types/PlaneTag.html +284 -0
- package/docs/types/Point2DTag.html +284 -0
- package/docs/types/Point3DTag.html +284 -0
- package/docs/types/PointTag.html +281 -0
- package/docs/types/PointTagInstance.html +281 -0
- package/docs/types/Position.html +276 -0
- package/docs/types/RotateArgs.html +288 -0
- package/docs/types/RotateOpts.html +284 -0
- package/docs/types/RuleLabelsKey.html +276 -0
- package/docs/types/RuleLabelsValue.html +276 -0
- package/docs/types/StickType.html +276 -0
- package/docs/types/Tag.html +342 -0
- package/docs/types/Tag2D.html +284 -0
- package/docs/types/Tag3D.html +284 -0
- package/docs/types/TagConfigByKey.html +281 -0
- package/docs/types/TagContentType.html +276 -0
- package/docs/types/TagDimensionType.html +278 -0
- package/docs/types/TagElement.html +286 -0
- package/docs/types/TagEvents.html +329 -0
- package/docs/types/TagGLTFObject.html +299 -0
- package/docs/types/TagHooks.html +276 -0
- package/docs/types/TagId.html +276 -0
- package/docs/types/TagInstance.html +348 -0
- package/docs/types/TagPointType.html +279 -0
- package/docs/types/TagRendererMap.html +281 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +276 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +276 -0
- package/docs/types/WorkCode.html +276 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +286 -0
- package/docs/variables/PLUGIN.html +276 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +279 -0
- package/docs/variables/ROOM_TYPE_MAP.html +286 -0
- package/docs/variables/defaultGlobalConfig.html +276 -0
- package/docs/variables/itemLabelPluginServerParams.html +283 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +283 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +283 -0
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +39 -42
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +5 -0
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +13 -13
- package/libs/PanoTagPlugin/controller/TagRender.js +18 -19
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +4 -2
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +0 -2
- 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/floorplan/FloorplanRoomsPlugin/BasePlugin.d.ts +114 -0
- package/libs/floorplan/FloorplanRoomsPlugin/BasePlugin.js +51 -0
- package/libs/floorplan/FloorplanRoomsPlugin/BasePluginWithData.d.ts +23 -0
- package/libs/floorplan/FloorplanRoomsPlugin/BasePluginWithData.js +25 -0
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.js +188 -0
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.svelte.d.ts +1 -0
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.js +94 -0
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.svelte.d.ts +1 -0
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.js +111 -0
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.svelte.d.ts +1 -0
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.js +191 -0
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.svelte.d.ts +1 -0
- package/libs/floorplan/FloorplanRoomsPlugin/Components/Main.js +237 -0
- package/libs/floorplan/FloorplanRoomsPlugin/Components/Main.svelte.d.ts +1 -0
- package/libs/floorplan/FloorplanRoomsPlugin/Controller.d.ts +40 -0
- package/libs/floorplan/FloorplanRoomsPlugin/Controller.js +207 -0
- package/libs/floorplan/FloorplanRoomsPlugin/index.d.ts +6 -0
- package/libs/floorplan/FloorplanRoomsPlugin/index.js +43 -0
- package/libs/floorplan/FloorplanRoomsPlugin/typing.d.ts +60 -0
- package/libs/floorplan/index.d.ts +1 -0
- package/libs/index.d.ts +0 -1
- package/libs/index.js +122 -120
- package/libs/shared-utils/device.js +1 -0
- package/libs/shared-utils/index.d.ts +0 -1
- package/libs/shared-utils/index.js +21 -27
- 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 +29 -36
- package/libs/shared-utils/three/index.d.ts +0 -2
- package/libs/shared-utils/three/loadVideoTexture.d.ts +1 -1
- package/libs/shared-utils/three/loadVideoTexture.js +6 -6
- package/libs/vendor/svelte/internal/index.js +85 -79
- package/package.json +2 -2
- package/dist/AreaMakerPlugin/Controller.d.ts +0 -94
- package/dist/AreaMakerPlugin/index.d.ts +0 -4
- package/dist/AreaMakerPlugin/typing.d.ts +0 -148
- package/dist/AreaMakerPlugin/utils/Item.d.ts +0 -114
- package/dist/components/AreaLabel/Assets/roomLabelBg.d.ts +0 -1
- package/dist/shared-utils/three/core/Object3D.d.ts +0 -8
- package/dist/shared-utils/three/objects/LineSegments.d.ts +0 -9
- package/libs/AreaMakerPlugin/Controller.d.ts +0 -94
- package/libs/AreaMakerPlugin/Controller.js +0 -336
- package/libs/AreaMakerPlugin/index.d.ts +0 -4
- package/libs/AreaMakerPlugin/index.js +0 -37
- package/libs/AreaMakerPlugin/typing.d.ts +0 -148
- package/libs/AreaMakerPlugin/utils/Item.d.ts +0 -114
- package/libs/AreaMakerPlugin/utils/Item.js +0 -263
- package/libs/components/AreaLabel/Assets/roomLabelBg.d.ts +0 -1
- package/libs/components/AreaLabel/Assets/roomLabelBg.js +0 -4
- package/libs/components/AreaLabel/LabelItem.js +0 -125
- package/libs/shared-utils/three/core/Object3D.d.ts +0 -8
- package/libs/shared-utils/three/core/Object3D.js +0 -22
- package/libs/shared-utils/three/objects/LineSegments.d.ts +0 -9
- package/libs/shared-utils/three/objects/LineSegments.js +0 -9
- /package/dist/{components/AreaLabel/LabelItem.svelte.d.ts → floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.svelte.d.ts} +0 -0
- /package/{libs/components/AreaLabel/LabelItem.svelte.d.ts → dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.svelte.d.ts} +0 -0
- /package/libs/{AreaMakerPlugin → floorplan/FloorplanRoomsPlugin}/typing.js +0 -0
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import { Object3D } from '../../shared-utils';
|
|
3
|
-
import { LineSegments } from '../../shared-utils';
|
|
4
|
-
import type { Controller } from '../Controller';
|
|
5
|
-
import type * as PluginType from '../typing';
|
|
6
|
-
import LabelItem from '../../components/AreaLabel/LabelItem.svelte';
|
|
7
|
-
import { Subscribe } from '../../shared-utils/Subscribe';
|
|
8
|
-
declare class AreaMakerModelGroup extends Object3D {
|
|
9
|
-
private areaMakerItem;
|
|
10
|
-
constructor(areaMakerItem: AreaMakerItem);
|
|
11
|
-
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
12
|
-
}
|
|
13
|
-
export declare class AreaMakerItem {
|
|
14
|
-
id: string | number;
|
|
15
|
-
/** 标注名称 */
|
|
16
|
-
name: string;
|
|
17
|
-
/** 标注几何体 */
|
|
18
|
-
makerObject: THREE.Mesh<THREE.ExtrudeBufferGeometry, THREE.MeshBasicMaterial>;
|
|
19
|
-
/** 标注几何体的边框 */
|
|
20
|
-
outline: LineSegments<THREE.EdgesGeometry, THREE.LineBasicMaterial>;
|
|
21
|
-
/** 标注底面 Y 坐标 */
|
|
22
|
-
bottomY: PluginType.ServerAreaMakerItem['object_data']['bottom_y'];
|
|
23
|
-
/** 标注透明度 */
|
|
24
|
-
opacity: PluginType.ServerAreaMakerItem['object_data']['opacity'];
|
|
25
|
-
/** 标注高度 */
|
|
26
|
-
height: PluginType.ServerAreaMakerItem['object_data']['height'];
|
|
27
|
-
/** 标注所在楼层 */
|
|
28
|
-
floorIndex: PluginType.ServerAreaMakerItem['floor_index'];
|
|
29
|
-
/** 标注底面形状 */
|
|
30
|
-
shape: THREE.Shape;
|
|
31
|
-
/** 是否被挂载 */
|
|
32
|
-
mounted: boolean;
|
|
33
|
-
/** 查询问题使用的调试对象 */
|
|
34
|
-
checkMsg: {
|
|
35
|
-
/** 当标注没有展示时,可以通过这个字段查看原因 */
|
|
36
|
-
checkVisibleMsg: string;
|
|
37
|
-
/** 当标注标签没有展示时,可以通过这个字段查看原因 */
|
|
38
|
-
checkTagVisibleMsg: string;
|
|
39
|
-
};
|
|
40
|
-
/** 模型容器 */
|
|
41
|
-
modelGroup: AreaMakerModelGroup;
|
|
42
|
-
/** 标注是否可见 */
|
|
43
|
-
visible: boolean;
|
|
44
|
-
/** 标注标签实例 */
|
|
45
|
-
tagApp: LabelItem | null;
|
|
46
|
-
/** 标注标签是否可见 */
|
|
47
|
-
tagVisible: boolean;
|
|
48
|
-
/** 标注标签的世界坐标 */
|
|
49
|
-
tagPosition: THREE.Vector3;
|
|
50
|
-
/** 标注标签的 NDC 坐标 */
|
|
51
|
-
tagNDCPosition: THREE.Vector3;
|
|
52
|
-
/** 标注标签的 transform */
|
|
53
|
-
tagTransform: {
|
|
54
|
-
left: number;
|
|
55
|
-
top: number;
|
|
56
|
-
};
|
|
57
|
-
/** 标注标签的显示层级 */
|
|
58
|
-
tagZIndex: number;
|
|
59
|
-
hooks: Subscribe<PluginType.AreaMakerItemEventMap>;
|
|
60
|
-
/** Plugin 实例 */
|
|
61
|
-
private plugin;
|
|
62
|
-
/** 标注透明度动画 */
|
|
63
|
-
private opacityAnime?;
|
|
64
|
-
constructor(plugin: Controller, data: PluginType.ServerAreaMakerItem);
|
|
65
|
-
/** 挂载标注 */
|
|
66
|
-
mount(): void;
|
|
67
|
-
/** 卸载标注 */
|
|
68
|
-
unmount(): void;
|
|
69
|
-
/** 更改标注透明度
|
|
70
|
-
* @param opacity 标注透明度,范围:0-1
|
|
71
|
-
*/
|
|
72
|
-
setOpacity(opacity: number): void;
|
|
73
|
-
/** 更改标注颜色
|
|
74
|
-
* @param color 标注颜色,支持 hex
|
|
75
|
-
* @example setColor('#FF0000')
|
|
76
|
-
*/
|
|
77
|
-
setColor(color: string): void;
|
|
78
|
-
/** 更改标注高度
|
|
79
|
-
* @param height 标注高度,单位:米
|
|
80
|
-
*/
|
|
81
|
-
setHeight(height: number): void;
|
|
82
|
-
/** 更改标注标签的显示层级
|
|
83
|
-
* @description 为什么需要这个方法
|
|
84
|
-
* 在相机朝向或位置发生变化时,各个标签所在的坐标与相机的远近关系发生了变化,所以标签的层级也会有变化。
|
|
85
|
-
* 比如:
|
|
86
|
-
* - 相机 -> 标签 A -> 标签 B: 标签 A 在标签 B 的前面
|
|
87
|
-
* - 标签 A <- 标签 B <- 相机: 标签 A 在标签 B 的后面
|
|
88
|
-
* 但是当前元素是无法感知到这种变化的,所以需要通过父元素调用这个方法来更新标签的层级。
|
|
89
|
-
*/
|
|
90
|
-
setTagZIndex(zIndex: number): void;
|
|
91
|
-
/** 显示标注 */
|
|
92
|
-
/** 隐藏标注 */
|
|
93
|
-
/** 透明度动画 */
|
|
94
|
-
private doOpacityAnime;
|
|
95
|
-
/** 插件 Config 变化时更新自身 depthTest */
|
|
96
|
-
private onPluginConfigChange;
|
|
97
|
-
/** 更新标注可见性 */
|
|
98
|
-
private updateVisible;
|
|
99
|
-
/** 检测标注是否可见 */
|
|
100
|
-
private checkVisible;
|
|
101
|
-
/** 更新标注标签 */
|
|
102
|
-
private updateTag;
|
|
103
|
-
/** 更新标注标签的 NDC Position */
|
|
104
|
-
private updateTagNDCPosition;
|
|
105
|
-
/** 更新标注标签的 transform */
|
|
106
|
-
private updateTagDomTransform;
|
|
107
|
-
/** 更新标注标签可见性 */
|
|
108
|
-
private updateTagVisible;
|
|
109
|
-
/** 检测标注标签是否可见 */
|
|
110
|
-
private checkTagVisible;
|
|
111
|
-
/** 相机位姿发生变化时,更新标签 */
|
|
112
|
-
private onFiveCameraUpdate;
|
|
113
|
-
}
|
|
114
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ROOM_LABEL_BG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAYAAACZ1L+0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKAC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WVN1C4c+cOv5zoxsQgKD7O/OgIT3OLgrrkLAMR9EuQYsXLlWO5ePNMJ25s7Fhv8EIraduDDOJI7kfh6FT98M6Ka/GrLbE0/131X79+/YVXX331+tNPP32b3nt1tGhXP/rooz/ruf9N/YzWQ/2e2c8Cfg7Wz8RC9WkeE8pj/rQltMRH/jXdsdreAEp04mg8u22zYhvZ9IPueLE4puMLfnjRKzKCbD4ZHv9oK/mwaPOlm/ukkbFwjKLj428j8t8DEEvN9xJoJuhsDI9lxOeHXr3zE8cGm7fpQMfNgR54ntXmYXzx1ltvbX64VUl4SH//66+/fl2/5ndLC/BHMV/Q6ypN06Bm3lgFaKMcEbj+bDHN88/curvewF4hjhNWasrwhy/0waIPjylyYjp49Ag++NhFhi7F+jeEFcc/H6w5TYbnxo2OoufXmNPcX+XWv4QLMo+taJkfeY4gvtRs/n8vzY/cssxB5CyKxi96/aB+/Y9+KfE/X3vttS8lI7e9/wfu514OAjYP0QAAAABJRU5ErkJggg==";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
export declare class Object3D<ChildeItem extends THREE.Object3D = THREE.Object3D> extends THREE.Object3D {
|
|
3
|
-
children: ChildeItem[];
|
|
4
|
-
/** 获取 raycaster 与当前物体的交点 */
|
|
5
|
-
getRaycastIntersects(raycaster: THREE.Raycaster): THREE.Intersection[];
|
|
6
|
-
/** 获取 raycaster 与当前物体的第一个交点 */
|
|
7
|
-
getRaycastIntersection(raycaster: THREE.Raycaster): THREE.Intersection;
|
|
8
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** @file three.js 中声明有问题,这里重载一下声明 */
|
|
2
|
-
import type { Geometry, BufferGeometry, Material } from 'three';
|
|
3
|
-
import { LineSegments as OriginLineSegments } from 'three';
|
|
4
|
-
declare class LineSegments<TGeometry extends Geometry | BufferGeometry = Geometry | BufferGeometry, TMaterial extends Material | Material[] = Material | Material[]> extends OriginLineSegments<TGeometry, TMaterial> {
|
|
5
|
-
geometry: TGeometry;
|
|
6
|
-
material: TMaterial;
|
|
7
|
-
constructor(geometry: TGeometry, material: TMaterial);
|
|
8
|
-
}
|
|
9
|
-
export { LineSegments };
|
|
@@ -1,94 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,336 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
};
|