@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,85 @@
|
|
|
1
|
+
<script>import { onMount } from 'svelte';
|
|
2
|
+
import { CAMERA_IMAGE } from '../../Assets/camera';
|
|
3
|
+
import throttle from '../../../shared-utils/throttle';
|
|
4
|
+
export let five;
|
|
5
|
+
export let pxmm;
|
|
6
|
+
export let floorplanData;
|
|
7
|
+
export let cameraImageUrl;
|
|
8
|
+
let panoIndex = five.getCurrentState().panoIndex;
|
|
9
|
+
let longitude = five.getCurrentState().longitude;
|
|
10
|
+
// 初始状态,不能等 mount 之后再计算,那样第一次 camera 展示的时候也会有动画
|
|
11
|
+
$: positionTransform = getCameraPositionTransform(floorplanData, panoIndex);
|
|
12
|
+
$: rotateTransform = getCameraRotateTransform(longitude);
|
|
13
|
+
/** 获取相机在当前 Five 状态下的位移 */
|
|
14
|
+
function getCameraPositionTransform(floorplanData, panoIndex) {
|
|
15
|
+
const bounding = floorplanData.bounding;
|
|
16
|
+
const floorplanObserver = floorplanData.observers[panoIndex];
|
|
17
|
+
if (!floorplanObserver)
|
|
18
|
+
return '';
|
|
19
|
+
const clientWidth = (bounding.max.x - bounding.min.x) * pxmm;
|
|
20
|
+
const clientHeight = (bounding.max.y - bounding.min.y) * pxmm;
|
|
21
|
+
const left = Math.floor(floorplanObserver.positionInImage.x * clientWidth);
|
|
22
|
+
const top = Math.floor(floorplanObserver.positionInImage.y * clientHeight);
|
|
23
|
+
return `translate(${left}px, ${top}px)`;
|
|
24
|
+
}
|
|
25
|
+
/** 获取相机在当前 Five 状态下的旋转 */
|
|
26
|
+
function getCameraRotateTransform(longitude) {
|
|
27
|
+
// 为什么要加 45 ==> 因为 UI 给的图初始角度是 -45
|
|
28
|
+
const rotate = Math.floor((longitude / Math.PI) * 180) * -1 + 45;
|
|
29
|
+
return `rotate(${rotate}deg)`;
|
|
30
|
+
}
|
|
31
|
+
function onFivePanoWillArrive(_panoIndex) {
|
|
32
|
+
panoIndex = _panoIndex;
|
|
33
|
+
}
|
|
34
|
+
const onFiveCameraDirectionUpdate = throttle((pose) => {
|
|
35
|
+
longitude = pose.longitude;
|
|
36
|
+
}, 1000 / 60);
|
|
37
|
+
onMount(() => {
|
|
38
|
+
five.on('panoWillArrive', onFivePanoWillArrive);
|
|
39
|
+
five.on('cameraDirectionUpdate', onFiveCameraDirectionUpdate);
|
|
40
|
+
return function dispose() {
|
|
41
|
+
five.off('panoWillArrive', onFivePanoWillArrive);
|
|
42
|
+
five.off('cameraDirectionUpdate', onFiveCameraDirectionUpdate);
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<div class="plugin-radar__camera-wrapper">
|
|
48
|
+
<div class="plugin-radar__camera-position" style:transform={positionTransform}>
|
|
49
|
+
<div
|
|
50
|
+
class="plugin-radar__camera-rotate"
|
|
51
|
+
style:transform={rotateTransform}
|
|
52
|
+
style="background-image: url({cameraImageUrl || CAMERA_IMAGE})"
|
|
53
|
+
/>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<style>
|
|
58
|
+
.plugin-radar__camera-wrapper {
|
|
59
|
+
width: 100%;
|
|
60
|
+
height: 100%;
|
|
61
|
+
position: absolute;
|
|
62
|
+
pointer-events: none;
|
|
63
|
+
}
|
|
64
|
+
.plugin-radar__camera-position {
|
|
65
|
+
position: absolute;
|
|
66
|
+
left: 0;
|
|
67
|
+
top: 0;
|
|
68
|
+
width: 0;
|
|
69
|
+
height: 0;
|
|
70
|
+
transform: none;
|
|
71
|
+
pointer-events: none;
|
|
72
|
+
transition: transform 1s linear;
|
|
73
|
+
}
|
|
74
|
+
.plugin-radar__camera-rotate {
|
|
75
|
+
position: absolute;
|
|
76
|
+
left: -15px;
|
|
77
|
+
top: -15px;
|
|
78
|
+
width: 17px;
|
|
79
|
+
height: 17px;
|
|
80
|
+
transform-origin: 15px 15px;
|
|
81
|
+
transform: rotate(45deg);
|
|
82
|
+
background-repeat: no-repeat;
|
|
83
|
+
background-size: 100%;
|
|
84
|
+
}
|
|
85
|
+
</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script>import ExtraObjects from './ExtraObjects.svelte';
|
|
2
|
+
import BaseImage from '../../../Components/BaseImage.svelte';
|
|
3
|
+
import Highlight from '../../../Components/RoomHighlight/RoomHighlight.svelte';
|
|
4
|
+
export let five;
|
|
5
|
+
export let pxmm;
|
|
6
|
+
export let floorIndex;
|
|
7
|
+
export let hoverEnable;
|
|
8
|
+
export let floorplanData;
|
|
9
|
+
export let extraObjects = [];
|
|
10
|
+
$: currentFloorExtraObjects = extraObjects === null || extraObjects === void 0 ? void 0 : extraObjects.filter((object) => object.floorIndex === floorIndex);
|
|
11
|
+
const onRoomHeightClick = undefined;
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<BaseImage {...{ floorIndex, floorplanData }} />
|
|
15
|
+
<ExtraObjects extraObjects={currentFloorExtraObjects} />
|
|
16
|
+
{#if hoverEnable}
|
|
17
|
+
<Highlight {...{ five, pxmm, floorIndex, floorplanData, onRoomHeightClick }} />
|
|
18
|
+
{/if}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<script>export let extraObjects = [];
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
<div class="plugin-pano-floorplan__extra-objects">
|
|
5
|
+
{#each extraObjects as extraObject (extraObject.id)}
|
|
6
|
+
<div
|
|
7
|
+
class="plugin-pano-floorplan__extra-object-item--position"
|
|
8
|
+
style:top="{extraObject.positionInImage.y * 100}%"
|
|
9
|
+
style:left="{extraObject.positionInImage.x * 100}%"
|
|
10
|
+
>
|
|
11
|
+
<div
|
|
12
|
+
class="plugin-pano-floorplan__extra-object-item"
|
|
13
|
+
style:width="{extraObject.icon.width / 16}rem"
|
|
14
|
+
style:height="{extraObject.icon.height / 16}rem"
|
|
15
|
+
style="background-image: {`url(${extraObject.icon.url})`}"
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
{/each}
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<style>
|
|
22
|
+
.plugin-pano-floorplan__extra-objects {
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 0;
|
|
25
|
+
left: 0;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.plugin-pano-floorplan__extra-object-item--position {
|
|
32
|
+
position: absolute;
|
|
33
|
+
width: 0;
|
|
34
|
+
height: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.plugin-pano-floorplan__extra-object-item {
|
|
38
|
+
transform: translate(-50%, -50%);
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<script>import { onMount } from 'svelte';
|
|
2
|
+
import Camera from './Camera.svelte';
|
|
3
|
+
import CurrentFloor from './CurrentFloor/CurrentFloor.svelte';
|
|
4
|
+
export let five;
|
|
5
|
+
export let visible;
|
|
6
|
+
export let hoverEnable;
|
|
7
|
+
export let floorplanData;
|
|
8
|
+
export let cameraImageUrl;
|
|
9
|
+
export let extraObjects = [];
|
|
10
|
+
let pxmm = 0;
|
|
11
|
+
let floorIndex = 0;
|
|
12
|
+
let clientWidth = 0;
|
|
13
|
+
let clientHeight = 0;
|
|
14
|
+
let contentWidth = 0;
|
|
15
|
+
let contentHeight = 0;
|
|
16
|
+
$: {
|
|
17
|
+
const size = Math.min(clientWidth, clientHeight);
|
|
18
|
+
const { max, min } = floorplanData.bounding;
|
|
19
|
+
const boundingWidth = max.x - min.x;
|
|
20
|
+
const boundingHeight = max.y - min.y;
|
|
21
|
+
const contentSize = (function getSize() {
|
|
22
|
+
if (boundingWidth > boundingHeight)
|
|
23
|
+
return [size, (size / boundingWidth) * boundingHeight];
|
|
24
|
+
return [(size / boundingHeight) * boundingWidth, size];
|
|
25
|
+
})();
|
|
26
|
+
contentWidth = contentSize[0];
|
|
27
|
+
contentHeight = contentSize[1];
|
|
28
|
+
pxmm = contentWidth / boundingWidth;
|
|
29
|
+
}
|
|
30
|
+
function handlePanoArrived(panoIndex) {
|
|
31
|
+
floorIndex = five.work.observers[panoIndex].floorIndex;
|
|
32
|
+
}
|
|
33
|
+
onMount(() => {
|
|
34
|
+
five.on('panoArrived', handlePanoArrived);
|
|
35
|
+
return () => {
|
|
36
|
+
five.off('panoArrived', handlePanoArrived);
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
{#if visible}
|
|
42
|
+
<div class="plugin-floorplan-radar" bind:clientWidth bind:clientHeight>
|
|
43
|
+
{#if clientWidth !== 0}
|
|
44
|
+
<div class="plugin-floorplan-radar-container" style:width="{contentWidth}px" style:height="{contentHeight}px">
|
|
45
|
+
<CurrentFloor {...{ five, pxmm, floorIndex, floorplanData, hoverEnable, extraObjects }} />
|
|
46
|
+
<Camera {...{ pxmm, five, floorplanData, cameraImageUrl }} />
|
|
47
|
+
</div>
|
|
48
|
+
{/if}
|
|
49
|
+
</div>
|
|
50
|
+
{/if}
|
|
51
|
+
|
|
52
|
+
<style>
|
|
53
|
+
.plugin-floorplan-radar {
|
|
54
|
+
width: 100%;
|
|
55
|
+
height: 100%;
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
align-items: center;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.plugin-floorplan-radar-container {
|
|
62
|
+
position: relative;
|
|
63
|
+
}
|
|
64
|
+
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import equal from '../../shared-utils/equal';
|
|
3
|
-
import Main from '../Components/Main';
|
|
3
|
+
import Main from '../Components/Main.svelte';
|
|
4
4
|
import formatData from '../utils/formatData';
|
|
5
5
|
import { CAMERA_IMAGE } from '../Assets/camera';
|
|
6
6
|
import { omit } from '../../shared-utils/filter';
|
|
@@ -22,10 +22,10 @@ export declare abstract class BaseController<T extends BaseHelper = BaseHelper,
|
|
|
22
22
|
hide(): void;
|
|
23
23
|
dispose(): void;
|
|
24
24
|
updateHelperPosition(): void;
|
|
25
|
-
|
|
25
|
+
updateHelperQuaternion(): void;
|
|
26
26
|
setHelperMatrix4(matrix4: THREE.Matrix4, origin?: THREE.Vector3): void;
|
|
27
27
|
setHelperQuaternion(quaternion: THREE.Quaternion, origin: THREE.Vector3): void;
|
|
28
|
-
|
|
28
|
+
applyHelperScaleMatrix4(matrix4: THREE.Matrix4, params?: {
|
|
29
29
|
origin?: THREE.Vector3;
|
|
30
30
|
helperOrigin?: THREE.Vector3;
|
|
31
31
|
}): void;
|
|
@@ -89,6 +89,7 @@ export class BaseController {
|
|
|
89
89
|
this.scene = scene;
|
|
90
90
|
this.domEvents = new DomEvents(camera, container);
|
|
91
91
|
this.needsRender = needsRender !== null && needsRender !== void 0 ? needsRender : (() => { });
|
|
92
|
+
this.updateHelperQuaternion();
|
|
92
93
|
this.updateHelperPosition();
|
|
93
94
|
this.enable();
|
|
94
95
|
}
|
|
@@ -122,17 +123,20 @@ export class BaseController {
|
|
|
122
123
|
updateHelperPosition() {
|
|
123
124
|
this.helperObject3D.updatePosition();
|
|
124
125
|
}
|
|
125
|
-
|
|
126
|
-
this.helperObject3D.
|
|
126
|
+
updateHelperQuaternion() {
|
|
127
|
+
this.helperObject3D.updateQuaternion();
|
|
127
128
|
}
|
|
129
|
+
// public setHelperPosition(position: THREE.Vector3) {
|
|
130
|
+
// this.helperObject3D.setPosition(position)
|
|
131
|
+
// }
|
|
128
132
|
setHelperMatrix4(matrix4, origin) {
|
|
129
133
|
this.helperObject3D.updateMatrix4(matrix4, origin);
|
|
130
134
|
}
|
|
131
135
|
setHelperQuaternion(quaternion, origin) {
|
|
132
|
-
this.helperObject3D.
|
|
136
|
+
this.helperObject3D.applyHelperQuaternion(quaternion, origin);
|
|
133
137
|
}
|
|
134
|
-
|
|
135
|
-
this.helperObject3D.
|
|
138
|
+
applyHelperScaleMatrix4(matrix4, params) {
|
|
139
|
+
this.helperObject3D.applyHelperScaleMatrix4(matrix4, params);
|
|
136
140
|
}
|
|
137
141
|
onWantsGesture(type, pointers, final) {
|
|
138
142
|
if (this.isDragging)
|
|
@@ -13,13 +13,13 @@ export declare abstract class BaseHelper<OriginObject3D extends Object3D = Objec
|
|
|
13
13
|
show(): void;
|
|
14
14
|
hide(): void;
|
|
15
15
|
updatePosition(): void;
|
|
16
|
-
|
|
16
|
+
updateQuaternion(): void;
|
|
17
17
|
updateMatrix4(matrix: THREE.Matrix4, origin?: THREE.Vector3): void;
|
|
18
|
-
|
|
18
|
+
applyHelperScaleMatrix4(matrix: THREE.Matrix4, params?: {
|
|
19
19
|
origin?: THREE.Vector3;
|
|
20
20
|
helperOrigin?: THREE.Vector3;
|
|
21
21
|
}): void;
|
|
22
|
-
|
|
22
|
+
applyHelperQuaternion(quaternion: THREE.Quaternion, origin?: THREE.Vector3): void;
|
|
23
23
|
abstract showDraggingHelper(directions?: Direction[]): void;
|
|
24
24
|
abstract dispose(): void;
|
|
25
25
|
}
|
|
@@ -32,16 +32,19 @@ export class BaseHelper extends Object3D {
|
|
|
32
32
|
updatePosition() {
|
|
33
33
|
this.position.copy(this.originObject3D.position);
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
this.
|
|
35
|
+
updateQuaternion() {
|
|
36
|
+
this.quaternion.copy(this.originObject3D.quaternion);
|
|
37
37
|
}
|
|
38
|
+
// public setPosition(position: Vector3) {
|
|
39
|
+
// this.position.copy(position)
|
|
40
|
+
// }
|
|
38
41
|
updateMatrix4(matrix, origin) {
|
|
39
42
|
this.applyMatrix4(matrix);
|
|
40
43
|
}
|
|
41
|
-
|
|
44
|
+
applyHelperScaleMatrix4(matrix, params) {
|
|
42
45
|
this.scale.applyMatrix4(matrix);
|
|
43
46
|
}
|
|
44
|
-
|
|
47
|
+
applyHelperQuaternion(quaternion, origin) {
|
|
45
48
|
this.applyQuaternion(quaternion);
|
|
46
49
|
}
|
|
47
50
|
}
|
|
@@ -190,7 +190,7 @@ export class RotateController extends BaseController {
|
|
|
190
190
|
// end
|
|
191
191
|
const quaternion = new THREE.Quaternion().setFromUnitVectors(startVector.clone().normalize(), currentVector.clone().normalize());
|
|
192
192
|
object.applyQuaternion(quaternion);
|
|
193
|
-
this.helperObject3D.
|
|
193
|
+
this.helperObject3D.applyHelperQuaternion(quaternion);
|
|
194
194
|
this.helperObject3DQuaternion.premultiply(quaternion);
|
|
195
195
|
this.hooks.emit('rotateUpdate', { quaternion, origin: rotateCenter });
|
|
196
196
|
this.startInfo.startVector = currentVector;
|
|
@@ -19,15 +19,14 @@ export declare class RectangleScaleHelper<T extends OriginObjectType = OriginObj
|
|
|
19
19
|
private enabled;
|
|
20
20
|
constructor(originObject3D: T, container: Element, camera: THREE.Camera, scene: THREE.Scene);
|
|
21
21
|
updatePosition(): void;
|
|
22
|
-
setPosition(position: Vector3): void;
|
|
23
22
|
updateMatrix4(matrix: THREE.Matrix4): void;
|
|
24
23
|
showDraggingHelper(): void;
|
|
25
|
-
|
|
24
|
+
applyHelperScaleMatrix4(matrix: THREE.Matrix4, params?: {
|
|
26
25
|
origin?: Vector3;
|
|
27
26
|
helperOrigin?: Vector3;
|
|
28
27
|
}): void;
|
|
29
28
|
updatePoints(): void;
|
|
30
|
-
|
|
29
|
+
applyHelperQuaternion(quaternion: THREE.Quaternion, origin: THREE.Vector3): void;
|
|
31
30
|
enable(): void;
|
|
32
31
|
disable(): void;
|
|
33
32
|
show(): void;
|
|
@@ -77,11 +77,10 @@ export class RectangleScaleHelper extends RectangleScaleHelperAbstract {
|
|
|
77
77
|
(_a = this.css3DInstance) === null || _a === void 0 ? void 0 : _a.css3DObject.position.copy(this.originObject3D.position);
|
|
78
78
|
(_b = this.plane) === null || _b === void 0 ? void 0 : _b.position.copy(this.originObject3D.position);
|
|
79
79
|
}
|
|
80
|
-
setPosition(position) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
80
|
+
// public setPosition(position: Vector3) {
|
|
81
|
+
// this.css3DInstance?.css3DObject.position.copy(position)
|
|
82
|
+
// this.plane?.position.copy(position)
|
|
83
|
+
// }
|
|
85
84
|
updateMatrix4(matrix) {
|
|
86
85
|
var _a, _b;
|
|
87
86
|
(_a = this.css3DInstance) === null || _a === void 0 ? void 0 : _a.css3DObject.applyMatrix4(matrix);
|
|
@@ -91,7 +90,7 @@ export class RectangleScaleHelper extends RectangleScaleHelperAbstract {
|
|
|
91
90
|
showDraggingHelper() {
|
|
92
91
|
// nothing to do
|
|
93
92
|
}
|
|
94
|
-
|
|
93
|
+
applyHelperScaleMatrix4(matrix, params) {
|
|
95
94
|
var _a, _b;
|
|
96
95
|
(_a = this.css3DInstance) === null || _a === void 0 ? void 0 : _a.css3DObject.scale.applyMatrix4(matrix);
|
|
97
96
|
(_b = this.plane) === null || _b === void 0 ? void 0 : _b.scale.applyMatrix4(matrix);
|
|
@@ -109,7 +108,7 @@ export class RectangleScaleHelper extends RectangleScaleHelperAbstract {
|
|
|
109
108
|
point.position.copy(position8[index]);
|
|
110
109
|
});
|
|
111
110
|
}
|
|
112
|
-
|
|
111
|
+
applyHelperQuaternion(quaternion, origin) {
|
|
113
112
|
var _a;
|
|
114
113
|
const css3DObject = (_a = this.css3DInstance) === null || _a === void 0 ? void 0 : _a.css3DObject;
|
|
115
114
|
if (css3DObject) {
|
|
@@ -19,7 +19,7 @@ export declare class RotateHelper extends RotateHelperAbstract {
|
|
|
19
19
|
container: HTMLElement;
|
|
20
20
|
});
|
|
21
21
|
updateAngleHelperQuaternion(): void;
|
|
22
|
-
|
|
22
|
+
applyHelperQuaternion(quaternion: THREE.Quaternion, origin?: THREE.Vector3): void;
|
|
23
23
|
hide(): void;
|
|
24
24
|
show(): void;
|
|
25
25
|
showDraggingHelper(directions: Direction[]): void;
|
|
@@ -87,7 +87,7 @@ export class RotateHelper extends RotateHelperAbstract {
|
|
|
87
87
|
this.yRingHelper.quaternion.copy(this.xzCircle.quaternion);
|
|
88
88
|
this.zRingHelper.quaternion.copy(this.xyCircle.quaternion);
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
applyHelperQuaternion(quaternion, origin) {
|
|
91
91
|
this.yzCircle.applyQuaternion(quaternion);
|
|
92
92
|
this.xzCircle.applyQuaternion(quaternion);
|
|
93
93
|
this.xyCircle.applyQuaternion(quaternion);
|
|
@@ -52,7 +52,7 @@ export class Object3DHelper {
|
|
|
52
52
|
configurable: true,
|
|
53
53
|
writable: true,
|
|
54
54
|
value: (controller, ...positionParams) => {
|
|
55
|
-
var _a, _b, _c, _d
|
|
55
|
+
var _a, _b, _c, _d;
|
|
56
56
|
const [position] = positionParams;
|
|
57
57
|
const matrix4 = position === null || position === void 0 ? void 0 : position.matrix4;
|
|
58
58
|
if (matrix4) {
|
|
@@ -63,14 +63,12 @@ export class Object3DHelper {
|
|
|
63
63
|
(_c = this.controllers.scaleController) === null || _c === void 0 ? void 0 : _c.setHelperMatrix4(matrix4);
|
|
64
64
|
(_d = this.helpers.outlineHelper) === null || _d === void 0 ? void 0 : _d.applyMatrix4(matrix4);
|
|
65
65
|
}
|
|
66
|
-
if (position
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
(_h = this.helpers.outlineHelper) === null || _h === void 0 ? void 0 : _h.position.copy(position.position);
|
|
73
|
-
}
|
|
66
|
+
// if (position?.position) {
|
|
67
|
+
// if (controller !== this.controllers.moveController) this.controllers.moveController?.setHelperPosition(position.position)
|
|
68
|
+
// if (controller !== this.controllers.rotateController) this.controllers.rotateController?.setHelperPosition(position.position)
|
|
69
|
+
// this.controllers.scaleController?.setHelperPosition(position.position)
|
|
70
|
+
// this.helpers.outlineHelper?.position.copy(position.position)
|
|
71
|
+
// }
|
|
74
72
|
}
|
|
75
73
|
});
|
|
76
74
|
Object.defineProperty(this, "handleScaleUpdate", {
|
|
@@ -82,7 +80,7 @@ export class Object3DHelper {
|
|
|
82
80
|
const [params] = positionParams;
|
|
83
81
|
const matrix4 = params === null || params === void 0 ? void 0 : params.matrix4;
|
|
84
82
|
if (matrix4) {
|
|
85
|
-
(_a = this.controllers.scaleController) === null || _a === void 0 ? void 0 : _a.
|
|
83
|
+
(_a = this.controllers.scaleController) === null || _a === void 0 ? void 0 : _a.applyHelperScaleMatrix4(matrix4, params);
|
|
86
84
|
(_b = this.helpers.outlineHelper) === null || _b === void 0 ? void 0 : _b.scale.applyMatrix4(matrix4);
|
|
87
85
|
}
|
|
88
86
|
}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
9
9
|
"description": "如视 VR 看房插件合集",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "2.1.0-alpha.
|
|
11
|
+
"version": "2.1.0-alpha.5",
|
|
12
12
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "yarn run tsb && yarn run build:rollup && yarn run build:components && yarn build:docs",
|