@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.js
CHANGED
|
@@ -19357,13 +19357,13 @@ function sleep(duration) {
|
|
|
19357
19357
|
const VERSION$3 = 'v1.0.6';
|
|
19358
19358
|
const PLUGIN_NAME$2 = 'CruisePlugin';
|
|
19359
19359
|
const PLUGIN$1 = `${PLUGIN_NAME$2}@${VERSION$3}`;
|
|
19360
|
-
const disposedErrorLog$
|
|
19360
|
+
const disposedErrorLog$2 = () => {
|
|
19361
19361
|
console.error(`${PLUGIN$1} is disposed`);
|
|
19362
19362
|
};
|
|
19363
|
-
const disableWarnLog$
|
|
19363
|
+
const disableWarnLog$2 = () => {
|
|
19364
19364
|
console.warn(`${PLUGIN$1} is disabled`);
|
|
19365
19365
|
};
|
|
19366
|
-
const disableErrorLog$
|
|
19366
|
+
const disableErrorLog$2 = () => {
|
|
19367
19367
|
console.error(`${PLUGIN$1} is disabled`);
|
|
19368
19368
|
};
|
|
19369
19369
|
const pauseDataMap = new Map();
|
|
@@ -19434,7 +19434,7 @@ class CruisePluginController extends Controller$6 {
|
|
|
19434
19434
|
async load(serverData, state, userAction) {
|
|
19435
19435
|
var _a, _b, _c, _d, _e;
|
|
19436
19436
|
if (this.state.disposed)
|
|
19437
|
-
return disposedErrorLog$
|
|
19437
|
+
return disposedErrorLog$2();
|
|
19438
19438
|
if (!this.privateState.fiveOriginGetProgress) {
|
|
19439
19439
|
if (!((_b = (_a = this.five.controller) === null || _a === void 0 ? void 0 : _a.cameraMotion) === null || _b === void 0 ? void 0 : _b.getProgress)) {
|
|
19440
19440
|
await this.waitFiveLoaded();
|
|
@@ -19554,11 +19554,11 @@ class CruisePluginController extends Controller$6 {
|
|
|
19554
19554
|
setState(state, options) {
|
|
19555
19555
|
var _a;
|
|
19556
19556
|
if (this.state.disposed)
|
|
19557
|
-
return disposedErrorLog$
|
|
19557
|
+
return disposedErrorLog$2();
|
|
19558
19558
|
if (!this.state.enabled) {
|
|
19559
19559
|
// when plugin is disabled, only can change enabled or disposed to true
|
|
19560
19560
|
if (state.enabled !== true && state.disposed !== true)
|
|
19561
|
-
return disableErrorLog$
|
|
19561
|
+
return disableErrorLog$2();
|
|
19562
19562
|
}
|
|
19563
19563
|
const prevState = Object.assign({}, this.state);
|
|
19564
19564
|
this.state = Object.assign(Object.assign({}, this.state), state);
|
|
@@ -20070,7 +20070,7 @@ class CruisePluginController extends Controller$6 {
|
|
|
20070
20070
|
return func();
|
|
20071
20071
|
else {
|
|
20072
20072
|
if (options === null || options === void 0 ? void 0 : options.warnLog)
|
|
20073
|
-
disableWarnLog$
|
|
20073
|
+
disableWarnLog$2();
|
|
20074
20074
|
}
|
|
20075
20075
|
}
|
|
20076
20076
|
/**
|
|
@@ -20310,17 +20310,17 @@ function resizeObserver(func, element) {
|
|
|
20310
20310
|
}
|
|
20311
20311
|
}
|
|
20312
20312
|
|
|
20313
|
-
|
|
20313
|
+
exports.DimensionType = void 0;
|
|
20314
20314
|
(function (DimensionType) {
|
|
20315
20315
|
DimensionType["Two"] = "2D";
|
|
20316
20316
|
DimensionType["Three"] = "3D";
|
|
20317
|
-
})(DimensionType || (DimensionType = {}));
|
|
20318
|
-
|
|
20317
|
+
})(exports.DimensionType || (exports.DimensionType = {}));
|
|
20318
|
+
exports.PointType = void 0;
|
|
20319
20319
|
(function (PointType) {
|
|
20320
20320
|
PointType["PointTag"] = "PointTag";
|
|
20321
20321
|
PointType["PlaneTag"] = "PlaneTag";
|
|
20322
|
-
})(PointType || (PointType = {}));
|
|
20323
|
-
|
|
20322
|
+
})(exports.PointType || (exports.PointType = {}));
|
|
20323
|
+
exports.ContentType = void 0;
|
|
20324
20324
|
(function (ContentType) {
|
|
20325
20325
|
/** 音频标签 */
|
|
20326
20326
|
ContentType["Audio"] = "Audio";
|
|
@@ -20333,15 +20333,15 @@ var ContentType;
|
|
|
20333
20333
|
/** 营销标签 */
|
|
20334
20334
|
ContentType["Marketing"] = "Marketing";
|
|
20335
20335
|
/** 图片视频贴片 */
|
|
20336
|
-
ContentType["
|
|
20336
|
+
ContentType["MediaPlane"] = "MediaPlane";
|
|
20337
20337
|
/** 其他/自定义标签 */
|
|
20338
20338
|
ContentType["Custom"] = "Custom";
|
|
20339
|
-
})(ContentType || (ContentType = {}));
|
|
20340
|
-
|
|
20339
|
+
})(exports.ContentType || (exports.ContentType = {}));
|
|
20340
|
+
exports.LinkType = void 0;
|
|
20341
20341
|
(function (LinkType) {
|
|
20342
20342
|
LinkType["VrLink"] = "vr";
|
|
20343
20343
|
LinkType["NormalLink"] = "normal";
|
|
20344
|
-
})(LinkType || (LinkType = {}));
|
|
20344
|
+
})(exports.LinkType || (exports.LinkType = {}));
|
|
20345
20345
|
|
|
20346
20346
|
/* src/PanoTagPlugin/Components/Common/Line/Straight.svelte generated by Svelte v3.50.1 */
|
|
20347
20347
|
|
|
@@ -20525,7 +20525,7 @@ function add_css$j(target) {
|
|
|
20525
20525
|
internal.append_styles(target, "svelte-faoauy", ".shadow.svelte-faoauy{position:absolute}");
|
|
20526
20526
|
}
|
|
20527
20527
|
|
|
20528
|
-
// (
|
|
20528
|
+
// (23:0) {#if visible}
|
|
20529
20529
|
function create_if_block$f(ctx) {
|
|
20530
20530
|
let div;
|
|
20531
20531
|
let div_style_value;
|
|
@@ -20690,7 +20690,7 @@ function instance$j($$self, $$props, $$invalidate) {
|
|
|
20690
20690
|
let { blurRadius } = $$props;
|
|
20691
20691
|
let { spreadRadius } = $$props;
|
|
20692
20692
|
let { opacity = 0.15 } = $$props;
|
|
20693
|
-
let { zIndex =
|
|
20693
|
+
let { zIndex = undefined } = $$props;
|
|
20694
20694
|
|
|
20695
20695
|
$$self.$$set = $$props => {
|
|
20696
20696
|
if ('inDelay' in $$props) $$invalidate(0, inDelay = $$props.inDelay);
|
|
@@ -21000,8 +21000,7 @@ function create_if_block$e(ctx) {
|
|
|
21000
21000
|
props: {
|
|
21001
21001
|
center: true,
|
|
21002
21002
|
blurRadius: 9,
|
|
21003
|
-
spreadRadius: 3
|
|
21004
|
-
zIndex: -1
|
|
21003
|
+
spreadRadius: 3
|
|
21005
21004
|
}
|
|
21006
21005
|
});
|
|
21007
21006
|
|
|
@@ -23339,8 +23338,7 @@ function create_if_block$7(ctx) {
|
|
|
23339
23338
|
props: {
|
|
23340
23339
|
center: true,
|
|
23341
23340
|
blurRadius: 15,
|
|
23342
|
-
spreadRadius: 6
|
|
23343
|
-
zIndex: -1
|
|
23341
|
+
spreadRadius: 6
|
|
23344
23342
|
}
|
|
23345
23343
|
});
|
|
23346
23344
|
|
|
@@ -23922,13 +23920,13 @@ class AudioTag extends internal.SvelteComponent {
|
|
|
23922
23920
|
}
|
|
23923
23921
|
}
|
|
23924
23922
|
|
|
23925
|
-
/* src/PanoTagPlugin/Components/Tag/
|
|
23923
|
+
/* src/PanoTagPlugin/Components/Tag/MediaPlane.svelte generated by Svelte v3.50.1 */
|
|
23926
23924
|
|
|
23927
23925
|
function add_css$8(target) {
|
|
23928
23926
|
internal.append_styles(target, "svelte-10cw0el", ".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}");
|
|
23929
23927
|
}
|
|
23930
23928
|
|
|
23931
|
-
// (
|
|
23929
|
+
// (18:0) {#if tag.state && mediaData}
|
|
23932
23930
|
function create_if_block$5(ctx) {
|
|
23933
23931
|
let div;
|
|
23934
23932
|
let media;
|
|
@@ -23936,8 +23934,10 @@ function create_if_block$5(ctx) {
|
|
|
23936
23934
|
|
|
23937
23935
|
media = new Media({
|
|
23938
23936
|
props: {
|
|
23939
|
-
unfolded: /*unfolded*/ ctx[
|
|
23940
|
-
mediaData: /*mediaData*/ ctx[
|
|
23937
|
+
unfolded: /*unfolded*/ ctx[3],
|
|
23938
|
+
mediaData: /*mediaData*/ ctx[2],
|
|
23939
|
+
objectFit: /*objectFit*/ ctx[1],
|
|
23940
|
+
enableCarousel: true,
|
|
23941
23941
|
inDelay: 500,
|
|
23942
23942
|
duration: 500
|
|
23943
23943
|
}
|
|
@@ -23956,8 +23956,9 @@ function create_if_block$5(ctx) {
|
|
|
23956
23956
|
},
|
|
23957
23957
|
p(ctx, dirty) {
|
|
23958
23958
|
const media_changes = {};
|
|
23959
|
-
if (dirty & /*unfolded*/
|
|
23960
|
-
if (dirty & /*mediaData*/
|
|
23959
|
+
if (dirty & /*unfolded*/ 8) media_changes.unfolded = /*unfolded*/ ctx[3];
|
|
23960
|
+
if (dirty & /*mediaData*/ 4) media_changes.mediaData = /*mediaData*/ ctx[2];
|
|
23961
|
+
if (dirty & /*objectFit*/ 2) media_changes.objectFit = /*objectFit*/ ctx[1];
|
|
23961
23962
|
media.$set(media_changes);
|
|
23962
23963
|
},
|
|
23963
23964
|
i(local) {
|
|
@@ -23979,7 +23980,7 @@ function create_if_block$5(ctx) {
|
|
|
23979
23980
|
function create_fragment$8(ctx) {
|
|
23980
23981
|
let if_block_anchor;
|
|
23981
23982
|
let current;
|
|
23982
|
-
let if_block = /*tag*/ ctx[0].state && /*mediaData*/ ctx[
|
|
23983
|
+
let if_block = /*tag*/ ctx[0].state && /*mediaData*/ ctx[2] && create_if_block$5(ctx);
|
|
23983
23984
|
|
|
23984
23985
|
return {
|
|
23985
23986
|
c() {
|
|
@@ -23992,11 +23993,11 @@ function create_fragment$8(ctx) {
|
|
|
23992
23993
|
current = true;
|
|
23993
23994
|
},
|
|
23994
23995
|
p(ctx, [dirty]) {
|
|
23995
|
-
if (/*tag*/ ctx[0].state && /*mediaData*/ ctx[
|
|
23996
|
+
if (/*tag*/ ctx[0].state && /*mediaData*/ ctx[2]) {
|
|
23996
23997
|
if (if_block) {
|
|
23997
23998
|
if_block.p(ctx, dirty);
|
|
23998
23999
|
|
|
23999
|
-
if (dirty & /*tag, mediaData*/
|
|
24000
|
+
if (dirty & /*tag, mediaData*/ 5) {
|
|
24000
24001
|
internal.transition_in(if_block, 1);
|
|
24001
24002
|
}
|
|
24002
24003
|
} else {
|
|
@@ -24034,6 +24035,8 @@ function create_fragment$8(ctx) {
|
|
|
24034
24035
|
function instance$8($$self, $$props, $$invalidate) {
|
|
24035
24036
|
let unfolded;
|
|
24036
24037
|
let mediaData;
|
|
24038
|
+
let objectFit;
|
|
24039
|
+
var _a;
|
|
24037
24040
|
let { tag } = $$props;
|
|
24038
24041
|
|
|
24039
24042
|
$$self.$$set = $$props => {
|
|
@@ -24042,18 +24045,26 @@ function instance$8($$self, $$props, $$invalidate) {
|
|
|
24042
24045
|
|
|
24043
24046
|
$$self.$$.update = () => {
|
|
24044
24047
|
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
24045
|
-
$$invalidate(
|
|
24048
|
+
$$invalidate(3, unfolded = tag.state ? tag.state.unfolded : false);
|
|
24046
24049
|
}
|
|
24047
24050
|
|
|
24048
24051
|
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
24049
|
-
$$invalidate(
|
|
24052
|
+
$$invalidate(2, mediaData = tag.data.mediaData);
|
|
24053
|
+
}
|
|
24054
|
+
|
|
24055
|
+
if ($$self.$$.dirty & /*tag, _a*/ 17) {
|
|
24056
|
+
$$invalidate(1, objectFit = $$invalidate(4, _a = tag.data.objectFit) !== null && _a !== void 0
|
|
24057
|
+
? _a
|
|
24058
|
+
: (() => {
|
|
24059
|
+
if (tag.data.adaptationMode === 'stretch') return 'cover'; else if (tag.data.adaptationMode === 'proportional') return 'contain'; else return undefined;
|
|
24060
|
+
})());
|
|
24050
24061
|
}
|
|
24051
24062
|
};
|
|
24052
24063
|
|
|
24053
|
-
return [tag, mediaData, unfolded];
|
|
24064
|
+
return [tag, objectFit, mediaData, unfolded, _a];
|
|
24054
24065
|
}
|
|
24055
24066
|
|
|
24056
|
-
class
|
|
24067
|
+
class MediaPlane extends internal.SvelteComponent {
|
|
24057
24068
|
constructor(options) {
|
|
24058
24069
|
super();
|
|
24059
24070
|
internal.init(this, options, instance$8, create_fragment$8, internal.safe_not_equal, { tag: 0 }, add_css$8);
|
|
@@ -24063,7 +24074,7 @@ class MediaPanel extends internal.SvelteComponent {
|
|
|
24063
24074
|
/* src/PanoTagPlugin/Components/Tag/LinkTag.svelte generated by Svelte v3.50.1 */
|
|
24064
24075
|
|
|
24065
24076
|
function add_css$7(target) {
|
|
24066
|
-
internal.append_styles(target, "svelte-
|
|
24077
|
+
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)}}");
|
|
24067
24078
|
}
|
|
24068
24079
|
|
|
24069
24080
|
// (14:52)
|
|
@@ -24091,7 +24102,7 @@ function create_if_block_1$3(ctx) {
|
|
|
24091
24102
|
internal.create_component(shadow.$$.fragment);
|
|
24092
24103
|
t = internal.space();
|
|
24093
24104
|
div = internal.element("div");
|
|
24094
|
-
internal.attr(div, "class", "link svelte-
|
|
24105
|
+
internal.attr(div, "class", "link svelte-135cbxk");
|
|
24095
24106
|
},
|
|
24096
24107
|
m(target, anchor) {
|
|
24097
24108
|
internal.mount_component(shadow, target, anchor);
|
|
@@ -24149,9 +24160,9 @@ function create_if_block$4(ctx) {
|
|
|
24149
24160
|
div1 = internal.element("div");
|
|
24150
24161
|
t2 = internal.space();
|
|
24151
24162
|
div2 = internal.element("div");
|
|
24152
|
-
internal.attr(div0, "class", "arrow0 svelte-
|
|
24153
|
-
internal.attr(div1, "class", "arrow1 svelte-
|
|
24154
|
-
internal.attr(div2, "class", "arrow2 svelte-
|
|
24163
|
+
internal.attr(div0, "class", "arrow0 svelte-135cbxk");
|
|
24164
|
+
internal.attr(div1, "class", "arrow1 svelte-135cbxk");
|
|
24165
|
+
internal.attr(div2, "class", "arrow2 svelte-135cbxk");
|
|
24155
24166
|
},
|
|
24156
24167
|
m(target, anchor) {
|
|
24157
24168
|
internal.mount_component(shadow, target, anchor);
|
|
@@ -24201,8 +24212,8 @@ function create_fragment$7(ctx) {
|
|
|
24201
24212
|
const if_blocks = [];
|
|
24202
24213
|
|
|
24203
24214
|
function select_block_type(ctx, dirty) {
|
|
24204
|
-
if (/*data*/ ctx[0].linkType === LinkType.VrLink) return 0;
|
|
24205
|
-
if (/*data*/ ctx[0].linkType === LinkType.NormalLink) return 1;
|
|
24215
|
+
if (/*data*/ ctx[0].linkType === exports.LinkType.VrLink) return 0;
|
|
24216
|
+
if (/*data*/ ctx[0].linkType === exports.LinkType.NormalLink) return 1;
|
|
24206
24217
|
return -1;
|
|
24207
24218
|
}
|
|
24208
24219
|
|
|
@@ -24235,10 +24246,10 @@ function create_fragment$7(ctx) {
|
|
|
24235
24246
|
t1 = internal.space();
|
|
24236
24247
|
div1 = internal.element("div");
|
|
24237
24248
|
t2 = internal.text(t2_value);
|
|
24238
|
-
internal.attr(div0, "class", "icon svelte-
|
|
24239
|
-
internal.attr(div1, "class", "text svelte-
|
|
24240
|
-
internal.attr(div2, "class", "text-wrapper svelte-
|
|
24241
|
-
internal.attr(div3, "class", "wrapper svelte-
|
|
24249
|
+
internal.attr(div0, "class", "icon svelte-135cbxk");
|
|
24250
|
+
internal.attr(div1, "class", "text svelte-135cbxk");
|
|
24251
|
+
internal.attr(div2, "class", "text-wrapper svelte-135cbxk");
|
|
24252
|
+
internal.attr(div3, "class", "wrapper svelte-135cbxk");
|
|
24242
24253
|
},
|
|
24243
24254
|
m(target, anchor) {
|
|
24244
24255
|
internal.insert(target, div3, anchor);
|
|
@@ -24462,37 +24473,37 @@ function add_css$5(target) {
|
|
|
24462
24473
|
|
|
24463
24474
|
// (67:59)
|
|
24464
24475
|
function create_if_block_6(ctx) {
|
|
24465
|
-
let
|
|
24476
|
+
let mediaplane;
|
|
24466
24477
|
let current;
|
|
24467
24478
|
|
|
24468
|
-
|
|
24479
|
+
mediaplane = new MediaPlane({
|
|
24469
24480
|
props: { tag: noTypecheck(/*tag*/ ctx[1]) }
|
|
24470
24481
|
});
|
|
24471
24482
|
|
|
24472
24483
|
return {
|
|
24473
24484
|
c() {
|
|
24474
|
-
internal.create_component(
|
|
24485
|
+
internal.create_component(mediaplane.$$.fragment);
|
|
24475
24486
|
},
|
|
24476
24487
|
m(target, anchor) {
|
|
24477
|
-
internal.mount_component(
|
|
24488
|
+
internal.mount_component(mediaplane, target, anchor);
|
|
24478
24489
|
current = true;
|
|
24479
24490
|
},
|
|
24480
24491
|
p(ctx, dirty) {
|
|
24481
|
-
const
|
|
24482
|
-
if (dirty & /*tag*/ 2)
|
|
24483
|
-
|
|
24492
|
+
const mediaplane_changes = {};
|
|
24493
|
+
if (dirty & /*tag*/ 2) mediaplane_changes.tag = noTypecheck(/*tag*/ ctx[1]);
|
|
24494
|
+
mediaplane.$set(mediaplane_changes);
|
|
24484
24495
|
},
|
|
24485
24496
|
i(local) {
|
|
24486
24497
|
if (current) return;
|
|
24487
|
-
internal.transition_in(
|
|
24498
|
+
internal.transition_in(mediaplane.$$.fragment, local);
|
|
24488
24499
|
current = true;
|
|
24489
24500
|
},
|
|
24490
24501
|
o(local) {
|
|
24491
|
-
internal.transition_out(
|
|
24502
|
+
internal.transition_out(mediaplane.$$.fragment, local);
|
|
24492
24503
|
current = false;
|
|
24493
24504
|
},
|
|
24494
24505
|
d(detaching) {
|
|
24495
|
-
internal.destroy_component(
|
|
24506
|
+
internal.destroy_component(mediaplane, detaching);
|
|
24496
24507
|
}
|
|
24497
24508
|
};
|
|
24498
24509
|
}
|
|
@@ -24748,12 +24759,12 @@ function create_fragment$5(ctx) {
|
|
|
24748
24759
|
|
|
24749
24760
|
function select_block_type(ctx, dirty) {
|
|
24750
24761
|
if (/*tag*/ ctx[1].element) return 0;
|
|
24751
|
-
if (/*tag*/ ctx[1].contentType === ContentType.Text) return 1;
|
|
24752
|
-
if (/*tag*/ ctx[1].contentType === ContentType.ImageText) return 2;
|
|
24753
|
-
if (/*tag*/ ctx[1].contentType === ContentType.Audio) return 3;
|
|
24754
|
-
if (/*tag*/ ctx[1].contentType === ContentType.Marketing) return 4;
|
|
24755
|
-
if (/*tag*/ ctx[1].contentType === ContentType.Link) return 5;
|
|
24756
|
-
if (/*tag*/ ctx[1].contentType === ContentType.
|
|
24762
|
+
if (/*tag*/ ctx[1].contentType === exports.ContentType.Text) return 1;
|
|
24763
|
+
if (/*tag*/ ctx[1].contentType === exports.ContentType.ImageText) return 2;
|
|
24764
|
+
if (/*tag*/ ctx[1].contentType === exports.ContentType.Audio) return 3;
|
|
24765
|
+
if (/*tag*/ ctx[1].contentType === exports.ContentType.Marketing) return 4;
|
|
24766
|
+
if (/*tag*/ ctx[1].contentType === exports.ContentType.Link) return 5;
|
|
24767
|
+
if (/*tag*/ ctx[1].contentType === exports.ContentType.MediaPlane) return 6;
|
|
24757
24768
|
return -1;
|
|
24758
24769
|
}
|
|
24759
24770
|
|
|
@@ -25205,7 +25216,7 @@ function add_css$2(target) {
|
|
|
25205
25216
|
function create_if_block$1(ctx) {
|
|
25206
25217
|
let if_block_anchor;
|
|
25207
25218
|
let current;
|
|
25208
|
-
let if_block = /*tag*/ ctx[0].contentType !== ContentType.Link && create_if_block_1$1(ctx);
|
|
25219
|
+
let if_block = /*tag*/ ctx[0].contentType !== exports.ContentType.Link && create_if_block_1$1(ctx);
|
|
25209
25220
|
|
|
25210
25221
|
return {
|
|
25211
25222
|
c() {
|
|
@@ -25218,7 +25229,7 @@ function create_if_block$1(ctx) {
|
|
|
25218
25229
|
current = true;
|
|
25219
25230
|
},
|
|
25220
25231
|
p(ctx, dirty) {
|
|
25221
|
-
if (/*tag*/ ctx[0].contentType !== ContentType.Link) {
|
|
25232
|
+
if (/*tag*/ ctx[0].contentType !== exports.ContentType.Link) {
|
|
25222
25233
|
if (if_block) {
|
|
25223
25234
|
if_block.p(ctx, dirty);
|
|
25224
25235
|
|
|
@@ -25490,7 +25501,7 @@ function instance$2($$self, $$props, $$invalidate) {
|
|
|
25490
25501
|
? void 0
|
|
25491
25502
|
: _a.foldedPointDelay) !== null && _b !== void 0
|
|
25492
25503
|
? _b
|
|
25493
|
-
: tag.contentType === ContentType.Marketing
|
|
25504
|
+
: tag.contentType === exports.ContentType.Marketing
|
|
25494
25505
|
? 600
|
|
25495
25506
|
: undefined);
|
|
25496
25507
|
}
|
|
@@ -25614,8 +25625,8 @@ function create_fragment$1(ctx) {
|
|
|
25614
25625
|
let t;
|
|
25615
25626
|
let div_data_id_value;
|
|
25616
25627
|
let current;
|
|
25617
|
-
let if_block0 = /*tag*/ ctx[1].dimensionType === DimensionType.Two && create_if_block_1(ctx);
|
|
25618
|
-
let if_block1 = /*tag*/ ctx[1].pointType === PointType.PointTag && /*tag*/ ctx[1].style?.point?.style !== 'noPoint' && create_if_block(ctx);
|
|
25628
|
+
let if_block0 = /*tag*/ ctx[1].dimensionType === exports.DimensionType.Two && create_if_block_1(ctx);
|
|
25629
|
+
let if_block1 = /*tag*/ ctx[1].pointType === exports.PointType.PointTag && /*tag*/ ctx[1].style?.point?.style !== 'noPoint' && create_if_block(ctx);
|
|
25619
25630
|
|
|
25620
25631
|
return {
|
|
25621
25632
|
c() {
|
|
@@ -25639,7 +25650,7 @@ function create_fragment$1(ctx) {
|
|
|
25639
25650
|
current = true;
|
|
25640
25651
|
},
|
|
25641
25652
|
p(ctx, [dirty]) {
|
|
25642
|
-
if (/*tag*/ ctx[1].dimensionType === DimensionType.Two) {
|
|
25653
|
+
if (/*tag*/ ctx[1].dimensionType === exports.DimensionType.Two) {
|
|
25643
25654
|
if (if_block0) {
|
|
25644
25655
|
if_block0.p(ctx, dirty);
|
|
25645
25656
|
|
|
@@ -25662,7 +25673,7 @@ function create_fragment$1(ctx) {
|
|
|
25662
25673
|
internal.check_outros();
|
|
25663
25674
|
}
|
|
25664
25675
|
|
|
25665
|
-
if (/*tag*/ ctx[1].pointType === PointType.PointTag && /*tag*/ ctx[1].style?.point?.style !== 'noPoint') {
|
|
25676
|
+
if (/*tag*/ ctx[1].pointType === exports.PointType.PointTag && /*tag*/ ctx[1].style?.point?.style !== 'noPoint') {
|
|
25666
25677
|
if (if_block1) {
|
|
25667
25678
|
if_block1.p(ctx, dirty);
|
|
25668
25679
|
|
|
@@ -25761,6 +25772,14 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
25761
25772
|
hooks.emit('click', { event, target: 'TagPoint', tag });
|
|
25762
25773
|
};
|
|
25763
25774
|
|
|
25775
|
+
svelte.onMount(() => {
|
|
25776
|
+
hooks.emit('exposure', { id: tag.id, type: 'start' });
|
|
25777
|
+
|
|
25778
|
+
return () => {
|
|
25779
|
+
hooks.emit('exposure', { id: tag.id, type: 'end' });
|
|
25780
|
+
};
|
|
25781
|
+
});
|
|
25782
|
+
|
|
25764
25783
|
$$self.$$set = $$props => {
|
|
25765
25784
|
if ('withAnimation' in $$props) $$invalidate(0, withAnimation = $$props.withAnimation);
|
|
25766
25785
|
if ('tag' in $$props) $$invalidate(1, tag = $$props.tag);
|
|
@@ -25796,7 +25815,7 @@ function instance$1($$self, $$props, $$invalidate) {
|
|
|
25796
25815
|
}
|
|
25797
25816
|
|
|
25798
25817
|
if ($$self.$$.dirty & /*tag, _e*/ 65538) {
|
|
25799
|
-
$$invalidate(7, zIndex = tag.contentType === ContentType.Link
|
|
25818
|
+
$$invalidate(7, zIndex = tag.contentType === exports.ContentType.Link
|
|
25800
25819
|
? 20
|
|
25801
25820
|
: ($$invalidate(16, _e = tag.state) === null || _e === void 0
|
|
25802
25821
|
? void 0
|
|
@@ -26100,7 +26119,7 @@ const DefaultConfig = {
|
|
|
26100
26119
|
'Any-Marketing-Any': {
|
|
26101
26120
|
unfoldedConfig: undefined,
|
|
26102
26121
|
},
|
|
26103
|
-
'3D-
|
|
26122
|
+
'3D-MediaPlane-PlaneTag': {
|
|
26104
26123
|
unfoldedConfig: {
|
|
26105
26124
|
disableFold: true,
|
|
26106
26125
|
},
|
|
@@ -26273,7 +26292,7 @@ class TagComputer extends TagCacheController {
|
|
|
26273
26292
|
}
|
|
26274
26293
|
// console.log(tag.id, '角度检测', tag, config.angleRange)
|
|
26275
26294
|
// 角度检测
|
|
26276
|
-
if (config.angleRange && tag.dimensionType === DimensionType.Three) {
|
|
26295
|
+
if (config.angleRange && tag.dimensionType === exports.DimensionType.Three) {
|
|
26277
26296
|
const visible = checkRange(this.getAngle(tag), config.angleRange);
|
|
26278
26297
|
if (visible === false)
|
|
26279
26298
|
return false;
|
|
@@ -26406,7 +26425,7 @@ class TagComputer extends TagCacheController {
|
|
|
26406
26425
|
if (observerPosition === undefined)
|
|
26407
26426
|
throw new Error(`getDistance(): observerPosition is ${observerPosition}`);
|
|
26408
26427
|
const position = (() => {
|
|
26409
|
-
if (tag.pointType === PointType.PointTag) {
|
|
26428
|
+
if (tag.pointType === exports.PointType.PointTag) {
|
|
26410
26429
|
return arrayPositionToVector3(tag === null || tag === void 0 ? void 0 : tag.position);
|
|
26411
26430
|
}
|
|
26412
26431
|
else {
|
|
@@ -26434,7 +26453,7 @@ class TagComputer extends TagCacheController {
|
|
|
26434
26453
|
if (observerPosition === undefined)
|
|
26435
26454
|
throw new Error(`getAngleRange(): observerPosition is ${observerPosition}`);
|
|
26436
26455
|
const normal = (() => {
|
|
26437
|
-
if (tag.pointType === PointType.PointTag)
|
|
26456
|
+
if (tag.pointType === exports.PointType.PointTag)
|
|
26438
26457
|
return anyPositionToVector3(tag.normal);
|
|
26439
26458
|
else
|
|
26440
26459
|
return planeNormal(tag.position);
|
|
@@ -26551,24 +26570,24 @@ class TagComputer extends TagCacheController {
|
|
|
26551
26570
|
}
|
|
26552
26571
|
// TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
|
|
26553
26572
|
filterPointTag() {
|
|
26554
|
-
return this.tags.filter((tag) => tag.pointType === PointType.PointTag);
|
|
26573
|
+
return this.tags.filter((tag) => tag.pointType === exports.PointType.PointTag);
|
|
26555
26574
|
}
|
|
26556
26575
|
filterTag2D() {
|
|
26557
|
-
return this.tags.filter((tag) => tag.dimensionType === DimensionType.Two);
|
|
26576
|
+
return this.tags.filter((tag) => tag.dimensionType === exports.DimensionType.Two);
|
|
26558
26577
|
}
|
|
26559
26578
|
filter3DPointTag() {
|
|
26560
|
-
return this.tags.filter((tag) => tag.dimensionType === DimensionType.Three && tag.pointType === PointType.PointTag);
|
|
26579
|
+
return this.tags.filter((tag) => tag.dimensionType === exports.DimensionType.Three && tag.pointType === exports.PointType.PointTag);
|
|
26561
26580
|
}
|
|
26562
26581
|
filter3DTag() {
|
|
26563
|
-
return this.tags.filter((tag) => tag.dimensionType === DimensionType.Three);
|
|
26582
|
+
return this.tags.filter((tag) => tag.dimensionType === exports.DimensionType.Three);
|
|
26564
26583
|
}
|
|
26565
26584
|
filterPlaneTag() {
|
|
26566
|
-
return this.tags.filter((tag) => tag.dimensionType === DimensionType.Three && tag.pointType === PointType.PlaneTag);
|
|
26585
|
+
return this.tags.filter((tag) => tag.dimensionType === exports.DimensionType.Three && tag.pointType === exports.PointType.PlaneTag);
|
|
26567
26586
|
}
|
|
26568
26587
|
}
|
|
26569
26588
|
|
|
26570
26589
|
// declare const __APP_VERSION__: string
|
|
26571
|
-
const VERSION$2 = '0.
|
|
26590
|
+
const VERSION$2 = '0.3.3';
|
|
26572
26591
|
const PLUGIN_NAME$1 = `DnalogelPlugin-PanoTagPlugin-${random()}@${VERSION$2}`;
|
|
26573
26592
|
const TAG_INITIAL_UNFOLDED = true;
|
|
26574
26593
|
const pluginFlag = (name) => `${PLUGIN_NAME$1}--${name}`;
|
|
@@ -27096,13 +27115,13 @@ class PanoTagPluginController extends TagComputer {
|
|
|
27096
27115
|
return;
|
|
27097
27116
|
if (!this.css3DRenderPlugin)
|
|
27098
27117
|
this.css3DRenderPlugin = CSS3DRenderPlugin(this.five);
|
|
27099
|
-
if (tag.pointType === PointType.PointTag && !tag.normal)
|
|
27118
|
+
if (tag.pointType === exports.PointType.PointTag && !tag.normal)
|
|
27100
27119
|
return console.error('updateRenderPlaneTag: 三维点标签缺少法向量!');
|
|
27101
27120
|
// 四个点
|
|
27102
|
-
const positions = tag.pointType === PointType.PlaneTag
|
|
27121
|
+
const positions = tag.pointType === exports.PointType.PlaneTag
|
|
27103
27122
|
? tag.position
|
|
27104
27123
|
: normalPositionToPositions(this.five.camera.position, arrayPositionToVector3(tag.position), arrayPositionToVector3(tag.normal));
|
|
27105
|
-
const normal = tag.pointType === PointType.PlaneTag ? planeNormal(tag.position) : arrayPositionToVector3(tag.normal);
|
|
27124
|
+
const normal = tag.pointType === exports.PointType.PlaneTag ? planeNormal(tag.position) : arrayPositionToVector3(tag.normal);
|
|
27106
27125
|
const create3DDomContainerConfig = this.getTagConfig(tag).tag3DConfig;
|
|
27107
27126
|
const domContainer = this.css3DRenderPlugin.create3DDomContainer(positions, create3DDomContainerConfig);
|
|
27108
27127
|
if (!domContainer)
|
|
@@ -27152,14 +27171,14 @@ class PanoTagPluginController extends TagComputer {
|
|
|
27152
27171
|
// 3D 转 2D 的时候要销毁 3D container
|
|
27153
27172
|
this.tags.forEach((tag) => {
|
|
27154
27173
|
var _a;
|
|
27155
|
-
if (tag.dimensionType === DimensionType.Two && tag.pointType === PointType.PointTag) {
|
|
27174
|
+
if (tag.dimensionType === exports.DimensionType.Two && tag.pointType === exports.PointType.PointTag) {
|
|
27156
27175
|
(_a = tag.tag3DContentSvelte) === null || _a === void 0 ? void 0 : _a.domContainer.dispose();
|
|
27157
27176
|
tag.tag3DContentSvelte = undefined;
|
|
27158
27177
|
}
|
|
27159
27178
|
});
|
|
27160
27179
|
for (const [id, disposer] of this.store.css3DRenderDisposer) {
|
|
27161
27180
|
const tag = this.getTagById(id);
|
|
27162
|
-
if (!tag || tag.dimensionType !== DimensionType.Three) {
|
|
27181
|
+
if (!tag || tag.dimensionType !== exports.DimensionType.Three) {
|
|
27163
27182
|
disposer === null || disposer === void 0 ? void 0 : disposer();
|
|
27164
27183
|
this.store.css3DRenderDisposer.delete(id);
|
|
27165
27184
|
}
|
|
@@ -27170,7 +27189,8 @@ class PanoTagPluginController extends TagComputer {
|
|
|
27170
27189
|
const PanoTagPlugin = (five, params) => new PanoTagPluginController(five, params);
|
|
27171
27190
|
|
|
27172
27191
|
class BaseHelper extends THREE.Object3D {
|
|
27173
|
-
constructor(originObject3D) {
|
|
27192
|
+
constructor(originObject3D, config) {
|
|
27193
|
+
var _a;
|
|
27174
27194
|
super();
|
|
27175
27195
|
Object.defineProperty(this, "originObject3D", {
|
|
27176
27196
|
enumerable: true,
|
|
@@ -27178,11 +27198,26 @@ class BaseHelper extends THREE.Object3D {
|
|
|
27178
27198
|
writable: true,
|
|
27179
27199
|
value: void 0
|
|
27180
27200
|
});
|
|
27201
|
+
Object.defineProperty(this, "needsRender", {
|
|
27202
|
+
enumerable: true,
|
|
27203
|
+
configurable: true,
|
|
27204
|
+
writable: true,
|
|
27205
|
+
value: void 0
|
|
27206
|
+
});
|
|
27181
27207
|
this.originObject3D = originObject3D;
|
|
27208
|
+
this.needsRender = (_a = config === null || config === void 0 ? void 0 : config.needsRender) !== null && _a !== void 0 ? _a : (() => { });
|
|
27182
27209
|
}
|
|
27183
27210
|
get helperObject() {
|
|
27184
27211
|
return this;
|
|
27185
27212
|
}
|
|
27213
|
+
show() {
|
|
27214
|
+
this.visible = true;
|
|
27215
|
+
this.needsRender();
|
|
27216
|
+
}
|
|
27217
|
+
hide() {
|
|
27218
|
+
this.visible = false;
|
|
27219
|
+
this.needsRender();
|
|
27220
|
+
}
|
|
27186
27221
|
updatePosition() {
|
|
27187
27222
|
this.position.copy(this.originObject3D.position);
|
|
27188
27223
|
}
|
|
@@ -27385,29 +27420,16 @@ class MoveHelper extends MoveHelperAbstract {
|
|
|
27385
27420
|
this.add(this.yArrow);
|
|
27386
27421
|
this.add(this.zArrow);
|
|
27387
27422
|
}
|
|
27388
|
-
|
|
27389
|
-
|
|
27390
|
-
|
|
27391
|
-
|
|
27392
|
-
|
|
27393
|
-
}
|
|
27394
|
-
else {
|
|
27395
|
-
directions.forEach((direction) => {
|
|
27396
|
-
const arrow = [this.xArrow, this.yArrow, this.zArrow].find((arrow) => arrow.direction === direction);
|
|
27397
|
-
arrow && (arrow.visible = false);
|
|
27398
|
-
});
|
|
27399
|
-
}
|
|
27423
|
+
show() {
|
|
27424
|
+
super.show();
|
|
27425
|
+
this.xArrow.visible = true;
|
|
27426
|
+
this.yArrow.visible = true;
|
|
27427
|
+
this.zArrow.visible = true;
|
|
27400
27428
|
}
|
|
27401
|
-
|
|
27402
|
-
|
|
27403
|
-
|
|
27404
|
-
|
|
27405
|
-
this.zArrow.visible = true;
|
|
27406
|
-
}
|
|
27407
|
-
else {
|
|
27408
|
-
const arrow = [this.xArrow, this.yArrow, this.zArrow].find((arrow) => arrow.direction === direction);
|
|
27409
|
-
arrow && (arrow.visible = true);
|
|
27410
|
-
}
|
|
27429
|
+
showDraggingHelper(directions) {
|
|
27430
|
+
this.xArrow.visible = directions.includes('x');
|
|
27431
|
+
this.yArrow.visible = directions.includes('y');
|
|
27432
|
+
this.zArrow.visible = directions.includes('z');
|
|
27411
27433
|
}
|
|
27412
27434
|
dispose() {
|
|
27413
27435
|
this.remove(this.xArrow, this.yArrow, this.zArrow);
|
|
@@ -27545,21 +27567,21 @@ class RotateHelper extends RotateHelperAbstract {
|
|
|
27545
27567
|
this.zAngleHelper.baseAxes.applyQuaternion(quaternion);
|
|
27546
27568
|
}
|
|
27547
27569
|
hide() {
|
|
27570
|
+
// 改为remove而不是设置visible,是因为会影响其他helper的碰撞检测
|
|
27548
27571
|
this.remove(this.yzCircle, this.xzCircle, this.xyCircle, this.xRingHelper, this.yRingHelper, this.zRingHelper, this.xAngleHelper, this.yAngleHelper, this.zAngleHelper);
|
|
27549
27572
|
}
|
|
27550
|
-
show(
|
|
27551
|
-
var _a
|
|
27552
|
-
|
|
27553
|
-
|
|
27554
|
-
|
|
27555
|
-
|
|
27556
|
-
|
|
27557
|
-
|
|
27558
|
-
|
|
27559
|
-
|
|
27560
|
-
|
|
27561
|
-
|
|
27562
|
-
}
|
|
27573
|
+
show() {
|
|
27574
|
+
var _a;
|
|
27575
|
+
this.add(this.xyCircle, this.xzCircle, this.yzCircle);
|
|
27576
|
+
this.remove(this.xRingHelper, this.yRingHelper, this.zRingHelper, this.xAngleHelper, this.yAngleHelper, this.zAngleHelper);
|
|
27577
|
+
(_a = this.angleTips) === null || _a === void 0 ? void 0 : _a.hide();
|
|
27578
|
+
}
|
|
27579
|
+
showDraggingHelper(directions) {
|
|
27580
|
+
var _a;
|
|
27581
|
+
this.hide();
|
|
27582
|
+
this.add(...this.filterRingHelper(directions));
|
|
27583
|
+
this.add(...this.filterAngleHelper(directions));
|
|
27584
|
+
(_a = this.angleTips) === null || _a === void 0 ? void 0 : _a.show();
|
|
27563
27585
|
}
|
|
27564
27586
|
dispose() {
|
|
27565
27587
|
var _a, _b;
|
|
@@ -27567,11 +27589,11 @@ class RotateHelper extends RotateHelperAbstract {
|
|
|
27567
27589
|
if ((_a = this.angleTips) === null || _a === void 0 ? void 0 : _a.element)
|
|
27568
27590
|
(_b = this.container) === null || _b === void 0 ? void 0 : _b.removeChild(this.angleTips.element);
|
|
27569
27591
|
}
|
|
27570
|
-
filterRingHelper(
|
|
27571
|
-
return [this.xRingHelper, this.yRingHelper, this.zRingHelper].filter((helper) => helper.direction
|
|
27592
|
+
filterRingHelper(directions) {
|
|
27593
|
+
return [this.xRingHelper, this.yRingHelper, this.zRingHelper].filter((helper) => directions.includes(helper.direction));
|
|
27572
27594
|
}
|
|
27573
|
-
filterAngleHelper(
|
|
27574
|
-
return [this.xAngleHelper, this.yAngleHelper, this.zAngleHelper].filter((helper) => helper.direction
|
|
27595
|
+
filterAngleHelper(directions) {
|
|
27596
|
+
return [this.xAngleHelper, this.yAngleHelper, this.zAngleHelper].filter((helper) => directions.includes(helper.direction));
|
|
27575
27597
|
}
|
|
27576
27598
|
}
|
|
27577
27599
|
class Circle extends THREE__namespace.Mesh {
|
|
@@ -27868,6 +27890,9 @@ class RectangleScaleHelper extends RectangleScaleHelperAbstract {
|
|
|
27868
27890
|
(_b = this.plane) === null || _b === void 0 ? void 0 : _b.applyMatrix4(matrix);
|
|
27869
27891
|
this.cornerPositions.forEach((cornerPosition) => cornerPosition.applyMatrix4(matrix));
|
|
27870
27892
|
}
|
|
27893
|
+
showDraggingHelper() {
|
|
27894
|
+
// nothing to do
|
|
27895
|
+
}
|
|
27871
27896
|
setHelperScaleMatrix4(matrix, params) {
|
|
27872
27897
|
var _a, _b;
|
|
27873
27898
|
(_a = this.css3DInstance) === null || _a === void 0 ? void 0 : _a.css3DObject.scale.applyMatrix4(matrix);
|
|
@@ -28500,16 +28525,17 @@ class BaseController {
|
|
|
28500
28525
|
this.needsRender();
|
|
28501
28526
|
}
|
|
28502
28527
|
show() {
|
|
28503
|
-
this.helperObject3D.
|
|
28528
|
+
this.helperObject3D.show();
|
|
28504
28529
|
this.needsRender();
|
|
28505
28530
|
}
|
|
28506
28531
|
hide() {
|
|
28507
|
-
this.helperObject3D.
|
|
28532
|
+
this.helperObject3D.hide();
|
|
28508
28533
|
this.needsRender();
|
|
28509
28534
|
}
|
|
28510
28535
|
dispose() {
|
|
28511
|
-
this.scene.remove(this.helperObject3D);
|
|
28512
28536
|
this.helperObject3D.dispose();
|
|
28537
|
+
this.scene.remove(this.helperObject3D);
|
|
28538
|
+
this.needsRender();
|
|
28513
28539
|
}
|
|
28514
28540
|
updateHelperPosition() {
|
|
28515
28541
|
this.helperObject3D.updatePosition();
|
|
@@ -28666,7 +28692,7 @@ class MoveController extends BaseController {
|
|
|
28666
28692
|
plane.setFromNormalAndCoplanarPoint(planeNormal, startIntersect);
|
|
28667
28693
|
this.startInfo = { startVectorProject: startIntersect.clone().projectOnVector(directionVector), directionVector, plane };
|
|
28668
28694
|
// 隐藏其他箭头
|
|
28669
|
-
this.helperObject3D.
|
|
28695
|
+
this.helperObject3D.showDraggingHelper([draggingDirection]);
|
|
28670
28696
|
this.hooks.emit('moveStart');
|
|
28671
28697
|
this.isDragging = true;
|
|
28672
28698
|
console.log('%c MoveController dragStart', 'color: #e5af2e');
|
|
@@ -28771,13 +28797,13 @@ class ControllerWrapper {
|
|
|
28771
28797
|
const VERSION$1 = 'v1.0.0';
|
|
28772
28798
|
const NAME = 'Object3DHelper';
|
|
28773
28799
|
const NAMEVERSION = `${NAME}@${VERSION$1}`;
|
|
28774
|
-
const disposedErrorLog = () => {
|
|
28800
|
+
const disposedErrorLog$1 = () => {
|
|
28775
28801
|
console.error(`${NAMEVERSION} is disposed`);
|
|
28776
28802
|
};
|
|
28777
|
-
const disableWarnLog = () => {
|
|
28803
|
+
const disableWarnLog$1 = () => {
|
|
28778
28804
|
console.warn(`${NAMEVERSION} is disabled`);
|
|
28779
28805
|
};
|
|
28780
|
-
const disableErrorLog = () => {
|
|
28806
|
+
const disableErrorLog$1 = () => {
|
|
28781
28807
|
console.error(`${NAMEVERSION} is disabled`);
|
|
28782
28808
|
};
|
|
28783
28809
|
class Object3DHelper {
|
|
@@ -28912,11 +28938,11 @@ class Object3DHelper {
|
|
|
28912
28938
|
}
|
|
28913
28939
|
setState(state, options) {
|
|
28914
28940
|
if (this.state.disposed)
|
|
28915
|
-
return disposedErrorLog();
|
|
28941
|
+
return disposedErrorLog$1();
|
|
28916
28942
|
if (!this.state.enabled) {
|
|
28917
28943
|
// when plugin is disabled, only can change enabled or disposed to true
|
|
28918
28944
|
if (state.enabled !== true && state.disposed !== true)
|
|
28919
|
-
return disableErrorLog();
|
|
28945
|
+
return disableErrorLog$1();
|
|
28920
28946
|
}
|
|
28921
28947
|
const prevState = Object.assign({}, this.state);
|
|
28922
28948
|
this.state = Object.assign(Object.assign({}, this.state), state);
|
|
@@ -29004,7 +29030,6 @@ class Object3DHelper {
|
|
|
29004
29030
|
}
|
|
29005
29031
|
}
|
|
29006
29032
|
handleEnable(enabled, userAction = true) {
|
|
29007
|
-
console.log({ enabled });
|
|
29008
29033
|
if (enabled) {
|
|
29009
29034
|
this.everyControllerDo((controller) => controller.enable());
|
|
29010
29035
|
this.hooks.emit('enable', { userAction });
|
|
@@ -29016,7 +29041,6 @@ class Object3DHelper {
|
|
|
29016
29041
|
this.state.enabled = enabled;
|
|
29017
29042
|
}
|
|
29018
29043
|
handleVisible(visible, userAction = true) {
|
|
29019
|
-
console.log({ visible });
|
|
29020
29044
|
if (visible) {
|
|
29021
29045
|
this.everyControllerDo((controller) => controller.show());
|
|
29022
29046
|
this.actionIfStateIsEnabled(() => this.hooks.emit('show', { userAction }));
|
|
@@ -29043,7 +29067,7 @@ class Object3DHelper {
|
|
|
29043
29067
|
return func();
|
|
29044
29068
|
else {
|
|
29045
29069
|
if (options === null || options === void 0 ? void 0 : options.warnLog)
|
|
29046
|
-
disableWarnLog();
|
|
29070
|
+
disableWarnLog$1();
|
|
29047
29071
|
}
|
|
29048
29072
|
}
|
|
29049
29073
|
}
|
|
@@ -29146,7 +29170,7 @@ class RotateController extends BaseController {
|
|
|
29146
29170
|
// this.a = new THREE.PlaneHelper(plane, 10, 0xffff00)
|
|
29147
29171
|
// this.scene.add(this.a)
|
|
29148
29172
|
this.startInfo = { direction, startVector, staticStartVector, plane, angleHelper };
|
|
29149
|
-
this.helperObject3D.
|
|
29173
|
+
this.helperObject3D.showDraggingHelper([direction]);
|
|
29150
29174
|
this.hooks.emit('rotateStart');
|
|
29151
29175
|
this.isDragging = true;
|
|
29152
29176
|
console.log(`%c RotateController dragStart ${direction}`, 'color: #e5af2e');
|
|
@@ -29520,9 +29544,18 @@ class CSS3DScaleController extends RectangleScaleController {
|
|
|
29520
29544
|
const VERSION = 'v1.0.0';
|
|
29521
29545
|
const PLUGIN_NAME = 'Object3DHelperPlugin';
|
|
29522
29546
|
const PLUGIN = `${PLUGIN_NAME}@${VERSION}`;
|
|
29523
|
-
|
|
29547
|
+
const disposedErrorLog = () => {
|
|
29548
|
+
console.error(`${PLUGIN} is disposed`);
|
|
29549
|
+
};
|
|
29550
|
+
const disableWarnLog = () => {
|
|
29551
|
+
console.warn(`${PLUGIN} is disabled`);
|
|
29552
|
+
};
|
|
29553
|
+
const disableErrorLog = () => {
|
|
29554
|
+
console.error(`${PLUGIN} is disabled`);
|
|
29555
|
+
};
|
|
29556
|
+
class Object3DHelperController extends Controller$7 {
|
|
29524
29557
|
constructor(five) {
|
|
29525
|
-
super();
|
|
29558
|
+
super(five);
|
|
29526
29559
|
Object.defineProperty(this, "version", {
|
|
29527
29560
|
enumerable: true,
|
|
29528
29561
|
configurable: true,
|
|
@@ -29535,15 +29568,80 @@ class Object3DHelperController extends Object3DHelper {
|
|
|
29535
29568
|
writable: true,
|
|
29536
29569
|
value: PLUGIN_NAME
|
|
29537
29570
|
});
|
|
29538
|
-
Object.defineProperty(this, "
|
|
29571
|
+
Object.defineProperty(this, "state", {
|
|
29539
29572
|
enumerable: true,
|
|
29540
29573
|
configurable: true,
|
|
29541
29574
|
writable: true,
|
|
29542
|
-
value:
|
|
29575
|
+
value: {
|
|
29576
|
+
visible: true,
|
|
29577
|
+
enabled: true,
|
|
29578
|
+
disposed: false,
|
|
29579
|
+
}
|
|
29580
|
+
});
|
|
29581
|
+
Object.defineProperty(this, "objectHelperMap", {
|
|
29582
|
+
enumerable: true,
|
|
29583
|
+
configurable: true,
|
|
29584
|
+
writable: true,
|
|
29585
|
+
value: new Map()
|
|
29543
29586
|
});
|
|
29544
29587
|
this.five = five;
|
|
29545
29588
|
Object.assign(window, { [`__${PLUGIN_NAME.toUpperCase()}_DEBUG__`]: this });
|
|
29546
29589
|
}
|
|
29590
|
+
/**
|
|
29591
|
+
* @description Show guide line
|
|
29592
|
+
*/
|
|
29593
|
+
async show(options) {
|
|
29594
|
+
this.setState({ visible: true }, options);
|
|
29595
|
+
}
|
|
29596
|
+
/**
|
|
29597
|
+
* @description Hide guide line
|
|
29598
|
+
*/
|
|
29599
|
+
async hide(options) {
|
|
29600
|
+
this.setState({ visible: false }, options);
|
|
29601
|
+
}
|
|
29602
|
+
/**
|
|
29603
|
+
* @description Enable
|
|
29604
|
+
*/
|
|
29605
|
+
enable(options) {
|
|
29606
|
+
this.setState({ enabled: true }, options);
|
|
29607
|
+
}
|
|
29608
|
+
/**
|
|
29609
|
+
* @description Disable
|
|
29610
|
+
*/
|
|
29611
|
+
disable(options) {
|
|
29612
|
+
this.setState({ enabled: false }, options);
|
|
29613
|
+
}
|
|
29614
|
+
/**
|
|
29615
|
+
* @description Dispose
|
|
29616
|
+
*/
|
|
29617
|
+
dispose() {
|
|
29618
|
+
this.setState({ disposed: true });
|
|
29619
|
+
}
|
|
29620
|
+
setState(state, options) {
|
|
29621
|
+
if (this.state.disposed)
|
|
29622
|
+
return disposedErrorLog();
|
|
29623
|
+
if (!this.state.enabled) {
|
|
29624
|
+
// when plugin is disabled, only can change enabled or disposed to true
|
|
29625
|
+
if (state.enabled !== true && state.disposed !== true)
|
|
29626
|
+
return disableErrorLog();
|
|
29627
|
+
}
|
|
29628
|
+
const prevState = Object.assign({}, this.state);
|
|
29629
|
+
this.state = Object.assign(Object.assign({}, this.state), state);
|
|
29630
|
+
if (state.disposed !== undefined && state.disposed !== prevState.disposed) {
|
|
29631
|
+
if (state.disposed)
|
|
29632
|
+
this.handleDispose();
|
|
29633
|
+
}
|
|
29634
|
+
if (state.visible !== undefined && state.visible !== prevState.visible) {
|
|
29635
|
+
this.handleVisible(state.visible);
|
|
29636
|
+
}
|
|
29637
|
+
if (state.enabled !== undefined && state.enabled !== prevState.enabled) {
|
|
29638
|
+
this.handleEnable(state.enabled);
|
|
29639
|
+
}
|
|
29640
|
+
this.hooks.emit('stateChange', { state: this.state, prevState });
|
|
29641
|
+
}
|
|
29642
|
+
getObject3DHelper(object3D) {
|
|
29643
|
+
return this.objectHelperMap.get(object3D);
|
|
29644
|
+
}
|
|
29547
29645
|
/**
|
|
29548
29646
|
* @description 添加 helper
|
|
29549
29647
|
* @param { THREE.Object3D } object3D 要添加helper的物体
|
|
@@ -29553,6 +29651,12 @@ class Object3DHelperController extends Object3DHelper {
|
|
|
29553
29651
|
*/
|
|
29554
29652
|
addObject3DHelper(object3D, config = {}) {
|
|
29555
29653
|
var _a;
|
|
29654
|
+
if (this.objectHelperMap.has(object3D)) {
|
|
29655
|
+
console.warn(`Object3DHelperPlugin: object3D ${object3D.name} already has helper`);
|
|
29656
|
+
return;
|
|
29657
|
+
}
|
|
29658
|
+
const helper = new Object3DHelper();
|
|
29659
|
+
this.objectHelperMap.set(object3D, helper);
|
|
29556
29660
|
const container = (_a = this.five.getElement()) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
29557
29661
|
const camera = this.five.camera;
|
|
29558
29662
|
// 创建空的helperGroup
|
|
@@ -29562,7 +29666,7 @@ class Object3DHelperController extends Object3DHelper {
|
|
|
29562
29666
|
if (moveHelper) {
|
|
29563
29667
|
const moveHelper = new MoveHelper(object3D);
|
|
29564
29668
|
const controllerWrapper = new ControllerWrapper(this.five, MoveController, object3D, moveHelper);
|
|
29565
|
-
|
|
29669
|
+
helper.addControllers({ moveController: controllerWrapper.helperController });
|
|
29566
29670
|
}
|
|
29567
29671
|
if (rotateHelper) {
|
|
29568
29672
|
let angleTipsParams;
|
|
@@ -29570,13 +29674,13 @@ class Object3DHelperController extends Object3DHelper {
|
|
|
29570
29674
|
angleTipsParams = { container };
|
|
29571
29675
|
const rotateHelper = new RotateHelper(object3D, angleTipsParams);
|
|
29572
29676
|
const controllerWrapper = new ControllerWrapper(this.five, RotateController, object3D, rotateHelper);
|
|
29573
|
-
|
|
29677
|
+
helper.addControllers({ rotateController: controllerWrapper.helperController });
|
|
29574
29678
|
}
|
|
29575
29679
|
if (scaleHelper) {
|
|
29576
29680
|
if (container) {
|
|
29577
29681
|
const scaleHelper = new RectangleScaleHelper(object3D, container, camera, this.five.scene);
|
|
29578
29682
|
const controllerWrapper = new ControllerWrapper(this.five, CSS3DScaleController, object3D, scaleHelper);
|
|
29579
|
-
|
|
29683
|
+
helper.addControllers({ scaleController: controllerWrapper.helperController });
|
|
29580
29684
|
}
|
|
29581
29685
|
}
|
|
29582
29686
|
// if (mergeConfig.outlineHelper) {
|
|
@@ -29586,6 +29690,54 @@ class Object3DHelperController extends Object3DHelper {
|
|
|
29586
29690
|
// }
|
|
29587
29691
|
// this.five.scene.add(helperGroup)
|
|
29588
29692
|
}
|
|
29693
|
+
removeObject3DHelper(object3D) {
|
|
29694
|
+
const helper = this.objectHelperMap.get(object3D);
|
|
29695
|
+
if (!helper)
|
|
29696
|
+
return;
|
|
29697
|
+
this.objectHelperMap.delete(object3D);
|
|
29698
|
+
helper.dispose();
|
|
29699
|
+
}
|
|
29700
|
+
handleEnable(enabled, userAction = true) {
|
|
29701
|
+
console.log({ enabled });
|
|
29702
|
+
if (enabled) {
|
|
29703
|
+
this.everyHelperDo((helper) => helper.enable());
|
|
29704
|
+
this.hooks.emit('enable', { userAction });
|
|
29705
|
+
}
|
|
29706
|
+
else {
|
|
29707
|
+
this.everyHelperDo((helper) => helper.disable());
|
|
29708
|
+
this.hooks.emit('disable', { userAction });
|
|
29709
|
+
}
|
|
29710
|
+
this.state.enabled = enabled;
|
|
29711
|
+
}
|
|
29712
|
+
handleVisible(visible, userAction = true) {
|
|
29713
|
+
console.log({ visible });
|
|
29714
|
+
if (visible) {
|
|
29715
|
+
this.everyHelperDo((helper) => helper.show());
|
|
29716
|
+
this.actionIfStateIsEnabled(() => this.hooks.emit('show', { userAction }));
|
|
29717
|
+
}
|
|
29718
|
+
else {
|
|
29719
|
+
this.everyHelperDo((helper) => helper.hide());
|
|
29720
|
+
this.actionIfStateIsEnabled(() => this.hooks.emit('hide', { userAction }));
|
|
29721
|
+
}
|
|
29722
|
+
this.state.visible = visible;
|
|
29723
|
+
}
|
|
29724
|
+
handleDispose() {
|
|
29725
|
+
this.everyHelperDo((helper) => helper.dispose());
|
|
29726
|
+
}
|
|
29727
|
+
everyHelperDo(func) {
|
|
29728
|
+
this.objectHelperMap.forEach((helper) => {
|
|
29729
|
+
if (helper)
|
|
29730
|
+
func(helper);
|
|
29731
|
+
});
|
|
29732
|
+
}
|
|
29733
|
+
actionIfStateIsEnabled(func, options) {
|
|
29734
|
+
if (this.state.enabled)
|
|
29735
|
+
return func();
|
|
29736
|
+
else {
|
|
29737
|
+
if (options === null || options === void 0 ? void 0 : options.warnLog)
|
|
29738
|
+
disableWarnLog();
|
|
29739
|
+
}
|
|
29740
|
+
}
|
|
29589
29741
|
}
|
|
29590
29742
|
|
|
29591
29743
|
const Object3DHelperPlugin = (five) => new Object3DHelperController(five);
|