@realsee/dnalogel 2.1.0-alpha.4 → 2.1.0-alpha.5
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/CSS3DRenderPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/CameraMovementPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/CruisePlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/CruisePlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/CruisePlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/CruisePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/CruisePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/CruisePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/CruisePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/GuideLinePlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/ItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/ModelViewPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/Object3DHelperPlugin/index.js +32 -28
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoCompassPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoRulerPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoTagPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/PanoTagPlugin/index.js +23 -17
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/index.es.js +55 -45
- package/dist/index.js +55 -45
- package/dist/index.umd.js +55 -45
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/dist/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/CruisePluginController.html +14 -14
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +9 -9
- package/docs/classes/PanoTagPluginController.html +25 -25
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +7 -7
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/DimensionType.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/LinkType.html +1 -1
- package/docs/enums/PointType.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/Object3DHelperState.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +1 -1
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +5 -5
- package/docs/interfaces/TagConfig.html +4 -4
- package/docs/interfaces/Tags.html +3 -3
- package/docs/modules.html +21 -21
- package/libs/ItemLabelPlugin/ItemLabelComponent.svelte +251 -0
- package/libs/ItemLabelPlugin/ItemLabelItem.svelte +183 -0
- package/libs/ItemLabelPlugin/Plugin.js +1 -1
- package/libs/ItemLabelPlugin/typings.d.ts +1 -1
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.svelte +155 -0
- package/libs/ModelItemLabelPlugin/ItemLabelItem.svelte +100 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +1 -1
- package/libs/ModelItemLabelPlugin/typings.d.ts +1 -1
- package/libs/ModelRoomLabelPlugin/Controller.js +1 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.svelte +63 -0
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.svelte +94 -0
- package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.svelte +200 -0
- package/libs/PanoRulerProPlugin/Controller.js +1 -1
- package/libs/PanoRulerProPlugin/RulerItem.svelte +166 -0
- package/libs/PanoRulerProPlugin/RulerItems.svelte +212 -0
- package/libs/PanoSpatialTagPlugin/Components/origins.svelte +58 -0
- package/libs/PanoSpatialTagPlugin/Components/tag.svelte +292 -0
- package/libs/PanoSpatialTagPlugin/Plugin.js +2 -2
- package/libs/PanoTagPlugin/Components/Common/Arrow.svelte +56 -0
- package/libs/PanoTagPlugin/Components/Common/Audio.svelte +82 -0
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.svelte +36 -0
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.svelte +36 -0
- package/libs/PanoTagPlugin/Components/Common/Media.svelte +70 -0
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.svelte +56 -0
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.svelte +120 -0
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.svelte +81 -0
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.svelte +30 -0
- package/libs/PanoTagPlugin/Components/Common/Shadow.svelte +46 -0
- package/libs/PanoTagPlugin/Components/Common/Text.svelte +69 -0
- package/libs/PanoTagPlugin/Components/Common/TextItem.svelte +42 -0
- package/libs/PanoTagPlugin/Components/PointTag.js +3 -3
- package/libs/PanoTagPlugin/Components/PointTag.svelte +55 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.svelte +105 -0
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.svelte +33 -0
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.svelte +63 -0
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.svelte +166 -0
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.svelte +234 -0
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.svelte +30 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag.svelte +63 -0
- package/libs/PanoTagPlugin/Components/Tag/index.js +16 -11
- package/libs/PanoTagPlugin/Components/Tag/index.svelte +145 -0
- package/libs/PanoTagPlugin/Components/TagWrapper.svelte +69 -0
- package/libs/PanoTagPlugin/controller/index.js +9 -9
- package/libs/PanoTagPlugin/tag.config.js +1 -0
- package/libs/PanoTagPlugin/typings/controller.d.ts +2 -1
- package/libs/PanoTagPlugin/typings/tag.d.ts +1 -0
- package/libs/floorplan/Components/BaseImage.svelte +26 -0
- package/libs/floorplan/Components/Camera.svelte +46 -0
- package/libs/floorplan/Components/Compass.svelte +51 -0
- package/libs/floorplan/Components/CurrentFloor.svelte +46 -0
- package/libs/floorplan/Components/Main.svelte +51 -0
- package/libs/floorplan/Components/Normalmage.svelte +11 -0
- package/libs/floorplan/Components/RoomHighlight/Room.svelte +27 -0
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.svelte +29 -0
- package/libs/floorplan/Components/RoomLabels/RoomLabel.svelte +119 -0
- package/libs/floorplan/Components/RoomLabels/RoomLabels.svelte +35 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.svelte +42 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.svelte +7 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.svelte +24 -0
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.svelte +33 -0
- package/libs/floorplan/Components/RuleLabels/RuleItem.svelte +174 -0
- package/libs/floorplan/Components/RuleLabels/RuleLabels.svelte +32 -0
- package/libs/floorplan/Components/SvgImage.svelte +28 -0
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.svelte +85 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.svelte +18 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.svelte +40 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.svelte +64 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +9 -5
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +3 -3
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +7 -4
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -3
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +6 -7
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +1 -1
- package/libs/shared-utils/Object3DHelper/index.js +8 -10
- package/libs/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/package.json +1 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
<script>import "./events.type";
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
export let itemLabel;
|
|
4
|
+
export let hooks;
|
|
5
|
+
function onClick() {
|
|
6
|
+
console.log('__onclick___: ', itemLabel);
|
|
7
|
+
hooks.emit('onLabelClick', itemLabel);
|
|
8
|
+
}
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<div
|
|
12
|
+
class={classNames("item-label-item", { visible: itemLabel.visible })}
|
|
13
|
+
style:z-index="{itemLabel.zIndex}"
|
|
14
|
+
style:transform="{itemLabel.transform}"
|
|
15
|
+
>
|
|
16
|
+
<div
|
|
17
|
+
class="item-label-item__text-wrap"
|
|
18
|
+
style="top: {`-${itemLabel.strokeLength + 26}px`}"
|
|
19
|
+
>
|
|
20
|
+
<span
|
|
21
|
+
class="item-label-item__text"
|
|
22
|
+
on:click="{onClick}"
|
|
23
|
+
>{itemLabel.name.length > 6 ? `${itemLabel.name.slice(0, 6)}...` : itemLabel.name}</span>
|
|
24
|
+
</div>
|
|
25
|
+
<div
|
|
26
|
+
class="item-label-item__bar"
|
|
27
|
+
style="height: {`${itemLabel.strokeLength}px`}">
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<style>
|
|
32
|
+
.item-label-item {
|
|
33
|
+
position: absolute;
|
|
34
|
+
z-index: 0;
|
|
35
|
+
transform: none;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
user-select: none;
|
|
39
|
+
opacity: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.item-label-item.visible {
|
|
43
|
+
opacity: 1;
|
|
44
|
+
animation: fadeIn .3s ease-in;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.item-label-item__text-wrap::before {
|
|
48
|
+
content: '';
|
|
49
|
+
position: absolute;
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 100%;
|
|
52
|
+
background-color: rgba(0, 0, 0, .3);
|
|
53
|
+
filter: blur(16px);
|
|
54
|
+
z-index: -1;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.item-label-item__text-wrap {
|
|
58
|
+
padding: 6px 6px 0;
|
|
59
|
+
position: absolute;
|
|
60
|
+
height: 20px;
|
|
61
|
+
pointer-events: all;
|
|
62
|
+
background-size: 100% 100%;
|
|
63
|
+
background-repeat: no-repeat;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
line-height: 10px;
|
|
66
|
+
font-size: 11px;
|
|
67
|
+
font-weight: bold;
|
|
68
|
+
color: #FFEAC0;
|
|
69
|
+
transform: translate(-50%, 0);
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
align-items: center;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.item-label-item__text {
|
|
76
|
+
padding-bottom: 4px;
|
|
77
|
+
border-top: 0 solid;
|
|
78
|
+
border-left: 0 solid;
|
|
79
|
+
border-right: 0 solid;
|
|
80
|
+
border-bottom: 1px solid;
|
|
81
|
+
border-image: linear-gradient(to right, rgba(234, 208, 154, 0), rgba(234, 208, 154, 100), rgba(234, 208, 154, 0)) 4.5 1 4.5;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.item-label-item__bar {
|
|
85
|
+
position: absolute;
|
|
86
|
+
bottom: 0;
|
|
87
|
+
width: 1px;
|
|
88
|
+
background-image: linear-gradient(to bottom, rgba(234, 208, 154, 0), rgba(234, 208, 154, 1));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@keyframes fadeIn {
|
|
92
|
+
from {
|
|
93
|
+
opacity: 0
|
|
94
|
+
}
|
|
95
|
+
to {
|
|
96
|
+
opacity: 1
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
</style>
|
|
100
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Five, Subscribe } from "@realsee/five";
|
|
2
|
-
import ItemLabelComponent from './ItemLabelComponent';
|
|
2
|
+
import ItemLabelComponent from './ItemLabelComponent.svelte';
|
|
3
3
|
import { DISPLAY_STRATEGY_TYPE } from "./typings";
|
|
4
4
|
import { parseModelItemLabelPluginData } from "./utils/parseData";
|
|
5
5
|
export const ModelItemLabelPlugin = (five, params) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Subscribe } from "@realsee/five";
|
|
2
2
|
import type { PluginEvent } from "./events.type";
|
|
3
|
-
import type ItemLabelComponent from './ItemLabelComponent';
|
|
3
|
+
import type ItemLabelComponent from './ItemLabelComponent.svelte';
|
|
4
4
|
export declare enum DISPLAY_STRATEGY_TYPE {
|
|
5
5
|
SMALL = "small",
|
|
6
6
|
MIDLLE = "middle",
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<script>import { ROOM_LABEL_BG } from './Assets/roomLabelBg';
|
|
2
|
+
export let five;
|
|
3
|
+
export let roomLabel;
|
|
4
|
+
function onClick() {
|
|
5
|
+
five.setState({ panoIndex: roomLabel.panoIndex, mode: 'Panorama', longitude: roomLabel.longitude });
|
|
6
|
+
}
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<div
|
|
10
|
+
class="room-label-item"
|
|
11
|
+
style:z-index="{roomLabel.zIndex}"
|
|
12
|
+
style:transform="{roomLabel.transform}"
|
|
13
|
+
style:opacity="{roomLabel.visible ? 1 : 0}"
|
|
14
|
+
>
|
|
15
|
+
<span
|
|
16
|
+
class="room-label-item__text"
|
|
17
|
+
class:wide="{roomLabel.name.length > 3}"
|
|
18
|
+
style="background-image: url({ROOM_LABEL_BG})"
|
|
19
|
+
on:click="{onClick}">{roomLabel.name}</span
|
|
20
|
+
>
|
|
21
|
+
<div class="room-label-item__bar"></div>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<style>
|
|
25
|
+
.room-label-item {
|
|
26
|
+
position: absolute;
|
|
27
|
+
font-size: 8px;
|
|
28
|
+
z-index: 0;
|
|
29
|
+
transform: none;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
user-select: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.room-label-item__text {
|
|
36
|
+
position: absolute;
|
|
37
|
+
left: 0;
|
|
38
|
+
top: -64px;
|
|
39
|
+
transform: translate(-50%, 0);
|
|
40
|
+
display: flex;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
align-items: center;
|
|
43
|
+
height: 20px;
|
|
44
|
+
min-width: 32px;
|
|
45
|
+
padding: 0 6px;
|
|
46
|
+
pointer-events: all;
|
|
47
|
+
background-size: 100% 100%;
|
|
48
|
+
background-repeat: no-repeat;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.room-label-item__bar {
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: -44px;
|
|
55
|
+
height: 48px;
|
|
56
|
+
width: 1px;
|
|
57
|
+
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.wide {
|
|
61
|
+
font-size: 10px;
|
|
62
|
+
}
|
|
63
|
+
</style>
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<script>import { onDestroy } from 'svelte';
|
|
2
|
+
import { Raycaster, Vector3 } from 'three';
|
|
3
|
+
import RoomLabelItem from './RoomLabelItem.svelte';
|
|
4
|
+
export let five;
|
|
5
|
+
export let roomLabels;
|
|
6
|
+
let containerWidth;
|
|
7
|
+
let containerHeight;
|
|
8
|
+
let shownFloor = null;
|
|
9
|
+
$: rendererSize = { x: containerWidth, y: containerHeight };
|
|
10
|
+
$: {
|
|
11
|
+
// rendererSize 变化时,触发 reRender
|
|
12
|
+
roomLabels = getFormatedRoomLabels(rendererSize);
|
|
13
|
+
}
|
|
14
|
+
$: {
|
|
15
|
+
// shownFloor 变化时,更新 item visible
|
|
16
|
+
roomLabels = roomLabels.map((item) => {
|
|
17
|
+
const isLabelInFloor = shownFloor === null || item.floorIndex === shownFloor;
|
|
18
|
+
const visible = isLabelInFloor ? item.visible : false;
|
|
19
|
+
return Object.assign(Object.assign({}, item), { visible });
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function getLabelVisible(item) {
|
|
23
|
+
const raycaster = new Raycaster();
|
|
24
|
+
const cameraPosition = five.camera.position.clone();
|
|
25
|
+
const position = new Vector3(item.position.x, item.position.y, item.position.z);
|
|
26
|
+
const vectorDistance = position.distanceTo(cameraPosition);
|
|
27
|
+
raycaster.set(cameraPosition.clone(), position.clone().sub(cameraPosition).normalize());
|
|
28
|
+
const [intersection] = five.model.intersectRaycaster(raycaster);
|
|
29
|
+
if (intersection && intersection.distance + 1 < vectorDistance)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function getLabelTransform(item, rendererSize) {
|
|
34
|
+
const position = new Vector3(item.position.x, item.position.y, item.position.z);
|
|
35
|
+
const mouse = position.clone().project(five.camera);
|
|
36
|
+
const xOffset = Math.ceil(((mouse.x + 1) / 2) * rendererSize.x);
|
|
37
|
+
const yOffset = Math.ceil(((-mouse.y + 1) / 2) * rendererSize.y);
|
|
38
|
+
return `translate(${xOffset}px, ${yOffset}px)`;
|
|
39
|
+
}
|
|
40
|
+
function getFormatedRoomLabels(rendererSize) {
|
|
41
|
+
// 因为 item distance 需要重复计算,所以缓存一下
|
|
42
|
+
const distanceMap = new Map();
|
|
43
|
+
function getItemDistance(item) {
|
|
44
|
+
const cacheDistance = distanceMap.get(item.id);
|
|
45
|
+
if (cacheDistance)
|
|
46
|
+
return cacheDistance;
|
|
47
|
+
const { x, y, z } = item.position;
|
|
48
|
+
const distance = new Vector3(x, y, z).clone().distanceTo(five.camera.position);
|
|
49
|
+
distanceMap.set(item.id, distance);
|
|
50
|
+
return distance;
|
|
51
|
+
}
|
|
52
|
+
const formatedItems = roomLabels.map((item) => {
|
|
53
|
+
const visible = getLabelVisible(item);
|
|
54
|
+
const transform = visible ? getLabelTransform(item, rendererSize) : item.transform;
|
|
55
|
+
const itemDistance = getItemDistance(item);
|
|
56
|
+
// visible === true 的 item 中,distance 比自己小的 item 个数
|
|
57
|
+
const minItemLen = roomLabels.filter((item) => item.visible && getItemDistance(item) < itemDistance).length;
|
|
58
|
+
const zIndex = minItemLen * 10;
|
|
59
|
+
return Object.assign(Object.assign({}, item), { visible, transform, zIndex });
|
|
60
|
+
});
|
|
61
|
+
return formatedItems;
|
|
62
|
+
}
|
|
63
|
+
function onFiveCameraUpdate() {
|
|
64
|
+
roomLabels = getFormatedRoomLabels(rendererSize);
|
|
65
|
+
}
|
|
66
|
+
function onFiveModelShownFloorChange(floorIndex) {
|
|
67
|
+
shownFloor = floorIndex;
|
|
68
|
+
}
|
|
69
|
+
five.on('cameraUpdate', onFiveCameraUpdate);
|
|
70
|
+
five.on('modelShownFloorChange', onFiveModelShownFloorChange);
|
|
71
|
+
onDestroy(() => {
|
|
72
|
+
five.off('cameraUpdate', onFiveCameraUpdate);
|
|
73
|
+
five.off('modelShownFloorChange', onFiveModelShownFloorChange);
|
|
74
|
+
});
|
|
75
|
+
</script>
|
|
76
|
+
|
|
77
|
+
<div
|
|
78
|
+
class="room-labels-container"
|
|
79
|
+
bind:clientWidth="{containerWidth}"
|
|
80
|
+
bind:clientHeight="{containerHeight}"
|
|
81
|
+
>
|
|
82
|
+
{#each roomLabels as roomLableItem (roomLableItem.id)}
|
|
83
|
+
<RoomLabelItem roomLabel="{roomLableItem}" five="{five}" />
|
|
84
|
+
{/each}
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
<style>
|
|
88
|
+
.room-labels-container {
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: 100%;
|
|
91
|
+
position: relative;
|
|
92
|
+
color: #fff;
|
|
93
|
+
}
|
|
94
|
+
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Euler, Quaternion, Raycaster, Vector3 } from 'three';
|
|
2
2
|
import { BasePanoPluginController } from './BaseController';
|
|
3
|
-
import DoorLabelItem from './DoorLabelItem';
|
|
3
|
+
import DoorLabelItem from './DoorLabelItem.svelte';
|
|
4
4
|
import { getCameraToward, getDistance, getToward, isTwoRectOverlaped } from './utils';
|
|
5
5
|
const defaultBaseOptions = { userAction: true };
|
|
6
6
|
/**
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
<script>import classnames from 'classnames';
|
|
2
|
+
export let props;
|
|
3
|
+
export let onClick;
|
|
4
|
+
let divElement;
|
|
5
|
+
let { left, top, inSight, transform, panoIndex, cameraToward, name } = props;
|
|
6
|
+
let prevPanoIndexRef = 0;
|
|
7
|
+
const initPanoIndex = () => {
|
|
8
|
+
if (!left || !top || !inSight) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
if (!divElement)
|
|
12
|
+
return;
|
|
13
|
+
const _width = (divElement.current.clientWidth / window.innerWidth) * 100;
|
|
14
|
+
const _height = (divElement.current.clientHeight / window.innerHeight) * 100;
|
|
15
|
+
if (left <= _width / 2 || left >= 100 - _width / 2) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (top <= _height / 2 || top >= 100 - _height / 2) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const prevPanoIndex = prevPanoIndexRef;
|
|
22
|
+
if (panoIndex !== prevPanoIndex) {
|
|
23
|
+
// 触发埋点
|
|
24
|
+
console.log('panoDoorLabelPlugin', panoIndex, '触发埋点');
|
|
25
|
+
// 这里触发曝光埋点
|
|
26
|
+
prevPanoIndexRef = panoIndex;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
$: {
|
|
30
|
+
initPanoIndex();
|
|
31
|
+
}
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<div
|
|
36
|
+
bind:this="{divElement}"
|
|
37
|
+
style="{`left: ${left || 0}%;top: ${top || 0}%;opacity: ${inSight ? 1 : 0}`}"
|
|
38
|
+
class="plugin-DoorLabelPlugin-item"
|
|
39
|
+
>
|
|
40
|
+
<div
|
|
41
|
+
class="{classnames('plugin-DoorLabelPlugin-cnt', props.toward)}"
|
|
42
|
+
style="{`transform: ${transform || 'initial'};pointer-events: ${
|
|
43
|
+
inSight ? 'auto' : 'none'
|
|
44
|
+
};opacity: ${inSight ? 1 : 0}`}"
|
|
45
|
+
data-camera-toward="{cameraToward}"
|
|
46
|
+
on:click="{(e) => {
|
|
47
|
+
if (onClick) onClick()
|
|
48
|
+
}}"
|
|
49
|
+
>
|
|
50
|
+
<span class="plugin-DoorLabelPlugin-txt">{name}</span>
|
|
51
|
+
<i class="plugin-DoorLabelPlugin-icon"></i>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</template>
|
|
55
|
+
|
|
56
|
+
<style lang="scss">
|
|
57
|
+
.plugin-DoorLabelPlugin-item {
|
|
58
|
+
position: absolute;
|
|
59
|
+
left: 0;
|
|
60
|
+
top: 0;
|
|
61
|
+
width: 0;
|
|
62
|
+
height: 0;
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
transition: opacity 0.3s ease;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.plugin-DoorLabelPlugin-cnt {
|
|
68
|
+
position: absolute;
|
|
69
|
+
top: 50%;
|
|
70
|
+
left: 50%;
|
|
71
|
+
border-radius: 2px;
|
|
72
|
+
background: rgba(0, 0, 0, 0.35);
|
|
73
|
+
line-height: 12px;
|
|
74
|
+
padding: 6px;
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
font-size: 12px;
|
|
77
|
+
font-style: normal;
|
|
78
|
+
// pointer-events: auto;
|
|
79
|
+
color: white;
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
transition: transform ease 1s, background ease 0.3s, color ease 0.3s;
|
|
85
|
+
&::after {
|
|
86
|
+
content: '';
|
|
87
|
+
display: block;
|
|
88
|
+
position: absolute;
|
|
89
|
+
top: -1px;
|
|
90
|
+
left: -1px;
|
|
91
|
+
bottom: -1px;
|
|
92
|
+
right: -1px;
|
|
93
|
+
border-radius: 2px;
|
|
94
|
+
border: 1px solid rgba(0, 0, 0, 0);
|
|
95
|
+
border-image: url('//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png')
|
|
96
|
+
4;
|
|
97
|
+
transition: opacity ease 0.3s;
|
|
98
|
+
}
|
|
99
|
+
&:active,
|
|
100
|
+
&:focus {
|
|
101
|
+
background: rgba(0, 0, 0, 0.5);
|
|
102
|
+
color: rgba(255, 255, 255, 0.5);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.plugin-DoorLabelPlugin-icon {
|
|
107
|
+
background: url('//vrlab-image4.ljcdn.com/release/web/DoorLabel-icon.de1304ae.svg') no-repeat;
|
|
108
|
+
background-size: 100%;
|
|
109
|
+
display: inline-block;
|
|
110
|
+
width: 10px;
|
|
111
|
+
height: 10px;
|
|
112
|
+
margin-left: 4px;
|
|
113
|
+
transform-origin: center;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.plugin-DoorLabelPlugin-cnt[data-camera-toward='forward'] {
|
|
117
|
+
&.left {
|
|
118
|
+
.plugin-DoorLabelPlugin-icon {
|
|
119
|
+
transform: rotate(90deg);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
&.right {
|
|
123
|
+
.plugin-DoorLabelPlugin-txt {
|
|
124
|
+
order: 1;
|
|
125
|
+
}
|
|
126
|
+
.plugin-DoorLabelPlugin-icon {
|
|
127
|
+
transform: rotate(-90deg);
|
|
128
|
+
margin-left: 0;
|
|
129
|
+
margin-right: 4px;
|
|
130
|
+
order: 0;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
.plugin-DoorLabelPlugin-cnt[data-camera-toward='right'] {
|
|
135
|
+
&.forward {
|
|
136
|
+
.plugin-DoorLabelPlugin-icon {
|
|
137
|
+
transform: rotate(90deg);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
&.back {
|
|
141
|
+
.plugin-DoorLabelPlugin-txt {
|
|
142
|
+
order: 1;
|
|
143
|
+
}
|
|
144
|
+
.plugin-DoorLabelPlugin-icon {
|
|
145
|
+
transform: rotate(-90deg);
|
|
146
|
+
margin-left: 0;
|
|
147
|
+
margin-right: 4px;
|
|
148
|
+
order: 0;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
.plugin-DoorLabelPlugin-cnt[data-camera-toward='left'] {
|
|
153
|
+
&.back {
|
|
154
|
+
.plugin-DoorLabelPlugin-icon {
|
|
155
|
+
transform: rotate(90deg);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
&.forward {
|
|
159
|
+
.plugin-DoorLabelPlugin-txt {
|
|
160
|
+
order: 1;
|
|
161
|
+
}
|
|
162
|
+
.plugin-DoorLabelPlugin-icon {
|
|
163
|
+
transform: rotate(-90deg);
|
|
164
|
+
margin-left: 0;
|
|
165
|
+
margin-right: 4px;
|
|
166
|
+
order: 0;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
.plugin-DoorLabelPlugin-cnt[data-camera-toward='back'] {
|
|
171
|
+
&.right {
|
|
172
|
+
.plugin-DoorLabelPlugin-icon {
|
|
173
|
+
transform: rotate(90deg);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
&.left {
|
|
177
|
+
.plugin-DoorLabelPlugin-txt {
|
|
178
|
+
order: 1;
|
|
179
|
+
}
|
|
180
|
+
.plugin-DoorLabelPlugin-icon {
|
|
181
|
+
transform: rotate(-90deg);
|
|
182
|
+
margin-left: 0;
|
|
183
|
+
margin-right: 4px;
|
|
184
|
+
order: 0;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.plugin-DoorLabelPlugin-cnt--customBrand {
|
|
190
|
+
color: #f9eac1;
|
|
191
|
+
.plugin-DoorLabelPlugin-icon {
|
|
192
|
+
background: url('//vrlab-image4.ljcdn.com/release/web/arrow.6e8ec00e.svg') no-repeat;
|
|
193
|
+
}
|
|
194
|
+
&:active,
|
|
195
|
+
&:focus {
|
|
196
|
+
background: rgba(0, 0, 0, 0.5);
|
|
197
|
+
color: rgba(249, 234, 193, 0.5);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
</style>
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
<script>export let rulerItemProp;
|
|
2
|
+
let _visible = true;
|
|
3
|
+
let labelWidth;
|
|
4
|
+
$: {
|
|
5
|
+
if (labelWidth >= rulerItemProp.width ||
|
|
6
|
+
labelWidth / 2 >= (rulerItemProp.labelOffset / 100) * rulerItemProp.width ||
|
|
7
|
+
labelWidth / 2 >= (1 - rulerItemProp.labelOffset / 100) * rulerItemProp.width) {
|
|
8
|
+
_visible = false;
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
_visible = true;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
let EM_DOTTED_BG = `data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjQiIHdpZHRoPSIxMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PGZpbHRlciBpZD0icHJlZml4X19hIiBoZWlnaHQ9IjQwMCUiIHdpZHRoPSIxMzcuNCUiIHg9Ii0xOC43JSIgeT0iLTE1MCUiPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iZGlsYXRlIiByYWRpdXM9Ii41IiByZXN1bHQ9InNoYWRvd1NwcmVhZE91dGVyMSIvPjxmZU9mZnNldCBpbj0ic2hhZG93U3ByZWFkT3V0ZXIxIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZU1vcnBob2xvZ3kgaW49IlNvdXJjZUFscGhhIiByYWRpdXM9IjEiIHJlc3VsdD0ic2hhZG93SW5uZXIiLz48ZmVPZmZzZXQgaW49InNoYWRvd0lubmVyIiByZXN1bHQ9InNoYWRvd0lubmVyIi8+PGZlQ29tcG9zaXRlIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIGluMj0ic2hhZG93SW5uZXIiIG9wZXJhdG9yPSJvdXQiIHJlc3VsdD0ic2hhZG93T2Zmc2V0T3V0ZXIxIi8+PGZlR2F1c3NpYW5CbHVyIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIgc3RkRGV2aWF0aW9uPSIuNSIvPjxmZUNvbG9yTWF0cml4IGluPSJzaGFkb3dCbHVyT3V0ZXIxIiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMiAwIi8+PC9maWx0ZXI+PHBhdGggaWQ9InByZWZpeF9fYiIgZD0iTS44ODkgMkgxMS41OCIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZS1kYXNoYXJyYXk9IjUgNiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48dXNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNwcmVmaXhfX2EpIiB4bGluazpocmVmPSIjcHJlZml4X19iIi8+PHVzZSBzdHJva2U9IiNmZmYiIHN0cm9rZS1vcGFjaXR5PSIuNCIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjwvZz48L3N2Zz4=`;
|
|
15
|
+
$: vars = `--background-image: url(${EM_DOTTED_BG})`;
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<div
|
|
19
|
+
class="PanoRulerPlugin-rule-line"
|
|
20
|
+
style:width="{rulerItemProp.width}px"
|
|
21
|
+
style:left="{rulerItemProp.left}px"
|
|
22
|
+
style:top="{rulerItemProp.top}px"
|
|
23
|
+
style:transform="rotate({rulerItemProp.rotateDeg}deg)"
|
|
24
|
+
style:display="{rulerItemProp.visible && _visible ? 'block' : 'none'}"
|
|
25
|
+
>
|
|
26
|
+
{#if rulerItemProp.children.length === 0}
|
|
27
|
+
<em class="{rulerItemProp.state ? 'em-solid' : 'em-dotted'}" style="{vars}"></em>
|
|
28
|
+
{:else}
|
|
29
|
+
<div class="rule-mixed-line">
|
|
30
|
+
{#each rulerItemProp.children as child}
|
|
31
|
+
<div style:width="{child.width}px" class="{child.state ? 'em-solid' : 'em-dotted'}" style="{vars}"></div>
|
|
32
|
+
{/each}
|
|
33
|
+
</div>
|
|
34
|
+
{/if}
|
|
35
|
+
<div
|
|
36
|
+
class="PanoRulerPlugin-rule-label"
|
|
37
|
+
style:left="{rulerItemProp.labelOffset}%"
|
|
38
|
+
>
|
|
39
|
+
<div class="PanoRulerPlugin-rule-label-name" bind:offsetWidth="{labelWidth}">
|
|
40
|
+
{rulerItemProp.labelElement}
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<style>
|
|
46
|
+
.PanoRulerPlugin-rule-line {
|
|
47
|
+
position: absolute;
|
|
48
|
+
transform-origin: left 0.0625rem;
|
|
49
|
+
width: 0;
|
|
50
|
+
height: 0.125rem;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.PanoRulerPlugin-rule-line::after {
|
|
55
|
+
content: '';
|
|
56
|
+
position: absolute;
|
|
57
|
+
left: -0.125rem;
|
|
58
|
+
top: -0.1rem;
|
|
59
|
+
width: 0.25rem;
|
|
60
|
+
height: 0.25rem;
|
|
61
|
+
border-radius: 50%;
|
|
62
|
+
background: #fff;
|
|
63
|
+
z-index: 1;
|
|
64
|
+
animation: viewport-rule-point 0.1s 1s;
|
|
65
|
+
animation-fill-mode: both;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.PanoRulerPlugin-rule-line::before {
|
|
69
|
+
content: '';
|
|
70
|
+
position: absolute;
|
|
71
|
+
right: -0.125rem;
|
|
72
|
+
top: -0.1rem;
|
|
73
|
+
width: 0.25rem;
|
|
74
|
+
height: 0.25rem;
|
|
75
|
+
border-radius: 50%;
|
|
76
|
+
background: #fff;
|
|
77
|
+
z-index: 1;
|
|
78
|
+
animation: viewport-rule-point 0.1s 1.5s;
|
|
79
|
+
animation-fill-mode: both;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.PanoRulerPlugin-rule-line em {
|
|
83
|
+
display: block;
|
|
84
|
+
height: 0.0625rem;
|
|
85
|
+
animation: viewport-rule-line 0.5s ease 1s;
|
|
86
|
+
animation-fill-mode: both;
|
|
87
|
+
box-shadow: 0 0 0.25rem rgb(0 0 0 / 40%);
|
|
88
|
+
position: relative;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.rule-mixed-line {
|
|
92
|
+
display: flex;
|
|
93
|
+
height: 0.0625rem;
|
|
94
|
+
animation: viewport-rule-line 0.5s ease 1s;
|
|
95
|
+
animation-fill-mode: both;
|
|
96
|
+
align-items: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.em-solid {
|
|
100
|
+
height: 100%;
|
|
101
|
+
background: #ffffff;
|
|
102
|
+
}
|
|
103
|
+
.em-dotted {
|
|
104
|
+
height: 0.125rem;
|
|
105
|
+
background: var(--background-image);
|
|
106
|
+
background-position: center;
|
|
107
|
+
background-repeat: repeat;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.PanoRulerPlugin-rule-label {
|
|
111
|
+
position: absolute;
|
|
112
|
+
width: 0;
|
|
113
|
+
height: 0;
|
|
114
|
+
top: 0.0625rem;
|
|
115
|
+
pointer-events: none;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.PanoRulerPlugin-rule-label-name {
|
|
119
|
+
position: absolute;
|
|
120
|
+
padding: 0.1875rem 0.375rem;
|
|
121
|
+
background: rgba(195, 195, 195, 0.3);
|
|
122
|
+
backdrop-filter: blur(0.25rem);
|
|
123
|
+
-webkit-backdrop-filter: blur(0.25rem);
|
|
124
|
+
border-radius: 6.25rem;
|
|
125
|
+
border: 0.0625rem solid rgba(255, 255, 255, 0.6);
|
|
126
|
+
white-space: nowrap;
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
color: #ffffff;
|
|
129
|
+
font-weight: 500;
|
|
130
|
+
font-size: 0.75rem;
|
|
131
|
+
line-height: 1;
|
|
132
|
+
-webkit-animation: viewport-rule-label 0.25s ease 1s;
|
|
133
|
+
animation: viewport-rule-label 0.25s ease 1s;
|
|
134
|
+
animation-fill-mode: both;
|
|
135
|
+
box-shadow: inset 0 0 0.625rem 0 rgba(255, 255, 255, 0.3);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@keyframes viewport-rule-line {
|
|
139
|
+
0% {
|
|
140
|
+
width: 0%;
|
|
141
|
+
}
|
|
142
|
+
100% {
|
|
143
|
+
width: 100%;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@keyframes viewport-rule-label {
|
|
148
|
+
0% {
|
|
149
|
+
opacity: 0;
|
|
150
|
+
transform: scaleX(0);
|
|
151
|
+
}
|
|
152
|
+
100% {
|
|
153
|
+
opacity: 1;
|
|
154
|
+
transform: translate(-50%, -50%) scaleX(1);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@keyframes viewport-rule-point {
|
|
159
|
+
0% {
|
|
160
|
+
transform: scaleX(0);
|
|
161
|
+
}
|
|
162
|
+
100% {
|
|
163
|
+
transform: scaleX(1);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
</style>
|