@realsee/dnalogel 2.1.0-alpha.3 → 2.1.0-alpha.4
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/tag.d.ts +6 -3
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/CSS3DRenderPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/CameraMovementPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/CruisePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/CruisePlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/CruisePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/CruisePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/GuideLinePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/ItemLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/ModelChassisCompassPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/ModelEntryDoorGuidePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/ModelItemLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/ModelRoomLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/ModelTVVideoPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/ModelViewPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/Object3DHelperPlugin/index.js +224 -60
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/Object3DHelperPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/PanoCompassPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/PanoCursorRaycasterPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/PanoDoorLabelPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/PanoMeasurePlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/PanoRulerPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/PanoRulerProPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/PanoTagPlugin/index.d.ts +1 -0
- package/dist/PanoTagPlugin/index.js +97 -78
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/PanoTagPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
- package/dist/PanoTagPlugin/typings/tag.d.ts +6 -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/tag.d.ts +6 -3
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/floorplan/MapviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/floorplan/ModelFloorplanPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/tag.d.ts +6 -3
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/floorplan/TopviewFloorplanPlugin/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
- package/dist/index.es.js +262 -110
- package/dist/index.js +297 -145
- package/dist/index.umd.js +297 -145
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/dist/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +2 -2
- package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -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/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/PanoTagPlugin/Components/Common/Arrow.js +1 -2
- package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -2
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +2 -2
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +9 -9
- package/libs/PanoTagPlugin/Components/Tag/MediaPanel.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +172 -0
- package/libs/PanoTagPlugin/Components/Tag/index.js +12 -12
- package/libs/PanoTagPlugin/Components/TagWrapper.js +9 -1
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- 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 +1 -1
- package/libs/PanoTagPlugin/typings/tag.d.ts +6 -3
- package/libs/PanoTagPlugin/typings/tag.js +1 -1
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +4 -3
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +8 -7
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +17 -1
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -1
- 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 +1 -0
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +3 -0
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +2 -1
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +17 -17
- package/libs/shared-utils/Object3DHelper/index.js +0 -2
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -19343,13 +19343,13 @@ void main() {
|
|
|
19343
19343
|
const VERSION$3 = 'v1.0.6';
|
|
19344
19344
|
const PLUGIN_NAME$2 = 'CruisePlugin';
|
|
19345
19345
|
const PLUGIN$1 = `${PLUGIN_NAME$2}@${VERSION$3}`;
|
|
19346
|
-
const disposedErrorLog$
|
|
19346
|
+
const disposedErrorLog$2 = () => {
|
|
19347
19347
|
console.error(`${PLUGIN$1} is disposed`);
|
|
19348
19348
|
};
|
|
19349
|
-
const disableWarnLog$
|
|
19349
|
+
const disableWarnLog$2 = () => {
|
|
19350
19350
|
console.warn(`${PLUGIN$1} is disabled`);
|
|
19351
19351
|
};
|
|
19352
|
-
const disableErrorLog$
|
|
19352
|
+
const disableErrorLog$2 = () => {
|
|
19353
19353
|
console.error(`${PLUGIN$1} is disabled`);
|
|
19354
19354
|
};
|
|
19355
19355
|
const pauseDataMap = new Map();
|
|
@@ -19420,7 +19420,7 @@ void main() {
|
|
|
19420
19420
|
async load(serverData, state, userAction) {
|
|
19421
19421
|
var _a, _b, _c, _d, _e;
|
|
19422
19422
|
if (this.state.disposed)
|
|
19423
|
-
return disposedErrorLog$
|
|
19423
|
+
return disposedErrorLog$2();
|
|
19424
19424
|
if (!this.privateState.fiveOriginGetProgress) {
|
|
19425
19425
|
if (!((_b = (_a = this.five.controller) === null || _a === void 0 ? void 0 : _a.cameraMotion) === null || _b === void 0 ? void 0 : _b.getProgress)) {
|
|
19426
19426
|
await this.waitFiveLoaded();
|
|
@@ -19540,11 +19540,11 @@ void main() {
|
|
|
19540
19540
|
setState(state, options) {
|
|
19541
19541
|
var _a;
|
|
19542
19542
|
if (this.state.disposed)
|
|
19543
|
-
return disposedErrorLog$
|
|
19543
|
+
return disposedErrorLog$2();
|
|
19544
19544
|
if (!this.state.enabled) {
|
|
19545
19545
|
// when plugin is disabled, only can change enabled or disposed to true
|
|
19546
19546
|
if (state.enabled !== true && state.disposed !== true)
|
|
19547
|
-
return disableErrorLog$
|
|
19547
|
+
return disableErrorLog$2();
|
|
19548
19548
|
}
|
|
19549
19549
|
const prevState = Object.assign({}, this.state);
|
|
19550
19550
|
this.state = Object.assign(Object.assign({}, this.state), state);
|
|
@@ -20056,7 +20056,7 @@ void main() {
|
|
|
20056
20056
|
return func();
|
|
20057
20057
|
else {
|
|
20058
20058
|
if (options === null || options === void 0 ? void 0 : options.warnLog)
|
|
20059
|
-
disableWarnLog$
|
|
20059
|
+
disableWarnLog$2();
|
|
20060
20060
|
}
|
|
20061
20061
|
}
|
|
20062
20062
|
/**
|
|
@@ -20296,17 +20296,17 @@ void main() {
|
|
|
20296
20296
|
}
|
|
20297
20297
|
}
|
|
20298
20298
|
|
|
20299
|
-
|
|
20299
|
+
exports.DimensionType = void 0;
|
|
20300
20300
|
(function (DimensionType) {
|
|
20301
20301
|
DimensionType["Two"] = "2D";
|
|
20302
20302
|
DimensionType["Three"] = "3D";
|
|
20303
|
-
})(DimensionType || (DimensionType = {}));
|
|
20304
|
-
|
|
20303
|
+
})(exports.DimensionType || (exports.DimensionType = {}));
|
|
20304
|
+
exports.PointType = void 0;
|
|
20305
20305
|
(function (PointType) {
|
|
20306
20306
|
PointType["PointTag"] = "PointTag";
|
|
20307
20307
|
PointType["PlaneTag"] = "PlaneTag";
|
|
20308
|
-
})(PointType || (PointType = {}));
|
|
20309
|
-
|
|
20308
|
+
})(exports.PointType || (exports.PointType = {}));
|
|
20309
|
+
exports.ContentType = void 0;
|
|
20310
20310
|
(function (ContentType) {
|
|
20311
20311
|
/** 音频标签 */
|
|
20312
20312
|
ContentType["Audio"] = "Audio";
|
|
@@ -20319,15 +20319,15 @@ void main() {
|
|
|
20319
20319
|
/** 营销标签 */
|
|
20320
20320
|
ContentType["Marketing"] = "Marketing";
|
|
20321
20321
|
/** 图片视频贴片 */
|
|
20322
|
-
ContentType["
|
|
20322
|
+
ContentType["MediaPlane"] = "MediaPlane";
|
|
20323
20323
|
/** 其他/自定义标签 */
|
|
20324
20324
|
ContentType["Custom"] = "Custom";
|
|
20325
|
-
})(ContentType || (ContentType = {}));
|
|
20326
|
-
|
|
20325
|
+
})(exports.ContentType || (exports.ContentType = {}));
|
|
20326
|
+
exports.LinkType = void 0;
|
|
20327
20327
|
(function (LinkType) {
|
|
20328
20328
|
LinkType["VrLink"] = "vr";
|
|
20329
20329
|
LinkType["NormalLink"] = "normal";
|
|
20330
|
-
})(LinkType || (LinkType = {}));
|
|
20330
|
+
})(exports.LinkType || (exports.LinkType = {}));
|
|
20331
20331
|
|
|
20332
20332
|
/* src/PanoTagPlugin/Components/Common/Line/Straight.svelte generated by Svelte v3.50.1 */
|
|
20333
20333
|
|
|
@@ -20511,7 +20511,7 @@ void main() {
|
|
|
20511
20511
|
internal.append_styles(target, "svelte-faoauy", ".shadow.svelte-faoauy{position:absolute}");
|
|
20512
20512
|
}
|
|
20513
20513
|
|
|
20514
|
-
// (
|
|
20514
|
+
// (23:0) {#if visible}
|
|
20515
20515
|
function create_if_block$f(ctx) {
|
|
20516
20516
|
let div;
|
|
20517
20517
|
let div_style_value;
|
|
@@ -20676,7 +20676,7 @@ void main() {
|
|
|
20676
20676
|
let { blurRadius } = $$props;
|
|
20677
20677
|
let { spreadRadius } = $$props;
|
|
20678
20678
|
let { opacity = 0.15 } = $$props;
|
|
20679
|
-
let { zIndex =
|
|
20679
|
+
let { zIndex = undefined } = $$props;
|
|
20680
20680
|
|
|
20681
20681
|
$$self.$$set = $$props => {
|
|
20682
20682
|
if ('inDelay' in $$props) $$invalidate(0, inDelay = $$props.inDelay);
|
|
@@ -20986,8 +20986,7 @@ void main() {
|
|
|
20986
20986
|
props: {
|
|
20987
20987
|
center: true,
|
|
20988
20988
|
blurRadius: 9,
|
|
20989
|
-
spreadRadius: 3
|
|
20990
|
-
zIndex: -1
|
|
20989
|
+
spreadRadius: 3
|
|
20991
20990
|
}
|
|
20992
20991
|
});
|
|
20993
20992
|
|
|
@@ -23325,8 +23324,7 @@ void main() {
|
|
|
23325
23324
|
props: {
|
|
23326
23325
|
center: true,
|
|
23327
23326
|
blurRadius: 15,
|
|
23328
|
-
spreadRadius: 6
|
|
23329
|
-
zIndex: -1
|
|
23327
|
+
spreadRadius: 6
|
|
23330
23328
|
}
|
|
23331
23329
|
});
|
|
23332
23330
|
|
|
@@ -23908,13 +23906,13 @@ void main() {
|
|
|
23908
23906
|
}
|
|
23909
23907
|
}
|
|
23910
23908
|
|
|
23911
|
-
/* src/PanoTagPlugin/Components/Tag/
|
|
23909
|
+
/* src/PanoTagPlugin/Components/Tag/MediaPlane.svelte generated by Svelte v3.50.1 */
|
|
23912
23910
|
|
|
23913
23911
|
function add_css$8(target) {
|
|
23914
23912
|
internal.append_styles(target, "svelte-10cw0el", ".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}");
|
|
23915
23913
|
}
|
|
23916
23914
|
|
|
23917
|
-
// (
|
|
23915
|
+
// (18:0) {#if tag.state && mediaData}
|
|
23918
23916
|
function create_if_block$5(ctx) {
|
|
23919
23917
|
let div;
|
|
23920
23918
|
let media;
|
|
@@ -23922,8 +23920,10 @@ void main() {
|
|
|
23922
23920
|
|
|
23923
23921
|
media = new Media({
|
|
23924
23922
|
props: {
|
|
23925
|
-
unfolded: /*unfolded*/ ctx[
|
|
23926
|
-
mediaData: /*mediaData*/ ctx[
|
|
23923
|
+
unfolded: /*unfolded*/ ctx[3],
|
|
23924
|
+
mediaData: /*mediaData*/ ctx[2],
|
|
23925
|
+
objectFit: /*objectFit*/ ctx[1],
|
|
23926
|
+
enableCarousel: true,
|
|
23927
23927
|
inDelay: 500,
|
|
23928
23928
|
duration: 500
|
|
23929
23929
|
}
|
|
@@ -23942,8 +23942,9 @@ void main() {
|
|
|
23942
23942
|
},
|
|
23943
23943
|
p(ctx, dirty) {
|
|
23944
23944
|
const media_changes = {};
|
|
23945
|
-
if (dirty & /*unfolded*/
|
|
23946
|
-
if (dirty & /*mediaData*/
|
|
23945
|
+
if (dirty & /*unfolded*/ 8) media_changes.unfolded = /*unfolded*/ ctx[3];
|
|
23946
|
+
if (dirty & /*mediaData*/ 4) media_changes.mediaData = /*mediaData*/ ctx[2];
|
|
23947
|
+
if (dirty & /*objectFit*/ 2) media_changes.objectFit = /*objectFit*/ ctx[1];
|
|
23947
23948
|
media.$set(media_changes);
|
|
23948
23949
|
},
|
|
23949
23950
|
i(local) {
|
|
@@ -23965,7 +23966,7 @@ void main() {
|
|
|
23965
23966
|
function create_fragment$8(ctx) {
|
|
23966
23967
|
let if_block_anchor;
|
|
23967
23968
|
let current;
|
|
23968
|
-
let if_block = /*tag*/ ctx[0].state && /*mediaData*/ ctx[
|
|
23969
|
+
let if_block = /*tag*/ ctx[0].state && /*mediaData*/ ctx[2] && create_if_block$5(ctx);
|
|
23969
23970
|
|
|
23970
23971
|
return {
|
|
23971
23972
|
c() {
|
|
@@ -23978,11 +23979,11 @@ void main() {
|
|
|
23978
23979
|
current = true;
|
|
23979
23980
|
},
|
|
23980
23981
|
p(ctx, [dirty]) {
|
|
23981
|
-
if (/*tag*/ ctx[0].state && /*mediaData*/ ctx[
|
|
23982
|
+
if (/*tag*/ ctx[0].state && /*mediaData*/ ctx[2]) {
|
|
23982
23983
|
if (if_block) {
|
|
23983
23984
|
if_block.p(ctx, dirty);
|
|
23984
23985
|
|
|
23985
|
-
if (dirty & /*tag, mediaData*/
|
|
23986
|
+
if (dirty & /*tag, mediaData*/ 5) {
|
|
23986
23987
|
internal.transition_in(if_block, 1);
|
|
23987
23988
|
}
|
|
23988
23989
|
} else {
|
|
@@ -24020,6 +24021,8 @@ void main() {
|
|
|
24020
24021
|
function instance$8($$self, $$props, $$invalidate) {
|
|
24021
24022
|
let unfolded;
|
|
24022
24023
|
let mediaData;
|
|
24024
|
+
let objectFit;
|
|
24025
|
+
var _a;
|
|
24023
24026
|
let { tag } = $$props;
|
|
24024
24027
|
|
|
24025
24028
|
$$self.$$set = $$props => {
|
|
@@ -24028,18 +24031,26 @@ void main() {
|
|
|
24028
24031
|
|
|
24029
24032
|
$$self.$$.update = () => {
|
|
24030
24033
|
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
24031
|
-
$$invalidate(
|
|
24034
|
+
$$invalidate(3, unfolded = tag.state ? tag.state.unfolded : false);
|
|
24032
24035
|
}
|
|
24033
24036
|
|
|
24034
24037
|
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
24035
|
-
$$invalidate(
|
|
24038
|
+
$$invalidate(2, mediaData = tag.data.mediaData);
|
|
24039
|
+
}
|
|
24040
|
+
|
|
24041
|
+
if ($$self.$$.dirty & /*tag, _a*/ 17) {
|
|
24042
|
+
$$invalidate(1, objectFit = $$invalidate(4, _a = tag.data.objectFit) !== null && _a !== void 0
|
|
24043
|
+
? _a
|
|
24044
|
+
: (() => {
|
|
24045
|
+
if (tag.data.adaptationMode === 'stretch') return 'cover'; else if (tag.data.adaptationMode === 'proportional') return 'contain'; else return undefined;
|
|
24046
|
+
})());
|
|
24036
24047
|
}
|
|
24037
24048
|
};
|
|
24038
24049
|
|
|
24039
|
-
return [tag, mediaData, unfolded];
|
|
24050
|
+
return [tag, objectFit, mediaData, unfolded, _a];
|
|
24040
24051
|
}
|
|
24041
24052
|
|
|
24042
|
-
class
|
|
24053
|
+
class MediaPlane extends internal.SvelteComponent {
|
|
24043
24054
|
constructor(options) {
|
|
24044
24055
|
super();
|
|
24045
24056
|
internal.init(this, options, instance$8, create_fragment$8, internal.safe_not_equal, { tag: 0 }, add_css$8);
|
|
@@ -24049,7 +24060,7 @@ void main() {
|
|
|
24049
24060
|
/* src/PanoTagPlugin/Components/Tag/LinkTag.svelte generated by Svelte v3.50.1 */
|
|
24050
24061
|
|
|
24051
24062
|
function add_css$7(target) {
|
|
24052
|
-
internal.append_styles(target, "svelte-
|
|
24063
|
+
internal.append_styles(target, "svelte-135cbxk", ".wrapper.svelte-135cbxk{font-weight:600;cursor:pointer;width:-webkit-max-content;width:-moz-max-content;width:max-content;height:-webkit-max-content;height:-moz-max-content;height:max-content;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:auto}.text-wrapper.svelte-135cbxk{position:relative;display:flex;align-items:center;justify-content:center}.icon.svelte-135cbxk{position:relative;margin-bottom:0.6875rem}.arrow0.svelte-135cbxk,.arrow1.svelte-135cbxk,.arrow2.svelte-135cbxk{position:absolute;width:1.625rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAAkCAYAAAAnxQwhAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAATqADAAQAAAABAAAAJAAAAABrx2urAAAGm0lEQVRoBd2ZXbCVUxjH26QSfSCS0JwoFNEZ0cc45iSmUUaqC+KCwUUXxYUZw4yrLhozLlDDRWa6oW5yOFTT0IcyKn1JnIjDKelLPipJcXT8fttaZ95qd+yzv+uZ+e211rvfd61n/ddaz1rv3qkOFWgtLS3n4Vb34NqhVCr1d6W5mao0hxBNwfrCOcG346S7Ee9gKFdEUjHCIZi+XA69E8p4rQVM98EeBLRcdqsI4RCtI0r0h4uCIvo1BZx1b4GzTjsA3yFec7pUxo+yC4doXen/IDg/6GB5GlSH8mbSWXA4lI+SNiDekVAuS1JW4RCtF72+EWI8c6k+A6ZJc5m+BHvCxX9ItyLe/lAueVIW4UI8u4beDkj02FnnTOuUuJbM/kVhNjQkLjaSbyxH3Cu5cIjmUWMoOKti+2PIT4JsrI6blkKMe87GTYhX0iNLdDwbh/O+B9G6UclIMNWcXQ/CrRbaYRu5dz44C7XfYTXimZbESiYconk2GwGdwSOF4j0JV0AuZrybA4plfYq4BvF2kRbdSiIcog2hJ+6StmcnFesJ6AL52DEefgOiWNa/EfG25FNpNs8WVbgQz+7EEc9o0RRxYiwUKDXuJcVqovxRMeNe0YRDtB44Pw4uAc0jx2gYZqEItoE63TSc0fILLEa8oryqFUU4ROuH04oWl6I76WQwzhXTXLILIO6wLuVFiLedtKBWcOEQ7XY8rE146ZvAwxDfDBJfFSX7J7XOgz8Sta9AvE8T5byzBRMuxLP78Mg3Ac3l0gcmWCiD1dPmboh9/JL8+4WKe7HSvPqFaL6cTwGF0jyc3gTOvnLaehr/HOIrnUeYeYj3W75O5S0covnq9AhcEJxpJr0Lrgrlcic7cWAZ+AuM5o8DbyJeY7qU40dewiFaDe26FOOIKppl41olmWK9C1E8V0Q94q3M1cmchAvx7CEaHZ5oWKfGJ8qVmF2EU75hxH67YcxHQK+1y2IFWT+EaBdz81SoCg+59fvCXuh4tjnUf0tIC5WsoyJjnUckbTu8hni/WsjW2iUcog2k4unQPTTglm/HPLcVwpqoZCu4lOLxxeOFocCfneJgkc3LfuDpzyDG5UPkZyHetmxrzVo4RLubSh+FGM8OkHcTuBDyMUfaTihQHJBYn0cafTTVfKFX0KHgzM/HDvPwcugZKnGw5iLeh6HcZvK/woV45gu5wkVTtLGxkEN6jGc2gaJ5lDkXtCjUXvIrQf9qoDckzU56pFC8augMudoSHoziWcdSmIOA8e3Da6dYm8Ihmu+Zz8H14ckYWHONZ19Qz4+go53A9qNYLvtPYBlON5C2Gn4MpuDsHgVxecXvHQQH8krw7JiLuUnohz5pX8NM/PB9N6OdVjicNaa8AHFJROeqMtZ0+ovGk2/AI0o3iGKRTcey9aSO8locbXN3wyc75k4+BoaBYSNZ3yHKHj2ug6uhPdbEzQ6qK0ARXQ0z8MmYe4plFA4Hx3Hn0xB3Hiv0V9qTYxCXMpoie2LX+vyXnPDpiH4Ay3HMe9tt+NiTh0bDPRBXRLIed07tZvDebEzhN4CzV3O5voyPi9KlxMcJwuGMQj0FE8M9Ku9I1MIJ94bvk4mNGORdcr41GLd8xjpM94HxZAmO7CAtmOF3Pyoz5srJ8bCZaw68M95NJU4GshlNf1dAf4i+15F/Bb9b416rGDRuPHsRHCHN2PEz3GahDXMq/wR9wfgTGyObFnE56ULwDxW/K5rRB/tTDa4YY2Imf3Zx/TIwFLVl6/iyF8SNxxX0LH1Ix720cDRoTJgNcbT2hwdUPZPZeCNYsc9EQazPEV4NTm9/zjlKWnKjT11otBYUcRS4AuKgmjrYToxrwUHPZN9z0Ql0afhyL+k0+rQtRQOu/3qIAhjIB0IPSJrrvwEcARvTko44896DhXFUvKESjD66msbD/eBMSw60eQVygAfDyXH8INe2gZPLiaF4ExTucTLPg2aMGg7uVpqzZwu4tm8Ad7UoFtn0q4ti1SHWt16odKO/A/DxAZgAcYVFt+3nV2AcHAIdQTsOa6Ea7P9MhZtB5jHQmsDltwMM8qrszFPpaEfILIYF4H+ZVnrGGf12coyEyXAvdIU4KUydaa4+r/cDl3UVaHMVzun7erp4+g/FWQWK5a6oeGeNoYHijAVFrIG44shmtKkK52x6FSZluMW4pVjvIJbHibPe0MPl61JWxEEZOvw216a3LkEeGMGFO0D1d8KqMyVu4WtRDE2Mh85Az6Wuso/RZA1ph38BBMvNbHuq7kAAAAAASUVORK5CYII=);background-repeat:no-repeat;background-size:contain;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-duration:1.2s;animation-duration:1.2s}.arrow1.svelte-135cbxk{position:relative}.arrow0.svelte-135cbxk{top:-0.75rem;-webkit-animation-name:svelte-135cbxk-up0;animation-name:svelte-135cbxk-up0}.arrow1.svelte-135cbxk{-webkit-animation-name:svelte-135cbxk-up1;animation-name:svelte-135cbxk-up1}.arrow2.svelte-135cbxk{top:0.75rem;-webkit-animation-name:svelte-135cbxk-up2;animation-name:svelte-135cbxk-up2}.text.svelte-135cbxk{position:absolute;top:0;font-size:0.875rem;color:#ffffff;letter-spacing:0;text-align:center;max-width:8.75rem;width:-webkit-max-content;width:-moz-max-content;width:max-content;word-break:break-all;line-height:1.125rem;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}@-webkit-keyframes svelte-135cbxk-up0{0%{opacity:0.8;transform:translateY(0) scale(0.84)}33.33%,100%{opacity:0;transform:translateY(-0.75rem) scale(0.84)}}@keyframes svelte-135cbxk-up0{0%{opacity:0.8;transform:translateY(0) scale(0.84)}33.33%,100%{opacity:0;transform:translateY(-0.75rem) scale(0.84)}}@-webkit-keyframes svelte-135cbxk-up1{0%{opacity:1;transform:translateY(0rem) scale(1)}33.33%,100%{opacity:0.8;transform:translateY(-0.75rem) scale(0.84)}}@keyframes svelte-135cbxk-up1{0%{opacity:1;transform:translateY(0rem) scale(1)}33.33%,100%{opacity:0.8;transform:translateY(-0.75rem) scale(0.84)}}@-webkit-keyframes svelte-135cbxk-up2{0%{opacity:0}33.33%,100%{opacity:1;transform:translateY(-0.75rem)}}@keyframes svelte-135cbxk-up2{0%{opacity:0}33.33%,100%{opacity:1;transform:translateY(-0.75rem)}}.link.svelte-135cbxk{position:relative;width:1.75rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAAkCAMAAAAgl+0yAAAAnFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+TINBkAAAAM3RSTlMAjLy6ILM2Fi+Zng3BrPvao4VC9ceneQfKkmNdV1AbEeLOsHA77ujUtn5JLnRraSUUjVLj/+RVAAABhElEQVRIx63V2W6CQBiGYUBUQGDYdwTZQZZa7v/eimik/ket/7yZ4yeTTCYf8+dOX8etxGVoxAvCVbguR3g0uRTMA0w4odGi+CbzFnGKosCqrmHc5rdEwzCwqtGFJlC7DqtOcTxANY67BHnVKOpVoEZRjFPdLgxbqIZhhFTjINChGgThF06NhpGd35OGMcCppyDPfajm+YhUR8cRoeo4+RGlJnnbalBt2x6nHh1dt4Gq6bqDU886y2ZQZVn9jFJ51vcbqPo+Up18UeSgKoo3nHqVJEkGqi1JPk49aLZmQdW2xXf1zP+vUFHsC1QVReK33xdk+w9SaqAq+732UvvdZ2UEqrud8lR5Wc4a7pO8GaoL9VBjy7rMlMosq1lV43LhZlrtF+yuJlbtEXpqXXP3NYwI8VJqakOIziw5aepV1FQuTdfhvlWVZdJCrao6MPe0spRpqV5ZFivqNqYpq3RQ2TST5/h4quoRCmwqq6rymol6plV53IZSomTKE/MroWfxDevL/wAEdPq1eGDh4AAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-size:contain;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-duration:1.2s;animation-duration:1.2s;-webkit-animation-name:svelte-135cbxk-left-right;animation-name:svelte-135cbxk-left-right}@-webkit-keyframes svelte-135cbxk-left-right{0%,100%{opacity:0.8;transform:translateX(-0.3125rem)}50%{opacity:1;transform:translateX(0)}}@keyframes svelte-135cbxk-left-right{0%,100%{opacity:0.8;transform:translateX(-0.3125rem)}50%{opacity:1;transform:translateX(0)}}");
|
|
24053
24064
|
}
|
|
24054
24065
|
|
|
24055
24066
|
// (14:52)
|
|
@@ -24077,7 +24088,7 @@ void main() {
|
|
|
24077
24088
|
internal.create_component(shadow.$$.fragment);
|
|
24078
24089
|
t = internal.space();
|
|
24079
24090
|
div = internal.element("div");
|
|
24080
|
-
internal.attr(div, "class", "link svelte-
|
|
24091
|
+
internal.attr(div, "class", "link svelte-135cbxk");
|
|
24081
24092
|
},
|
|
24082
24093
|
m(target, anchor) {
|
|
24083
24094
|
internal.mount_component(shadow, target, anchor);
|
|
@@ -24135,9 +24146,9 @@ void main() {
|
|
|
24135
24146
|
div1 = internal.element("div");
|
|
24136
24147
|
t2 = internal.space();
|
|
24137
24148
|
div2 = internal.element("div");
|
|
24138
|
-
internal.attr(div0, "class", "arrow0 svelte-
|
|
24139
|
-
internal.attr(div1, "class", "arrow1 svelte-
|
|
24140
|
-
internal.attr(div2, "class", "arrow2 svelte-
|
|
24149
|
+
internal.attr(div0, "class", "arrow0 svelte-135cbxk");
|
|
24150
|
+
internal.attr(div1, "class", "arrow1 svelte-135cbxk");
|
|
24151
|
+
internal.attr(div2, "class", "arrow2 svelte-135cbxk");
|
|
24141
24152
|
},
|
|
24142
24153
|
m(target, anchor) {
|
|
24143
24154
|
internal.mount_component(shadow, target, anchor);
|
|
@@ -24187,8 +24198,8 @@ void main() {
|
|
|
24187
24198
|
const if_blocks = [];
|
|
24188
24199
|
|
|
24189
24200
|
function select_block_type(ctx, dirty) {
|
|
24190
|
-
if (/*data*/ ctx[0].linkType === LinkType.VrLink) return 0;
|
|
24191
|
-
if (/*data*/ ctx[0].linkType === LinkType.NormalLink) return 1;
|
|
24201
|
+
if (/*data*/ ctx[0].linkType === exports.LinkType.VrLink) return 0;
|
|
24202
|
+
if (/*data*/ ctx[0].linkType === exports.LinkType.NormalLink) return 1;
|
|
24192
24203
|
return -1;
|
|
24193
24204
|
}
|
|
24194
24205
|
|
|
@@ -24221,10 +24232,10 @@ void main() {
|
|
|
24221
24232
|
t1 = internal.space();
|
|
24222
24233
|
div1 = internal.element("div");
|
|
24223
24234
|
t2 = internal.text(t2_value);
|
|
24224
|
-
internal.attr(div0, "class", "icon svelte-
|
|
24225
|
-
internal.attr(div1, "class", "text svelte-
|
|
24226
|
-
internal.attr(div2, "class", "text-wrapper svelte-
|
|
24227
|
-
internal.attr(div3, "class", "wrapper svelte-
|
|
24235
|
+
internal.attr(div0, "class", "icon svelte-135cbxk");
|
|
24236
|
+
internal.attr(div1, "class", "text svelte-135cbxk");
|
|
24237
|
+
internal.attr(div2, "class", "text-wrapper svelte-135cbxk");
|
|
24238
|
+
internal.attr(div3, "class", "wrapper svelte-135cbxk");
|
|
24228
24239
|
},
|
|
24229
24240
|
m(target, anchor) {
|
|
24230
24241
|
internal.insert(target, div3, anchor);
|
|
@@ -24448,37 +24459,37 @@ void main() {
|
|
|
24448
24459
|
|
|
24449
24460
|
// (67:59)
|
|
24450
24461
|
function create_if_block_6(ctx) {
|
|
24451
|
-
let
|
|
24462
|
+
let mediaplane;
|
|
24452
24463
|
let current;
|
|
24453
24464
|
|
|
24454
|
-
|
|
24465
|
+
mediaplane = new MediaPlane({
|
|
24455
24466
|
props: { tag: noTypecheck(/*tag*/ ctx[1]) }
|
|
24456
24467
|
});
|
|
24457
24468
|
|
|
24458
24469
|
return {
|
|
24459
24470
|
c() {
|
|
24460
|
-
internal.create_component(
|
|
24471
|
+
internal.create_component(mediaplane.$$.fragment);
|
|
24461
24472
|
},
|
|
24462
24473
|
m(target, anchor) {
|
|
24463
|
-
internal.mount_component(
|
|
24474
|
+
internal.mount_component(mediaplane, target, anchor);
|
|
24464
24475
|
current = true;
|
|
24465
24476
|
},
|
|
24466
24477
|
p(ctx, dirty) {
|
|
24467
|
-
const
|
|
24468
|
-
if (dirty & /*tag*/ 2)
|
|
24469
|
-
|
|
24478
|
+
const mediaplane_changes = {};
|
|
24479
|
+
if (dirty & /*tag*/ 2) mediaplane_changes.tag = noTypecheck(/*tag*/ ctx[1]);
|
|
24480
|
+
mediaplane.$set(mediaplane_changes);
|
|
24470
24481
|
},
|
|
24471
24482
|
i(local) {
|
|
24472
24483
|
if (current) return;
|
|
24473
|
-
internal.transition_in(
|
|
24484
|
+
internal.transition_in(mediaplane.$$.fragment, local);
|
|
24474
24485
|
current = true;
|
|
24475
24486
|
},
|
|
24476
24487
|
o(local) {
|
|
24477
|
-
internal.transition_out(
|
|
24488
|
+
internal.transition_out(mediaplane.$$.fragment, local);
|
|
24478
24489
|
current = false;
|
|
24479
24490
|
},
|
|
24480
24491
|
d(detaching) {
|
|
24481
|
-
internal.destroy_component(
|
|
24492
|
+
internal.destroy_component(mediaplane, detaching);
|
|
24482
24493
|
}
|
|
24483
24494
|
};
|
|
24484
24495
|
}
|
|
@@ -24734,12 +24745,12 @@ void main() {
|
|
|
24734
24745
|
|
|
24735
24746
|
function select_block_type(ctx, dirty) {
|
|
24736
24747
|
if (/*tag*/ ctx[1].element) return 0;
|
|
24737
|
-
if (/*tag*/ ctx[1].contentType === ContentType.Text) return 1;
|
|
24738
|
-
if (/*tag*/ ctx[1].contentType === ContentType.ImageText) return 2;
|
|
24739
|
-
if (/*tag*/ ctx[1].contentType === ContentType.Audio) return 3;
|
|
24740
|
-
if (/*tag*/ ctx[1].contentType === ContentType.Marketing) return 4;
|
|
24741
|
-
if (/*tag*/ ctx[1].contentType === ContentType.Link) return 5;
|
|
24742
|
-
if (/*tag*/ ctx[1].contentType === ContentType.
|
|
24748
|
+
if (/*tag*/ ctx[1].contentType === exports.ContentType.Text) return 1;
|
|
24749
|
+
if (/*tag*/ ctx[1].contentType === exports.ContentType.ImageText) return 2;
|
|
24750
|
+
if (/*tag*/ ctx[1].contentType === exports.ContentType.Audio) return 3;
|
|
24751
|
+
if (/*tag*/ ctx[1].contentType === exports.ContentType.Marketing) return 4;
|
|
24752
|
+
if (/*tag*/ ctx[1].contentType === exports.ContentType.Link) return 5;
|
|
24753
|
+
if (/*tag*/ ctx[1].contentType === exports.ContentType.MediaPlane) return 6;
|
|
24743
24754
|
return -1;
|
|
24744
24755
|
}
|
|
24745
24756
|
|
|
@@ -25191,7 +25202,7 @@ void main() {
|
|
|
25191
25202
|
function create_if_block$1(ctx) {
|
|
25192
25203
|
let if_block_anchor;
|
|
25193
25204
|
let current;
|
|
25194
|
-
let if_block = /*tag*/ ctx[0].contentType !== ContentType.Link && create_if_block_1$1(ctx);
|
|
25205
|
+
let if_block = /*tag*/ ctx[0].contentType !== exports.ContentType.Link && create_if_block_1$1(ctx);
|
|
25195
25206
|
|
|
25196
25207
|
return {
|
|
25197
25208
|
c() {
|
|
@@ -25204,7 +25215,7 @@ void main() {
|
|
|
25204
25215
|
current = true;
|
|
25205
25216
|
},
|
|
25206
25217
|
p(ctx, dirty) {
|
|
25207
|
-
if (/*tag*/ ctx[0].contentType !== ContentType.Link) {
|
|
25218
|
+
if (/*tag*/ ctx[0].contentType !== exports.ContentType.Link) {
|
|
25208
25219
|
if (if_block) {
|
|
25209
25220
|
if_block.p(ctx, dirty);
|
|
25210
25221
|
|
|
@@ -25476,7 +25487,7 @@ void main() {
|
|
|
25476
25487
|
? void 0
|
|
25477
25488
|
: _a.foldedPointDelay) !== null && _b !== void 0
|
|
25478
25489
|
? _b
|
|
25479
|
-
: tag.contentType === ContentType.Marketing
|
|
25490
|
+
: tag.contentType === exports.ContentType.Marketing
|
|
25480
25491
|
? 600
|
|
25481
25492
|
: undefined);
|
|
25482
25493
|
}
|
|
@@ -25600,8 +25611,8 @@ void main() {
|
|
|
25600
25611
|
let t;
|
|
25601
25612
|
let div_data_id_value;
|
|
25602
25613
|
let current;
|
|
25603
|
-
let if_block0 = /*tag*/ ctx[1].dimensionType === DimensionType.Two && create_if_block_1(ctx);
|
|
25604
|
-
let if_block1 = /*tag*/ ctx[1].pointType === PointType.PointTag && /*tag*/ ctx[1].style?.point?.style !== 'noPoint' && create_if_block(ctx);
|
|
25614
|
+
let if_block0 = /*tag*/ ctx[1].dimensionType === exports.DimensionType.Two && create_if_block_1(ctx);
|
|
25615
|
+
let if_block1 = /*tag*/ ctx[1].pointType === exports.PointType.PointTag && /*tag*/ ctx[1].style?.point?.style !== 'noPoint' && create_if_block(ctx);
|
|
25605
25616
|
|
|
25606
25617
|
return {
|
|
25607
25618
|
c() {
|
|
@@ -25625,7 +25636,7 @@ void main() {
|
|
|
25625
25636
|
current = true;
|
|
25626
25637
|
},
|
|
25627
25638
|
p(ctx, [dirty]) {
|
|
25628
|
-
if (/*tag*/ ctx[1].dimensionType === DimensionType.Two) {
|
|
25639
|
+
if (/*tag*/ ctx[1].dimensionType === exports.DimensionType.Two) {
|
|
25629
25640
|
if (if_block0) {
|
|
25630
25641
|
if_block0.p(ctx, dirty);
|
|
25631
25642
|
|
|
@@ -25648,7 +25659,7 @@ void main() {
|
|
|
25648
25659
|
internal.check_outros();
|
|
25649
25660
|
}
|
|
25650
25661
|
|
|
25651
|
-
if (/*tag*/ ctx[1].pointType === PointType.PointTag && /*tag*/ ctx[1].style?.point?.style !== 'noPoint') {
|
|
25662
|
+
if (/*tag*/ ctx[1].pointType === exports.PointType.PointTag && /*tag*/ ctx[1].style?.point?.style !== 'noPoint') {
|
|
25652
25663
|
if (if_block1) {
|
|
25653
25664
|
if_block1.p(ctx, dirty);
|
|
25654
25665
|
|
|
@@ -25747,6 +25758,14 @@ void main() {
|
|
|
25747
25758
|
hooks.emit('click', { event, target: 'TagPoint', tag });
|
|
25748
25759
|
};
|
|
25749
25760
|
|
|
25761
|
+
svelte.onMount(() => {
|
|
25762
|
+
hooks.emit('exposure', { id: tag.id, type: 'start' });
|
|
25763
|
+
|
|
25764
|
+
return () => {
|
|
25765
|
+
hooks.emit('exposure', { id: tag.id, type: 'end' });
|
|
25766
|
+
};
|
|
25767
|
+
});
|
|
25768
|
+
|
|
25750
25769
|
$$self.$$set = $$props => {
|
|
25751
25770
|
if ('withAnimation' in $$props) $$invalidate(0, withAnimation = $$props.withAnimation);
|
|
25752
25771
|
if ('tag' in $$props) $$invalidate(1, tag = $$props.tag);
|
|
@@ -25782,7 +25801,7 @@ void main() {
|
|
|
25782
25801
|
}
|
|
25783
25802
|
|
|
25784
25803
|
if ($$self.$$.dirty & /*tag, _e*/ 65538) {
|
|
25785
|
-
$$invalidate(7, zIndex = tag.contentType === ContentType.Link
|
|
25804
|
+
$$invalidate(7, zIndex = tag.contentType === exports.ContentType.Link
|
|
25786
25805
|
? 20
|
|
25787
25806
|
: ($$invalidate(16, _e = tag.state) === null || _e === void 0
|
|
25788
25807
|
? void 0
|
|
@@ -26086,7 +26105,7 @@ void main() {
|
|
|
26086
26105
|
'Any-Marketing-Any': {
|
|
26087
26106
|
unfoldedConfig: undefined,
|
|
26088
26107
|
},
|
|
26089
|
-
'3D-
|
|
26108
|
+
'3D-MediaPlane-PlaneTag': {
|
|
26090
26109
|
unfoldedConfig: {
|
|
26091
26110
|
disableFold: true,
|
|
26092
26111
|
},
|
|
@@ -26259,7 +26278,7 @@ void main() {
|
|
|
26259
26278
|
}
|
|
26260
26279
|
// console.log(tag.id, '角度检测', tag, config.angleRange)
|
|
26261
26280
|
// 角度检测
|
|
26262
|
-
if (config.angleRange && tag.dimensionType === DimensionType.Three) {
|
|
26281
|
+
if (config.angleRange && tag.dimensionType === exports.DimensionType.Three) {
|
|
26263
26282
|
const visible = checkRange(this.getAngle(tag), config.angleRange);
|
|
26264
26283
|
if (visible === false)
|
|
26265
26284
|
return false;
|
|
@@ -26392,7 +26411,7 @@ void main() {
|
|
|
26392
26411
|
if (observerPosition === undefined)
|
|
26393
26412
|
throw new Error(`getDistance(): observerPosition is ${observerPosition}`);
|
|
26394
26413
|
const position = (() => {
|
|
26395
|
-
if (tag.pointType === PointType.PointTag) {
|
|
26414
|
+
if (tag.pointType === exports.PointType.PointTag) {
|
|
26396
26415
|
return arrayPositionToVector3(tag === null || tag === void 0 ? void 0 : tag.position);
|
|
26397
26416
|
}
|
|
26398
26417
|
else {
|
|
@@ -26420,7 +26439,7 @@ void main() {
|
|
|
26420
26439
|
if (observerPosition === undefined)
|
|
26421
26440
|
throw new Error(`getAngleRange(): observerPosition is ${observerPosition}`);
|
|
26422
26441
|
const normal = (() => {
|
|
26423
|
-
if (tag.pointType === PointType.PointTag)
|
|
26442
|
+
if (tag.pointType === exports.PointType.PointTag)
|
|
26424
26443
|
return anyPositionToVector3(tag.normal);
|
|
26425
26444
|
else
|
|
26426
26445
|
return planeNormal(tag.position);
|
|
@@ -26537,24 +26556,24 @@ void main() {
|
|
|
26537
26556
|
}
|
|
26538
26557
|
// TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
|
|
26539
26558
|
filterPointTag() {
|
|
26540
|
-
return this.tags.filter((tag) => tag.pointType === PointType.PointTag);
|
|
26559
|
+
return this.tags.filter((tag) => tag.pointType === exports.PointType.PointTag);
|
|
26541
26560
|
}
|
|
26542
26561
|
filterTag2D() {
|
|
26543
|
-
return this.tags.filter((tag) => tag.dimensionType === DimensionType.Two);
|
|
26562
|
+
return this.tags.filter((tag) => tag.dimensionType === exports.DimensionType.Two);
|
|
26544
26563
|
}
|
|
26545
26564
|
filter3DPointTag() {
|
|
26546
|
-
return this.tags.filter((tag) => tag.dimensionType === DimensionType.Three && tag.pointType === PointType.PointTag);
|
|
26565
|
+
return this.tags.filter((tag) => tag.dimensionType === exports.DimensionType.Three && tag.pointType === exports.PointType.PointTag);
|
|
26547
26566
|
}
|
|
26548
26567
|
filter3DTag() {
|
|
26549
|
-
return this.tags.filter((tag) => tag.dimensionType === DimensionType.Three);
|
|
26568
|
+
return this.tags.filter((tag) => tag.dimensionType === exports.DimensionType.Three);
|
|
26550
26569
|
}
|
|
26551
26570
|
filterPlaneTag() {
|
|
26552
|
-
return this.tags.filter((tag) => tag.dimensionType === DimensionType.Three && tag.pointType === PointType.PlaneTag);
|
|
26571
|
+
return this.tags.filter((tag) => tag.dimensionType === exports.DimensionType.Three && tag.pointType === exports.PointType.PlaneTag);
|
|
26553
26572
|
}
|
|
26554
26573
|
}
|
|
26555
26574
|
|
|
26556
26575
|
// declare const __APP_VERSION__: string
|
|
26557
|
-
const VERSION$2 = '0.
|
|
26576
|
+
const VERSION$2 = '0.3.3';
|
|
26558
26577
|
const PLUGIN_NAME$1 = `DnalogelPlugin-PanoTagPlugin-${random()}@${VERSION$2}`;
|
|
26559
26578
|
const TAG_INITIAL_UNFOLDED = true;
|
|
26560
26579
|
const pluginFlag = (name) => `${PLUGIN_NAME$1}--${name}`;
|
|
@@ -27082,13 +27101,13 @@ void main() {
|
|
|
27082
27101
|
return;
|
|
27083
27102
|
if (!this.css3DRenderPlugin)
|
|
27084
27103
|
this.css3DRenderPlugin = CSS3DRenderPlugin(this.five);
|
|
27085
|
-
if (tag.pointType === PointType.PointTag && !tag.normal)
|
|
27104
|
+
if (tag.pointType === exports.PointType.PointTag && !tag.normal)
|
|
27086
27105
|
return console.error('updateRenderPlaneTag: 三维点标签缺少法向量!');
|
|
27087
27106
|
// 四个点
|
|
27088
|
-
const positions = tag.pointType === PointType.PlaneTag
|
|
27107
|
+
const positions = tag.pointType === exports.PointType.PlaneTag
|
|
27089
27108
|
? tag.position
|
|
27090
27109
|
: normalPositionToPositions(this.five.camera.position, arrayPositionToVector3(tag.position), arrayPositionToVector3(tag.normal));
|
|
27091
|
-
const normal = tag.pointType === PointType.PlaneTag ? planeNormal(tag.position) : arrayPositionToVector3(tag.normal);
|
|
27110
|
+
const normal = tag.pointType === exports.PointType.PlaneTag ? planeNormal(tag.position) : arrayPositionToVector3(tag.normal);
|
|
27092
27111
|
const create3DDomContainerConfig = this.getTagConfig(tag).tag3DConfig;
|
|
27093
27112
|
const domContainer = this.css3DRenderPlugin.create3DDomContainer(positions, create3DDomContainerConfig);
|
|
27094
27113
|
if (!domContainer)
|
|
@@ -27138,14 +27157,14 @@ void main() {
|
|
|
27138
27157
|
// 3D 转 2D 的时候要销毁 3D container
|
|
27139
27158
|
this.tags.forEach((tag) => {
|
|
27140
27159
|
var _a;
|
|
27141
|
-
if (tag.dimensionType === DimensionType.Two && tag.pointType === PointType.PointTag) {
|
|
27160
|
+
if (tag.dimensionType === exports.DimensionType.Two && tag.pointType === exports.PointType.PointTag) {
|
|
27142
27161
|
(_a = tag.tag3DContentSvelte) === null || _a === void 0 ? void 0 : _a.domContainer.dispose();
|
|
27143
27162
|
tag.tag3DContentSvelte = undefined;
|
|
27144
27163
|
}
|
|
27145
27164
|
});
|
|
27146
27165
|
for (const [id, disposer] of this.store.css3DRenderDisposer) {
|
|
27147
27166
|
const tag = this.getTagById(id);
|
|
27148
|
-
if (!tag || tag.dimensionType !== DimensionType.Three) {
|
|
27167
|
+
if (!tag || tag.dimensionType !== exports.DimensionType.Three) {
|
|
27149
27168
|
disposer === null || disposer === void 0 ? void 0 : disposer();
|
|
27150
27169
|
this.store.css3DRenderDisposer.delete(id);
|
|
27151
27170
|
}
|
|
@@ -27156,7 +27175,8 @@ void main() {
|
|
|
27156
27175
|
const PanoTagPlugin = (five, params) => new PanoTagPluginController(five, params);
|
|
27157
27176
|
|
|
27158
27177
|
class BaseHelper extends THREE.Object3D {
|
|
27159
|
-
constructor(originObject3D) {
|
|
27178
|
+
constructor(originObject3D, config) {
|
|
27179
|
+
var _a;
|
|
27160
27180
|
super();
|
|
27161
27181
|
Object.defineProperty(this, "originObject3D", {
|
|
27162
27182
|
enumerable: true,
|
|
@@ -27164,11 +27184,26 @@ void main() {
|
|
|
27164
27184
|
writable: true,
|
|
27165
27185
|
value: void 0
|
|
27166
27186
|
});
|
|
27187
|
+
Object.defineProperty(this, "needsRender", {
|
|
27188
|
+
enumerable: true,
|
|
27189
|
+
configurable: true,
|
|
27190
|
+
writable: true,
|
|
27191
|
+
value: void 0
|
|
27192
|
+
});
|
|
27167
27193
|
this.originObject3D = originObject3D;
|
|
27194
|
+
this.needsRender = (_a = config === null || config === void 0 ? void 0 : config.needsRender) !== null && _a !== void 0 ? _a : (() => { });
|
|
27168
27195
|
}
|
|
27169
27196
|
get helperObject() {
|
|
27170
27197
|
return this;
|
|
27171
27198
|
}
|
|
27199
|
+
show() {
|
|
27200
|
+
this.visible = true;
|
|
27201
|
+
this.needsRender();
|
|
27202
|
+
}
|
|
27203
|
+
hide() {
|
|
27204
|
+
this.visible = false;
|
|
27205
|
+
this.needsRender();
|
|
27206
|
+
}
|
|
27172
27207
|
updatePosition() {
|
|
27173
27208
|
this.position.copy(this.originObject3D.position);
|
|
27174
27209
|
}
|
|
@@ -27371,29 +27406,16 @@ void main() {
|
|
|
27371
27406
|
this.add(this.yArrow);
|
|
27372
27407
|
this.add(this.zArrow);
|
|
27373
27408
|
}
|
|
27374
|
-
|
|
27375
|
-
|
|
27376
|
-
|
|
27377
|
-
|
|
27378
|
-
|
|
27379
|
-
}
|
|
27380
|
-
else {
|
|
27381
|
-
directions.forEach((direction) => {
|
|
27382
|
-
const arrow = [this.xArrow, this.yArrow, this.zArrow].find((arrow) => arrow.direction === direction);
|
|
27383
|
-
arrow && (arrow.visible = false);
|
|
27384
|
-
});
|
|
27385
|
-
}
|
|
27409
|
+
show() {
|
|
27410
|
+
super.show();
|
|
27411
|
+
this.xArrow.visible = true;
|
|
27412
|
+
this.yArrow.visible = true;
|
|
27413
|
+
this.zArrow.visible = true;
|
|
27386
27414
|
}
|
|
27387
|
-
|
|
27388
|
-
|
|
27389
|
-
|
|
27390
|
-
|
|
27391
|
-
this.zArrow.visible = true;
|
|
27392
|
-
}
|
|
27393
|
-
else {
|
|
27394
|
-
const arrow = [this.xArrow, this.yArrow, this.zArrow].find((arrow) => arrow.direction === direction);
|
|
27395
|
-
arrow && (arrow.visible = true);
|
|
27396
|
-
}
|
|
27415
|
+
showDraggingHelper(directions) {
|
|
27416
|
+
this.xArrow.visible = directions.includes('x');
|
|
27417
|
+
this.yArrow.visible = directions.includes('y');
|
|
27418
|
+
this.zArrow.visible = directions.includes('z');
|
|
27397
27419
|
}
|
|
27398
27420
|
dispose() {
|
|
27399
27421
|
this.remove(this.xArrow, this.yArrow, this.zArrow);
|
|
@@ -27531,21 +27553,21 @@ void main() {
|
|
|
27531
27553
|
this.zAngleHelper.baseAxes.applyQuaternion(quaternion);
|
|
27532
27554
|
}
|
|
27533
27555
|
hide() {
|
|
27556
|
+
// 改为remove而不是设置visible,是因为会影响其他helper的碰撞检测
|
|
27534
27557
|
this.remove(this.yzCircle, this.xzCircle, this.xyCircle, this.xRingHelper, this.yRingHelper, this.zRingHelper, this.xAngleHelper, this.yAngleHelper, this.zAngleHelper);
|
|
27535
27558
|
}
|
|
27536
|
-
show(
|
|
27537
|
-
var _a
|
|
27538
|
-
|
|
27539
|
-
|
|
27540
|
-
|
|
27541
|
-
|
|
27542
|
-
|
|
27543
|
-
|
|
27544
|
-
|
|
27545
|
-
|
|
27546
|
-
|
|
27547
|
-
|
|
27548
|
-
}
|
|
27559
|
+
show() {
|
|
27560
|
+
var _a;
|
|
27561
|
+
this.add(this.xyCircle, this.xzCircle, this.yzCircle);
|
|
27562
|
+
this.remove(this.xRingHelper, this.yRingHelper, this.zRingHelper, this.xAngleHelper, this.yAngleHelper, this.zAngleHelper);
|
|
27563
|
+
(_a = this.angleTips) === null || _a === void 0 ? void 0 : _a.hide();
|
|
27564
|
+
}
|
|
27565
|
+
showDraggingHelper(directions) {
|
|
27566
|
+
var _a;
|
|
27567
|
+
this.hide();
|
|
27568
|
+
this.add(...this.filterRingHelper(directions));
|
|
27569
|
+
this.add(...this.filterAngleHelper(directions));
|
|
27570
|
+
(_a = this.angleTips) === null || _a === void 0 ? void 0 : _a.show();
|
|
27549
27571
|
}
|
|
27550
27572
|
dispose() {
|
|
27551
27573
|
var _a, _b;
|
|
@@ -27553,11 +27575,11 @@ void main() {
|
|
|
27553
27575
|
if ((_a = this.angleTips) === null || _a === void 0 ? void 0 : _a.element)
|
|
27554
27576
|
(_b = this.container) === null || _b === void 0 ? void 0 : _b.removeChild(this.angleTips.element);
|
|
27555
27577
|
}
|
|
27556
|
-
filterRingHelper(
|
|
27557
|
-
return [this.xRingHelper, this.yRingHelper, this.zRingHelper].filter((helper) => helper.direction
|
|
27578
|
+
filterRingHelper(directions) {
|
|
27579
|
+
return [this.xRingHelper, this.yRingHelper, this.zRingHelper].filter((helper) => directions.includes(helper.direction));
|
|
27558
27580
|
}
|
|
27559
|
-
filterAngleHelper(
|
|
27560
|
-
return [this.xAngleHelper, this.yAngleHelper, this.zAngleHelper].filter((helper) => helper.direction
|
|
27581
|
+
filterAngleHelper(directions) {
|
|
27582
|
+
return [this.xAngleHelper, this.yAngleHelper, this.zAngleHelper].filter((helper) => directions.includes(helper.direction));
|
|
27561
27583
|
}
|
|
27562
27584
|
}
|
|
27563
27585
|
class Circle extends THREE__namespace.Mesh {
|
|
@@ -27854,6 +27876,9 @@ void main() {
|
|
|
27854
27876
|
(_b = this.plane) === null || _b === void 0 ? void 0 : _b.applyMatrix4(matrix);
|
|
27855
27877
|
this.cornerPositions.forEach((cornerPosition) => cornerPosition.applyMatrix4(matrix));
|
|
27856
27878
|
}
|
|
27879
|
+
showDraggingHelper() {
|
|
27880
|
+
// nothing to do
|
|
27881
|
+
}
|
|
27857
27882
|
setHelperScaleMatrix4(matrix, params) {
|
|
27858
27883
|
var _a, _b;
|
|
27859
27884
|
(_a = this.css3DInstance) === null || _a === void 0 ? void 0 : _a.css3DObject.scale.applyMatrix4(matrix);
|
|
@@ -28486,16 +28511,17 @@ void main() {
|
|
|
28486
28511
|
this.needsRender();
|
|
28487
28512
|
}
|
|
28488
28513
|
show() {
|
|
28489
|
-
this.helperObject3D.
|
|
28514
|
+
this.helperObject3D.show();
|
|
28490
28515
|
this.needsRender();
|
|
28491
28516
|
}
|
|
28492
28517
|
hide() {
|
|
28493
|
-
this.helperObject3D.
|
|
28518
|
+
this.helperObject3D.hide();
|
|
28494
28519
|
this.needsRender();
|
|
28495
28520
|
}
|
|
28496
28521
|
dispose() {
|
|
28497
|
-
this.scene.remove(this.helperObject3D);
|
|
28498
28522
|
this.helperObject3D.dispose();
|
|
28523
|
+
this.scene.remove(this.helperObject3D);
|
|
28524
|
+
this.needsRender();
|
|
28499
28525
|
}
|
|
28500
28526
|
updateHelperPosition() {
|
|
28501
28527
|
this.helperObject3D.updatePosition();
|
|
@@ -28652,7 +28678,7 @@ void main() {
|
|
|
28652
28678
|
plane.setFromNormalAndCoplanarPoint(planeNormal, startIntersect);
|
|
28653
28679
|
this.startInfo = { startVectorProject: startIntersect.clone().projectOnVector(directionVector), directionVector, plane };
|
|
28654
28680
|
// 隐藏其他箭头
|
|
28655
|
-
this.helperObject3D.
|
|
28681
|
+
this.helperObject3D.showDraggingHelper([draggingDirection]);
|
|
28656
28682
|
this.hooks.emit('moveStart');
|
|
28657
28683
|
this.isDragging = true;
|
|
28658
28684
|
console.log('%c MoveController dragStart', 'color: #e5af2e');
|
|
@@ -28757,13 +28783,13 @@ void main() {
|
|
|
28757
28783
|
const VERSION$1 = 'v1.0.0';
|
|
28758
28784
|
const NAME = 'Object3DHelper';
|
|
28759
28785
|
const NAMEVERSION = `${NAME}@${VERSION$1}`;
|
|
28760
|
-
const disposedErrorLog = () => {
|
|
28786
|
+
const disposedErrorLog$1 = () => {
|
|
28761
28787
|
console.error(`${NAMEVERSION} is disposed`);
|
|
28762
28788
|
};
|
|
28763
|
-
const disableWarnLog = () => {
|
|
28789
|
+
const disableWarnLog$1 = () => {
|
|
28764
28790
|
console.warn(`${NAMEVERSION} is disabled`);
|
|
28765
28791
|
};
|
|
28766
|
-
const disableErrorLog = () => {
|
|
28792
|
+
const disableErrorLog$1 = () => {
|
|
28767
28793
|
console.error(`${NAMEVERSION} is disabled`);
|
|
28768
28794
|
};
|
|
28769
28795
|
class Object3DHelper {
|
|
@@ -28898,11 +28924,11 @@ void main() {
|
|
|
28898
28924
|
}
|
|
28899
28925
|
setState(state, options) {
|
|
28900
28926
|
if (this.state.disposed)
|
|
28901
|
-
return disposedErrorLog();
|
|
28927
|
+
return disposedErrorLog$1();
|
|
28902
28928
|
if (!this.state.enabled) {
|
|
28903
28929
|
// when plugin is disabled, only can change enabled or disposed to true
|
|
28904
28930
|
if (state.enabled !== true && state.disposed !== true)
|
|
28905
|
-
return disableErrorLog();
|
|
28931
|
+
return disableErrorLog$1();
|
|
28906
28932
|
}
|
|
28907
28933
|
const prevState = Object.assign({}, this.state);
|
|
28908
28934
|
this.state = Object.assign(Object.assign({}, this.state), state);
|
|
@@ -28990,7 +29016,6 @@ void main() {
|
|
|
28990
29016
|
}
|
|
28991
29017
|
}
|
|
28992
29018
|
handleEnable(enabled, userAction = true) {
|
|
28993
|
-
console.log({ enabled });
|
|
28994
29019
|
if (enabled) {
|
|
28995
29020
|
this.everyControllerDo((controller) => controller.enable());
|
|
28996
29021
|
this.hooks.emit('enable', { userAction });
|
|
@@ -29002,7 +29027,6 @@ void main() {
|
|
|
29002
29027
|
this.state.enabled = enabled;
|
|
29003
29028
|
}
|
|
29004
29029
|
handleVisible(visible, userAction = true) {
|
|
29005
|
-
console.log({ visible });
|
|
29006
29030
|
if (visible) {
|
|
29007
29031
|
this.everyControllerDo((controller) => controller.show());
|
|
29008
29032
|
this.actionIfStateIsEnabled(() => this.hooks.emit('show', { userAction }));
|
|
@@ -29029,7 +29053,7 @@ void main() {
|
|
|
29029
29053
|
return func();
|
|
29030
29054
|
else {
|
|
29031
29055
|
if (options === null || options === void 0 ? void 0 : options.warnLog)
|
|
29032
|
-
disableWarnLog();
|
|
29056
|
+
disableWarnLog$1();
|
|
29033
29057
|
}
|
|
29034
29058
|
}
|
|
29035
29059
|
}
|
|
@@ -29132,7 +29156,7 @@ void main() {
|
|
|
29132
29156
|
// this.a = new THREE.PlaneHelper(plane, 10, 0xffff00)
|
|
29133
29157
|
// this.scene.add(this.a)
|
|
29134
29158
|
this.startInfo = { direction, startVector, staticStartVector, plane, angleHelper };
|
|
29135
|
-
this.helperObject3D.
|
|
29159
|
+
this.helperObject3D.showDraggingHelper([direction]);
|
|
29136
29160
|
this.hooks.emit('rotateStart');
|
|
29137
29161
|
this.isDragging = true;
|
|
29138
29162
|
console.log(`%c RotateController dragStart ${direction}`, 'color: #e5af2e');
|
|
@@ -29506,9 +29530,18 @@ void main() {
|
|
|
29506
29530
|
const VERSION = 'v1.0.0';
|
|
29507
29531
|
const PLUGIN_NAME = 'Object3DHelperPlugin';
|
|
29508
29532
|
const PLUGIN = `${PLUGIN_NAME}@${VERSION}`;
|
|
29509
|
-
|
|
29533
|
+
const disposedErrorLog = () => {
|
|
29534
|
+
console.error(`${PLUGIN} is disposed`);
|
|
29535
|
+
};
|
|
29536
|
+
const disableWarnLog = () => {
|
|
29537
|
+
console.warn(`${PLUGIN} is disabled`);
|
|
29538
|
+
};
|
|
29539
|
+
const disableErrorLog = () => {
|
|
29540
|
+
console.error(`${PLUGIN} is disabled`);
|
|
29541
|
+
};
|
|
29542
|
+
class Object3DHelperController extends Controller$7 {
|
|
29510
29543
|
constructor(five) {
|
|
29511
|
-
super();
|
|
29544
|
+
super(five);
|
|
29512
29545
|
Object.defineProperty(this, "version", {
|
|
29513
29546
|
enumerable: true,
|
|
29514
29547
|
configurable: true,
|
|
@@ -29521,15 +29554,80 @@ void main() {
|
|
|
29521
29554
|
writable: true,
|
|
29522
29555
|
value: PLUGIN_NAME
|
|
29523
29556
|
});
|
|
29524
|
-
Object.defineProperty(this, "
|
|
29557
|
+
Object.defineProperty(this, "state", {
|
|
29525
29558
|
enumerable: true,
|
|
29526
29559
|
configurable: true,
|
|
29527
29560
|
writable: true,
|
|
29528
|
-
value:
|
|
29561
|
+
value: {
|
|
29562
|
+
visible: true,
|
|
29563
|
+
enabled: true,
|
|
29564
|
+
disposed: false,
|
|
29565
|
+
}
|
|
29566
|
+
});
|
|
29567
|
+
Object.defineProperty(this, "objectHelperMap", {
|
|
29568
|
+
enumerable: true,
|
|
29569
|
+
configurable: true,
|
|
29570
|
+
writable: true,
|
|
29571
|
+
value: new Map()
|
|
29529
29572
|
});
|
|
29530
29573
|
this.five = five;
|
|
29531
29574
|
Object.assign(window, { [`__${PLUGIN_NAME.toUpperCase()}_DEBUG__`]: this });
|
|
29532
29575
|
}
|
|
29576
|
+
/**
|
|
29577
|
+
* @description Show guide line
|
|
29578
|
+
*/
|
|
29579
|
+
async show(options) {
|
|
29580
|
+
this.setState({ visible: true }, options);
|
|
29581
|
+
}
|
|
29582
|
+
/**
|
|
29583
|
+
* @description Hide guide line
|
|
29584
|
+
*/
|
|
29585
|
+
async hide(options) {
|
|
29586
|
+
this.setState({ visible: false }, options);
|
|
29587
|
+
}
|
|
29588
|
+
/**
|
|
29589
|
+
* @description Enable
|
|
29590
|
+
*/
|
|
29591
|
+
enable(options) {
|
|
29592
|
+
this.setState({ enabled: true }, options);
|
|
29593
|
+
}
|
|
29594
|
+
/**
|
|
29595
|
+
* @description Disable
|
|
29596
|
+
*/
|
|
29597
|
+
disable(options) {
|
|
29598
|
+
this.setState({ enabled: false }, options);
|
|
29599
|
+
}
|
|
29600
|
+
/**
|
|
29601
|
+
* @description Dispose
|
|
29602
|
+
*/
|
|
29603
|
+
dispose() {
|
|
29604
|
+
this.setState({ disposed: true });
|
|
29605
|
+
}
|
|
29606
|
+
setState(state, options) {
|
|
29607
|
+
if (this.state.disposed)
|
|
29608
|
+
return disposedErrorLog();
|
|
29609
|
+
if (!this.state.enabled) {
|
|
29610
|
+
// when plugin is disabled, only can change enabled or disposed to true
|
|
29611
|
+
if (state.enabled !== true && state.disposed !== true)
|
|
29612
|
+
return disableErrorLog();
|
|
29613
|
+
}
|
|
29614
|
+
const prevState = Object.assign({}, this.state);
|
|
29615
|
+
this.state = Object.assign(Object.assign({}, this.state), state);
|
|
29616
|
+
if (state.disposed !== undefined && state.disposed !== prevState.disposed) {
|
|
29617
|
+
if (state.disposed)
|
|
29618
|
+
this.handleDispose();
|
|
29619
|
+
}
|
|
29620
|
+
if (state.visible !== undefined && state.visible !== prevState.visible) {
|
|
29621
|
+
this.handleVisible(state.visible);
|
|
29622
|
+
}
|
|
29623
|
+
if (state.enabled !== undefined && state.enabled !== prevState.enabled) {
|
|
29624
|
+
this.handleEnable(state.enabled);
|
|
29625
|
+
}
|
|
29626
|
+
this.hooks.emit('stateChange', { state: this.state, prevState });
|
|
29627
|
+
}
|
|
29628
|
+
getObject3DHelper(object3D) {
|
|
29629
|
+
return this.objectHelperMap.get(object3D);
|
|
29630
|
+
}
|
|
29533
29631
|
/**
|
|
29534
29632
|
* @description 添加 helper
|
|
29535
29633
|
* @param { THREE.Object3D } object3D 要添加helper的物体
|
|
@@ -29539,6 +29637,12 @@ void main() {
|
|
|
29539
29637
|
*/
|
|
29540
29638
|
addObject3DHelper(object3D, config = {}) {
|
|
29541
29639
|
var _a;
|
|
29640
|
+
if (this.objectHelperMap.has(object3D)) {
|
|
29641
|
+
console.warn(`Object3DHelperPlugin: object3D ${object3D.name} already has helper`);
|
|
29642
|
+
return;
|
|
29643
|
+
}
|
|
29644
|
+
const helper = new Object3DHelper();
|
|
29645
|
+
this.objectHelperMap.set(object3D, helper);
|
|
29542
29646
|
const container = (_a = this.five.getElement()) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
29543
29647
|
const camera = this.five.camera;
|
|
29544
29648
|
// 创建空的helperGroup
|
|
@@ -29548,7 +29652,7 @@ void main() {
|
|
|
29548
29652
|
if (moveHelper) {
|
|
29549
29653
|
const moveHelper = new MoveHelper(object3D);
|
|
29550
29654
|
const controllerWrapper = new ControllerWrapper(this.five, MoveController, object3D, moveHelper);
|
|
29551
|
-
|
|
29655
|
+
helper.addControllers({ moveController: controllerWrapper.helperController });
|
|
29552
29656
|
}
|
|
29553
29657
|
if (rotateHelper) {
|
|
29554
29658
|
let angleTipsParams;
|
|
@@ -29556,13 +29660,13 @@ void main() {
|
|
|
29556
29660
|
angleTipsParams = { container };
|
|
29557
29661
|
const rotateHelper = new RotateHelper(object3D, angleTipsParams);
|
|
29558
29662
|
const controllerWrapper = new ControllerWrapper(this.five, RotateController, object3D, rotateHelper);
|
|
29559
|
-
|
|
29663
|
+
helper.addControllers({ rotateController: controllerWrapper.helperController });
|
|
29560
29664
|
}
|
|
29561
29665
|
if (scaleHelper) {
|
|
29562
29666
|
if (container) {
|
|
29563
29667
|
const scaleHelper = new RectangleScaleHelper(object3D, container, camera, this.five.scene);
|
|
29564
29668
|
const controllerWrapper = new ControllerWrapper(this.five, CSS3DScaleController, object3D, scaleHelper);
|
|
29565
|
-
|
|
29669
|
+
helper.addControllers({ scaleController: controllerWrapper.helperController });
|
|
29566
29670
|
}
|
|
29567
29671
|
}
|
|
29568
29672
|
// if (mergeConfig.outlineHelper) {
|
|
@@ -29572,6 +29676,54 @@ void main() {
|
|
|
29572
29676
|
// }
|
|
29573
29677
|
// this.five.scene.add(helperGroup)
|
|
29574
29678
|
}
|
|
29679
|
+
removeObject3DHelper(object3D) {
|
|
29680
|
+
const helper = this.objectHelperMap.get(object3D);
|
|
29681
|
+
if (!helper)
|
|
29682
|
+
return;
|
|
29683
|
+
this.objectHelperMap.delete(object3D);
|
|
29684
|
+
helper.dispose();
|
|
29685
|
+
}
|
|
29686
|
+
handleEnable(enabled, userAction = true) {
|
|
29687
|
+
console.log({ enabled });
|
|
29688
|
+
if (enabled) {
|
|
29689
|
+
this.everyHelperDo((helper) => helper.enable());
|
|
29690
|
+
this.hooks.emit('enable', { userAction });
|
|
29691
|
+
}
|
|
29692
|
+
else {
|
|
29693
|
+
this.everyHelperDo((helper) => helper.disable());
|
|
29694
|
+
this.hooks.emit('disable', { userAction });
|
|
29695
|
+
}
|
|
29696
|
+
this.state.enabled = enabled;
|
|
29697
|
+
}
|
|
29698
|
+
handleVisible(visible, userAction = true) {
|
|
29699
|
+
console.log({ visible });
|
|
29700
|
+
if (visible) {
|
|
29701
|
+
this.everyHelperDo((helper) => helper.show());
|
|
29702
|
+
this.actionIfStateIsEnabled(() => this.hooks.emit('show', { userAction }));
|
|
29703
|
+
}
|
|
29704
|
+
else {
|
|
29705
|
+
this.everyHelperDo((helper) => helper.hide());
|
|
29706
|
+
this.actionIfStateIsEnabled(() => this.hooks.emit('hide', { userAction }));
|
|
29707
|
+
}
|
|
29708
|
+
this.state.visible = visible;
|
|
29709
|
+
}
|
|
29710
|
+
handleDispose() {
|
|
29711
|
+
this.everyHelperDo((helper) => helper.dispose());
|
|
29712
|
+
}
|
|
29713
|
+
everyHelperDo(func) {
|
|
29714
|
+
this.objectHelperMap.forEach((helper) => {
|
|
29715
|
+
if (helper)
|
|
29716
|
+
func(helper);
|
|
29717
|
+
});
|
|
29718
|
+
}
|
|
29719
|
+
actionIfStateIsEnabled(func, options) {
|
|
29720
|
+
if (this.state.enabled)
|
|
29721
|
+
return func();
|
|
29722
|
+
else {
|
|
29723
|
+
if (options === null || options === void 0 ? void 0 : options.warnLog)
|
|
29724
|
+
disableWarnLog();
|
|
29725
|
+
}
|
|
29726
|
+
}
|
|
29575
29727
|
}
|
|
29576
29728
|
|
|
29577
29729
|
const Object3DHelperPlugin = (five) => new Object3DHelperController(five);
|