@realsee/dnalogel 2.1.0-alpha.3 → 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/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/CSS3DRenderPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/CameraMovementPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/CameraMovementPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/CruisePlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/CruisePlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/CruisePlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/CruisePlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/CruisePlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/CruisePlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/CruisePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/CruisePlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/CruisePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/CruisePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/CruisePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/GuideLinePlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/GuideLinePlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/ItemLabelPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/ItemLabelPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/ModelChassisCompassPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/ModelChassisCompassPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/ModelEntryDoorGuidePlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/ModelEntryDoorGuidePlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/ModelItemLabelPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/ModelItemLabelPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/ModelRoomLabelPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/ModelRoomLabelPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/ModelTVVideoPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/ModelTVVideoPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/ModelViewPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/ModelViewPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/Object3DHelperPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/Object3DHelperPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/Object3DHelperPlugin/index.js +256 -88
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/PanoCompassPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/PanoCompassPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoCursorRaycasterPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/PanoCursorRaycasterPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoDoorLabelPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/PanoDoorLabelPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoMeasurePlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/PanoMeasurePlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoRulerPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/PanoRulerPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoRulerProPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/PanoRulerProPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoSpatialTagPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/PanoSpatialTagPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/PanoTagPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/PanoTagPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/PanoTagPlugin/index.d.ts +1 -0
- package/dist/PanoTagPlugin/index.js +119 -94
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- 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 +7 -3
- package/dist/floorplan/MapviewFloorplanPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/floorplan/MapviewFloorplanPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/floorplan/ModelFloorplanPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/floorplan/ModelFloorplanPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/floorplan/PanoFloorplanRadarPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/floorplan/TopviewFloorplanPlugin/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/dist/floorplan/TopviewFloorplanPlugin/Object3DHelperPlugin/typings.d.ts +24 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/index.d.ts +1 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -1
- package/dist/index.es.js +316 -154
- package/dist/index.js +351 -189
- package/dist/index.umd.js +351 -189
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +2 -2
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- 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 +14 -7
- package/docs/classes/PanoTagPluginController.html +43 -43
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +15 -0
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/DimensionType.html +1 -0
- 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 -0
- package/docs/enums/PointType.html +1 -0
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +2 -2
- 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 +11 -0
- package/docs/interfaces/Tags.html +5 -0
- package/docs/modules.html +25 -17
- 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/Object3DHelperPlugin/Controller.d.ts +44 -4
- package/libs/Object3DHelperPlugin/Controller.js +136 -7
- package/libs/Object3DHelperPlugin/typings.d.ts +24 -0
- package/libs/Object3DHelperPlugin/typings.js +1 -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.js +1 -2
- package/libs/PanoTagPlugin/Components/Common/Arrow.svelte +56 -0
- package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -2
- 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.js +2 -2
- 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.js +9 -9
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.svelte +166 -0
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.svelte +234 -0
- package/libs/PanoTagPlugin/Components/Tag/MediaPanel.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +172 -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 +28 -23
- package/libs/PanoTagPlugin/Components/Tag/index.svelte +145 -0
- package/libs/PanoTagPlugin/Components/TagWrapper.js +9 -1
- package/libs/PanoTagPlugin/Components/TagWrapper.svelte +69 -0
- package/libs/PanoTagPlugin/controller/index.js +9 -9
- package/libs/PanoTagPlugin/index.d.ts +1 -0
- package/libs/PanoTagPlugin/index.js +1 -0
- package/libs/PanoTagPlugin/mocks/mock1.js +1 -1
- package/libs/PanoTagPlugin/mocks/mock6.js +1 -1
- package/libs/PanoTagPlugin/tag.config.js +2 -1
- package/libs/PanoTagPlugin/typings/controller.d.ts +2 -1
- package/libs/PanoTagPlugin/typings/tag.d.ts +7 -3
- package/libs/PanoTagPlugin/typings/tag.js +1 -1
- 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 +13 -8
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +11 -10
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +24 -5
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +9 -22
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +3 -3
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +9 -7
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +3 -2
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +18 -18
- package/libs/shared-utils/Object3DHelper/index.js +8 -12
- 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,15 +1,49 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
|
-
import
|
|
2
|
+
import * as BasePlugin from '../base/BasePlugin';
|
|
3
3
|
import type * as THREE from 'three';
|
|
4
4
|
import { Object3DHelper } from '../shared-utils/Object3DHelper';
|
|
5
|
-
import type { Object3DHelperState
|
|
5
|
+
import type { Object3DHelperState } from '../shared-utils/Object3DHelper/typings';
|
|
6
|
+
import type { Object3DHelperPluginEventMap, Object3DHelperPluginState } from './typings';
|
|
6
7
|
export declare const VERSION = "v1.0.0";
|
|
7
8
|
export declare const PLUGIN: string;
|
|
8
|
-
export declare class Object3DHelperController extends
|
|
9
|
+
export declare class Object3DHelperController extends BasePlugin.Controller<Object3DHelperPluginState, Object3DHelperPluginEventMap> {
|
|
9
10
|
version: string;
|
|
10
11
|
name: string;
|
|
11
|
-
|
|
12
|
+
state: Object3DHelperState;
|
|
13
|
+
objectHelperMap: Map<THREE.Object3D, Object3DHelper>;
|
|
12
14
|
constructor(five: Five);
|
|
15
|
+
/**
|
|
16
|
+
* @description Show guide line
|
|
17
|
+
*/
|
|
18
|
+
show(options?: {
|
|
19
|
+
userAction?: boolean;
|
|
20
|
+
}): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* @description Hide guide line
|
|
23
|
+
*/
|
|
24
|
+
hide(options?: {
|
|
25
|
+
userAction?: boolean;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* @description Enable
|
|
29
|
+
*/
|
|
30
|
+
enable(options?: {
|
|
31
|
+
userAction?: boolean;
|
|
32
|
+
}): void;
|
|
33
|
+
/**
|
|
34
|
+
* @description Disable
|
|
35
|
+
*/
|
|
36
|
+
disable(options?: {
|
|
37
|
+
userAction?: boolean;
|
|
38
|
+
}): void;
|
|
39
|
+
/**
|
|
40
|
+
* @description Dispose
|
|
41
|
+
*/
|
|
42
|
+
dispose(): void;
|
|
43
|
+
setState(state: Partial<Object3DHelperState>, options?: {
|
|
44
|
+
userAction?: boolean;
|
|
45
|
+
} & Record<string, any>): void;
|
|
46
|
+
getObject3DHelper(object3D: THREE.Object3D): Object3DHelper;
|
|
13
47
|
/**
|
|
14
48
|
* @description 添加 helper
|
|
15
49
|
* @param { THREE.Object3D } object3D 要添加helper的物体
|
|
@@ -22,4 +56,10 @@ export declare class Object3DHelperController extends Object3DHelper implements
|
|
|
22
56
|
rotateHelper?: boolean;
|
|
23
57
|
scaleHelper?: boolean;
|
|
24
58
|
}): void;
|
|
59
|
+
removeObject3DHelper(object3D: THREE.Object3D): void;
|
|
60
|
+
private handleEnable;
|
|
61
|
+
private handleVisible;
|
|
62
|
+
private handleDispose;
|
|
63
|
+
private everyHelperDo;
|
|
64
|
+
private actionIfStateIsEnabled;
|
|
25
65
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as BasePlugin from '../base/BasePlugin';
|
|
1
2
|
import { MoveHelper, RotateHelper, RectangleScaleHelper } from '../shared-utils/Object3DHelper/Helper';
|
|
2
3
|
import { MoveController } from '../shared-utils/Object3DHelper/Controller/MoveController';
|
|
3
4
|
import { FiveControllerWrapper } from './FiveControllerWrapper';
|
|
@@ -7,9 +8,18 @@ import { CSS3DScaleController } from '../shared-utils/Object3DHelper/Controller/
|
|
|
7
8
|
export const VERSION = 'v1.0.0';
|
|
8
9
|
const PLUGIN_NAME = 'Object3DHelperPlugin';
|
|
9
10
|
export const PLUGIN = `${PLUGIN_NAME}@${VERSION}`;
|
|
10
|
-
|
|
11
|
+
const disposedErrorLog = () => {
|
|
12
|
+
console.error(`${PLUGIN} is disposed`);
|
|
13
|
+
};
|
|
14
|
+
const disableWarnLog = () => {
|
|
15
|
+
console.warn(`${PLUGIN} is disabled`);
|
|
16
|
+
};
|
|
17
|
+
const disableErrorLog = () => {
|
|
18
|
+
console.error(`${PLUGIN} is disabled`);
|
|
19
|
+
};
|
|
20
|
+
export class Object3DHelperController extends BasePlugin.Controller {
|
|
11
21
|
constructor(five) {
|
|
12
|
-
super();
|
|
22
|
+
super(five);
|
|
13
23
|
Object.defineProperty(this, "version", {
|
|
14
24
|
enumerable: true,
|
|
15
25
|
configurable: true,
|
|
@@ -22,15 +32,80 @@ export class Object3DHelperController extends Object3DHelper {
|
|
|
22
32
|
writable: true,
|
|
23
33
|
value: PLUGIN_NAME
|
|
24
34
|
});
|
|
25
|
-
Object.defineProperty(this, "
|
|
35
|
+
Object.defineProperty(this, "state", {
|
|
26
36
|
enumerable: true,
|
|
27
37
|
configurable: true,
|
|
28
38
|
writable: true,
|
|
29
|
-
value:
|
|
39
|
+
value: {
|
|
40
|
+
visible: true,
|
|
41
|
+
enabled: true,
|
|
42
|
+
disposed: false,
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(this, "objectHelperMap", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
configurable: true,
|
|
48
|
+
writable: true,
|
|
49
|
+
value: new Map()
|
|
30
50
|
});
|
|
31
51
|
this.five = five;
|
|
32
52
|
Object.assign(window, { [`__${PLUGIN_NAME.toUpperCase()}_DEBUG__`]: this });
|
|
33
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* @description Show guide line
|
|
56
|
+
*/
|
|
57
|
+
async show(options) {
|
|
58
|
+
this.setState({ visible: true }, options);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* @description Hide guide line
|
|
62
|
+
*/
|
|
63
|
+
async hide(options) {
|
|
64
|
+
this.setState({ visible: false }, options);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @description Enable
|
|
68
|
+
*/
|
|
69
|
+
enable(options) {
|
|
70
|
+
this.setState({ enabled: true }, options);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @description Disable
|
|
74
|
+
*/
|
|
75
|
+
disable(options) {
|
|
76
|
+
this.setState({ enabled: false }, options);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @description Dispose
|
|
80
|
+
*/
|
|
81
|
+
dispose() {
|
|
82
|
+
this.setState({ disposed: true });
|
|
83
|
+
}
|
|
84
|
+
setState(state, options) {
|
|
85
|
+
if (this.state.disposed)
|
|
86
|
+
return disposedErrorLog();
|
|
87
|
+
if (!this.state.enabled) {
|
|
88
|
+
// when plugin is disabled, only can change enabled or disposed to true
|
|
89
|
+
if (state.enabled !== true && state.disposed !== true)
|
|
90
|
+
return disableErrorLog();
|
|
91
|
+
}
|
|
92
|
+
const prevState = Object.assign({}, this.state);
|
|
93
|
+
this.state = Object.assign(Object.assign({}, this.state), state);
|
|
94
|
+
if (state.disposed !== undefined && state.disposed !== prevState.disposed) {
|
|
95
|
+
if (state.disposed)
|
|
96
|
+
this.handleDispose();
|
|
97
|
+
}
|
|
98
|
+
if (state.visible !== undefined && state.visible !== prevState.visible) {
|
|
99
|
+
this.handleVisible(state.visible);
|
|
100
|
+
}
|
|
101
|
+
if (state.enabled !== undefined && state.enabled !== prevState.enabled) {
|
|
102
|
+
this.handleEnable(state.enabled);
|
|
103
|
+
}
|
|
104
|
+
this.hooks.emit('stateChange', { state: this.state, prevState });
|
|
105
|
+
}
|
|
106
|
+
getObject3DHelper(object3D) {
|
|
107
|
+
return this.objectHelperMap.get(object3D);
|
|
108
|
+
}
|
|
34
109
|
/**
|
|
35
110
|
* @description 添加 helper
|
|
36
111
|
* @param { THREE.Object3D } object3D 要添加helper的物体
|
|
@@ -40,6 +115,12 @@ export class Object3DHelperController extends Object3DHelper {
|
|
|
40
115
|
*/
|
|
41
116
|
addObject3DHelper(object3D, config = {}) {
|
|
42
117
|
var _a;
|
|
118
|
+
if (this.objectHelperMap.has(object3D)) {
|
|
119
|
+
console.warn(`Object3DHelperPlugin: object3D ${object3D.name} already has helper`);
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
const helper = new Object3DHelper();
|
|
123
|
+
this.objectHelperMap.set(object3D, helper);
|
|
43
124
|
const container = (_a = this.five.getElement()) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
44
125
|
const camera = this.five.camera;
|
|
45
126
|
// 创建空的helperGroup
|
|
@@ -49,7 +130,7 @@ export class Object3DHelperController extends Object3DHelper {
|
|
|
49
130
|
if (moveHelper) {
|
|
50
131
|
const moveHelper = new MoveHelper(object3D);
|
|
51
132
|
const controllerWrapper = new FiveControllerWrapper(this.five, MoveController, object3D, moveHelper);
|
|
52
|
-
|
|
133
|
+
helper.addControllers({ moveController: controllerWrapper.helperController });
|
|
53
134
|
}
|
|
54
135
|
if (rotateHelper) {
|
|
55
136
|
let angleTipsParams;
|
|
@@ -57,13 +138,13 @@ export class Object3DHelperController extends Object3DHelper {
|
|
|
57
138
|
angleTipsParams = { container };
|
|
58
139
|
const rotateHelper = new RotateHelper(object3D, angleTipsParams);
|
|
59
140
|
const controllerWrapper = new FiveControllerWrapper(this.five, RotateController, object3D, rotateHelper);
|
|
60
|
-
|
|
141
|
+
helper.addControllers({ rotateController: controllerWrapper.helperController });
|
|
61
142
|
}
|
|
62
143
|
if (scaleHelper) {
|
|
63
144
|
if (container) {
|
|
64
145
|
const scaleHelper = new RectangleScaleHelper(object3D, container, camera, this.five.scene);
|
|
65
146
|
const controllerWrapper = new FiveControllerWrapper(this.five, CSS3DScaleController, object3D, scaleHelper);
|
|
66
|
-
|
|
147
|
+
helper.addControllers({ scaleController: controllerWrapper.helperController });
|
|
67
148
|
}
|
|
68
149
|
}
|
|
69
150
|
// if (mergeConfig.outlineHelper) {
|
|
@@ -73,4 +154,52 @@ export class Object3DHelperController extends Object3DHelper {
|
|
|
73
154
|
// }
|
|
74
155
|
// this.five.scene.add(helperGroup)
|
|
75
156
|
}
|
|
157
|
+
removeObject3DHelper(object3D) {
|
|
158
|
+
const helper = this.objectHelperMap.get(object3D);
|
|
159
|
+
if (!helper)
|
|
160
|
+
return;
|
|
161
|
+
this.objectHelperMap.delete(object3D);
|
|
162
|
+
helper.dispose();
|
|
163
|
+
}
|
|
164
|
+
handleEnable(enabled, userAction = true) {
|
|
165
|
+
console.log({ enabled });
|
|
166
|
+
if (enabled) {
|
|
167
|
+
this.everyHelperDo((helper) => helper.enable());
|
|
168
|
+
this.hooks.emit('enable', { userAction });
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
this.everyHelperDo((helper) => helper.disable());
|
|
172
|
+
this.hooks.emit('disable', { userAction });
|
|
173
|
+
}
|
|
174
|
+
this.state.enabled = enabled;
|
|
175
|
+
}
|
|
176
|
+
handleVisible(visible, userAction = true) {
|
|
177
|
+
console.log({ visible });
|
|
178
|
+
if (visible) {
|
|
179
|
+
this.everyHelperDo((helper) => helper.show());
|
|
180
|
+
this.actionIfStateIsEnabled(() => this.hooks.emit('show', { userAction }));
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
this.everyHelperDo((helper) => helper.hide());
|
|
184
|
+
this.actionIfStateIsEnabled(() => this.hooks.emit('hide', { userAction }));
|
|
185
|
+
}
|
|
186
|
+
this.state.visible = visible;
|
|
187
|
+
}
|
|
188
|
+
handleDispose() {
|
|
189
|
+
this.everyHelperDo((helper) => helper.dispose());
|
|
190
|
+
}
|
|
191
|
+
everyHelperDo(func) {
|
|
192
|
+
this.objectHelperMap.forEach((helper) => {
|
|
193
|
+
if (helper)
|
|
194
|
+
func(helper);
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
actionIfStateIsEnabled(func, options) {
|
|
198
|
+
if (this.state.enabled)
|
|
199
|
+
return func();
|
|
200
|
+
else {
|
|
201
|
+
if (options === null || options === void 0 ? void 0 : options.warnLog)
|
|
202
|
+
disableWarnLog();
|
|
203
|
+
}
|
|
204
|
+
}
|
|
76
205
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface Object3DHelperPluginState {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
visible: boolean;
|
|
4
|
+
disposed: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare type Object3DHelperPluginEventMap = {
|
|
7
|
+
show: (options?: {
|
|
8
|
+
userAction?: boolean;
|
|
9
|
+
}) => void;
|
|
10
|
+
hide: (options?: {
|
|
11
|
+
userAction?: boolean;
|
|
12
|
+
}) => void;
|
|
13
|
+
enable: (options?: {
|
|
14
|
+
userAction?: boolean;
|
|
15
|
+
}) => void;
|
|
16
|
+
disable: (options?: {
|
|
17
|
+
userAction?: boolean;
|
|
18
|
+
}) => void;
|
|
19
|
+
dispose: () => void;
|
|
20
|
+
stateChange: (params: {
|
|
21
|
+
state: Object3DHelperPluginState;
|
|
22
|
+
prevState?: Object3DHelperPluginState;
|
|
23
|
+
}) => void;
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
/**
|