@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,212 @@
|
|
|
1
|
+
<script>var _a, _b, _c, _d;
|
|
2
|
+
import { Five } from '@realsee/five';
|
|
3
|
+
import { nextFrame } from '../shared-utils/animationFrame';
|
|
4
|
+
import equal from '../shared-utils/equal';
|
|
5
|
+
import { intersectionOfLine } from '../shared-utils/math/planimetry';
|
|
6
|
+
import throttle from '../shared-utils/throttle';
|
|
7
|
+
import { onDestroy, onMount } from 'svelte';
|
|
8
|
+
import { Vector3 } from 'three';
|
|
9
|
+
import RulerItem from './RulerItem.svelte';
|
|
10
|
+
export let five;
|
|
11
|
+
export let rulerDatas;
|
|
12
|
+
export let options;
|
|
13
|
+
let rulerItemProp = [];
|
|
14
|
+
const canvasWidth = ((_b = (_a = five.getElement()) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.clientWidth) || 0;
|
|
15
|
+
const canvasHeight = ((_d = (_c = five.getElement()) === null || _c === void 0 ? void 0 : _c.parentElement) === null || _d === void 0 ? void 0 : _d.clientHeight) || 0;
|
|
16
|
+
const getRuleScreenIntr = (startPoint, endPoint) => {
|
|
17
|
+
const screenLines = [
|
|
18
|
+
[
|
|
19
|
+
{ x: 0, y: 0 },
|
|
20
|
+
{ x: canvasWidth, y: 0 },
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
{ x: 0, y: 0 },
|
|
24
|
+
{ x: 0, y: canvasHeight },
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
{ x: canvasWidth, y: 0 },
|
|
28
|
+
{ x: canvasWidth, y: canvasHeight },
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
{ x: 0, y: canvasHeight },
|
|
32
|
+
{ x: canvasWidth, y: canvasHeight },
|
|
33
|
+
],
|
|
34
|
+
];
|
|
35
|
+
const intr = [];
|
|
36
|
+
for (let i = 0; i < screenLines.length; i++) {
|
|
37
|
+
const result = intersectionOfLine([startPoint, endPoint], [screenLines[i][0], screenLines[i][1]], true);
|
|
38
|
+
if (result)
|
|
39
|
+
intr.push(result);
|
|
40
|
+
}
|
|
41
|
+
if (intr.length === 0)
|
|
42
|
+
return false;
|
|
43
|
+
else {
|
|
44
|
+
return intr;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const getPosition = (start, end) => {
|
|
48
|
+
const startPoint = start.clone().project(five.camera);
|
|
49
|
+
const startLeft = ((startPoint.x + 1) / 2) * canvasWidth;
|
|
50
|
+
const startTop = ((-startPoint.y + 1) / 2) * canvasHeight;
|
|
51
|
+
const endPoint = end.clone().project(five.camera);
|
|
52
|
+
const endLeft = ((endPoint.x + 1) / 2) * canvasWidth;
|
|
53
|
+
const endTop = ((-endPoint.y + 1) / 2) * canvasHeight;
|
|
54
|
+
const distance = Math.sqrt(Math.pow(endLeft - startLeft, 2) + Math.pow(endTop - startTop, 2));
|
|
55
|
+
return {
|
|
56
|
+
startLeft,
|
|
57
|
+
startTop,
|
|
58
|
+
endLeft,
|
|
59
|
+
endTop,
|
|
60
|
+
distance,
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
const getPositionAndVisible = (start, end, visibleOrigin) => {
|
|
64
|
+
const cameraPosition = five.camera.position;
|
|
65
|
+
const cameraDirection = five.camera.getWorldDirection(new Vector3());
|
|
66
|
+
const startAngle = start.clone().sub(cameraPosition).normalize().angleTo(cameraDirection);
|
|
67
|
+
const endAngle = end.clone().sub(cameraPosition).normalize().angleTo(cameraDirection);
|
|
68
|
+
const ruleLength = start.distanceTo(end);
|
|
69
|
+
const midPoint = end.clone().sub(end.clone().sub(start).divide(new Vector3(2, 2, 2)));
|
|
70
|
+
const disFromCameraToMid = midPoint.distanceTo(cameraPosition);
|
|
71
|
+
const { startLeft, startTop, endLeft, endTop, distance } = getPosition(start, end);
|
|
72
|
+
const rad = Math.PI / 2 - Math.atan2(endLeft - startLeft, startTop - endTop);
|
|
73
|
+
const deg = -(rad / Math.PI) * 180;
|
|
74
|
+
let visible = true;
|
|
75
|
+
if (!visibleOrigin)
|
|
76
|
+
visible = false;
|
|
77
|
+
// 只显示拐点相连的线
|
|
78
|
+
if (!equal(start, visibleOrigin) && !equal(end, visibleOrigin)) {
|
|
79
|
+
visible = false;
|
|
80
|
+
}
|
|
81
|
+
// 线小于0.3m隐藏
|
|
82
|
+
if (ruleLength < 0.3) {
|
|
83
|
+
visible = false;
|
|
84
|
+
}
|
|
85
|
+
if (startAngle > Math.PI / 2) {
|
|
86
|
+
visible = false;
|
|
87
|
+
}
|
|
88
|
+
if (endAngle > Math.PI / 2) {
|
|
89
|
+
visible = false;
|
|
90
|
+
}
|
|
91
|
+
if (disFromCameraToMid / ruleLength > 8) {
|
|
92
|
+
visible = false;
|
|
93
|
+
}
|
|
94
|
+
let labelOffset = 50;
|
|
95
|
+
let visibleLength = distance;
|
|
96
|
+
const intr = getRuleScreenIntr({ x: ~~startLeft, y: ~~startTop }, { x: ~~endLeft, y: ~~endTop });
|
|
97
|
+
if (intr && intr.length === 1) {
|
|
98
|
+
if (equal(start, visibleOrigin)) {
|
|
99
|
+
visibleLength = Math.sqrt(Math.pow(intr[0].x - startLeft, 2) + Math.pow(intr[0].y - startTop, 2));
|
|
100
|
+
labelOffset = (visibleLength / distance) * 50;
|
|
101
|
+
}
|
|
102
|
+
else if (equal(end, visibleOrigin)) {
|
|
103
|
+
visibleLength = Math.sqrt(Math.pow(intr[0].x - endLeft, 2) + Math.pow(intr[0].y - endTop, 2));
|
|
104
|
+
labelOffset = 100 - (visibleLength / distance) * 50;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
if (intr && intr.length === 2) {
|
|
108
|
+
const middlePoint = {
|
|
109
|
+
x: (intr[0].x + intr[1].x) / 2,
|
|
110
|
+
y: (intr[0].y + intr[1].y) / 2,
|
|
111
|
+
};
|
|
112
|
+
const distanceFromStart = Math.sqrt(Math.pow(middlePoint.x - startLeft, 2) + Math.pow(middlePoint.y - startTop, 2));
|
|
113
|
+
labelOffset = (distanceFromStart / distance) * 100;
|
|
114
|
+
}
|
|
115
|
+
return {
|
|
116
|
+
startLeft,
|
|
117
|
+
startTop,
|
|
118
|
+
distance,
|
|
119
|
+
deg,
|
|
120
|
+
visible,
|
|
121
|
+
labelOffset,
|
|
122
|
+
ruleLength,
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
const updatePanoRulerData = () => {
|
|
126
|
+
const panoIndex = five.panoIndex;
|
|
127
|
+
const rulerData = rulerDatas.find((data) => data.panoIndex === panoIndex);
|
|
128
|
+
if (!rulerData)
|
|
129
|
+
return (rulerItemProp = []);
|
|
130
|
+
// 非全景模式下隐藏所有标尺
|
|
131
|
+
if (five.currentMode !== Five.Mode.Panorama)
|
|
132
|
+
return (rulerItemProp = []);
|
|
133
|
+
const cameraPosition = five.camera.position;
|
|
134
|
+
const cameraDirection = five.camera.getWorldDirection(new Vector3());
|
|
135
|
+
const startPoints = rulerData.lines.map((v) => new Vector3(v.start[0], -v.start[1], -v.start[2]));
|
|
136
|
+
const endPoints = rulerData.lines.map((v) => new Vector3(v.end[0], -v.end[1], -v.end[2]));
|
|
137
|
+
// 可以看到的角度最小的拐点
|
|
138
|
+
const [visibleOrigin] = startPoints.concat(endPoints).sort((pointA, pointB) => {
|
|
139
|
+
const angleA = pointA
|
|
140
|
+
.clone()
|
|
141
|
+
.setY(0)
|
|
142
|
+
.sub(cameraPosition)
|
|
143
|
+
.normalize()
|
|
144
|
+
.angleTo(cameraDirection.clone().setY(0));
|
|
145
|
+
const angleB = pointB
|
|
146
|
+
.clone()
|
|
147
|
+
.setY(0)
|
|
148
|
+
.sub(cameraPosition)
|
|
149
|
+
.normalize()
|
|
150
|
+
.angleTo(cameraDirection.clone().setY(0));
|
|
151
|
+
return angleA - angleB;
|
|
152
|
+
});
|
|
153
|
+
const data = rulerData.lines.map((line) => {
|
|
154
|
+
var _a, _b;
|
|
155
|
+
const start = line.start;
|
|
156
|
+
const end = line.end;
|
|
157
|
+
const { startLeft, startTop, distance, deg, visible, labelOffset, ruleLength } = getPositionAndVisible(new Vector3(start[0], -start[1], -start[2]), new Vector3(end[0], -end[1], -end[2]), visibleOrigin);
|
|
158
|
+
const children = [];
|
|
159
|
+
if (line.children && ((_a = line.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
160
|
+
(_b = line.children) === null || _b === void 0 ? void 0 : _b.forEach((l) => {
|
|
161
|
+
const start = l.start;
|
|
162
|
+
const end = l.end;
|
|
163
|
+
const { distance } = getPosition(new Vector3(start[0], -start[1], -start[2]), new Vector3(end[0], -end[1], -end[2]));
|
|
164
|
+
children.push({
|
|
165
|
+
width: distance,
|
|
166
|
+
state: l.state,
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
return {
|
|
171
|
+
width: distance,
|
|
172
|
+
left: startLeft,
|
|
173
|
+
top: startTop,
|
|
174
|
+
rotateDeg: deg,
|
|
175
|
+
state: line.state,
|
|
176
|
+
children,
|
|
177
|
+
labelOffset,
|
|
178
|
+
visible,
|
|
179
|
+
labelElement: options.distanceText(ruleLength),
|
|
180
|
+
};
|
|
181
|
+
});
|
|
182
|
+
rulerItemProp = data;
|
|
183
|
+
};
|
|
184
|
+
const nextFrameFreshRule = () => nextFrame(updatePanoRulerData);
|
|
185
|
+
const throttleFreshRule = throttle(updatePanoRulerData, 80);
|
|
186
|
+
onMount(() => {
|
|
187
|
+
updatePanoRulerData();
|
|
188
|
+
five.on('panoArrived', updatePanoRulerData);
|
|
189
|
+
five.on('modeChange', updatePanoRulerData);
|
|
190
|
+
five.on('cameraDirectionUpdate', nextFrameFreshRule);
|
|
191
|
+
five.on('movingToPano', nextFrameFreshRule);
|
|
192
|
+
five.on('mouseWheel', () => throttleFreshRule());
|
|
193
|
+
five.on('pinchGesture', () => throttleFreshRule());
|
|
194
|
+
});
|
|
195
|
+
onDestroy(() => {
|
|
196
|
+
five.off('panoArrived', updatePanoRulerData);
|
|
197
|
+
five.off('modeChange', updatePanoRulerData);
|
|
198
|
+
five.off('cameraDirectionUpdate', nextFrameFreshRule);
|
|
199
|
+
five.off('movingToPano', nextFrameFreshRule);
|
|
200
|
+
five.off('mouseWheel', () => throttleFreshRule());
|
|
201
|
+
five.off('pinchGesture', () => throttleFreshRule());
|
|
202
|
+
});
|
|
203
|
+
</script>
|
|
204
|
+
|
|
205
|
+
<div>
|
|
206
|
+
{#each rulerItemProp as itemData}
|
|
207
|
+
<RulerItem rulerItemProp="{itemData}" />
|
|
208
|
+
{/each}
|
|
209
|
+
</div>
|
|
210
|
+
|
|
211
|
+
<style>
|
|
212
|
+
</style>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<script>import { currentTarget } from '../store';
|
|
2
|
+
export let origins;
|
|
3
|
+
const handleClick = (id) => {
|
|
4
|
+
currentTarget.update(() => `${id}-PanoSpatialTagPlugin-${Date.now()}`);
|
|
5
|
+
};
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
{#each origins as origin}
|
|
9
|
+
<i
|
|
10
|
+
class:PanoSpatialTagPlugin__tag-origin={true}
|
|
11
|
+
class:PanoSpatialTagPlugin__tag-origin-destroy={origin.destroying}
|
|
12
|
+
style:top="{origin.top}%"
|
|
13
|
+
style:left="{origin.left}%"
|
|
14
|
+
style:visibility="{origin.front ? 'visible' : 'hidden'}"
|
|
15
|
+
on:click="{() => handleClick(origin.id)}"
|
|
16
|
+
/>
|
|
17
|
+
{/each}
|
|
18
|
+
|
|
19
|
+
<style>
|
|
20
|
+
.PanoSpatialTagPlugin__tag-origin {
|
|
21
|
+
position: absolute;
|
|
22
|
+
width: 0.5rem;
|
|
23
|
+
height: 0.5rem;
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
background: #fff;
|
|
26
|
+
box-shadow: 0 0 .6rem #fff;
|
|
27
|
+
transform: translate(-50%, -50%) scale(1);
|
|
28
|
+
transform-origin: center center;
|
|
29
|
+
animation: PanoSpatialTagPlugin__tag-origin 1.2s forwards;
|
|
30
|
+
pointer-events: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.PanoSpatialTagPlugin__tag-origin:after {
|
|
34
|
+
content: '';
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 50%;
|
|
37
|
+
height: 50%;
|
|
38
|
+
width: 2rem;
|
|
39
|
+
height: 2rem;
|
|
40
|
+
transform: translate(-50%, -50%);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.PanoSpatialTagPlugin__tag-origin-destroy {
|
|
44
|
+
transform: translate(-50%, -50%) scale(0.6);
|
|
45
|
+
animation: PanoSpatialTagPlugin__tag-origin-destroy 1.2s forwards .7s;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@keyframes PanoSpatialTagPlugin__tag-origin {
|
|
49
|
+
0% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
|
|
50
|
+
100% { transform: translate(-50%, -50%) scale(0.6); opacity: 1 }
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@keyframes PanoSpatialTagPlugin__tag-origin-destroy {
|
|
54
|
+
0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
|
|
55
|
+
10% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
|
|
56
|
+
100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
|
|
57
|
+
}
|
|
58
|
+
</style>
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
<script>import { onMount, onDestroy, afterUpdate } from 'svelte';
|
|
2
|
+
import '../typings';
|
|
3
|
+
import { currentTarget } from '../store';
|
|
4
|
+
export let id;
|
|
5
|
+
export let upsideDown;
|
|
6
|
+
export let content;
|
|
7
|
+
export let contentZoom;
|
|
8
|
+
export let lineWidthZoom;
|
|
9
|
+
export let lineHeightZoom;
|
|
10
|
+
export let destroying = false;
|
|
11
|
+
export let folded;
|
|
12
|
+
export let dispose;
|
|
13
|
+
export let events;
|
|
14
|
+
export let hooks;
|
|
15
|
+
let contentWidth = 0;
|
|
16
|
+
let contentHeight = 0;
|
|
17
|
+
let contentDom;
|
|
18
|
+
let show;
|
|
19
|
+
let timeoutId = setTimeout(() => {
|
|
20
|
+
if (!folded)
|
|
21
|
+
show = true;
|
|
22
|
+
timeoutId = undefined;
|
|
23
|
+
}, 100);
|
|
24
|
+
const handleClickContent = event => {
|
|
25
|
+
const eventsName = Object.keys(events);
|
|
26
|
+
let node = event.target;
|
|
27
|
+
while (node) {
|
|
28
|
+
const classNames = node.getAttribute('class');
|
|
29
|
+
if (!classNames) {
|
|
30
|
+
node = node.parentNode;
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
if (classNames.includes('PanoSpatialTagPlugin__tag-content')) {
|
|
34
|
+
node = null;
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
eventsName.forEach(key => {
|
|
38
|
+
if (classNames.includes(key))
|
|
39
|
+
events[key](id);
|
|
40
|
+
});
|
|
41
|
+
node = node.parentNode;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
onMount(() => {
|
|
45
|
+
hooks.emit('initTag', { id });
|
|
46
|
+
});
|
|
47
|
+
const unsubscribe = currentTarget.subscribe((str) => {
|
|
48
|
+
if (str === null)
|
|
49
|
+
return;
|
|
50
|
+
const [currentId, date] = str.split('-PanoSpatialTagPlugin-');
|
|
51
|
+
if (id === currentId) {
|
|
52
|
+
hooks.emit('clickOrigin', { id, show });
|
|
53
|
+
if (!timeoutId) {
|
|
54
|
+
show = folded;
|
|
55
|
+
folded = !folded;
|
|
56
|
+
timeoutId = setTimeout(() => {
|
|
57
|
+
timeoutId = undefined;
|
|
58
|
+
}, 1500);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
afterUpdate(() => {
|
|
63
|
+
contentWidth = contentDom.offsetWidth;
|
|
64
|
+
contentHeight = contentDom.offsetHeight;
|
|
65
|
+
if (timeoutId)
|
|
66
|
+
return;
|
|
67
|
+
show = !folded;
|
|
68
|
+
});
|
|
69
|
+
onDestroy(() => {
|
|
70
|
+
hooks.emit('destroyTag', { id });
|
|
71
|
+
unsubscribe();
|
|
72
|
+
dispose();
|
|
73
|
+
});
|
|
74
|
+
</script>
|
|
75
|
+
|
|
76
|
+
<div
|
|
77
|
+
class:PanoSpatialTagPlugin__tag-x={true}
|
|
78
|
+
class:PanoSpatialTagPlugin__tag-upside-down={upsideDown}
|
|
79
|
+
class:PanoSpatialTagPlugin__tag-show={show}
|
|
80
|
+
class:PanoSpatialTagPlugin__tag-hide={show === false || destroying}
|
|
81
|
+
id={'PanoSpatialTagPlugin__' + id}
|
|
82
|
+
style="height: {20 * lineHeightZoom}rem"
|
|
83
|
+
>
|
|
84
|
+
<div class="PanoSpatialTagPlugin__tag-shadow"
|
|
85
|
+
style="transform: translate({contentWidth / 2 * contentZoom * 3}px, {
|
|
86
|
+
contentHeight / 2 * (upsideDown ? -1 : 1) * contentZoom * 3
|
|
87
|
+
}px) scale({1 / contentZoom})"
|
|
88
|
+
/>
|
|
89
|
+
<div class="PanoSpatialTagPlugin__tag-line">
|
|
90
|
+
<i class="PanoSpatialTagPlugin__tag-flagpole"
|
|
91
|
+
style="width: {lineWidthZoom}rem;"
|
|
92
|
+
/>
|
|
93
|
+
<i class="PanoSpatialTagPlugin__tag-line1"/>
|
|
94
|
+
<i class="PanoSpatialTagPlugin__tag-line2"/>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="PanoSpatialTagPlugin__tag-animate" style="transform: scale({contentZoom * 3})">
|
|
97
|
+
<div class="PanoSpatialTagPlugin__tag-content" on:click="{handleClickContent}" bind:this={contentDom}>
|
|
98
|
+
{@html content}
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
<style>
|
|
104
|
+
.PanoSpatialTagPlugin__tag-x {
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: 0;
|
|
107
|
+
left: 0;
|
|
108
|
+
display: block;
|
|
109
|
+
white-space: nowrap;
|
|
110
|
+
box-sizing: border-box;
|
|
111
|
+
width: 25rem;
|
|
112
|
+
height: 14rem;
|
|
113
|
+
color: #FFF;
|
|
114
|
+
transform: translate(0, -100%);
|
|
115
|
+
transition: height .5s linear;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.PanoSpatialTagPlugin__tag-shadow {
|
|
119
|
+
content: '';
|
|
120
|
+
position: absolute;
|
|
121
|
+
width: 30rem;
|
|
122
|
+
height: 30rem;
|
|
123
|
+
top: -15rem;
|
|
124
|
+
left: -15rem;
|
|
125
|
+
z-index: -1;
|
|
126
|
+
opacity: 0;
|
|
127
|
+
transition: opacity .8s .6s;
|
|
128
|
+
background: url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');
|
|
129
|
+
background-size: 30rem 30rem;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.PanoSpatialTagPlugin__tag-line {
|
|
133
|
+
position: absolute;
|
|
134
|
+
left: -1rem;
|
|
135
|
+
width: 2rem;
|
|
136
|
+
height: 100%;
|
|
137
|
+
overflow: hidden;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.PanoSpatialTagPlugin__tag-flagpole {
|
|
141
|
+
position: absolute;
|
|
142
|
+
top: 0;
|
|
143
|
+
left: 1rem;
|
|
144
|
+
height: calc(100% - 1.5rem);
|
|
145
|
+
width: .15rem;
|
|
146
|
+
background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));
|
|
147
|
+
box-shadow: 0 .1rem .5rem rgba(0, 0, 0, .2);
|
|
148
|
+
opacity: 0;
|
|
149
|
+
transform: translate(-50%, 60%) scaleY(0);
|
|
150
|
+
transition: transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;
|
|
151
|
+
transform-origin: center bottom;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.PanoSpatialTagPlugin__tag-line1 {
|
|
155
|
+
position: absolute;
|
|
156
|
+
top: 0;
|
|
157
|
+
left: 0.3rem;
|
|
158
|
+
height: 1.8rem;
|
|
159
|
+
width: .1rem;
|
|
160
|
+
background: #fff;
|
|
161
|
+
opacity: 0;
|
|
162
|
+
transform: translate(-50%, 200%) scaleY(0);
|
|
163
|
+
transform-origin: center top;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.PanoSpatialTagPlugin__tag-line2 {
|
|
167
|
+
position: absolute;
|
|
168
|
+
top: 0;
|
|
169
|
+
left: 0.5rem;
|
|
170
|
+
height: 1.8rem;
|
|
171
|
+
width: .1rem;
|
|
172
|
+
background: #fff;
|
|
173
|
+
opacity: 0;
|
|
174
|
+
transform: translate(-50%, 200%) scaleY(0);
|
|
175
|
+
transform-origin: center top;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.PanoSpatialTagPlugin__tag-show .PanoSpatialTagPlugin__tag-line1 {
|
|
179
|
+
animation: PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.PanoSpatialTagPlugin__tag-show .PanoSpatialTagPlugin__tag-line2 {
|
|
183
|
+
animation: PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down {
|
|
187
|
+
transform: translate(0, 0);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.PanoSpatialTagPlugin__tag-upside-down .PanoSpatialTagPlugin__tag-line {
|
|
191
|
+
transform: scaleY(-1);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.PanoSpatialTagPlugin__tag-animate {
|
|
195
|
+
position: relative;
|
|
196
|
+
height: 100%;
|
|
197
|
+
overflow: hidden;
|
|
198
|
+
transform-origin: left top;
|
|
199
|
+
transition: transform .5s linear;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.PanoSpatialTagPlugin__tag-upside-down .PanoSpatialTagPlugin__tag-animate{
|
|
203
|
+
transform-origin: left bottom;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.PanoSpatialTagPlugin__tag-content {
|
|
207
|
+
position: absolute;
|
|
208
|
+
display: inline-block;
|
|
209
|
+
transform: translate(-100%, 0);
|
|
210
|
+
transition: transform .9s cubic-bezier(0,.65,.16,1.08) .6s;
|
|
211
|
+
padding-left: .5rem;
|
|
212
|
+
font-size: 1rem;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.PanoSpatialTagPlugin__tag-upside-down .PanoSpatialTagPlugin__tag-content{
|
|
216
|
+
bottom: 0;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.PanoSpatialTagPlugin__tag-show .PanoSpatialTagPlugin__tag-flagpole {
|
|
220
|
+
opacity: 1;
|
|
221
|
+
transform: translate(-50%, 0) scaleY(1);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.PanoSpatialTagPlugin__tag-upside-down .PanoSpatialTagPlugin__tag-shadow {
|
|
225
|
+
top: unset;
|
|
226
|
+
bottom: -15rem;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.PanoSpatialTagPlugin__tag-show .PanoSpatialTagPlugin__tag-shadow {
|
|
230
|
+
opacity: .32;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.PanoSpatialTagPlugin__tag-show .PanoSpatialTagPlugin__tag-content {
|
|
234
|
+
transform: translate(0, 0);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.PanoSpatialTagPlugin__tag-hide .PanoSpatialTagPlugin__tag-flagpole {
|
|
238
|
+
opacity: 0;
|
|
239
|
+
transform: translate(-50%, 60%) scaleY(0);
|
|
240
|
+
transition: transform .5s .55s, opacity .4s .55s;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.PanoSpatialTagPlugin__tag-hide .PanoSpatialTagPlugin__tag-shadow {
|
|
244
|
+
opacity: 0;
|
|
245
|
+
transition: opacity .8s;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.PanoSpatialTagPlugin__tag-hide .PanoSpatialTagPlugin__tag-content {
|
|
249
|
+
transform: translate(-100%, 0);
|
|
250
|
+
transition: transform .6s cubic-bezier(.53,.06,.88,.59);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.PanoSpatialTagPlugin__tag-hide .PanoSpatialTagPlugin__tag-content * {
|
|
254
|
+
pointer-events: none;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.PanoSpatialTagPlugin__tag-hide .PanoSpatialTagPlugin__tag-line1 {
|
|
258
|
+
opacity: 0.5;
|
|
259
|
+
transform: translate(-50%, 10%) scaleY(0);
|
|
260
|
+
animation: PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.PanoSpatialTagPlugin__tag-hide .PanoSpatialTagPlugin__tag-line2 {
|
|
264
|
+
opacity: 0.5;
|
|
265
|
+
transform: translate(-50%, 0) scaleY(0);
|
|
266
|
+
animation: PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
@keyframes PanoSpatialTagPlugin__tag-line1 {
|
|
270
|
+
0% { opacity: 0; transform: translate(-50%, 250%) scaleY(1); }
|
|
271
|
+
50% { opacity: 0.5; transform: translate(-50%, 135%) scaleY(1); }
|
|
272
|
+
100% { opacity: 0.5; transform: translate(-50%, 20%) scaleY(0); }
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
@keyframes PanoSpatialTagPlugin__tag-line2 {
|
|
276
|
+
0% { opacity: 0; transform: translate(-50%, 250%) scaleY(1); }
|
|
277
|
+
50% { opacity: 0.5; transform: translate(-50%, 125%) scaleY(1); }
|
|
278
|
+
100% { opacity: 0.5; transform: translate(-50%, 0) scaleY(0); }
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
@keyframes PanoSpatialTagPlugin__tag-line1-hide {
|
|
282
|
+
0% { opacity: 0.5; transform: translate(-50%, 10%) scaleY(0); }
|
|
283
|
+
50% { opacity: 0.2; transform: translate(-50%, 105%) scaleY(1); }
|
|
284
|
+
100% { opacity: 0; transform: translate(-50%, 200%) scaleY(0); }
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
@keyframes PanoSpatialTagPlugin__tag-line2-hide {
|
|
288
|
+
0% { opacity: 0.5; transform: translate(-50%, 0) scaleY(0); }
|
|
289
|
+
50% { opacity: 0.2; transform: translate(-50%, 100%) scaleY(1); }
|
|
290
|
+
100% { opacity: 0; transform: translate(-50%, 200%) scaleY(0); }
|
|
291
|
+
}
|
|
292
|
+
</style>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { Five, Subscribe } from '@realsee/five';
|
|
3
3
|
import CSS3DRenderPlugin from '../CSS3DRenderPlugin';
|
|
4
|
-
import Origins from './Components/origins';
|
|
5
|
-
import Tag from './Components/tag';
|
|
4
|
+
import Origins from './Components/origins.svelte';
|
|
5
|
+
import Tag from './Components/tag.svelte';
|
|
6
6
|
import { pluginStyle } from './style';
|
|
7
7
|
import render from '../shared-utils/tinyEJSrender';
|
|
8
8
|
const MESH_SIZE = 0.001;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<script>import { fade } from 'svelte/transition';
|
|
2
|
+
import { Image_Arrow } from '../../Assets/Icon';
|
|
3
|
+
import { cubicInOut } from 'svelte/easing';
|
|
4
|
+
import Shadow from './Shadow.svelte';
|
|
5
|
+
export let direction = 'right';
|
|
6
|
+
export let visible = true;
|
|
7
|
+
export let duration = 0;
|
|
8
|
+
export let inDelay = 0;
|
|
9
|
+
export let outDelay = 0;
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
{#if visible}
|
|
13
|
+
<div class="arrow-wrapper">
|
|
14
|
+
<Shadow center blurRadius={9} spreadRadius={3} />
|
|
15
|
+
<div
|
|
16
|
+
on:click
|
|
17
|
+
in:fade|local={{ duration, delay: inDelay, easing: cubicInOut }}
|
|
18
|
+
out:fade|local={{ duration, delay: outDelay, easing: cubicInOut }}
|
|
19
|
+
class="arrow {direction}"
|
|
20
|
+
style="background-image: url({Image_Arrow});"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
{/if}
|
|
24
|
+
|
|
25
|
+
<style>
|
|
26
|
+
.arrow {
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
background-size: 100%;
|
|
30
|
+
transition: transform 400ms ease-in-out;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
pointer-events: auto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.arrow-wrapper {
|
|
36
|
+
position: relative;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.arrow.left {
|
|
42
|
+
transform: rotate(0deg);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.arrow.right {
|
|
46
|
+
transform: rotate(-180deg);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.arrow.top {
|
|
50
|
+
transform: rotate(90deg);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.arrow.bottom {
|
|
54
|
+
transform: rotate(-90deg);
|
|
55
|
+
}
|
|
56
|
+
</style>
|