@realsee/dnalogel 2.28.0-dev.1 → 2.28.1-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaMakerPlugin/Controller.d.ts +94 -0
- package/dist/AreaMakerPlugin/index.d.ts +4 -0
- package/dist/AreaMakerPlugin/typing.d.ts +148 -0
- package/dist/AreaMakerPlugin/utils/Item.d.ts +115 -0
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -4
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +2 -0
- package/dist/base/BasePluginWithData.d.ts +1 -1
- package/dist/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
- package/dist/floorplan/index.d.ts +0 -1
- package/dist/floorplan/utils/correctFiveState.d.ts +2 -0
- package/dist/index.cjs.js +67 -67
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6901 -7187
- package/dist/index.umd.js +60 -60
- package/dist/shared-utils/index.d.ts +1 -0
- package/dist/shared-utils/math/planimetry.d.ts +1 -1
- package/dist/shared-utils/three/core/Object3D.d.ts +8 -0
- package/dist/shared-utils/three/index.d.ts +2 -0
- package/dist/shared-utils/three/loadVideoTexture.d.ts +1 -1
- package/dist/shared-utils/three/objects/LineSegments.d.ts +9 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginPluginType.AreaMakerController.html +711 -0
- package/docs/classes/AreaMakerPluginPluginType.AreaMakerItem.html +671 -0
- package/docs/classes/CSS3DRender.html +33 -34
- package/docs/classes/CruisePluginController.html +29 -30
- package/docs/classes/GuideLineItem.GuideLineItem.html +22 -23
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +37 -38
- package/docs/classes/Magnifier.html +22 -23
- package/docs/classes/ModelRoomLabelController.html +13 -14
- package/docs/classes/Object3DHelperController.html +27 -28
- package/docs/classes/PaintBrush.html +17 -18
- package/docs/classes/PanoMeasurePluginLine.html +29 -30
- package/docs/classes/PanoMeasurePluginModel.html +29 -30
- package/docs/classes/PanoMeasurePluginPoint.html +13 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +29 -30
- package/docs/classes/PanoTagPluginController.html +52 -53
- package/docs/classes/Util.BetterTween.html +13 -11
- package/docs/classes/Util.Interval.html +16 -14
- package/docs/classes/Util.LineSegments.html +379 -0
- package/docs/classes/Util.Magnifier.html +24 -22
- package/docs/classes/Util.Object3D.html +401 -0
- package/docs/classes/Util.PointDomHelper.html +15 -13
- package/docs/classes/Util.PointHelper.html +15 -13
- package/docs/classes/Util.PointSelectorHelper.html +20 -18
- package/docs/classes/Util.Rectangle.html +17 -15
- package/docs/enums/CameraMovementEffect.html +9 -10
- package/docs/enums/ContentType.html +22 -23
- package/docs/enums/DIRECTION.html +11 -12
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -12
- package/docs/enums/DimensionType.html +9 -10
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -11
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -12
- package/docs/enums/PaintBrushTypeEnum.html +10 -11
- package/docs/enums/PointType.html +9 -10
- package/docs/enums/Rotation.html +10 -11
- package/docs/functions/{FloorplanRoomsPlugin.html → AreaMakerPluginPlugin.html} +12 -13
- package/docs/functions/CSS3DRenderPlugin.html +6 -7
- package/docs/functions/CameraMovementPlugin.html +6 -7
- package/docs/functions/CruisePlugin.html +7 -8
- package/docs/functions/GuideLinePlugin.html +7 -8
- package/docs/functions/ItemLabelPlugin.html +6 -7
- package/docs/functions/MapviewFloorplanPlugin.html +6 -7
- package/docs/functions/ModelChassisCompassPlugin.html +6 -7
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -7
- package/docs/functions/ModelFloorplanPlugin.html +6 -7
- package/docs/functions/ModelItemLabelPlugin.html +6 -7
- package/docs/functions/ModelRoomLabelPlugin.html +6 -7
- package/docs/functions/ModelTVVideoPlugin.html +6 -7
- package/docs/functions/ModelViewPlugin.html +6 -7
- package/docs/functions/Object3DHelperPlugin.html +6 -7
- package/docs/functions/PanoCompassPlugin.html +6 -7
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -7
- package/docs/functions/PanoDoorLabelPlugin.html +6 -7
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -7
- package/docs/functions/PanoMeasurePlugin.html +6 -7
- package/docs/functions/PanoRulerPlugin.html +6 -7
- package/docs/functions/PanoRulerProPlugin.html +6 -7
- package/docs/functions/PanoSpatialTagPlugin.html +6 -7
- package/docs/functions/PanoTagPlugin.html +6 -7
- package/docs/functions/PanoVideoPlugin.html +6 -7
- package/docs/functions/PipelinePlugin.html +6 -7
- package/docs/functions/TopviewFloorplanPlugin.html +6 -7
- package/docs/functions/Util.absoluteUrl.html +9 -7
- package/docs/functions/Util.equal.html +333 -0
- package/docs/functions/Util.getCoordsFromClient.html +9 -7
- package/docs/functions/Util.getCoordsFromElement.html +9 -7
- package/docs/functions/Util.getFrameTime.html +9 -7
- package/docs/functions/Util.getIntersectFromRelativePosition.html +9 -7
- package/docs/functions/Util.getRaycasterFromFivePointer.html +9 -7
- package/docs/functions/Util.isAbsoluteURL.html +9 -7
- package/docs/functions/Util.isModelLike.html +9 -7
- package/docs/functions/Util.isNil.html +9 -7
- package/docs/functions/Util.isPanoramaLike.html +9 -7
- package/docs/functions/Util.nextFrame.html +9 -7
- package/docs/functions/Util.notNil.html +9 -7
- package/docs/functions/Util.requestAnimationFrameInterval.html +9 -7
- package/docs/functions/Util.tweenProgress.html +9 -7
- package/docs/functions/Util.uuid.html +9 -7
- package/docs/functions/pluginFlag.html +7 -8
- package/docs/index.html +7 -8
- package/docs/interfaces/AddTagConfig.html +8 -9
- package/docs/interfaces/AreaMakerPluginPluginType.AnimeOptions.html +325 -0
- package/docs/interfaces/AreaMakerPluginPluginType.Config.html +330 -0
- package/docs/interfaces/AreaMakerPluginPluginType.EventMap.html +616 -0
- package/docs/interfaces/AreaMakerPluginPluginType.Params.html +329 -0
- package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItem.html +379 -0
- package/docs/interfaces/AreaMakerPluginPluginType.ServerAreaMakerItemV1.html +364 -0
- package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV1.html +329 -0
- package/docs/interfaces/AreaMakerPluginPluginType.ServerDataV2.html +322 -0
- package/docs/interfaces/AreaMakerPluginPluginType.ShowHideOptions.html +321 -0
- package/docs/interfaces/AreaMakerPluginPluginType.State.html +350 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -14
- package/docs/interfaces/CSS3DRenderPluginState.html +10 -11
- package/docs/interfaces/CameraMovementPluginExportType.html +9 -10
- package/docs/interfaces/CruisePluginTypes.Config.html +10 -11
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +14 -15
- package/docs/interfaces/CruisePluginTypes.EventMap.html +22 -23
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +14 -15
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +16 -17
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +16 -17
- package/docs/interfaces/CruisePluginTypes.PluginData.html +11 -12
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +8 -9
- package/docs/interfaces/CruisePluginTypes.PluginState.html +13 -14
- package/docs/interfaces/EventMap.html +17 -18
- package/docs/interfaces/FloorplanBounding.html +10 -11
- package/docs/interfaces/FloorplanData.html +12 -13
- package/docs/interfaces/FloorplanEntrance.html +13 -14
- package/docs/interfaces/FloorplanExtraObject.html +12 -13
- package/docs/interfaces/FloorplanExtraObject3D.html +10 -11
- package/docs/interfaces/FloorplanFloorData.html +11 -12
- package/docs/interfaces/FloorplanImagePosition.html +9 -10
- package/docs/interfaces/FloorplanObserver.html +11 -12
- package/docs/interfaces/FloorplanOutlineItem.html +11 -12
- package/docs/interfaces/FloorplanPosition.html +9 -10
- package/docs/interfaces/FloorplanRoomItem.html +15 -16
- package/docs/interfaces/FloorplanRoomLabelItem.html +9 -10
- package/docs/interfaces/FloorplanServerBounding.html +10 -11
- package/docs/interfaces/FloorplanServerComputedData.html +12 -13
- package/docs/interfaces/FloorplanServerData.html +9 -10
- package/docs/interfaces/FloorplanServerDoorItem.html +12 -13
- package/docs/interfaces/FloorplanServerDoorPosition.html +10 -11
- package/docs/interfaces/FloorplanServerEntrance.html +13 -14
- package/docs/interfaces/FloorplanServerFloorData.html +11 -12
- package/docs/interfaces/FloorplanServerImagePosition.html +9 -10
- package/docs/interfaces/FloorplanServerObserver.html +11 -12
- package/docs/interfaces/FloorplanServerOutlineItem.html +11 -12
- package/docs/interfaces/FloorplanServerPosition.html +9 -10
- package/docs/interfaces/FloorplanServerRoomItem.html +16 -17
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -10
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -11
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +12 -13
- package/docs/interfaces/GuideLinePluginType.EventMap.html +15 -16
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +10 -11
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +8 -9
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +15 -16
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +10 -11
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +20 -21
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +9 -10
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +20 -21
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +7 -8
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +8 -9
- package/docs/interfaces/GuideLinePluginType.PluginState.html +10 -11
- package/docs/interfaces/GuideLinePluginType.Route.html +13 -14
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +11 -12
- package/docs/interfaces/HelperOffset.html +10 -11
- package/docs/interfaces/ImagePlaneGroup.html +8 -9
- package/docs/interfaces/ItemLabelPluginData.html +8 -9
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -14
- package/docs/interfaces/ItemLabelPluginParametersType.html +11 -12
- package/docs/interfaces/MinMax.html +9 -10
- package/docs/interfaces/ModelChassisCompassPluginData.html +9 -10
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -11
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -10
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -11
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -11
- package/docs/interfaces/ModelItemLabelPluginData.html +8 -9
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -14
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -10
- package/docs/interfaces/ModelRoomLabelPluginData.html +8 -9
- package/docs/interfaces/ModelTVVideoPluginData.html +11 -12
- package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -11
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -9
- package/docs/interfaces/ModelViewPluginExportType.html +13 -14
- package/docs/interfaces/Object3DHelperState.html +10 -11
- package/docs/interfaces/ObjectHelperControllers.html +11 -12
- package/docs/interfaces/PaintBrushAction.html +14 -15
- package/docs/interfaces/PaintBrushConfigs.html +14 -15
- package/docs/interfaces/PaintBrushState.html +12 -13
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -13
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -8
- package/docs/interfaces/PanoMeasureParameterType.html +18 -19
- package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -11
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -10
- package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -10
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +12 -13
- package/docs/interfaces/PanoRulerPluginOptions.html +9 -10
- package/docs/interfaces/PanoRulerPluginParameterType.html +10 -11
- package/docs/interfaces/PanoRulerProPluginExportType.html +11 -12
- package/docs/interfaces/PanoRulerProPluginOptions.html +9 -10
- package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -10
- package/docs/interfaces/PanoRulerProPluginState.html +10 -11
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -8
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -8
- package/docs/interfaces/PanoSpatialTagPluginData.html +13 -14
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -13
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -16
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -13
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -16
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -14
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -13
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -9
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -11
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -9
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -12
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -9
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -11
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -13
- package/docs/interfaces/Point.html +10 -11
- package/docs/interfaces/Room.html +11 -12
- package/docs/interfaces/RoomInfo.html +9 -10
- package/docs/interfaces/RoomLabel.html +16 -17
- package/docs/interfaces/RoomRules.html +7 -8
- package/docs/interfaces/Rooms.html +7 -8
- package/docs/interfaces/Scissor.html +11 -12
- package/docs/interfaces/State.html +10 -11
- package/docs/interfaces/TagCacheInterface.html +14 -15
- package/docs/interfaces/TagConfig.html +17 -18
- package/docs/interfaces/TagGLTFObjectGroup.html +8 -9
- package/docs/interfaces/TagIconUrl.html +14 -15
- package/docs/interfaces/TagObjectGroup.html +8 -9
- package/docs/interfaces/TagStyle.html +8 -9
- package/docs/interfaces/Tags.html +11 -12
- package/docs/interfaces/TemporaryState.html +8 -9
- package/docs/interfaces/Util.MagnifierParameter.html +15 -13
- package/docs/interfaces/Util.MouseGroupParameter.html +12 -10
- package/docs/interfaces/Util.PointIntersection.html +12 -10
- package/docs/modules/AreaMakerPluginPluginType.html +319 -0
- package/docs/modules/CruisePluginTypes.html +7 -8
- package/docs/modules/GuideLineItem.html +7 -8
- package/docs/modules/GuideLineModeItem.html +7 -8
- package/docs/modules/GuideLinePluginType.html +7 -8
- package/docs/modules/PanoVideoPluginType.html +7 -8
- package/docs/modules/Util.html +12 -7
- package/docs/modules.html +10 -12
- package/docs/types/AreaMakerPluginPluginType.AreaMakerItemEventMap.html +327 -0
- package/docs/types/{FloorplanRoomsPluginReturnType.html → AreaMakerPluginPluginType.PluginData.html} +35 -14
- package/docs/types/{FloorplanRoomsPluginParameterType.html → AreaMakerPluginPluginType.ServerData.html} +35 -14
- package/docs/types/ArrayPosition.html +7 -8
- package/docs/types/AudioAppearance.html +7 -8
- package/docs/types/AudioTagTypeConfigKey.html +7 -8
- package/docs/types/CSS3DRenderExportType.html +7 -8
- package/docs/types/CSS3DRenderPluginExportType.html +7 -8
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -8
- package/docs/types/ClassFunctionParameters.html +7 -8
- package/docs/types/Color.html +7 -8
- package/docs/types/ContentTypeConfigKey.html +7 -8
- package/docs/types/ContentTypeConfigKeySplit.html +7 -8
- package/docs/types/ContentTypeMap.html +7 -8
- package/docs/types/Create3DDomContainerReturnType.html +7 -8
- package/docs/types/Create3DElementReturnType.html +7 -8
- package/docs/types/CruisePluginExportType.html +7 -8
- package/docs/types/CruisePluginTypes.CruiseData.html +7 -8
- package/docs/types/CruisePluginTypes.MoveEffect.html +7 -8
- package/docs/types/DeprecatedMediaPlaneProperty.html +7 -8
- package/docs/types/DeprecatedTagProperty.html +7 -8
- package/docs/types/Direction-1.html +7 -8
- package/docs/types/Direction4.html +7 -8
- package/docs/types/ElementRenderer.html +7 -8
- package/docs/types/FloorplanRuleLabels.html +7 -8
- package/docs/types/FloorplanServerRuleLabels.html +7 -8
- package/docs/types/GuideLinePluginExportType.html +7 -8
- package/docs/types/GuideLinePluginType.GuideLineItem.html +7 -8
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +7 -8
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +7 -8
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +7 -8
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +7 -8
- package/docs/types/GuideLinePluginType.PathItem.html +7 -8
- package/docs/types/GuideLinePluginType.PluginData.html +7 -8
- package/docs/types/HelperEventMap.html +7 -8
- package/docs/types/LoadTagConfig.html +7 -8
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -8
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -8
- package/docs/types/MediaData.html +7 -8
- package/docs/types/MediaStore.html +7 -8
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -8
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -8
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -8
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -8
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -8
- package/docs/types/MoveArgs.html +7 -8
- package/docs/types/MoveOpts.html +7 -8
- package/docs/types/Object3DHelperEventMap.html +7 -8
- package/docs/types/ObjectFit.html +7 -8
- package/docs/types/PaintBrushEventMap.html +7 -8
- package/docs/types/PanoCompassPluginData.html +7 -8
- package/docs/types/PanoCompassPluginExportType.html +7 -8
- package/docs/types/PanoCompassPluginParameterType.html +7 -8
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -8
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -8
- package/docs/types/PanoIndex.html +7 -8
- package/docs/types/PanoMeasurePluginEvent.html +7 -8
- package/docs/types/PanoMeasureReturnType.html +7 -8
- package/docs/types/PanoSpatialTagPluginId.html +7 -8
- package/docs/types/PanoTagPluginExportInterface.html +7 -8
- package/docs/types/PanoTagPluginParamsInterface.html +7 -8
- package/docs/types/PanoVideoPluginParameterType.html +7 -8
- package/docs/types/PanoVideoPluginReturnType.html +7 -8
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +7 -8
- package/docs/types/PipelinePluginParameterType.html +7 -8
- package/docs/types/PipelinePluginReturnType.html +7 -8
- package/docs/types/PlaneTag.html +7 -8
- package/docs/types/Point2DTag.html +7 -8
- package/docs/types/Point3DTag.html +7 -8
- package/docs/types/PointTag.html +7 -8
- package/docs/types/PointTagInstance.html +7 -8
- package/docs/types/Position.html +7 -8
- package/docs/types/RotateArgs.html +7 -8
- package/docs/types/RotateOpts.html +7 -8
- package/docs/types/RuleLabelsKey.html +7 -8
- package/docs/types/RuleLabelsValue.html +7 -8
- package/docs/types/StickType.html +7 -8
- package/docs/types/Tag.html +9 -10
- package/docs/types/Tag2D.html +7 -8
- package/docs/types/Tag3D.html +7 -8
- package/docs/types/TagConfigByKey.html +7 -8
- package/docs/types/TagContentType.html +7 -8
- package/docs/types/TagDimensionType.html +7 -8
- package/docs/types/TagElement.html +7 -8
- package/docs/types/TagEvents.html +7 -8
- package/docs/types/TagGLTFObject.html +7 -8
- package/docs/types/TagHooks.html +7 -8
- package/docs/types/TagId.html +7 -8
- package/docs/types/TagInstance.html +7 -8
- package/docs/types/TagPointType.html +7 -8
- package/docs/types/TagRendererMap.html +7 -8
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -8
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -8
- package/docs/types/WorkCode.html +7 -8
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -8
- package/docs/variables/PLUGIN.html +7 -8
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -8
- package/docs/variables/ROOM_TYPE_MAP.html +7 -8
- package/docs/variables/defaultGlobalConfig.html +8 -9
- package/docs/variables/itemLabelPluginServerParams.html +7 -8
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -8
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -8
- package/libs/AreaMakerPlugin/Controller.d.ts +94 -0
- package/libs/AreaMakerPlugin/Controller.js +336 -0
- package/libs/AreaMakerPlugin/index.d.ts +4 -0
- package/libs/AreaMakerPlugin/index.js +37 -0
- package/libs/AreaMakerPlugin/typing.d.ts +148 -0
- package/libs/AreaMakerPlugin/utils/Item.d.ts +115 -0
- package/libs/AreaMakerPlugin/utils/Item.js +266 -0
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +42 -39
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -5
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +13 -13
- package/libs/PanoTagPlugin/controller/TagRender.js +19 -18
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -4
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +10 -10
- package/libs/base/BasePlugin.js +1 -1
- package/libs/base/BasePluginWithData.d.ts +1 -1
- package/libs/components/AreaLabel/Assets/roomLabelBg.d.ts +1 -0
- package/libs/components/AreaLabel/Assets/roomLabelBg.js +4 -0
- package/libs/components/AreaLabel/LabelItem.js +125 -0
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +49 -48
- package/libs/floorplan/index.d.ts +0 -1
- package/libs/floorplan/utils/correctFiveState.d.ts +2 -0
- package/libs/floorplan/utils/correctFiveState.js +28 -28
- package/libs/index.d.ts +1 -0
- package/libs/index.js +120 -122
- package/libs/shared-utils/device.js +0 -1
- package/libs/shared-utils/five/changeMode.js +32 -29
- package/libs/shared-utils/index.d.ts +1 -0
- package/libs/shared-utils/index.js +27 -21
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/math/planimetry.d.ts +1 -1
- package/libs/shared-utils/math/planimetry.js +36 -29
- package/libs/shared-utils/three/core/Object3D.d.ts +8 -0
- package/libs/shared-utils/three/core/Object3D.js +22 -0
- package/libs/shared-utils/three/index.d.ts +2 -0
- package/libs/shared-utils/three/loadVideoTexture.d.ts +1 -1
- package/libs/shared-utils/three/loadVideoTexture.js +6 -6
- package/libs/shared-utils/three/objects/LineSegments.d.ts +9 -0
- package/libs/shared-utils/three/objects/LineSegments.js +9 -0
- package/libs/vendor/svelte/internal/index.js +79 -85
- package/package.json +2 -2
- package/dist/floorplan/FloorplanRoomsPlugin/BasePlugin.d.ts +0 -114
- package/dist/floorplan/FloorplanRoomsPlugin/BasePluginWithData.d.ts +0 -23
- package/dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.svelte.d.ts +0 -1
- package/dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.svelte.d.ts +0 -1
- package/dist/floorplan/FloorplanRoomsPlugin/Components/Main.svelte.d.ts +0 -1
- package/dist/floorplan/FloorplanRoomsPlugin/Controller.d.ts +0 -40
- package/dist/floorplan/FloorplanRoomsPlugin/index.d.ts +0 -6
- package/dist/floorplan/FloorplanRoomsPlugin/typing.d.ts +0 -60
- package/libs/floorplan/FloorplanRoomsPlugin/BasePlugin.d.ts +0 -114
- package/libs/floorplan/FloorplanRoomsPlugin/BasePlugin.js +0 -51
- package/libs/floorplan/FloorplanRoomsPlugin/BasePluginWithData.d.ts +0 -23
- package/libs/floorplan/FloorplanRoomsPlugin/BasePluginWithData.js +0 -25
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.js +0 -188
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.svelte.d.ts +0 -1
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.js +0 -94
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.svelte.d.ts +0 -1
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.js +0 -111
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/Room.svelte.d.ts +0 -1
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.js +0 -191
- package/libs/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/RoomHighlight/RoomHighlight.svelte.d.ts +0 -1
- package/libs/floorplan/FloorplanRoomsPlugin/Components/Main.js +0 -237
- package/libs/floorplan/FloorplanRoomsPlugin/Components/Main.svelte.d.ts +0 -1
- package/libs/floorplan/FloorplanRoomsPlugin/Controller.d.ts +0 -40
- package/libs/floorplan/FloorplanRoomsPlugin/Controller.js +0 -207
- package/libs/floorplan/FloorplanRoomsPlugin/index.d.ts +0 -6
- package/libs/floorplan/FloorplanRoomsPlugin/index.js +0 -43
- package/libs/floorplan/FloorplanRoomsPlugin/typing.d.ts +0 -60
- /package/dist/{floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/CurrentFloor.svelte.d.ts → components/AreaLabel/LabelItem.svelte.d.ts} +0 -0
- /package/libs/{floorplan/FloorplanRoomsPlugin → AreaMakerPlugin}/typing.js +0 -0
- /package/{dist/floorplan/FloorplanRoomsPlugin/Components/CurrentFloor/ExtraObjects.svelte.d.ts → libs/components/AreaLabel/LabelItem.svelte.d.ts} +0 -0
|
@@ -24,7 +24,7 @@ import { loadTexture as T } from "../../../shared-utils/three/loadTexture.js";
|
|
|
24
24
|
import { QuadrangleGeometry as F, QuadrangleMesh as I } from "../../../shared-utils/three/Quadrangle.js";
|
|
25
25
|
import { getVideoTexture as B } from "../../../shared-utils/three/loadVideoTexture.js";
|
|
26
26
|
import { Image_Play_Icon_With_Text as L, Image_Play_Icon as b } from "../../Assets/Icon.js";
|
|
27
|
-
import { getPositionsByObjectFit as
|
|
27
|
+
import { getPositionsByObjectFit as f } from "../../../shared-utils/three/getPositionsByObjectFit.js";
|
|
28
28
|
import { FragmentTransparencyMaterial as H } from "../../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
29
29
|
import "../../../shared-utils/math/pointIsRectangle.js";
|
|
30
30
|
import "../../../shared-utils/device.js";
|
|
@@ -65,15 +65,15 @@ class G extends P {
|
|
|
65
65
|
a = t.map((h) => h.clone().add(i));
|
|
66
66
|
}
|
|
67
67
|
T(e).then((i) => {
|
|
68
|
-
var
|
|
69
|
-
const h = new URL(e, location.href).pathname.endsWith(".png"), u = new l.MeshBasicMaterial({ map: i, transparent: h }), p =
|
|
70
|
-
(
|
|
68
|
+
var g;
|
|
69
|
+
const h = new URL(e, location.href).pathname.endsWith(".png"), u = new l.MeshBasicMaterial({ map: i, transparent: h }), p = f(
|
|
70
|
+
(g = s == null ? void 0 : s.objectFit) != null ? g : "contain",
|
|
71
71
|
a,
|
|
72
72
|
i.image.width / i.image.height
|
|
73
73
|
), m = x(...p), M = p.map((V) => V.clone().sub(m)), y = new F(M);
|
|
74
74
|
this.position.copy(m), this.geometry = y, this.material = u;
|
|
75
75
|
}).catch((i) => {
|
|
76
|
-
console.error(`Imageplane error ${i}`);
|
|
76
|
+
console.error(`Imageplane error ${i == null ? void 0 : i.message}`);
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -155,7 +155,7 @@ class O extends P {
|
|
|
155
155
|
const t = yield this.getImageTexture(this.videoCoverSrc);
|
|
156
156
|
if (!t)
|
|
157
157
|
return;
|
|
158
|
-
const s = new l.MeshBasicMaterial({ transparent: !1, map: t }), o =
|
|
158
|
+
const s = new l.MeshBasicMaterial({ transparent: !1, map: t }), o = f(this.objectFit, this.cornerPoints, t.image.width / t.image.height), a = new I(o, s);
|
|
159
159
|
return a.position.copy(new w(0, 0, 0)), a.name = "videoCoverMesh", a;
|
|
160
160
|
}))();
|
|
161
161
|
return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
|
|
@@ -171,9 +171,9 @@ class O extends P {
|
|
|
171
171
|
if (!this.src)
|
|
172
172
|
return;
|
|
173
173
|
const s = this.getVideoTexture(this.src), o = new l.MeshBasicMaterial({ transparent: !1, map: s }), a = yield new Promise((i) => {
|
|
174
|
-
s.metadataLoaded ? i(
|
|
174
|
+
s.metadataLoaded ? i(f(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight)) : s.addEventListener(
|
|
175
175
|
"videoLoaded",
|
|
176
|
-
() => i(
|
|
176
|
+
() => i(f(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight))
|
|
177
177
|
);
|
|
178
178
|
}), n = new I(a, o);
|
|
179
179
|
return n.name = "videoMesh", n.position.copy(new w(0, 0, 0)), n;
|
|
@@ -196,10 +196,10 @@ class O extends P {
|
|
|
196
196
|
if (this.children.includes(this.buttonMesh))
|
|
197
197
|
return;
|
|
198
198
|
const e = yield (() => v(this, null, function* () {
|
|
199
|
-
var m, M, y,
|
|
199
|
+
var m, M, y, g;
|
|
200
200
|
if (this.buttonMesh)
|
|
201
201
|
return this.buttonMesh;
|
|
202
|
-
const t = (M = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? M : 1 / 0, s = (
|
|
202
|
+
const t = (M = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? M : 1 / 0, s = (g = (y = this.coverMesh) == null ? void 0 : y.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? g : 1 / 0, o = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), n = Math.min(t, s, o) / o * 0.3, i = yield this.getImageTexture(this.buttonSrc), h = f("contain", this.cornerPoints, i.image.width / i.image.height), u = new I(h, new H(i));
|
|
203
203
|
u.position.copy(new w(0, 0, 0)), u.name = "buttonMesh", u.scale.set(n, n, n), this.domEvents.addAutoBindEventListener(u, "click", () => this.play());
|
|
204
204
|
const p = new l.Vector3().crossVectors(new l.Vector3().subVectors(h[0], h[1]), new l.Vector3().subVectors(h[0], h[3])).normalize().multiplyScalar(1e-4);
|
|
205
205
|
return u.position.add(p), u;
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -16,7 +16,7 @@ declare abstract class Controller<PluginState extends State, PluginEventMap exte
|
|
|
16
16
|
*/
|
|
17
17
|
abstract load(serverData: PluginServerData, state?: PluginState, userAction?: boolean): Promise<void>;
|
|
18
18
|
/** 把原始数据转化为插件数据 */
|
|
19
|
-
protected abstract formatData?(serverData: PluginServerData): Promise<PluginData
|
|
19
|
+
protected abstract formatData?(serverData: PluginServerData): Promise<PluginData> | PluginData;
|
|
20
20
|
}
|
|
21
21
|
export type { State, EventMap, Config };
|
|
22
22
|
export type { BaseOptions } from './BasePlugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ROOM_LABEL_BG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAYAAACZ1L+0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAPAAAAABU0H2EAAARRElEQVR4Ad2czY9cRZbFq1yFoQGDNCzwuAENohl54dkgdrNh34tZ8GciFi31nwEsmAEhhAWD1GMJCZgx5sMfUHN+J+NE3XfrZWWVcVVLHVLmuXG/74148V5m2bm/N8bR0dH+Bx988Po333zzbz///PONg4ODa+I9I9y/cuXKgV77h4eH+1KH3hP/yv7+vuBAsG+5UCIpCkMzDQ962Eu80Q1P/KmHT82v8IocZFL4pslDvL3fNARHoPI2wtbrV1jBIf9N8SEZ0UUP2wFHv2ocSc/2ouEz8PVooJXQ0/j10aNHoH2Idj4PHz4k1n29/k+5/u3ll1/+r7fffvtLzfGzd8ibjK6+9957f5ajf1XzH9y7d+8Xjf9FRs1SdvNBBg2SDQ1xh9ALH4yN0M2BNZrKwtFc9Fmkquuma5HJBzvLiION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Y/cssxB5CyKxi96/aB+/Y9+KfE/X3vttS8lI7e9/wfu514OAjYP0QAAAABJRU5ErkJggg==";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const A = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAA8CAYAAACZ1L+0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAYKADAAQAAAABAAAAPAAAAABU0H2EAAARRElEQVR4Ad2czY9cRZbFq1yFoQGDNCzwuAENohl54dkgdrNh34tZ8GciFi31nwEsmAEhhAWD1GMJCZgx5sMfUHN+J+NE3XfrZWWVcVVLHVLmuXG/74148V5m2bm/N8bR0dH+Bx988Po333zzbz///PONg4ODa+I9I9y/cuXKgV77h4eH+1KH3hP/yv7+vuBAsG+5UCIpCkMzDQ962Eu80Q1P/KmHT82v8IocZFL4pslDvL3fNARHoPI2wtbrV1jBIf9N8SEZ0UUP2wFHv2ocSc/2ouEz8PVooJXQ0/j10aNHoH2Idj4PHz4k1n29/k+5/u3ll1/+r7fffvtLzfGzd8ibjK6+9957f5ajf1XzH9y7d+8Xjf9FRs1SdvNBBg2SDQ1xh9ALH4yN0M2BNZrKwtFc9Fmkquuma5HJBzvLiIONBnx40B7QIzTdxCcNwj3dYlEoUmabAU+UFZDpxah22Ng2NjQXH0LrwccGwyEzXfWhWQwSYQHYuFevXj14/vnn37h79+7Nr7766gup/FX5PnAj33///f/46aef3vj444/vfPbZZz9IYGMcnDbkhEYQL001Hfsu775i+7j6LID6cDQWYo8mabGMxOr+e/ye3y7989p3/9jfvHnz2q1bt25oMb549913/3Lwzjvv/Mu3337775988smdzz///AcVQ+IecsAOp8OOHRpkiJniWQnrBJmwc7EF8atxBA2ihx/obf7Qqa+un+aDI0f7k08nU+PLj3PBR+qpcvFdd3BNP7YgI7mnHqHzBRndv1hH33///QNtlAcvvfTSq999992dQzFu/vjjj/c//fTTu1z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Yccray31B3s9UQviG104IUGmZ8mH5v+3qF2w51nn332TzHCsI7KJzEVm6akEVuPhLWGhUeM0CAjvkHmxCM+uCYPD2R0f2Ilt7lB4tMGZ3i7qPqfe+65P6j3X1y5du3aZ3rSefrGjRsvkNxpI80AeTGC0NgGoakvuFYrtvDjD11okBF6m3yjdfze9eM7sbPQIC8sg8detlPdP7XCy8ASOh6IC534Qf126Au6Aq7S+0P9jOJ/f/jhh7dfeeWVN1C4c+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==";
|
|
2
|
+
export {
|
|
3
|
+
A as ROOM_LABEL_BG
|
|
4
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { SvelteComponent as v, init as p, safe_not_equal as h, append_styles as z, element as d, text as k, space as y, attr as u, set_style as l, toggle_class as g, insert as q, append as b, listen as w, set_data as x, noop as _, detach as C, is_function as I } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { ROOM_LABEL_BG as L } from "./Assets/roomLabelBg.js";
|
|
3
|
+
function B(t) {
|
|
4
|
+
z(t, "svelte-qxepni", ".room-label-item.svelte-qxepni{position:absolute;font-size:0.5rem;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff}.room-label-item__text.svelte-qxepni{position:absolute;left:0;top:-4rem;transform:translate(-50%, 0);display:flex;justify-content:center;align-items:center;height:1.25rem;min-width:2rem;padding:0 0.375rem;pointer-events:all;background-size:100% 100%;background-repeat:no-repeat;white-space:nowrap}.room-label-item__bar.svelte-qxepni{position:absolute;top:-2.75rem;height:3rem;width:0.0625rem;background-image:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0))}.wide.svelte-qxepni{font-size:0.625rem}");
|
|
5
|
+
}
|
|
6
|
+
function O(t) {
|
|
7
|
+
let e, i, r, f, a, m, c;
|
|
8
|
+
return {
|
|
9
|
+
c() {
|
|
10
|
+
e = d("div"), i = d("span"), r = k(
|
|
11
|
+
/*content*/
|
|
12
|
+
t[0]
|
|
13
|
+
), f = y(), a = d("div"), u(i, "class", "room-label-item__text svelte-qxepni"), l(i, "background-image", "url(" + L + ")"), g(
|
|
14
|
+
i,
|
|
15
|
+
"wide",
|
|
16
|
+
/*content*/
|
|
17
|
+
t[0].length > 3
|
|
18
|
+
), u(a, "class", "room-label-item__bar svelte-qxepni"), u(e, "class", "room-label-item svelte-qxepni"), l(
|
|
19
|
+
e,
|
|
20
|
+
"z-index",
|
|
21
|
+
/*zIndex*/
|
|
22
|
+
t[2]
|
|
23
|
+
), l(
|
|
24
|
+
e,
|
|
25
|
+
"transform",
|
|
26
|
+
/*transform*/
|
|
27
|
+
t[3]
|
|
28
|
+
), l(
|
|
29
|
+
e,
|
|
30
|
+
"opacity",
|
|
31
|
+
/*opacity*/
|
|
32
|
+
t[1]
|
|
33
|
+
), l(
|
|
34
|
+
e,
|
|
35
|
+
"visibility",
|
|
36
|
+
/*visibility*/
|
|
37
|
+
t[5]
|
|
38
|
+
);
|
|
39
|
+
},
|
|
40
|
+
m(s, o) {
|
|
41
|
+
q(s, e, o), b(e, i), b(i, r), b(e, f), b(e, a), m || (c = w(i, "click", function() {
|
|
42
|
+
I(
|
|
43
|
+
/*onClick*/
|
|
44
|
+
t[4]
|
|
45
|
+
) && t[4].apply(this, arguments);
|
|
46
|
+
}), m = !0);
|
|
47
|
+
},
|
|
48
|
+
p(s, [o]) {
|
|
49
|
+
t = s, o & /*content*/
|
|
50
|
+
1 && x(
|
|
51
|
+
r,
|
|
52
|
+
/*content*/
|
|
53
|
+
t[0]
|
|
54
|
+
), o & /*content*/
|
|
55
|
+
1 && g(
|
|
56
|
+
i,
|
|
57
|
+
"wide",
|
|
58
|
+
/*content*/
|
|
59
|
+
t[0].length > 3
|
|
60
|
+
), o & /*zIndex*/
|
|
61
|
+
4 && l(
|
|
62
|
+
e,
|
|
63
|
+
"z-index",
|
|
64
|
+
/*zIndex*/
|
|
65
|
+
t[2]
|
|
66
|
+
), o & /*transform*/
|
|
67
|
+
8 && l(
|
|
68
|
+
e,
|
|
69
|
+
"transform",
|
|
70
|
+
/*transform*/
|
|
71
|
+
t[3]
|
|
72
|
+
), o & /*opacity*/
|
|
73
|
+
2 && l(
|
|
74
|
+
e,
|
|
75
|
+
"opacity",
|
|
76
|
+
/*opacity*/
|
|
77
|
+
t[1]
|
|
78
|
+
), o & /*visibility*/
|
|
79
|
+
32 && l(
|
|
80
|
+
e,
|
|
81
|
+
"visibility",
|
|
82
|
+
/*visibility*/
|
|
83
|
+
t[5]
|
|
84
|
+
);
|
|
85
|
+
},
|
|
86
|
+
i: _,
|
|
87
|
+
o: _,
|
|
88
|
+
d(s) {
|
|
89
|
+
s && C(e), m = !1, c();
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
function j(t, e, i) {
|
|
94
|
+
let r, { content: f } = e, { visible: a } = e, { opacity: m = 1 } = e, { zIndex: c = 0 } = e, { transform: s } = e, { onClick: o = () => {
|
|
95
|
+
} } = e;
|
|
96
|
+
return t.$$set = (n) => {
|
|
97
|
+
"content" in n && i(0, f = n.content), "visible" in n && i(6, a = n.visible), "opacity" in n && i(1, m = n.opacity), "zIndex" in n && i(2, c = n.zIndex), "transform" in n && i(3, s = n.transform), "onClick" in n && i(4, o = n.onClick);
|
|
98
|
+
}, t.$$.update = () => {
|
|
99
|
+
t.$$.dirty & /*visible*/
|
|
100
|
+
64 && i(5, r = a ? "visible" : "hidden");
|
|
101
|
+
}, [f, m, c, s, o, r, a];
|
|
102
|
+
}
|
|
103
|
+
class G extends v {
|
|
104
|
+
constructor(e) {
|
|
105
|
+
super(), p(
|
|
106
|
+
this,
|
|
107
|
+
e,
|
|
108
|
+
j,
|
|
109
|
+
O,
|
|
110
|
+
h,
|
|
111
|
+
{
|
|
112
|
+
content: 0,
|
|
113
|
+
visible: 6,
|
|
114
|
+
opacity: 1,
|
|
115
|
+
zIndex: 2,
|
|
116
|
+
transform: 3,
|
|
117
|
+
onClick: 4
|
|
118
|
+
},
|
|
119
|
+
B
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
export {
|
|
124
|
+
G as LabelItem
|
|
125
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var m = (d,
|
|
6
|
-
for (var t in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
1
|
+
var A = Object.defineProperty, P = Object.defineProperties;
|
|
2
|
+
var E = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var g = Object.getOwnPropertySymbols;
|
|
4
|
+
var C = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (d, r, t) => r in d ? A(d, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[r] = t, c = (d, r) => {
|
|
6
|
+
for (var t in r || (r = {}))
|
|
7
|
+
C.call(r, t) && m(d, t, r[t]);
|
|
8
|
+
if (g)
|
|
9
|
+
for (var t of g(r))
|
|
10
|
+
I.call(r, t) && m(d, t, r[t]);
|
|
11
11
|
return d;
|
|
12
|
-
}, v = (d,
|
|
13
|
-
var o = (d,
|
|
14
|
-
var u = (d,
|
|
15
|
-
var
|
|
12
|
+
}, v = (d, r) => P(d, E(r));
|
|
13
|
+
var o = (d, r, t) => (m(d, typeof r != "symbol" ? r + "" : r, t), t);
|
|
14
|
+
var u = (d, r, t) => new Promise((e, i) => {
|
|
15
|
+
var n = (a) => {
|
|
16
16
|
try {
|
|
17
17
|
s(t.next(a));
|
|
18
18
|
} catch (l) {
|
|
@@ -24,21 +24,21 @@ var u = (d, n, t) => new Promise((e, i) => {
|
|
|
24
24
|
} catch (l) {
|
|
25
25
|
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(
|
|
28
|
-
s((t = t.apply(d,
|
|
27
|
+
}, s = (a) => a.done ? e(a.value) : Promise.resolve(a.value).then(n, h);
|
|
28
|
+
s((t = t.apply(d, r)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
30
|
+
import * as w from "three";
|
|
31
31
|
import { to as y } from "../../shared-utils/to.js";
|
|
32
32
|
import { equal as F } from "../../shared-utils/equal.js";
|
|
33
33
|
import { Main as x } from "../Components/Main.js";
|
|
34
|
-
import { formatData as
|
|
34
|
+
import { formatData as b } from "../utils/formatData.js";
|
|
35
35
|
import { CAMERA_IMAGE as M } from "../Assets/camera.js";
|
|
36
36
|
import { omit as _ } from "../../shared-utils/filter.js";
|
|
37
37
|
import { FLOOR_PLAN_ATTACHED_TO as L } from "../constant.js";
|
|
38
38
|
import { Controller as O } from "../../base/BasePluginWithData.js";
|
|
39
39
|
import { getPxmm as D, getAttachedY as T } from "../../shared-utils/getPxmm.js";
|
|
40
40
|
import { checkShowState as k, correctFiveState as H } from "../utils/correctFiveState.js";
|
|
41
|
-
import { changeModelCanvasOpacity as
|
|
41
|
+
import { changeModelCanvasOpacity as S } from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
42
42
|
import { FloorplanErrorType as f, SHOW_ANIME_DURATION as R } from "../utils/constant.js";
|
|
43
43
|
import "../../shared-utils/isTruelyObject.js";
|
|
44
44
|
import "../../vendor/svelte/internal/index.js";
|
|
@@ -90,11 +90,11 @@ import "../../shared-utils/absoluteUrl.js";
|
|
|
90
90
|
import "../../shared-utils/nearlyEqual.js";
|
|
91
91
|
import "../../shared-utils/five/changeMode.js";
|
|
92
92
|
function G(d) {
|
|
93
|
-
const { latitude:
|
|
93
|
+
const { latitude: r, longitude: t } = d, e = Math.abs(r - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
|
|
94
94
|
return e || i;
|
|
95
95
|
}
|
|
96
96
|
function W(d) {
|
|
97
|
-
const { latitude:
|
|
97
|
+
const { latitude: r, longitude: t } = d, e = Math.abs(r - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
98
98
|
return e && i;
|
|
99
99
|
}
|
|
100
100
|
class Jt extends O {
|
|
@@ -160,7 +160,7 @@ class Jt extends O {
|
|
|
160
160
|
o(this, "updateSize", () => {
|
|
161
161
|
if (!this.data || !k(this.five, this.showState) || !this.container || !this.wrapper)
|
|
162
162
|
return;
|
|
163
|
-
const { min: t, max: e } = this.data.bounding, i = e.x - t.x,
|
|
163
|
+
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, n = e.y - t.y, h = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, s = D(this.five, this.wrapper, this.floorIndex, h), a = Math.ceil(i * s), l = Math.ceil(n * s);
|
|
164
164
|
this.size.width === a && this.size.height === l || (this.container.style.width = a + "px", this.container.style.height = l + "px", this.size = { width: a, height: l });
|
|
165
165
|
});
|
|
166
166
|
o(this, "highlight", (t) => {
|
|
@@ -170,9 +170,9 @@ class Jt extends O {
|
|
|
170
170
|
this.highlightData = {}, this.render();
|
|
171
171
|
});
|
|
172
172
|
o(this, "_disable", (t) => {
|
|
173
|
-
var i,
|
|
173
|
+
var i, n, h;
|
|
174
174
|
const { userAction: e } = t;
|
|
175
|
-
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (
|
|
175
|
+
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, f.BreakOffByDisable), this.showPromise = void 0, (n = this.app) == null || n.$destroy(), this.app = void 0, (h = this.container) == null || h.remove(), this.removeEventListener();
|
|
176
176
|
});
|
|
177
177
|
o(this, "_enable", (t) => {
|
|
178
178
|
const { userAction: e } = t;
|
|
@@ -194,7 +194,7 @@ class Jt extends O {
|
|
|
194
194
|
immediately: !1,
|
|
195
195
|
isAutoShow: !1,
|
|
196
196
|
userAction: !0
|
|
197
|
-
}, i = c(c({}, e), t),
|
|
197
|
+
}, i = c(c({}, e), t), n = () => u(this, null, function* () {
|
|
198
198
|
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
199
199
|
let s = !1, a;
|
|
200
200
|
this.showRejection = (p) => {
|
|
@@ -207,10 +207,10 @@ class Jt extends O {
|
|
|
207
207
|
throw a ? new Error(a) : new Error(f.UnknownError);
|
|
208
208
|
this.updateSize(), this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
209
209
|
});
|
|
210
|
-
return this.isHiddenByHideFunc = !1, this.showPromise =
|
|
210
|
+
return this.isHiddenByHideFunc = !1, this.showPromise = n().then(() => {
|
|
211
211
|
this.showPromise = void 0, this.showRejection = void 0;
|
|
212
212
|
const s = i.modelOpacity, a = i.immediately ? 0 : R;
|
|
213
|
-
|
|
213
|
+
S(this.five, s, a), this.render(a), this.hooks.emit("showAnimationEnded", {
|
|
214
214
|
auto: i.isAutoShow,
|
|
215
215
|
userAction: i.userAction
|
|
216
216
|
});
|
|
@@ -220,13 +220,13 @@ class Jt extends O {
|
|
|
220
220
|
}), this.showPromise;
|
|
221
221
|
}));
|
|
222
222
|
o(this, "_hide", (t) => {
|
|
223
|
-
var
|
|
224
|
-
(
|
|
223
|
+
var n;
|
|
224
|
+
(n = this.showRejection) == null || n.call(this, f.BreakOffByHide), this.showPromise = void 0;
|
|
225
225
|
const i = c(c({}, {
|
|
226
226
|
userAction: !0,
|
|
227
227
|
isAutoHide: !1
|
|
228
228
|
}), t);
|
|
229
|
-
|
|
229
|
+
S(this.five, 1, 0), this.hooks.emit("hide", { auto: i.isAutoHide, userAction: i.userAction }), this.render();
|
|
230
230
|
});
|
|
231
231
|
o(this, "handleClick", () => {
|
|
232
232
|
if (!this.state.visible)
|
|
@@ -236,12 +236,13 @@ class Jt extends O {
|
|
|
236
236
|
});
|
|
237
237
|
/** modelLoaded 之后自动执行 append container 操作 */
|
|
238
238
|
o(this, "onFiveModelLoaded", () => {
|
|
239
|
-
|
|
239
|
+
const e = this.five.model.bounding.getCenter(new w.Vector3());
|
|
240
|
+
if (this.showState.offset = e, this.state.enabled === !1 || this.wrapper || !this.selector)
|
|
240
241
|
return;
|
|
241
|
-
const
|
|
242
|
-
if (!
|
|
242
|
+
const i = this.selector instanceof Element ? this.selector : document.querySelector(this.selector);
|
|
243
|
+
if (!i)
|
|
243
244
|
throw new Error("不正确的父容器选择器");
|
|
244
|
-
this.wrapper =
|
|
245
|
+
this.wrapper = i, i.append(this.container);
|
|
245
246
|
});
|
|
246
247
|
/** 更改模型时,自动隐藏户型图 */
|
|
247
248
|
o(this, "onFiveModeChange", (t) => {
|
|
@@ -292,7 +293,7 @@ class Jt extends O {
|
|
|
292
293
|
mode: "Mapview",
|
|
293
294
|
longitude: 0,
|
|
294
295
|
latitude: Math.PI / 2,
|
|
295
|
-
fov:
|
|
296
|
+
fov: 80
|
|
296
297
|
};
|
|
297
298
|
const i = {
|
|
298
299
|
northDesc: "北",
|
|
@@ -312,7 +313,7 @@ class Jt extends O {
|
|
|
312
313
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
313
314
|
getRoomAreaText: (s) => (s / 1e6).toFixed(1) + "㎡",
|
|
314
315
|
getRuleDistanceText: (s) => s.toString()
|
|
315
|
-
},
|
|
316
|
+
}, n = e ? _(e, ["selector", "scale"]) : {}, h = c(c({}, i), n);
|
|
316
317
|
this.state = {
|
|
317
318
|
enabled: !0,
|
|
318
319
|
visible: !1,
|
|
@@ -321,13 +322,13 @@ class Jt extends O {
|
|
|
321
322
|
}
|
|
322
323
|
load(t, e, i = !0) {
|
|
323
324
|
return u(this, null, function* () {
|
|
324
|
-
function
|
|
325
|
+
function n(p) {
|
|
325
326
|
return Object.prototype.hasOwnProperty.apply(p, ["version"]);
|
|
326
327
|
}
|
|
327
328
|
const h = t;
|
|
328
329
|
h && !h.version && console.warn("传入 serverData.data 的方式后续可能不再支持,请把 serverData 整体传入 load 函数");
|
|
329
|
-
const s = JSON.parse(JSON.stringify(t)), a =
|
|
330
|
-
this.data = yield
|
|
330
|
+
const s = JSON.parse(JSON.stringify(t)), a = n(s) ? s.data : s, l = this.data;
|
|
331
|
+
this.data = yield b(a), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, l), e && this.updateState(e, i), this.render();
|
|
331
332
|
});
|
|
332
333
|
}
|
|
333
334
|
/** 把插件的渲染DOM插入到对应的容器中去 */
|
|
@@ -351,9 +352,9 @@ class Jt extends O {
|
|
|
351
352
|
}
|
|
352
353
|
/** 更改插件 State */
|
|
353
354
|
setState(t, e = {}) {
|
|
354
|
-
const i = this.state,
|
|
355
|
-
if (this.updateState(t,
|
|
356
|
-
const h = { userAction:
|
|
355
|
+
const i = this.state, n = e.userAction !== void 0 ? e.userAction : !0;
|
|
356
|
+
if (this.updateState(t, n), t.enabled !== void 0 && i.enabled !== t.enabled && (t.enabled ? this._enable({ userAction: n }) : this._disable({ userAction: n })), t.visible !== void 0 && i.visible !== t.visible) {
|
|
357
|
+
const h = { userAction: n };
|
|
357
358
|
t.visible ? this._show(h) : this._hide(h);
|
|
358
359
|
}
|
|
359
360
|
}
|
|
@@ -363,20 +364,20 @@ class Jt extends O {
|
|
|
363
364
|
/** 更新户型图位置 */
|
|
364
365
|
updatePosition() {
|
|
365
366
|
var s;
|
|
366
|
-
const t = T(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new
|
|
367
|
+
const t = T(this.five, this.floorIndex, this.state.config.attachedTo), e = (s = this.five.model) == null ? void 0 : s.bounding.getCenter(new w.Vector3()).setY(t);
|
|
367
368
|
if (!e)
|
|
368
369
|
return;
|
|
369
|
-
const i = e.clone().project(this.five.camera),
|
|
370
|
-
this.container.style.left =
|
|
370
|
+
const i = e.clone().project(this.five.camera), n = (i.x + 1) / 2, h = -(i.y - 1) / 2;
|
|
371
|
+
this.container.style.left = n * 100 + "%", this.container.style.top = h * 100 + "%";
|
|
371
372
|
}
|
|
372
373
|
formatData(t) {
|
|
373
374
|
return u(this, null, function* () {
|
|
374
|
-
return yield
|
|
375
|
+
return yield b(t.data);
|
|
375
376
|
});
|
|
376
377
|
}
|
|
377
378
|
updateState(t, e) {
|
|
378
|
-
const i = this.state,
|
|
379
|
-
this.state = v(c(c({}, this.state), t), { config:
|
|
379
|
+
const i = this.state, n = t.config ? c(c({}, i.config), t.config) : i.config;
|
|
380
|
+
this.state = v(c(c({}, this.state), t), { config: n }), !F(this.state, i, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e });
|
|
380
381
|
}
|
|
381
382
|
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
382
383
|
*
|
|
@@ -3,6 +3,5 @@ export * from './ModelFloorplanPlugin';
|
|
|
3
3
|
export * from './MapviewFloorplanPlugin';
|
|
4
4
|
export * from './TopviewFloorplanPlugin';
|
|
5
5
|
export * from './PanoFloorplanRadarPlugin';
|
|
6
|
-
export * from './FloorplanRoomsPlugin';
|
|
7
6
|
export * from './typings/floorplanServerData';
|
|
8
7
|
export * from './typings/floorplanData';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type * as THREE from 'three';
|
|
1
2
|
import type { Five, Mode } from '@realsee/five';
|
|
2
3
|
export interface ShowState {
|
|
3
4
|
latitude: number;
|
|
4
5
|
longitude: number;
|
|
5
6
|
fov: number;
|
|
6
7
|
mode: Mode;
|
|
8
|
+
offset?: THREE.Vector3;
|
|
7
9
|
}
|
|
8
10
|
/** 判断当前状态是否可以展示户型图 */
|
|
9
11
|
export declare function checkShowState(five: Five, showState: ShowState): boolean;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
var
|
|
2
|
-
var i = (
|
|
1
|
+
var c = (e, r, o) => new Promise((d, a) => {
|
|
2
|
+
var i = (t) => {
|
|
3
3
|
try {
|
|
4
|
-
u(
|
|
5
|
-
} catch (
|
|
6
|
-
a(
|
|
4
|
+
u(o.next(t));
|
|
5
|
+
} catch (f) {
|
|
6
|
+
a(f);
|
|
7
7
|
}
|
|
8
|
-
}, n = (
|
|
8
|
+
}, n = (t) => {
|
|
9
9
|
try {
|
|
10
|
-
u(
|
|
11
|
-
} catch (
|
|
12
|
-
a(
|
|
10
|
+
u(o.throw(t));
|
|
11
|
+
} catch (f) {
|
|
12
|
+
a(f);
|
|
13
13
|
}
|
|
14
|
-
}, u = (
|
|
15
|
-
u((
|
|
14
|
+
}, u = (t) => t.done ? d(t.value) : Promise.resolve(t.value).then(i, n);
|
|
15
|
+
u((o = o.apply(e, r)).next());
|
|
16
16
|
});
|
|
17
|
-
import { to as
|
|
18
|
-
import { FloorplanErrorType as
|
|
17
|
+
import { to as l } from "../../shared-utils/to.js";
|
|
18
|
+
import { FloorplanErrorType as m } from "./constant.js";
|
|
19
19
|
import { nearlyEqual as s } from "../../shared-utils/nearlyEqual.js";
|
|
20
20
|
import { changeMode as p } from "../../shared-utils/five/changeMode.js";
|
|
21
|
-
function g(
|
|
22
|
-
if (
|
|
21
|
+
function g(e, r) {
|
|
22
|
+
if (e.currentMode !== r.mode)
|
|
23
23
|
return !1;
|
|
24
|
-
const { latitude:
|
|
25
|
-
return !(!s(
|
|
24
|
+
const { latitude: o, longitude: d, fov: a, offset: i } = r, { latitude: n, longitude: u, offset: t } = e.getCurrentState(), f = e.camera.fov;
|
|
25
|
+
return !(!s(o, n, 2) || !s(d, u, 2) || i !== void 0 && i.distanceTo(t) > 0.01 || a !== f);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
29
|
-
if (g(
|
|
27
|
+
function y(e, r, o = !0) {
|
|
28
|
+
return c(this, null, function* () {
|
|
29
|
+
if (g(e, r) === !0)
|
|
30
30
|
return;
|
|
31
|
-
const a =
|
|
31
|
+
const a = e.getCurrentState();
|
|
32
32
|
if (a.mode !== r.mode) {
|
|
33
|
-
const [M] = yield
|
|
33
|
+
const [M] = yield l(p(e, [r.mode, r, void 0, o]));
|
|
34
34
|
if (M)
|
|
35
|
-
throw new Error(
|
|
35
|
+
throw new Error(m.ChangeModeError);
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
|
-
const { latitude: i, longitude: n, fov: u } = a,
|
|
38
|
+
const { latitude: i, longitude: n, fov: u } = a, t = Math.min(
|
|
39
39
|
1e3,
|
|
40
40
|
Math.max(
|
|
41
41
|
200,
|
|
@@ -43,12 +43,12 @@ function F(t, r, e = !0) {
|
|
|
43
43
|
(n > Math.PI ? 2 * Math.PI - n : n) * 500,
|
|
44
44
|
Math.abs(u - r.fov) * 10
|
|
45
45
|
)
|
|
46
|
-
), [
|
|
47
|
-
if (
|
|
48
|
-
throw new Error(
|
|
46
|
+
), [f] = yield l(e.updateCamera(r, t, o));
|
|
47
|
+
if (f)
|
|
48
|
+
throw new Error(m.UpdateCameraError);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
export {
|
|
52
52
|
g as checkShowState,
|
|
53
|
-
|
|
53
|
+
y as correctFiveState
|
|
54
54
|
};
|