@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
|
@@ -151,20 +151,25 @@ function lt(t, e, n, i) {
|
|
|
151
151
|
return t.addEventListener(e, n, i), () => t.removeEventListener(e, n, i);
|
|
152
152
|
}
|
|
153
153
|
function Zt(t) {
|
|
154
|
+
return function(e) {
|
|
155
|
+
return e.preventDefault(), t.call(this, e);
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
function te(t) {
|
|
154
159
|
return function(e) {
|
|
155
160
|
return e.stopPropagation(), t.call(this, e);
|
|
156
161
|
};
|
|
157
162
|
}
|
|
158
|
-
function
|
|
163
|
+
function ee(t, e, n) {
|
|
159
164
|
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
160
165
|
}
|
|
161
166
|
function At(t) {
|
|
162
167
|
return Array.from(t.childNodes);
|
|
163
168
|
}
|
|
164
|
-
function
|
|
169
|
+
function ne(t, e) {
|
|
165
170
|
e = "" + e, t.data !== e && (t.data = e);
|
|
166
171
|
}
|
|
167
|
-
function
|
|
172
|
+
function ie(t, e, n, i) {
|
|
168
173
|
n === null ? t.style.removeProperty(e) : t.style.setProperty(e, n, i ? "important" : "");
|
|
169
174
|
}
|
|
170
175
|
let W;
|
|
@@ -179,7 +184,7 @@ function Tt() {
|
|
|
179
184
|
}
|
|
180
185
|
return W;
|
|
181
186
|
}
|
|
182
|
-
function
|
|
187
|
+
function re(t, e) {
|
|
183
188
|
getComputedStyle(t).position === "static" && (t.style.position = "relative");
|
|
184
189
|
const i = K("iframe");
|
|
185
190
|
i.setAttribute("style", "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"), i.setAttribute("aria-hidden", "true"), i.tabIndex = -1;
|
|
@@ -193,14 +198,14 @@ function ie(t, e) {
|
|
|
193
198
|
(r || s && i.contentWindow) && s(), J(i);
|
|
194
199
|
};
|
|
195
200
|
}
|
|
196
|
-
function
|
|
201
|
+
function se(t, e, n) {
|
|
197
202
|
t.classList[n ? "add" : "remove"](e);
|
|
198
203
|
}
|
|
199
204
|
function yt(t, e, { bubbles: n = !1, cancelable: i = !1 } = {}) {
|
|
200
205
|
const r = document.createEvent("CustomEvent");
|
|
201
206
|
return r.initCustomEvent(t, n, i, e), r;
|
|
202
207
|
}
|
|
203
|
-
class
|
|
208
|
+
class oe {
|
|
204
209
|
constructor(e = !1) {
|
|
205
210
|
this.is_svg = !1, this.is_svg = e, this.e = this.n = null;
|
|
206
211
|
}
|
|
@@ -266,28 +271,28 @@ function jt() {
|
|
|
266
271
|
}), H.clear());
|
|
267
272
|
});
|
|
268
273
|
}
|
|
269
|
-
let
|
|
274
|
+
let O;
|
|
270
275
|
function v(t) {
|
|
271
|
-
|
|
276
|
+
O = t;
|
|
272
277
|
}
|
|
273
278
|
function A() {
|
|
274
|
-
if (!
|
|
279
|
+
if (!O)
|
|
275
280
|
throw new Error("Function called outside component initialization");
|
|
276
|
-
return
|
|
281
|
+
return O;
|
|
277
282
|
}
|
|
278
|
-
function
|
|
283
|
+
function ce(t) {
|
|
279
284
|
A().$$.before_update.push(t);
|
|
280
285
|
}
|
|
281
|
-
function
|
|
286
|
+
function ue(t) {
|
|
282
287
|
A().$$.on_mount.push(t);
|
|
283
288
|
}
|
|
284
|
-
function
|
|
289
|
+
function le(t) {
|
|
285
290
|
A().$$.after_update.push(t);
|
|
286
291
|
}
|
|
287
|
-
function
|
|
292
|
+
function fe(t) {
|
|
288
293
|
A().$$.on_destroy.push(t);
|
|
289
294
|
}
|
|
290
|
-
function
|
|
295
|
+
function ae() {
|
|
291
296
|
const t = A();
|
|
292
297
|
return (e, n, { cancelable: i = !1 } = {}) => {
|
|
293
298
|
const r = t.$$.callbacks[e];
|
|
@@ -300,13 +305,13 @@ function fe() {
|
|
|
300
305
|
return !0;
|
|
301
306
|
};
|
|
302
307
|
}
|
|
303
|
-
function
|
|
308
|
+
function de(t, e) {
|
|
304
309
|
return A().$$.context.set(t, e), e;
|
|
305
310
|
}
|
|
306
|
-
function
|
|
311
|
+
function he(t) {
|
|
307
312
|
return A().$$.context.get(t);
|
|
308
313
|
}
|
|
309
|
-
function
|
|
314
|
+
function _e(t, e) {
|
|
310
315
|
const n = t.$$.callbacks[e.type];
|
|
311
316
|
n && n.slice().forEach((i) => i.call(this, e));
|
|
312
317
|
}
|
|
@@ -317,13 +322,13 @@ let Y = !1;
|
|
|
317
322
|
function wt() {
|
|
318
323
|
Y || (Y = !0, bt.then(rt));
|
|
319
324
|
}
|
|
320
|
-
function
|
|
325
|
+
function pe() {
|
|
321
326
|
return wt(), bt;
|
|
322
327
|
}
|
|
323
328
|
function z(t) {
|
|
324
329
|
S.push(t);
|
|
325
330
|
}
|
|
326
|
-
function
|
|
331
|
+
function me(t) {
|
|
327
332
|
X.push(t);
|
|
328
333
|
}
|
|
329
334
|
const V = /* @__PURE__ */ new Set();
|
|
@@ -331,7 +336,7 @@ let C = 0;
|
|
|
331
336
|
function rt() {
|
|
332
337
|
if (C !== 0)
|
|
333
338
|
return;
|
|
334
|
-
const t =
|
|
339
|
+
const t = O;
|
|
335
340
|
do {
|
|
336
341
|
try {
|
|
337
342
|
for (; C < P.length; ) {
|
|
@@ -364,11 +369,11 @@ function zt(t) {
|
|
|
364
369
|
const e = [], n = [];
|
|
365
370
|
S.forEach((i) => t.indexOf(i) === -1 ? e.push(i) : n.push(i)), n.forEach((i) => i()), S = e;
|
|
366
371
|
}
|
|
367
|
-
let
|
|
372
|
+
let D;
|
|
368
373
|
function st() {
|
|
369
|
-
return
|
|
370
|
-
|
|
371
|
-
})),
|
|
374
|
+
return D || (D = Promise.resolve(), D.then(() => {
|
|
375
|
+
D = null;
|
|
376
|
+
})), D;
|
|
372
377
|
}
|
|
373
378
|
function T(t, e, n) {
|
|
374
379
|
t.dispatchEvent(yt(`${e ? "intro" : "outro"}${n}`));
|
|
@@ -383,7 +388,7 @@ function Lt() {
|
|
|
383
388
|
// parent group
|
|
384
389
|
};
|
|
385
390
|
}
|
|
386
|
-
function
|
|
391
|
+
function Dt() {
|
|
387
392
|
x.r || M(x.c), x = x.p;
|
|
388
393
|
}
|
|
389
394
|
function ot(t, e) {
|
|
@@ -400,7 +405,7 @@ function $t(t, e, n, i) {
|
|
|
400
405
|
i && i();
|
|
401
406
|
}
|
|
402
407
|
const ct = { duration: 0 };
|
|
403
|
-
function
|
|
408
|
+
function ge(t, e, n) {
|
|
404
409
|
const i = { direction: "in" };
|
|
405
410
|
let r = e(t, n, i), s = !1, c, o, l = 0;
|
|
406
411
|
function u() {
|
|
@@ -435,7 +440,7 @@ function me(t, e, n) {
|
|
|
435
440
|
}
|
|
436
441
|
};
|
|
437
442
|
}
|
|
438
|
-
function
|
|
443
|
+
function ye(t, e, n) {
|
|
439
444
|
const i = { direction: "out" };
|
|
440
445
|
let r = e(t, n, i), s = !0, c;
|
|
441
446
|
const o = x;
|
|
@@ -464,7 +469,7 @@ function ge(t, e, n) {
|
|
|
464
469
|
}
|
|
465
470
|
};
|
|
466
471
|
}
|
|
467
|
-
function
|
|
472
|
+
function be(t, e, n, i) {
|
|
468
473
|
const r = { direction: "both" };
|
|
469
474
|
let s = e(t, n, r), c = i ? 0 : 1, o = null, l = null, u = null;
|
|
470
475
|
function _() {
|
|
@@ -510,7 +515,7 @@ function ye(t, e, n, i) {
|
|
|
510
515
|
}
|
|
511
516
|
};
|
|
512
517
|
}
|
|
513
|
-
function
|
|
518
|
+
function we(t, e) {
|
|
514
519
|
const n = e.token = {};
|
|
515
520
|
function i(r, s, c, o) {
|
|
516
521
|
if (e.token !== n)
|
|
@@ -523,7 +528,7 @@ function be(t, e) {
|
|
|
523
528
|
e.block && (e.blocks ? e.blocks.forEach((a, d) => {
|
|
524
529
|
d !== s && a && (Lt(), $t(a, 1, 1, () => {
|
|
525
530
|
e.blocks[d] === a && (e.blocks[d] = null);
|
|
526
|
-
}),
|
|
531
|
+
}), Dt());
|
|
527
532
|
}) : e.block.d(1), u.c(), ot(u, 1), u.m(e.mount(), e.anchor), _ = !0), e.block = u, e.blocks && (e.blocks[s] = u), _ && rt();
|
|
528
533
|
}
|
|
529
534
|
if (xt(t)) {
|
|
@@ -541,20 +546,20 @@ function be(t, e) {
|
|
|
541
546
|
e.resolved = t;
|
|
542
547
|
}
|
|
543
548
|
}
|
|
544
|
-
function
|
|
549
|
+
function $e(t, e, n) {
|
|
545
550
|
const i = e.slice(), { resolved: r } = t;
|
|
546
551
|
t.current === t.then && (i[t.value] = r), t.current === t.catch && (i[t.error] = r), t.block.p(i, n);
|
|
547
552
|
}
|
|
548
|
-
const
|
|
549
|
-
function
|
|
553
|
+
const ke = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : global;
|
|
554
|
+
function xe(t, e) {
|
|
550
555
|
t.d(1), e.delete(t.key);
|
|
551
556
|
}
|
|
552
|
-
function
|
|
557
|
+
function Ee(t, e) {
|
|
553
558
|
$t(t, 1, 1, () => {
|
|
554
559
|
e.delete(t.key);
|
|
555
560
|
});
|
|
556
561
|
}
|
|
557
|
-
function
|
|
562
|
+
function ve(t, e, n, i, r, s, c, o, l, u, _, a) {
|
|
558
563
|
let d = t.length, f = s.length, h = d;
|
|
559
564
|
const m = {};
|
|
560
565
|
for (; h--; )
|
|
@@ -581,7 +586,7 @@ function Ee(t, e, n, i, r, s, c, o, l, u, _, a) {
|
|
|
581
586
|
Q(p[f - 1]);
|
|
582
587
|
return M(b), p;
|
|
583
588
|
}
|
|
584
|
-
function
|
|
589
|
+
function Ne(t, e) {
|
|
585
590
|
const n = {}, i = {}, r = { $$scope: 1 };
|
|
586
591
|
let s = t.length;
|
|
587
592
|
for (; s--; ) {
|
|
@@ -600,17 +605,17 @@ function ve(t, e) {
|
|
|
600
605
|
c in n || (n[c] = void 0);
|
|
601
606
|
return n;
|
|
602
607
|
}
|
|
603
|
-
function
|
|
608
|
+
function Me(t) {
|
|
604
609
|
return typeof t == "object" && t !== null ? t : {};
|
|
605
610
|
}
|
|
606
|
-
function
|
|
611
|
+
function Ae(t, e, n) {
|
|
607
612
|
const i = t.$$.props[e];
|
|
608
613
|
i !== void 0 && (t.$$.bound[i] = n, n(t.$$.ctx[i]));
|
|
609
614
|
}
|
|
610
|
-
function
|
|
615
|
+
function Te(t) {
|
|
611
616
|
t && t.c();
|
|
612
617
|
}
|
|
613
|
-
function
|
|
618
|
+
function Ot(t, e, n, i) {
|
|
614
619
|
const { fragment: r, after_update: s } = t.$$;
|
|
615
620
|
r && r.m(e, n), i || z(() => {
|
|
616
621
|
const c = t.$$.on_mount.map(at).filter(L);
|
|
@@ -624,8 +629,8 @@ function Rt(t, e) {
|
|
|
624
629
|
function qt(t, e) {
|
|
625
630
|
t.$$.dirty[0] === -1 && (P.push(t), wt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
626
631
|
}
|
|
627
|
-
function
|
|
628
|
-
const l =
|
|
632
|
+
function Ce(t, e, n, i, r, s, c, o = [-1]) {
|
|
633
|
+
const l = O;
|
|
629
634
|
v(t);
|
|
630
635
|
const u = t.$$ = {
|
|
631
636
|
fragment: null,
|
|
@@ -659,11 +664,11 @@ function Te(t, e, n, i, r, s, c, o = [-1]) {
|
|
|
659
664
|
u.fragment && u.fragment.l(a), a.forEach(J);
|
|
660
665
|
} else
|
|
661
666
|
u.fragment && u.fragment.c();
|
|
662
|
-
e.intro && ot(t.$$.fragment),
|
|
667
|
+
e.intro && ot(t.$$.fragment), Ot(t, e.target, e.anchor, e.customElement), rt();
|
|
663
668
|
}
|
|
664
669
|
v(l);
|
|
665
670
|
}
|
|
666
|
-
class
|
|
671
|
+
class Pe {
|
|
667
672
|
$destroy() {
|
|
668
673
|
Rt(this, 1), this.$destroy = N;
|
|
669
674
|
}
|
|
@@ -681,69 +686,70 @@ class Ce {
|
|
|
681
686
|
}
|
|
682
687
|
}
|
|
683
688
|
export {
|
|
684
|
-
|
|
685
|
-
|
|
689
|
+
oe as HtmlTag,
|
|
690
|
+
Pe as SvelteComponent,
|
|
686
691
|
Jt as action_destroyer,
|
|
687
|
-
|
|
692
|
+
me as add_flush_callback,
|
|
688
693
|
z as add_render_callback,
|
|
689
|
-
|
|
690
|
-
|
|
694
|
+
re as add_resize_listener,
|
|
695
|
+
le as afterUpdate,
|
|
691
696
|
pt as append,
|
|
692
697
|
Qt as append_styles,
|
|
693
698
|
kt as assign,
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
699
|
+
ee as attr,
|
|
700
|
+
ce as beforeUpdate,
|
|
701
|
+
Ae as bind,
|
|
697
702
|
ft as binding_callbacks,
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
703
|
+
_e as bubble,
|
|
704
|
+
Dt as check_outros,
|
|
705
|
+
ae as createEventDispatcher,
|
|
706
|
+
be as create_bidirectional_transition,
|
|
707
|
+
Te as create_component,
|
|
708
|
+
ge as create_in_transition,
|
|
709
|
+
ye as create_out_transition,
|
|
705
710
|
Bt as create_slot,
|
|
706
|
-
|
|
711
|
+
xe as destroy_block,
|
|
707
712
|
Rt as destroy_component,
|
|
708
713
|
Vt as destroy_each,
|
|
709
714
|
J as detach,
|
|
710
715
|
K as element,
|
|
711
716
|
Yt as empty,
|
|
712
|
-
|
|
717
|
+
he as getContext,
|
|
713
718
|
Ut as get_all_dirty_from_scope,
|
|
714
719
|
Ht as get_slot_changes,
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
720
|
+
Me as get_spread_object,
|
|
721
|
+
Ne as get_spread_update,
|
|
722
|
+
ke as globals,
|
|
718
723
|
Lt as group_outros,
|
|
719
|
-
|
|
724
|
+
we as handle_promise,
|
|
720
725
|
Z as identity,
|
|
721
|
-
|
|
726
|
+
Ce as init,
|
|
722
727
|
Nt as insert,
|
|
723
728
|
L as is_function,
|
|
724
729
|
lt as listen,
|
|
725
|
-
|
|
730
|
+
Ot as mount_component,
|
|
726
731
|
N as noop,
|
|
727
732
|
Gt as null_to_empty,
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
733
|
+
fe as onDestroy,
|
|
734
|
+
ue as onMount,
|
|
735
|
+
Ee as outro_and_destroy_block,
|
|
736
|
+
Zt as prevent_default,
|
|
731
737
|
M as run_all,
|
|
732
738
|
Ft as safe_not_equal,
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
739
|
+
de as setContext,
|
|
740
|
+
ne as set_data,
|
|
741
|
+
ie as set_style,
|
|
736
742
|
Xt as space,
|
|
737
743
|
Kt as split_css_unit,
|
|
738
744
|
Wt as src_url_equal,
|
|
739
|
-
|
|
745
|
+
te as stop_propagation,
|
|
740
746
|
Mt as svg_element,
|
|
741
747
|
gt as text,
|
|
742
|
-
|
|
743
|
-
|
|
748
|
+
pe as tick,
|
|
749
|
+
se as toggle_class,
|
|
744
750
|
ot as transition_in,
|
|
745
751
|
$t as transition_out,
|
|
746
|
-
|
|
747
|
-
|
|
752
|
+
$e as update_await_block_branch,
|
|
753
|
+
ve as update_keyed_each,
|
|
748
754
|
It as update_slot_base
|
|
749
755
|
};
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.
|
|
10
|
+
"version": "2.28.0-dev.1",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"build:dist": "NODE_ENV=production BUILD_MODULE=dist vite build -m production",
|
|
22
22
|
"build:components": "NODE_ENV=production BUILD_MODULE=components vite build -m production",
|
|
23
23
|
"docs": "typedoc --options ./typedoc.json",
|
|
24
|
-
"prepublishOnly": "run-p build",
|
|
24
|
+
"prepublishOnly": "run-p build docs",
|
|
25
25
|
"postpublish": "cnpm sync @realsee/dnalogel"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
@@ -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,148 +0,0 @@
|
|
|
1
|
-
import type * as BasePlugin from '../base/BasePluginWithData';
|
|
2
|
-
import type * as THREE from 'three';
|
|
3
|
-
import type { AreaMakerItem } from './utils/Item';
|
|
4
|
-
export type { Controller as AreaMakerController } from './Controller';
|
|
5
|
-
export type { AreaMakerItem };
|
|
6
|
-
/** 插件初始化参数 */
|
|
7
|
-
export interface Params {
|
|
8
|
-
config?: Partial<Config>;
|
|
9
|
-
initialState?: Partial<State>;
|
|
10
|
-
}
|
|
11
|
-
/** 插件状态 */
|
|
12
|
-
export interface State extends BasePlugin.State {
|
|
13
|
-
/** 插件是否启用 */
|
|
14
|
-
enabled: boolean;
|
|
15
|
-
/** 插件整体是否可见 */
|
|
16
|
-
visible: boolean;
|
|
17
|
-
}
|
|
18
|
-
/** 插件配置 */
|
|
19
|
-
export interface Config {
|
|
20
|
-
/** 标注模型是否开启深度检测,此配置仅对模型生效,不会影响标签的展示效果。
|
|
21
|
-
* @default true
|
|
22
|
-
* @description 关闭后,标注模型不会被其他模型遮挡
|
|
23
|
-
*/
|
|
24
|
-
modelDepthTest: boolean;
|
|
25
|
-
}
|
|
26
|
-
/** 插件事件 */
|
|
27
|
-
export interface EventMap extends BasePlugin.EventMap<State, ServerData> {
|
|
28
|
-
/** visible 从 false 到 true 的回调
|
|
29
|
-
* @param event.userAction 是否是用户操作
|
|
30
|
-
*/
|
|
31
|
-
show: (event: {
|
|
32
|
-
userAction: boolean;
|
|
33
|
-
}) => void;
|
|
34
|
-
/** visible 从 true 到 false 的回调
|
|
35
|
-
* @param event.userAction 是否是用户操作
|
|
36
|
-
*/
|
|
37
|
-
hide: (event: {
|
|
38
|
-
userAction: boolean;
|
|
39
|
-
}) => void;
|
|
40
|
-
/** enabled 从 false 到 true 的回调
|
|
41
|
-
* @param event.userAction 是否是用户操作
|
|
42
|
-
*/
|
|
43
|
-
enable: (event: {
|
|
44
|
-
userAction: boolean;
|
|
45
|
-
}) => void;
|
|
46
|
-
/** enabled 从 true 到 false 的回调
|
|
47
|
-
* @param event.userAction 是否是用户操作
|
|
48
|
-
*/
|
|
49
|
-
disable: (event: {
|
|
50
|
-
userAction: boolean;
|
|
51
|
-
}) => void;
|
|
52
|
-
/** config 变更的回调
|
|
53
|
-
* @param event.prevConfig 变更前的 config
|
|
54
|
-
* @param event.config 变更后的 config
|
|
55
|
-
* @param event.userAction 是否是用户操作
|
|
56
|
-
*/
|
|
57
|
-
configChange: (event: {
|
|
58
|
-
prevConfig: Config;
|
|
59
|
-
config: Config;
|
|
60
|
-
userAction: boolean;
|
|
61
|
-
}) => void;
|
|
62
|
-
/** 插件内容点击的回调
|
|
63
|
-
* @param event.target 点击的标注实例
|
|
64
|
-
* @param event.intersectObjects 射线与标注模型的交点集合
|
|
65
|
-
* @param event.wantsFiveTapGestureParams Five wantsFiveTapGesture 的回调参数
|
|
66
|
-
* @returns <boolean> | <void> 返回 false 会阻止 Five wantsFiveTapGesture 的回调,其余 return 值会被忽略
|
|
67
|
-
*/
|
|
68
|
-
wantsTap: (event: {
|
|
69
|
-
target: AreaMakerItem;
|
|
70
|
-
intersectObjects: THREE.Intersection[];
|
|
71
|
-
}) => boolean | void;
|
|
72
|
-
}
|
|
73
|
-
/** 标注实例事件 */
|
|
74
|
-
export type AreaMakerItemEventMap = {
|
|
75
|
-
/** 标注标签点击的回调
|
|
76
|
-
* @param event.target 点击的标注实例
|
|
77
|
-
* @param event.nativeEvent 点击事件的的原始 MouseEvent
|
|
78
|
-
*/
|
|
79
|
-
tagClick: (event: {
|
|
80
|
-
target: AreaMakerItem;
|
|
81
|
-
nativeEvent: MouseEvent;
|
|
82
|
-
}) => void;
|
|
83
|
-
};
|
|
84
|
-
/** 动画相关的配置 */
|
|
85
|
-
export interface AnimeOptions {
|
|
86
|
-
/** 动画时长,单位是毫秒 */
|
|
87
|
-
duration?: number;
|
|
88
|
-
}
|
|
89
|
-
export interface ShowHideOptions extends BasePlugin.BaseOptions {
|
|
90
|
-
userAction: boolean;
|
|
91
|
-
}
|
|
92
|
-
/** 第一版数据
|
|
93
|
-
* @description 为什么会存在两种数据?
|
|
94
|
-
* 目前数据是线上已经存在的,这一版数据目前存在以下问题:
|
|
95
|
-
* 1. 无法描述弧线。
|
|
96
|
-
* 2. 数据结构不够清晰,数据存在一定产品逻辑上的抽象,比如说标注的高度,是由楼层高度和人工设置的高度修正组成的。
|
|
97
|
-
*/
|
|
98
|
-
export interface ServerDataV1 {
|
|
99
|
-
list: ServerAreaMakerItemV1[];
|
|
100
|
-
}
|
|
101
|
-
/** 第二版数据 */
|
|
102
|
-
export interface ServerDataV2 {
|
|
103
|
-
list: ServerAreaMakerItem[];
|
|
104
|
-
}
|
|
105
|
-
/** load 的数据 */
|
|
106
|
-
export type ServerData = ServerDataV1 | ServerDataV2;
|
|
107
|
-
/** 插件使用的数据 */
|
|
108
|
-
export type PluginData = ServerDataV2;
|
|
109
|
-
export interface ServerAreaMakerItem {
|
|
110
|
-
id: number | string;
|
|
111
|
-
/** 标注名称 */
|
|
112
|
-
name?: string;
|
|
113
|
-
/** 标注所在楼层 */
|
|
114
|
-
floor_index: number;
|
|
115
|
-
/** 标注物体 */
|
|
116
|
-
object_data: {
|
|
117
|
-
/** 标注底面形状,THREE.Shape().toJSON() 的结果 */
|
|
118
|
-
shape: Record<string, any>;
|
|
119
|
-
/** 标注底面 y 坐标 */
|
|
120
|
-
bottom_y: number;
|
|
121
|
-
/** 标注高度,指标注顶部距离底部的距离。只能为正值,单位是米 */
|
|
122
|
-
height: number;
|
|
123
|
-
/** 标注颜色
|
|
124
|
-
* @example "#ffffff"
|
|
125
|
-
*/
|
|
126
|
-
color?: string;
|
|
127
|
-
/** 标注透明度 */
|
|
128
|
-
opacity?: number;
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
export interface ServerAreaMakerItemV1 {
|
|
132
|
-
id: number;
|
|
133
|
-
name: string;
|
|
134
|
-
object_data: {
|
|
135
|
-
/** 绘制平面的三维世界坐标点集合 */
|
|
136
|
-
points: number[][];
|
|
137
|
-
/** 楼层索引 */
|
|
138
|
-
floorIndex: number;
|
|
139
|
-
/** 楼层高度 */
|
|
140
|
-
height: number;
|
|
141
|
-
/** 人工设置的y坐标方向偏移 */
|
|
142
|
-
fixedY: number;
|
|
143
|
-
/** 人工设置的高度修正 */
|
|
144
|
-
fixedHeight: number;
|
|
145
|
-
color: string;
|
|
146
|
-
opacity?: number;
|
|
147
|
-
};
|
|
148
|
-
}
|