@realsee/dnalogel 2.1.0-alpha.11 → 2.1.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/CSS3DRenderPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/CameraMovementPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/CameraMovementPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/CameraMovementPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/CameraMovementPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/CameraMovementPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/CruisePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/CruisePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/CruisePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/CruisePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/CruisePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/CruisePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/GuideLinePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/GuideLinePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/GuideLinePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/GuideLinePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/GuideLinePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ItemLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ItemLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/ItemLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ItemLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelChassisCompassPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelEntryDoorGuidePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelItemLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelRoomLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelTVVideoPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/ModelViewPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/ModelViewPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/ModelViewPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/ModelViewPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/ModelViewPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/Object3DHelperPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/Object3DHelperPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/Object3DHelperPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/Object3DHelperPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoCompassPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoCompassPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoCompassPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoCompassPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoCompassPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoCursorRaycasterPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoDoorLabelPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoMeasurePlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoMeasurePlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoMeasurePlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoMeasurePlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoRulerPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoRulerPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoRulerPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoRulerPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoRulerPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoRulerProPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoRulerProPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoRulerProPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoRulerProPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoSpatialTagPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoTagPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoTagPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoTagPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoTagPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoTagPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/PanoTagPlugin/index.js +4869 -376
- package/dist/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/MapviewFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/ModelFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/PanoFloorplanRadarPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/controller/index.d.ts +9 -4
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/dist/floorplan/TopviewFloorplanPlugin/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/dist/index.es.js +5063 -570
- package/dist/index.js +5075 -582
- package/dist/index.umd.js +5072 -584
- package/docs/assets/search.js +1 -1
- package/docs/classes/CruisePluginController.html +14 -14
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +9 -9
- package/docs/classes/PanoTagPluginController.html +23 -51
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +7 -7
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/DimensionType.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/LinkType.html +1 -1
- package/docs/enums/PointType.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/Object3DHelperState.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +1 -1
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +5 -5
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/modules.html +21 -21
- package/libs/PanoTagPlugin/Components/Common/Media.js +347 -194
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +216 -0
- package/libs/PanoTagPlugin/Components/Common/Text.js +1 -2
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -0
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +37 -17
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +10 -11
- package/libs/PanoTagPlugin/controller/TagComputer.js +14 -22
- package/libs/PanoTagPlugin/controller/index.d.ts +9 -4
- package/libs/PanoTagPlugin/controller/index.js +50 -23
- package/libs/PanoTagPlugin/mocks/mock1.d.ts +12 -4
- package/libs/PanoTagPlugin/mocks/mock1.js +10 -5
- package/libs/PanoTagPlugin/mocks/mock3.d.ts +11 -3
- package/libs/PanoTagPlugin/mocks/mock3.js +21 -22
- package/libs/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/libs/PanoTagPlugin/typings/tag.d.ts +10 -0
- package/libs/PanoTagPlugin/utils/noTypecheck.d.ts +1 -1
- package/package.json +2 -1
- package/libs/CSS3DRenderPlugin/Plugin.d.ts +0 -49
- package/libs/CSS3DRenderPlugin/Plugin.js +0 -182
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -7
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +0 -18
- package/libs/GuideLinePlugin/utils/getLineGeometry.d.ts +0 -2
- package/libs/GuideLinePlugin/utils/getLineGeometry.js +0 -64
- package/libs/PanoTagPlugin/Components/Tag/MediaPanel.js +0 -159
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/* generated by Svelte v3.50.1 */
|
|
2
|
+
import {
|
|
3
|
+
SvelteComponent,
|
|
4
|
+
append_styles,
|
|
5
|
+
attr,
|
|
6
|
+
detach,
|
|
7
|
+
element,
|
|
8
|
+
empty,
|
|
9
|
+
init,
|
|
10
|
+
insert,
|
|
11
|
+
noop,
|
|
12
|
+
safe_not_equal,
|
|
13
|
+
set_style,
|
|
14
|
+
space,
|
|
15
|
+
src_url_equal
|
|
16
|
+
} from "svelte/internal";
|
|
17
|
+
|
|
18
|
+
import { Image_Play } from '../../Assets/Icon';
|
|
19
|
+
|
|
20
|
+
function add_css(target) {
|
|
21
|
+
append_styles(target, "svelte-6jwk1w", ".media-item.svelte-6jwk1w{height:100%}.media-content.svelte-6jwk1w{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.video-icon.svelte-6jwk1w{width:1.75rem;height:1.75rem;background-size:100%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}");
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// (6:0) {#if media}
|
|
25
|
+
function create_if_block(ctx) {
|
|
26
|
+
let div;
|
|
27
|
+
let div_style_value;
|
|
28
|
+
|
|
29
|
+
function select_block_type(ctx, dirty) {
|
|
30
|
+
if (/*media*/ ctx[0].type === 'Image') return create_if_block_1;
|
|
31
|
+
if (/*media*/ ctx[0].type === 'Video') return create_if_block_2;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
let current_block_type = select_block_type(ctx, -1);
|
|
35
|
+
let if_block = current_block_type && current_block_type(ctx);
|
|
36
|
+
|
|
37
|
+
return {
|
|
38
|
+
c() {
|
|
39
|
+
div = element("div");
|
|
40
|
+
if (if_block) if_block.c();
|
|
41
|
+
attr(div, "class", "media-item svelte-6jwk1w");
|
|
42
|
+
attr(div, "style", div_style_value = `object-fit: ${/*objectFit*/ ctx[1]};`);
|
|
43
|
+
},
|
|
44
|
+
m(target, anchor) {
|
|
45
|
+
insert(target, div, anchor);
|
|
46
|
+
if (if_block) if_block.m(div, null);
|
|
47
|
+
},
|
|
48
|
+
p(ctx, dirty) {
|
|
49
|
+
if (current_block_type === (current_block_type = select_block_type(ctx, dirty)) && if_block) {
|
|
50
|
+
if_block.p(ctx, dirty);
|
|
51
|
+
} else {
|
|
52
|
+
if (if_block) if_block.d(1);
|
|
53
|
+
if_block = current_block_type && current_block_type(ctx);
|
|
54
|
+
|
|
55
|
+
if (if_block) {
|
|
56
|
+
if_block.c();
|
|
57
|
+
if_block.m(div, null);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (dirty & /*objectFit*/ 2 && div_style_value !== (div_style_value = `object-fit: ${/*objectFit*/ ctx[1]};`)) {
|
|
62
|
+
attr(div, "style", div_style_value);
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
d(detaching) {
|
|
66
|
+
if (detaching) detach(div);
|
|
67
|
+
|
|
68
|
+
if (if_block) {
|
|
69
|
+
if_block.d();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// (10:37)
|
|
76
|
+
function create_if_block_2(ctx) {
|
|
77
|
+
let video;
|
|
78
|
+
let video_src_value;
|
|
79
|
+
let video_poster_value;
|
|
80
|
+
let video_preload_value;
|
|
81
|
+
let video_loop_value;
|
|
82
|
+
let video_controls_value;
|
|
83
|
+
let t;
|
|
84
|
+
let div;
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
c() {
|
|
88
|
+
video = element("video");
|
|
89
|
+
t = space();
|
|
90
|
+
div = element("div");
|
|
91
|
+
attr(video, "class", "media-content svelte-6jwk1w");
|
|
92
|
+
if (!src_url_equal(video.src, video_src_value = /*media*/ ctx[0].url)) attr(video, "src", video_src_value);
|
|
93
|
+
attr(video, "poster", video_poster_value = /*media*/ ctx[0].videoCoverUrl ?? undefined);
|
|
94
|
+
attr(video, "preload", video_preload_value = /*media*/ ctx[0].videoCoverUrl ? undefined : 'auto');
|
|
95
|
+
video.playsInline = true;
|
|
96
|
+
attr(video, "paused", "");
|
|
97
|
+
video.loop = video_loop_value = false;
|
|
98
|
+
attr(video, "crossorigin", "");
|
|
99
|
+
video.controls = video_controls_value = false;
|
|
100
|
+
video.muted = true;
|
|
101
|
+
attr(div, "class", "video-icon svelte-6jwk1w");
|
|
102
|
+
set_style(div, "background-image", "url(" + Image_Play + ")");
|
|
103
|
+
},
|
|
104
|
+
m(target, anchor) {
|
|
105
|
+
insert(target, video, anchor);
|
|
106
|
+
insert(target, t, anchor);
|
|
107
|
+
insert(target, div, anchor);
|
|
108
|
+
},
|
|
109
|
+
p(ctx, dirty) {
|
|
110
|
+
if (dirty & /*media*/ 1 && !src_url_equal(video.src, video_src_value = /*media*/ ctx[0].url)) {
|
|
111
|
+
attr(video, "src", video_src_value);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (dirty & /*media*/ 1 && video_poster_value !== (video_poster_value = /*media*/ ctx[0].videoCoverUrl ?? undefined)) {
|
|
115
|
+
attr(video, "poster", video_poster_value);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (dirty & /*media*/ 1 && video_preload_value !== (video_preload_value = /*media*/ ctx[0].videoCoverUrl ? undefined : 'auto')) {
|
|
119
|
+
attr(video, "preload", video_preload_value);
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
d(detaching) {
|
|
123
|
+
if (detaching) detach(video);
|
|
124
|
+
if (detaching) detach(t);
|
|
125
|
+
if (detaching) detach(div);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// (8:4) {#if media.type === 'Image'}
|
|
131
|
+
function create_if_block_1(ctx) {
|
|
132
|
+
let img;
|
|
133
|
+
let img_src_value;
|
|
134
|
+
let img_alt_value;
|
|
135
|
+
|
|
136
|
+
return {
|
|
137
|
+
c() {
|
|
138
|
+
img = element("img");
|
|
139
|
+
attr(img, "class", "media-content svelte-6jwk1w");
|
|
140
|
+
if (!src_url_equal(img.src, img_src_value = /*media*/ ctx[0].url)) attr(img, "src", img_src_value);
|
|
141
|
+
attr(img, "alt", img_alt_value = /*media*/ ctx[0].name);
|
|
142
|
+
},
|
|
143
|
+
m(target, anchor) {
|
|
144
|
+
insert(target, img, anchor);
|
|
145
|
+
},
|
|
146
|
+
p(ctx, dirty) {
|
|
147
|
+
if (dirty & /*media*/ 1 && !src_url_equal(img.src, img_src_value = /*media*/ ctx[0].url)) {
|
|
148
|
+
attr(img, "src", img_src_value);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (dirty & /*media*/ 1 && img_alt_value !== (img_alt_value = /*media*/ ctx[0].name)) {
|
|
152
|
+
attr(img, "alt", img_alt_value);
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
d(detaching) {
|
|
156
|
+
if (detaching) detach(img);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
function create_fragment(ctx) {
|
|
162
|
+
let if_block_anchor;
|
|
163
|
+
let if_block = /*media*/ ctx[0] && create_if_block(ctx);
|
|
164
|
+
|
|
165
|
+
return {
|
|
166
|
+
c() {
|
|
167
|
+
if (if_block) if_block.c();
|
|
168
|
+
if_block_anchor = empty();
|
|
169
|
+
},
|
|
170
|
+
m(target, anchor) {
|
|
171
|
+
if (if_block) if_block.m(target, anchor);
|
|
172
|
+
insert(target, if_block_anchor, anchor);
|
|
173
|
+
},
|
|
174
|
+
p(ctx, [dirty]) {
|
|
175
|
+
if (/*media*/ ctx[0]) {
|
|
176
|
+
if (if_block) {
|
|
177
|
+
if_block.p(ctx, dirty);
|
|
178
|
+
} else {
|
|
179
|
+
if_block = create_if_block(ctx);
|
|
180
|
+
if_block.c();
|
|
181
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
182
|
+
}
|
|
183
|
+
} else if (if_block) {
|
|
184
|
+
if_block.d(1);
|
|
185
|
+
if_block = null;
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
i: noop,
|
|
189
|
+
o: noop,
|
|
190
|
+
d(detaching) {
|
|
191
|
+
if (if_block) if_block.d(detaching);
|
|
192
|
+
if (detaching) detach(if_block_anchor);
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
function instance($$self, $$props, $$invalidate) {
|
|
198
|
+
let { media } = $$props;
|
|
199
|
+
let { objectFit = 'cover' } = $$props;
|
|
200
|
+
|
|
201
|
+
$$self.$$set = $$props => {
|
|
202
|
+
if ('media' in $$props) $$invalidate(0, media = $$props.media);
|
|
203
|
+
if ('objectFit' in $$props) $$invalidate(1, objectFit = $$props.objectFit);
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
return [media, objectFit];
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
class Component extends SvelteComponent {
|
|
210
|
+
constructor(options) {
|
|
211
|
+
super();
|
|
212
|
+
init(this, options, instance, create_fragment, safe_not_equal, { media: 0, objectFit: 1 }, add_css);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export default Component;
|
|
@@ -35,7 +35,7 @@ function get_each_context(ctx, list, i) {
|
|
|
35
35
|
return child_ctx;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
// (
|
|
38
|
+
// (79:0) {#each contentList as item, index}
|
|
39
39
|
function create_each_block(ctx) {
|
|
40
40
|
let span;
|
|
41
41
|
let t_value = /*item*/ ctx[10] + "";
|
|
@@ -217,7 +217,6 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
217
217
|
if (item.startsWith(emojiFlag)) return result.push(item.slice(emojiFlag.length)); else return result.push(...item.split(''));
|
|
218
218
|
});
|
|
219
219
|
|
|
220
|
-
// console.log(result.filter(Boolean))
|
|
221
220
|
return result.filter(Boolean);
|
|
222
221
|
})());
|
|
223
222
|
}
|
|
@@ -24,7 +24,7 @@ function add_css(target) {
|
|
|
24
24
|
append_styles(target, "svelte-10cw0el", ".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}");
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
// (
|
|
27
|
+
// (20:0) {#if tag.state && mediaData}
|
|
28
28
|
function create_if_block(ctx) {
|
|
29
29
|
let div;
|
|
30
30
|
let media;
|
|
@@ -32,10 +32,11 @@ function create_if_block(ctx) {
|
|
|
32
32
|
|
|
33
33
|
media = new Media({
|
|
34
34
|
props: {
|
|
35
|
-
unfolded: /*unfolded*/ ctx[
|
|
36
|
-
mediaData: /*mediaData*/ ctx[
|
|
37
|
-
objectFit: /*objectFit*/ ctx[
|
|
38
|
-
enableCarousel:
|
|
35
|
+
unfolded: /*unfolded*/ ctx[5],
|
|
36
|
+
mediaData: /*mediaData*/ ctx[4],
|
|
37
|
+
objectFit: /*objectFit*/ ctx[2],
|
|
38
|
+
enableCarousel: /*enableCarousel*/ ctx[1],
|
|
39
|
+
autoplayConfig: /*autoplayConfig*/ ctx[3],
|
|
39
40
|
inDelay: 500,
|
|
40
41
|
duration: 500
|
|
41
42
|
}
|
|
@@ -54,9 +55,11 @@ function create_if_block(ctx) {
|
|
|
54
55
|
},
|
|
55
56
|
p(ctx, dirty) {
|
|
56
57
|
const media_changes = {};
|
|
57
|
-
if (dirty & /*unfolded*/
|
|
58
|
-
if (dirty & /*mediaData*/
|
|
59
|
-
if (dirty & /*objectFit*/
|
|
58
|
+
if (dirty & /*unfolded*/ 32) media_changes.unfolded = /*unfolded*/ ctx[5];
|
|
59
|
+
if (dirty & /*mediaData*/ 16) media_changes.mediaData = /*mediaData*/ ctx[4];
|
|
60
|
+
if (dirty & /*objectFit*/ 4) media_changes.objectFit = /*objectFit*/ ctx[2];
|
|
61
|
+
if (dirty & /*enableCarousel*/ 2) media_changes.enableCarousel = /*enableCarousel*/ ctx[1];
|
|
62
|
+
if (dirty & /*autoplayConfig*/ 8) media_changes.autoplayConfig = /*autoplayConfig*/ ctx[3];
|
|
60
63
|
media.$set(media_changes);
|
|
61
64
|
},
|
|
62
65
|
i(local) {
|
|
@@ -78,7 +81,7 @@ function create_if_block(ctx) {
|
|
|
78
81
|
function create_fragment(ctx) {
|
|
79
82
|
let if_block_anchor;
|
|
80
83
|
let current;
|
|
81
|
-
let if_block = /*tag*/ ctx[0].state && /*mediaData*/ ctx[
|
|
84
|
+
let if_block = /*tag*/ ctx[0].state && /*mediaData*/ ctx[4] && create_if_block(ctx);
|
|
82
85
|
|
|
83
86
|
return {
|
|
84
87
|
c() {
|
|
@@ -91,11 +94,11 @@ function create_fragment(ctx) {
|
|
|
91
94
|
current = true;
|
|
92
95
|
},
|
|
93
96
|
p(ctx, [dirty]) {
|
|
94
|
-
if (/*tag*/ ctx[0].state && /*mediaData*/ ctx[
|
|
97
|
+
if (/*tag*/ ctx[0].state && /*mediaData*/ ctx[4]) {
|
|
95
98
|
if (if_block) {
|
|
96
99
|
if_block.p(ctx, dirty);
|
|
97
100
|
|
|
98
|
-
if (dirty & /*tag, mediaData*/
|
|
101
|
+
if (dirty & /*tag, mediaData*/ 17) {
|
|
99
102
|
transition_in(if_block, 1);
|
|
100
103
|
}
|
|
101
104
|
} else {
|
|
@@ -133,8 +136,10 @@ function create_fragment(ctx) {
|
|
|
133
136
|
function instance($$self, $$props, $$invalidate) {
|
|
134
137
|
let unfolded;
|
|
135
138
|
let mediaData;
|
|
139
|
+
let enableCarousel;
|
|
140
|
+
let autoplayConfig;
|
|
136
141
|
let objectFit;
|
|
137
|
-
var _a;
|
|
142
|
+
var _a, _b;
|
|
138
143
|
let { tag } = $$props;
|
|
139
144
|
|
|
140
145
|
$$self.$$set = $$props => {
|
|
@@ -143,23 +148,38 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
143
148
|
|
|
144
149
|
$$self.$$.update = () => {
|
|
145
150
|
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
146
|
-
$: $$invalidate(
|
|
151
|
+
$: $$invalidate(5, unfolded = tag.state ? tag.state.unfolded : false);
|
|
147
152
|
}
|
|
148
153
|
|
|
149
154
|
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
150
|
-
$: $$invalidate(
|
|
155
|
+
$: $$invalidate(4, mediaData = tag.data.mediaData);
|
|
151
156
|
}
|
|
152
157
|
|
|
153
|
-
if ($$self.$$.dirty & /*tag
|
|
154
|
-
$: $$invalidate(1,
|
|
158
|
+
if ($$self.$$.dirty & /*tag*/ 1) {
|
|
159
|
+
$: $$invalidate(1, enableCarousel = tag.data.enableCarousel);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
if ($$self.$$.dirty & /*tag, _a, enableCarousel*/ 67) {
|
|
163
|
+
$: $$invalidate(3, autoplayConfig = $$invalidate(6, _a = tag.data.autoplayConfig) !== null && _a !== void 0
|
|
155
164
|
? _a
|
|
165
|
+
: {
|
|
166
|
+
autoplay: enableCarousel !== null && enableCarousel !== void 0
|
|
167
|
+
? enableCarousel
|
|
168
|
+
: true,
|
|
169
|
+
autoplayVideo: true
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
if ($$self.$$.dirty & /*tag, _b*/ 129) {
|
|
174
|
+
$: $$invalidate(2, objectFit = $$invalidate(7, _b = tag.data.objectFit) !== null && _b !== void 0
|
|
175
|
+
? _b
|
|
156
176
|
: (() => {
|
|
157
177
|
if (tag.data.adaptationMode === 'stretch') return 'cover'; else if (tag.data.adaptationMode === 'proportional') return 'contain'; else return undefined;
|
|
158
178
|
})());
|
|
159
179
|
}
|
|
160
180
|
};
|
|
161
181
|
|
|
162
|
-
return [tag, objectFit, mediaData, unfolded, _a];
|
|
182
|
+
return [tag, enableCarousel, objectFit, autoplayConfig, mediaData, unfolded, _a, _b];
|
|
163
183
|
}
|
|
164
184
|
|
|
165
185
|
class Component extends SvelteComponent {
|
|
@@ -9,6 +9,7 @@ export declare abstract class TagComputer extends TagCacheController {
|
|
|
9
9
|
};
|
|
10
10
|
private raycaster;
|
|
11
11
|
protected constructor(five: Five);
|
|
12
|
+
getTagById(id: TagId): TagElement<import("../typings").ContentType, PointType, DimensionType, {}>;
|
|
12
13
|
/**
|
|
13
14
|
* @description: 改变配置
|
|
14
15
|
*/
|
|
@@ -48,22 +49,20 @@ export declare abstract class TagComputer extends TagCacheController {
|
|
|
48
49
|
/**
|
|
49
50
|
* @description: 一个点的标签
|
|
50
51
|
*/
|
|
51
|
-
setPointTagPosition(): void;
|
|
52
|
-
setVisibleByPanoIndex(): void;
|
|
53
|
-
setUnfoldedByPanoIndex(): void;
|
|
54
|
-
setVisibleAndUnfoldedByPanoIndex(): void;
|
|
52
|
+
protected setPointTagPosition(): void;
|
|
53
|
+
protected setVisibleByPanoIndex(): void;
|
|
54
|
+
protected setUnfoldedByPanoIndex(): void;
|
|
55
55
|
/**
|
|
56
56
|
* @description: 一个点的标签
|
|
57
57
|
*/
|
|
58
|
-
getTagProject(tag: Tag): {
|
|
58
|
+
protected getTagProject(tag: Tag): {
|
|
59
59
|
x: number;
|
|
60
60
|
y: number;
|
|
61
61
|
z: number;
|
|
62
62
|
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
filterPlaneTag(): PlaneTagElement[];
|
|
63
|
+
protected filterPointTag(): PointTagElement[];
|
|
64
|
+
protected filterTag2D(): Tag2DElement[];
|
|
65
|
+
protected filter3DPointTag(): Tag3DElement[];
|
|
66
|
+
protected filter3DTag(): TagElement<any, PointType, DimensionType.Three>[];
|
|
67
|
+
protected filterPlaneTag(): PlaneTagElement[];
|
|
69
68
|
}
|
|
@@ -27,6 +27,16 @@ export class TagComputer extends TagCacheController {
|
|
|
27
27
|
value: new THREE.Raycaster()
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
+
getTagById(id) {
|
|
31
|
+
const tag = this.tags.find((tag) => {
|
|
32
|
+
return tag.id === id;
|
|
33
|
+
});
|
|
34
|
+
if (!tag) {
|
|
35
|
+
console.error(`getTagById(): tag is ${tag}, id is ${id}`);
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
return tag;
|
|
39
|
+
}
|
|
30
40
|
/**
|
|
31
41
|
* @description: 改变配置
|
|
32
42
|
*/
|
|
@@ -81,7 +91,6 @@ export class TagComputer extends TagCacheController {
|
|
|
81
91
|
const visible = (() => {
|
|
82
92
|
var _a, _b, _c, _d, _e;
|
|
83
93
|
const config = (_a = this.getTagConfig(tag).visibleConfig) !== null && _a !== void 0 ? _a : {};
|
|
84
|
-
// console.log(config)
|
|
85
94
|
const distance = this.getDistance(tag);
|
|
86
95
|
if (typeof config === 'function') {
|
|
87
96
|
return config(this.five, { tag, distance });
|
|
@@ -357,18 +366,11 @@ export class TagComputer extends TagCacheController {
|
|
|
357
366
|
const unfolded = this.getUnfoldedByPanoIndex(tag);
|
|
358
367
|
if (!tag.state)
|
|
359
368
|
return;
|
|
360
|
-
if (unfolded
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
setVisibleAndUnfoldedByPanoIndex() {
|
|
366
|
-
this.setVisibleByPanoIndex();
|
|
367
|
-
this.setUnfoldedByPanoIndex();
|
|
368
|
-
this.tags.forEach((tag) => {
|
|
369
|
-
var _a, _b;
|
|
369
|
+
if (unfolded !== undefined) {
|
|
370
|
+
tag.state.unfolded = unfolded;
|
|
371
|
+
}
|
|
370
372
|
// 如果标签展开但不可见,就要判断autoUnfoldWhenHide
|
|
371
|
-
if (
|
|
373
|
+
if (unfolded && !tag.state.visible) {
|
|
372
374
|
const config = this.getTagConfig(tag);
|
|
373
375
|
if (typeof config.unfoldedConfig === 'object' && config.unfoldedConfig.autoUnfoldWhenHide !== false) {
|
|
374
376
|
tag.state.unfolded = false;
|
|
@@ -389,16 +391,6 @@ export class TagComputer extends TagCacheController {
|
|
|
389
391
|
return;
|
|
390
392
|
return { x, y, z };
|
|
391
393
|
}
|
|
392
|
-
getTagById(id) {
|
|
393
|
-
const tag = this.tags.find((tag) => {
|
|
394
|
-
return tag.id === id;
|
|
395
|
-
});
|
|
396
|
-
if (!tag) {
|
|
397
|
-
console.error(`getTagById(): tag is ${tag}, id is ${id}`);
|
|
398
|
-
return undefined;
|
|
399
|
-
}
|
|
400
|
-
return tag;
|
|
401
|
-
}
|
|
402
394
|
// TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
|
|
403
395
|
filterPointTag() {
|
|
404
396
|
return this.tags.filter((tag) => tag.pointType === PointType.PointTag);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Five } from '@realsee/five';
|
|
2
|
-
import type { Tag, ContentType, PartialDeep, TagId, Tags, State } from '../typings';
|
|
2
|
+
import type { Tag, ContentType, PartialDeep, TagId, Tags, State, AddTagConfig } from '../typings';
|
|
3
3
|
import { TagComputer } from './TagComputer';
|
|
4
4
|
import { ArrayPosition } from '../typings';
|
|
5
5
|
export declare const pluginFlag: (name: string) => string;
|
|
@@ -40,11 +40,12 @@ declare class PanoTagPluginController extends TagComputer {
|
|
|
40
40
|
/**
|
|
41
41
|
* @description: 加载数据
|
|
42
42
|
*/
|
|
43
|
-
load(data: Tags): void;
|
|
43
|
+
load(data: Tags, config?: AddTagConfig): void;
|
|
44
44
|
/**
|
|
45
45
|
* @description: 添加标签
|
|
46
46
|
*/
|
|
47
|
-
addTag(tag: Tag | Tag[]): void;
|
|
47
|
+
addTag(tag: Tag | Tag[], config?: AddTagConfig): void;
|
|
48
|
+
clearTags(): void;
|
|
48
49
|
show(params?: {
|
|
49
50
|
userAction?: boolean;
|
|
50
51
|
withAnimation?: boolean;
|
|
@@ -87,6 +88,10 @@ declare class PanoTagPluginController extends TagComputer {
|
|
|
87
88
|
destroyTagById(id: TagId | TagId[]): void;
|
|
88
89
|
/** 暂停当前标签内进行的所有多媒体 */
|
|
89
90
|
pauseCurrentMedia(): void;
|
|
91
|
+
/**
|
|
92
|
+
* @description: 设置 visible 和 unfolded
|
|
93
|
+
*/
|
|
94
|
+
private setVisibleAndUnfolded;
|
|
90
95
|
private handleShow;
|
|
91
96
|
private handleHide;
|
|
92
97
|
private handleEnable;
|
|
@@ -114,7 +119,7 @@ declare class PanoTagPluginController extends TagComputer {
|
|
|
114
119
|
/**
|
|
115
120
|
* @description: 更新所有标签
|
|
116
121
|
*/
|
|
117
|
-
private
|
|
122
|
+
private updateRenderAllTags;
|
|
118
123
|
private updateTagContainerVisible;
|
|
119
124
|
private handleFiveCameraUpdateDebounce;
|
|
120
125
|
private handleFiveCameraUpdate;
|