@realsee/dnalogel 2.16.0-2 → 2.16.0-alpha.0
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/Controller.d.ts +0 -1
- package/dist/CruisePlugin/Controller.d.ts +2 -1
- package/dist/CruisePlugin/typing.d.ts +2 -12
- package/dist/GuideLinePlugin/Controller.d.ts +12 -20
- package/dist/GuideLinePlugin/index.d.ts +0 -4
- package/dist/GuideLinePlugin/typing.d.ts +1 -70
- package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +5 -2
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +69 -0
- package/dist/base/BasePlugin.d.ts +0 -1
- package/dist/index.cjs.js +115 -162
- package/dist/index.js +5234 -5141
- package/dist/index.umd.js +116 -163
- package/dist/shared-utils/five/FiveDomEvents.d.ts +11 -0
- package/dist/shared-utils/index.d.ts +0 -3
- package/dist/shared-utils/logger.d.ts +17 -0
- package/dist/shared-utils/math/pointIsRectangle.d.ts +2 -0
- package/dist/shared-utils/offscreenCanvas.d.ts +2 -0
- package/dist/shared-utils/three/Quadrangle.d.ts +20 -0
- package/dist/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
- package/dist/shared-utils/three/loadVideoTexture.d.ts +4 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -34
- package/docs/classes/CruisePluginController.html +27 -46
- package/docs/classes/Magnifier.html +20 -23
- package/docs/classes/ModelRoomLabelController.html +11 -14
- package/docs/classes/Object3DHelperController.html +24 -43
- package/docs/classes/PaintBrush.html +15 -18
- package/docs/classes/PanoMeasurePluginLine.html +23 -26
- package/docs/classes/PanoMeasurePluginModel.html +22 -25
- package/docs/classes/PanoMeasurePluginPoint.html +14 -17
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -29
- package/docs/classes/PanoTagPluginController.html +65 -84
- package/docs/classes/Util.BetterTween.html +8 -11
- package/docs/classes/Util.FivePointSelector.html +12 -15
- package/docs/classes/Util.Interval.html +12 -15
- package/docs/classes/Util.Magnifier.html +17 -20
- package/docs/classes/Util.PointDomHelper.html +11 -14
- package/docs/classes/Util.PointHelper.html +11 -14
- package/docs/classes/Util.Rectangle.html +13 -16
- package/docs/enums/CameraMovementEffect.html +7 -10
- package/docs/enums/ContentType.html +19 -22
- package/docs/enums/DIRECTION.html +9 -12
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -12
- package/docs/enums/DimensionType.html +7 -10
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -11
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -12
- package/docs/enums/PaintBrushTypeEnum.html +8 -11
- package/docs/enums/Rotation.html +8 -11
- package/docs/functions/CSS3DRenderPlugin.html +5 -7
- package/docs/functions/CameraMovementPlugin.html +5 -7
- package/docs/functions/CruisePlugin.html +5 -7
- package/docs/functions/GuideLinePlugin.html +6 -8
- package/docs/functions/ItemLabelPlugin.html +5 -7
- package/docs/functions/MapviewFloorplanPlugin.html +5 -7
- package/docs/functions/ModelChassisCompassPlugin.html +5 -7
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -7
- package/docs/functions/ModelFloorplanPlugin.html +5 -7
- package/docs/functions/ModelItemLabelPlugin.html +5 -7
- package/docs/functions/ModelRoomLabelPlugin.html +5 -7
- package/docs/functions/ModelTVVideoPlugin.html +5 -7
- package/docs/functions/ModelViewPlugin.html +5 -7
- package/docs/functions/Object3DHelperPlugin.html +5 -7
- package/docs/functions/PanoCompassPlugin.html +5 -7
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -7
- package/docs/functions/PanoDoorLabelPlugin.html +5 -7
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -7
- package/docs/functions/PanoMeasurePlugin.html +5 -7
- package/docs/functions/PanoRulerPlugin.html +5 -7
- package/docs/functions/PanoRulerProPlugin.html +5 -7
- package/docs/functions/PanoSpatialTagPlugin.html +5 -7
- package/docs/functions/PanoTagPlugin.html +5 -7
- package/docs/functions/PanoVideoPlugin.html +5 -7
- package/docs/functions/TopviewFloorplanPlugin.html +5 -7
- package/docs/functions/Util.getCoordsFromClient.html +6 -13
- package/docs/functions/Util.getCoordsFromElement.html +6 -13
- package/docs/functions/Util.getFrameTime.html +6 -13
- package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -13
- package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -13
- package/docs/functions/Util.isNil.html +6 -13
- package/docs/functions/Util.nextFrame.html +6 -13
- package/docs/functions/Util.notNil.html +6 -13
- package/docs/functions/Util.requestAnimationFrameInterval.html +6 -13
- package/docs/functions/Util.tweenProgress.html +6 -13
- package/docs/functions/pluginFlag.html +6 -8
- package/docs/index.html +5 -7
- package/docs/interfaces/AddTagConfig.html +6 -9
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -14
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -11
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -10
- package/docs/interfaces/EventMap.html +15 -18
- package/docs/interfaces/FloorplanBounding.html +8 -11
- package/docs/interfaces/FloorplanData.html +10 -13
- package/docs/interfaces/FloorplanEntrance.html +11 -14
- package/docs/interfaces/FloorplanExtraObject.html +10 -13
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -11
- package/docs/interfaces/FloorplanFloorData.html +9 -12
- package/docs/interfaces/FloorplanImagePosition.html +7 -10
- package/docs/interfaces/FloorplanObserver.html +9 -12
- package/docs/interfaces/FloorplanOutlineItem.html +9 -12
- package/docs/interfaces/FloorplanPosition.html +7 -10
- package/docs/interfaces/FloorplanRoomItem.html +13 -16
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -10
- package/docs/interfaces/FloorplanServerBounding.html +8 -11
- package/docs/interfaces/FloorplanServerComputedData.html +10 -13
- package/docs/interfaces/FloorplanServerData.html +7 -10
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -13
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -11
- package/docs/interfaces/FloorplanServerEntrance.html +11 -14
- package/docs/interfaces/FloorplanServerFloorData.html +9 -12
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -10
- package/docs/interfaces/FloorplanServerObserver.html +9 -12
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -12
- package/docs/interfaces/FloorplanServerPosition.html +7 -10
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -17
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -10
- package/docs/interfaces/HelperOffset.html +8 -11
- package/docs/interfaces/ImagePlaneGroup.html +6 -9
- package/docs/interfaces/ItemLabelPluginData.html +6 -9
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -14
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -12
- package/docs/interfaces/MinMax.html +7 -10
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -10
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -11
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -10
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -11
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -11
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -9
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -14
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -10
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -9
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -12
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -11
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -9
- package/docs/interfaces/ModelViewPluginExportType.html +11 -14
- package/docs/interfaces/Object3DHelperState.html +8 -11
- package/docs/interfaces/ObjectHelperControllers.html +9 -12
- package/docs/interfaces/PaintBrushAction.html +12 -15
- package/docs/interfaces/PaintBrushConfigs.html +12 -15
- package/docs/interfaces/PaintBrushState.html +10 -13
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -13
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -8
- package/docs/interfaces/PanoMeasureParameterType.html +14 -17
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -11
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -10
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -10
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -13
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -10
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -11
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -12
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -10
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -10
- package/docs/interfaces/PanoRulerProPluginState.html +8 -11
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -8
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -8
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -14
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -13
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -16
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -13
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -16
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -14
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -13
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -9
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -11
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -9
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -18
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -9
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -11
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -13
- package/docs/interfaces/Point.html +8 -11
- package/docs/interfaces/Room.html +9 -12
- package/docs/interfaces/RoomInfo.html +7 -10
- package/docs/interfaces/RoomLabel.html +14 -17
- package/docs/interfaces/RoomRules.html +6 -8
- package/docs/interfaces/Rooms.html +6 -8
- package/docs/interfaces/Scissor.html +9 -12
- package/docs/interfaces/State.html +8 -11
- package/docs/interfaces/TagCacheInterface.html +12 -15
- package/docs/interfaces/TagConfig.html +11 -14
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -9
- package/docs/interfaces/TagIconUrl.html +11 -14
- package/docs/interfaces/TagObjectGroup.html +6 -9
- package/docs/interfaces/TagStyle.html +6 -9
- package/docs/interfaces/Tags.html +10 -13
- package/docs/interfaces/TemporaryState.html +6 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -14
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -11
- package/docs/modules/PanoVideoPluginType.html +5 -8
- package/docs/modules/Util.html +6 -17
- package/docs/modules.html +7 -11
- package/docs/types/ArrayPosition.html +6 -8
- package/docs/types/AudioAppearance.html +6 -8
- package/docs/types/AudioTagTypeConfigKey.html +6 -8
- package/docs/types/CSS3DRenderExportType.html +6 -8
- package/docs/types/CSS3DRenderPluginExportType.html +6 -8
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -8
- package/docs/types/ClassFunctionParameters.html +6 -8
- package/docs/types/Color.html +6 -8
- package/docs/types/ContentTypeConfigKey.html +6 -8
- package/docs/types/ContentTypeConfigKeySplit.html +6 -8
- package/docs/types/ContentTypeMap.html +6 -8
- package/docs/types/Create3DDomContainerReturnType.html +6 -8
- package/docs/types/Create3DElementReturnType.html +6 -8
- package/docs/types/CruisePluginExportType.html +6 -8
- package/docs/types/Direction-1.html +6 -8
- package/docs/types/Direction4.html +6 -8
- package/docs/types/ElementRenderer.html +288 -0
- package/docs/types/FloorplanRuleLabels.html +6 -8
- package/docs/types/FloorplanServerRuleLabels.html +6 -8
- package/docs/types/GuideLinePluginExportType.html +6 -8
- package/docs/types/HelperEventMap.html +6 -8
- package/docs/types/LoadTagConfig.html +6 -8
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -8
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -8
- package/docs/types/MediaData.html +6 -8
- package/docs/types/MediaStore.html +6 -8
- package/docs/types/ModelElement.html +6 -8
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -8
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -8
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -8
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -8
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -8
- package/docs/types/MoveArgs.html +6 -8
- package/docs/types/MoveOpts.html +6 -8
- package/docs/types/Object3DHelperEventMap.html +6 -8
- package/docs/types/ObjectFit.html +6 -8
- package/docs/types/PaintBrushEventMap.html +6 -8
- package/docs/types/PanoCompassPluginData.html +6 -8
- package/docs/types/PanoCompassPluginExportType.html +6 -8
- package/docs/types/PanoCompassPluginParameterType.html +6 -8
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -8
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -8
- package/docs/types/PanoIndex.html +6 -8
- package/docs/types/PanoMeasurePluginEvent.html +6 -8
- package/docs/types/PanoMeasureReturnType.html +6 -8
- package/docs/types/PanoSpatialTagPluginId.html +6 -8
- package/docs/types/PanoTagPluginExportInterface.html +6 -8
- package/docs/types/PanoTagPluginParamsInterface.html +6 -8
- package/docs/types/PanoVideoPluginParameterType.html +6 -8
- package/docs/types/PanoVideoPluginReturnType.html +6 -8
- package/docs/types/PlaneTag.html +6 -8
- package/docs/types/PlaneTagElement.html +6 -8
- package/docs/types/Point2DElement.html +6 -8
- package/docs/types/Point2DTag.html +6 -8
- package/docs/types/Point3DElement.html +6 -8
- package/docs/types/Point3DTag.html +6 -8
- package/docs/types/PointTag.html +6 -8
- package/docs/types/PointTagElement.html +6 -8
- package/docs/types/Position.html +6 -8
- package/docs/types/RotateArgs.html +6 -8
- package/docs/types/RotateOpts.html +6 -8
- package/docs/types/RuleLabelsKey.html +6 -8
- package/docs/types/RuleLabelsValue.html +6 -8
- package/docs/types/StickType.html +6 -8
- package/docs/types/Tag.html +7 -9
- package/docs/types/Tag2D.html +6 -8
- package/docs/types/Tag3D.html +6 -8
- package/docs/types/TagContentType.html +6 -8
- package/docs/types/TagDimensionType.html +6 -8
- package/docs/types/TagElement.html +7 -9
- package/docs/types/TagEvents.html +6 -8
- package/docs/types/TagGLTFObject.html +7 -9
- package/docs/types/TagHooks.html +6 -8
- package/docs/types/TagIconSize.html +6 -8
- package/docs/types/TagId.html +6 -8
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -8
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -8
- package/docs/types/WorkCode.html +6 -8
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -8
- package/docs/variables/PLUGIN.html +6 -8
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -8
- package/docs/variables/ROOM_TYPE_MAP.html +6 -8
- package/docs/variables/itemLabelPluginServerParams.html +6 -8
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -8
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -8
- package/libs/CSS3DRenderPlugin/Controller.d.ts +0 -1
- package/libs/CSS3DRenderPlugin/Controller.js +31 -40
- package/libs/CSS3DRenderPlugin/index.js +6 -12
- package/libs/CruisePlugin/Controller.d.ts +2 -1
- package/libs/CruisePlugin/Controller.js +174 -197
- package/libs/CruisePlugin/index.js +10 -33
- package/libs/CruisePlugin/typing.d.ts +2 -12
- package/libs/GuideLinePlugin/Controller.d.ts +12 -20
- package/libs/GuideLinePlugin/Controller.js +88 -125
- package/libs/GuideLinePlugin/index.d.ts +0 -4
- package/libs/GuideLinePlugin/index.js +7 -33
- package/libs/GuideLinePlugin/typing.d.ts +1 -70
- package/libs/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +64 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +45 -53
- package/libs/ModelTVVideoPlugin/index.js +5 -11
- package/libs/Object3DHelperPlugin/Controller.js +28 -33
- package/libs/Object3DHelperPlugin/index.js +13 -18
- package/libs/PanoCompassPlugin/Controller.js +6 -8
- package/libs/PanoCompassPlugin/index.js +10 -12
- package/libs/PanoDoorLabelPlugin/BaseController.js +28 -47
- package/libs/PanoDoorLabelPlugin/Controller.js +22 -40
- package/libs/PanoDoorLabelPlugin/index.js +3 -21
- package/libs/PanoMeasurePlugin/typings/index.js +1 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +3 -8
- package/libs/PanoSpatialTagPlugin/index.js +3 -8
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +4 -2
- package/libs/PanoTagPlugin/Components/Common/Media.js +49 -49
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +13 -11
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +20 -18
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +38 -36
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +25 -23
- package/libs/PanoTagPlugin/Components/Tag/index.js +26 -25
- package/libs/PanoTagPlugin/Components/TagContainer.js +4 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +4 -3
- package/libs/PanoTagPlugin/controller/TagCache.js +22 -42
- package/libs/PanoTagPlugin/controller/TagComputer.js +4 -5
- package/libs/PanoTagPlugin/controller/TagRender.js +82 -63
- package/libs/PanoTagPlugin/controller/TagUtil.js +13 -20
- package/libs/PanoTagPlugin/controller/index.js +22 -15
- package/libs/PanoTagPlugin/index.js +17 -13
- package/libs/PanoTagPlugin/typings/controller.d.ts +5 -2
- package/libs/PanoTagPlugin/typings/index.js +6 -4
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.js +2 -0
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +4 -2
- package/libs/PanoTagPlugin/utils/index.js +35 -33
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +69 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +214 -0
- package/libs/PanoTagPlugin/utils/planeNormal.js +4 -2
- package/libs/PanoTagPlugin/utils/tagPosition.js +9 -7
- package/libs/PanoVideoPlugin/Controller.js +3 -4
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +6 -7
- package/libs/base/BasePlugin.d.ts +0 -1
- package/libs/base/BasePlugin.js +10 -21
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +38 -57
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -22
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +29 -48
- package/libs/floorplan/ModelFloorplanPlugin/index.js +3 -22
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +11 -31
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +3 -23
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +40 -59
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -22
- package/libs/floorplan/index.js +0 -6
- package/libs/index.js +120 -118
- package/libs/shared-utils/five/FiveDomEvents.d.ts +11 -0
- package/libs/shared-utils/five/FiveDomEvents.js +77 -0
- package/libs/shared-utils/index.d.ts +0 -3
- package/libs/shared-utils/index.js +29 -36
- package/libs/shared-utils/logger.d.ts +17 -0
- package/libs/shared-utils/logger.js +16 -0
- package/libs/shared-utils/math/pointIsRectangle.d.ts +2 -0
- package/libs/shared-utils/math/pointIsRectangle.js +10 -0
- package/libs/shared-utils/offscreenCanvas.d.ts +2 -0
- package/libs/shared-utils/offscreenCanvas.js +12 -0
- package/libs/shared-utils/three/PointDomHelper.js +1 -1
- package/libs/shared-utils/three/Quadrangle.d.ts +20 -0
- package/libs/shared-utils/three/Quadrangle.js +41 -0
- package/libs/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
- package/libs/shared-utils/three/getPositionsByObjectFit.js +20 -0
- package/libs/shared-utils/three/loadTexture.js +19 -21
- package/libs/shared-utils/three/loadVideoTexture.d.ts +4 -0
- package/libs/shared-utils/three/loadVideoTexture.js +14 -0
- package/package.json +2 -2
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +0 -26
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -19
- package/dist/GuideLinePlugin/utils/index.d.ts +0 -7
- package/dist/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
- package/dist/shared-utils/five/index.d.ts +0 -1
- package/dist/shared-utils/five/mode.d.ts +0 -3
- package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/dist/shared-utils/log.d.ts +0 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -169
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -344
- package/docs/functions/Util.isAbsoluteURL.html +0 -79
- package/docs/functions/Util.isModelLike.html +0 -79
- package/docs/functions/Util.isPanoramaLike.html +0 -79
- package/docs/functions/Util.uuid.html +0 -76
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -97
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -258
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -92
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -87
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -108
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -85
- package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +0 -76
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -71
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -82
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -99
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -103
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -92
- package/docs/modules/GuideLineItem.html +0 -53
- package/docs/modules/GuideLineModeItem.html +0 -53
- package/docs/modules/GuideLinePluginType.html +0 -99
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -67
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -65
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -67
- package/docs/types/GuideLinePluginType.PathItem.html +0 -67
- package/docs/types/GuideLinePluginType.PluginData.html +0 -65
- package/libs/GuideLinePlugin/GuideLineItem/index.js +0 -35
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +0 -26
- package/libs/GuideLinePlugin/GuideLineItem.js +0 -31
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +0 -231
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
- package/libs/GuideLinePlugin/GuideLineModeItem.js +0 -29
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -19
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +0 -35
- package/libs/GuideLinePlugin/utils/dataFormatter.d.ts +0 -2
- package/libs/GuideLinePlugin/utils/dataFormatter.js +0 -6
- package/libs/GuideLinePlugin/utils/index.d.ts +0 -7
- package/libs/GuideLinePlugin/utils/index.js +0 -32
- package/libs/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
- package/libs/PanoTagPlugin/utils/model/imagePlane.js +0 -33
- package/libs/shared-utils/five/index.d.ts +0 -1
- package/libs/shared-utils/five/index.js +0 -1
- package/libs/shared-utils/five/mode.d.ts +0 -3
- package/libs/shared-utils/five/mode.js +0 -11
- package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/libs/shared-utils/isAbsoluteURL.js +0 -6
- package/libs/shared-utils/log.d.ts +0 -2
- package/libs/shared-utils/log.js +0 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var j = Object.defineProperty;
|
|
2
2
|
var w = (l, p, t) => p in l ? j(l, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[p] = t;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var c = (l, p, t) => (w(l, typeof p != "symbol" ? p + "" : p, t), t);
|
|
4
|
+
var P = (l, p, t) => new Promise((e, i) => {
|
|
5
5
|
var o = (s) => {
|
|
6
6
|
try {
|
|
7
7
|
a(t.next(s));
|
|
@@ -18,19 +18,20 @@ var D = (l, p, t) => new Promise((e, i) => {
|
|
|
18
18
|
a((t = t.apply(l, p)).next());
|
|
19
19
|
});
|
|
20
20
|
import { TagComputer as O } from "./TagComputer.js";
|
|
21
|
-
import { Group as
|
|
21
|
+
import { Group as b, Quaternion as x, Vector3 as D, Matrix4 as T } from "three";
|
|
22
22
|
import G from "../Components/TagContainer.js";
|
|
23
23
|
import k from "../Components/Tag/index.js";
|
|
24
|
-
import { arrayPositionToVector3 as
|
|
25
|
-
import { centerPoint as
|
|
24
|
+
import { arrayPositionToVector3 as S } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
25
|
+
import { centerPoint as E } from "../../shared-utils/three/centerPoint.js";
|
|
26
26
|
import "@realsee/five/gltf-loader";
|
|
27
|
-
import R from "../utils/model/
|
|
28
|
-
import { isMediaModelTag as
|
|
29
|
-
import { CSS3DRenderPlugin as
|
|
27
|
+
import { ImagePlane as R, VideoPlane as I } from "../utils/model/mediaPlane.js";
|
|
28
|
+
import { isMediaModelTag as C } from "../utils/tag/tagCheck.js";
|
|
29
|
+
import { CSS3DRenderPlugin as A } from "../../CSS3DRenderPlugin/index.js";
|
|
30
30
|
import { loadGLTF as V } from "../../shared-utils/three/GLTFLoader.js";
|
|
31
31
|
import "@realsee/five";
|
|
32
32
|
import "../utils/tagPosition.js";
|
|
33
33
|
import "../../shared-utils/three/loadTexture.js";
|
|
34
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
34
35
|
import "../utils/checkRange.js";
|
|
35
36
|
import "hammerjs";
|
|
36
37
|
import "@tweenjs/tween.js";
|
|
@@ -56,11 +57,9 @@ import "../utils/planeNormal.js";
|
|
|
56
57
|
import "../utils/normalPositionToPositions.js";
|
|
57
58
|
import "./TagCache.js";
|
|
58
59
|
import "../../base/BasePlugin.js";
|
|
59
|
-
import "../../shared-utils/isAbsoluteURL.js";
|
|
60
60
|
import "../../vendor/svelte/store/index.js";
|
|
61
61
|
import "../../vendor/svelte/internal/index.js";
|
|
62
62
|
import "../utils/device.js";
|
|
63
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
64
63
|
import "../Components/TagItem.js";
|
|
65
64
|
import "../utils/noTypecheck.js";
|
|
66
65
|
import "../Components/Common/TagPoint.js";
|
|
@@ -131,18 +130,23 @@ import "../Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
|
131
130
|
import "../Components/Tag/MediaPlane.js";
|
|
132
131
|
import "../Components/Tag/LinkTag.js";
|
|
133
132
|
import "../Components/Tag/CustomTag.js";
|
|
133
|
+
import "../../shared-utils/three/Quadrangle.js";
|
|
134
|
+
import "../../shared-utils/math/pointIsRectangle.js";
|
|
135
|
+
import "../../shared-utils/three/loadVideoTexture.js";
|
|
136
|
+
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
137
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
134
138
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
135
139
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
136
|
-
class
|
|
140
|
+
class Xe extends O {
|
|
137
141
|
constructor(t) {
|
|
138
142
|
super(t);
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
c(this, "group", new b());
|
|
144
|
+
c(this, "imagePlaneGroup", new b());
|
|
145
|
+
c(this, "gltfObjectGroup", new b());
|
|
146
|
+
c(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
147
|
+
c(this, "temporaryState", { visible: !0 });
|
|
148
|
+
c(this, "TagContainerSvelte");
|
|
149
|
+
c(this, "loadModel", (t) => P(this, null, function* () {
|
|
146
150
|
var s;
|
|
147
151
|
const e = t.data.modelUrl;
|
|
148
152
|
if (!e)
|
|
@@ -155,14 +159,14 @@ class Qe extends O {
|
|
|
155
159
|
o.visible = this.getCurrentVisibleState(t), new T().fromArray(t.matrix).decompose(o.position, o.quaternion, o.scale), o.updateWorldMatrix(!0, !0), o.visible = this.getVisibleByFloorIndex(t);
|
|
156
160
|
const a = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
|
|
157
161
|
if (a && this.gltfObjectGroup.remove(a), this.getRenderType(t) === "Mesh") {
|
|
158
|
-
if (!t.
|
|
159
|
-
const r = t.data.mediaPosition.map(
|
|
160
|
-
t.
|
|
161
|
-
const m = new
|
|
162
|
-
t.
|
|
162
|
+
if (!t.mediaPlane) {
|
|
163
|
+
const r = t.data.mediaPosition.map(S);
|
|
164
|
+
t.mediaPlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(S));
|
|
165
|
+
const m = new D().addVectors(r[0], r[2]).divideScalar(2);
|
|
166
|
+
t.mediaPlane.position.copy(m), o.add(t.mediaPlane);
|
|
163
167
|
}
|
|
164
168
|
} else
|
|
165
|
-
this.updateTagCss3DObjectMatrix(t, o);
|
|
169
|
+
o.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, o), o.updateTagCss3DObjectMatrix();
|
|
166
170
|
return this.gltfObjectGroup.add(o), o;
|
|
167
171
|
}));
|
|
168
172
|
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
|
|
@@ -170,7 +174,7 @@ class Qe extends O {
|
|
|
170
174
|
clearTags() {
|
|
171
175
|
this.tags.forEach((t) => {
|
|
172
176
|
var e, i;
|
|
173
|
-
(i = (e = t.
|
|
177
|
+
(i = (e = t.mediaPlane) == null ? void 0 : e.parent) == null || i.remove(t.mediaPlane);
|
|
174
178
|
}), this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
|
|
175
179
|
}
|
|
176
180
|
updateRenderAllTags() {
|
|
@@ -178,19 +182,28 @@ class Qe extends O {
|
|
|
178
182
|
}
|
|
179
183
|
updateRenderImagePlane() {
|
|
180
184
|
this.sort(this.filterImagePlane).forEach((e) => {
|
|
181
|
-
var
|
|
182
|
-
const i =
|
|
183
|
-
if (!i
|
|
185
|
+
var s, r, m;
|
|
186
|
+
const i = e.data.mediaData[0];
|
|
187
|
+
if (!i)
|
|
184
188
|
return;
|
|
185
|
-
const o =
|
|
186
|
-
e.
|
|
189
|
+
const o = i.url, n = i.type;
|
|
190
|
+
if (!o || (e.mediaPlane && (e.mediaPlane.visible = (r = (s = e.state) == null ? void 0 : s.visible) != null ? r : !0), ((m = e.mediaPlane) == null ? void 0 : m.src) === o))
|
|
191
|
+
return;
|
|
192
|
+
const a = e.position.map(S);
|
|
193
|
+
if (e.mediaPlane && e.mediaPlane.removeFromParent(), n === "Image")
|
|
194
|
+
e.mediaPlane = new R(o, a);
|
|
195
|
+
else if (n === "Video") {
|
|
196
|
+
const d = new I(o, a, { videoCoverSrc: i.videoCoverUrl, playButton: e.data.playIcon });
|
|
197
|
+
d.initialDomEvents(this.five), d.initialRenderHooks(this.five), e.mediaPlane = d;
|
|
198
|
+
}
|
|
199
|
+
this.imagePlaneGroup.add(e.mediaPlane);
|
|
187
200
|
});
|
|
188
201
|
}
|
|
189
202
|
updateRender3DDomTag() {
|
|
190
203
|
this.sort([...this.filterCSS3DTag]).forEach((e) => {
|
|
191
204
|
var i, o;
|
|
192
205
|
if (e.tag3DContentSvelte) {
|
|
193
|
-
const { svelteApp: n,
|
|
206
|
+
const { svelteApp: n, css3DInstance: a, initialNormal: s, currentNormal: r } = e.tag3DContentSvelte;
|
|
194
207
|
if (n.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(r)) {
|
|
195
208
|
const m = new x().setFromUnitVectors(s, r);
|
|
196
209
|
a.css3DObject.setRotationFromQuaternion(m);
|
|
@@ -199,7 +212,7 @@ class Qe extends O {
|
|
|
199
212
|
} else {
|
|
200
213
|
if (((i = e.state) == null ? void 0 : i.visible) === !1)
|
|
201
214
|
return;
|
|
202
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin =
|
|
215
|
+
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = A(this.five)), e.stickType === "3DPoint" && !e.normal)
|
|
203
216
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
204
217
|
const n = this.getPositions(e);
|
|
205
218
|
if (!n)
|
|
@@ -210,41 +223,47 @@ class Qe extends O {
|
|
|
210
223
|
const r = (o = this.getTagConfig(e).tag3DConfig) != null ? o : {};
|
|
211
224
|
if (this.getRenderType(e) === "BehindDom") {
|
|
212
225
|
r.mode = "behind", r.container = document.createElement("div");
|
|
213
|
-
const
|
|
214
|
-
r.container.style.backgroundColor =
|
|
226
|
+
const f = "black";
|
|
227
|
+
r.container.style.backgroundColor = f, r.container.style.border = `3px solid ${f}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
215
228
|
var u;
|
|
216
229
|
if (m.css3DObject.opacityMesh) {
|
|
217
|
-
const
|
|
218
|
-
this.hooks.emit("click", { event:
|
|
230
|
+
const h = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (g) => {
|
|
231
|
+
this.hooks.emit("click", { event: g, target: "TagContent", tag: e });
|
|
219
232
|
});
|
|
220
|
-
(u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(
|
|
233
|
+
(u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(h);
|
|
221
234
|
}
|
|
222
235
|
});
|
|
223
236
|
}
|
|
224
237
|
const m = this.css3DRenderPlugin.create3DDomContainer(n, r);
|
|
225
238
|
if (!m)
|
|
226
239
|
return;
|
|
227
|
-
this.store.css3DRenderDisposer.set(e.id, [m.dispose])
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
240
|
+
this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
|
|
241
|
+
const d = new k({
|
|
242
|
+
target: m.container,
|
|
243
|
+
props: {
|
|
244
|
+
tag: e,
|
|
245
|
+
hooks: this.hooks,
|
|
246
|
+
state: this.state,
|
|
247
|
+
mediaStore: this.mediaStore,
|
|
248
|
+
temporaryState: this.temporaryState
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
e.tag3DContentSvelte = {
|
|
252
|
+
svelteApp: d,
|
|
238
253
|
domContainer: m,
|
|
254
|
+
css3DInstance: m,
|
|
239
255
|
initialNormal: a,
|
|
240
|
-
currentNormal: a
|
|
256
|
+
currentNormal: a,
|
|
257
|
+
dispose: () => {
|
|
258
|
+
d.$destroy(), m.dispose();
|
|
259
|
+
}
|
|
241
260
|
};
|
|
242
261
|
}
|
|
243
262
|
}), this.clearUnusedPanelTag();
|
|
244
263
|
}
|
|
245
264
|
updateRenderModelTag() {
|
|
246
265
|
const t = (i) => !this.enabledModelTagSet.has(i.customID);
|
|
247
|
-
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(
|
|
266
|
+
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(C).forEach((i) => {
|
|
248
267
|
var o;
|
|
249
268
|
(o = i.model) == null || o.promise.then((n) => {
|
|
250
269
|
n.visible = this.getCurrentVisibleState(i);
|
|
@@ -254,24 +273,24 @@ class Qe extends O {
|
|
|
254
273
|
updateTagModelVisible() {
|
|
255
274
|
this.tags.forEach((t) => {
|
|
256
275
|
var e;
|
|
257
|
-
t.
|
|
276
|
+
t.mediaPlane && (t.mediaPlane.visible = this.getCurrentVisibleState(t)), (e = t.model) != null && e.object && (t.model.object.visible = this.getCurrentVisibleState(t));
|
|
258
277
|
});
|
|
259
278
|
}
|
|
260
279
|
updateTagCss3DObjectMatrix(t, e) {
|
|
261
|
-
var
|
|
262
|
-
const i = (
|
|
280
|
+
var g, v, y, M;
|
|
281
|
+
const i = (y = (v = (g = t.mergedConfig) == null ? void 0 : g.tag3DConfig) == null ? void 0 : v.ratio) != null ? y : 216e-5, o = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
|
|
263
282
|
if (!o)
|
|
264
283
|
return;
|
|
265
|
-
const n =
|
|
284
|
+
const n = C(t) ? t.data.mediaPosition : t.position;
|
|
266
285
|
e.updateWorldMatrix(!1, !1);
|
|
267
|
-
const a = e.matrixWorld, s = new
|
|
268
|
-
|
|
269
|
-
const
|
|
270
|
-
|
|
286
|
+
const a = e.matrixWorld, s = new D().fromArray(n[0]), r = new D().fromArray(n[2]), m = E(s, r).add(new D(0, 0, 5e-4)), d = new T().setPosition(m), f = new T().makeScale(i, i, i), u = new T().multiply(a).multiply(d).multiply(f);
|
|
287
|
+
u.decompose(o.position, o.quaternion, o.scale);
|
|
288
|
+
const h = o.opacityMesh;
|
|
289
|
+
h && u.decompose(h.position, h.quaternion, h.scale);
|
|
271
290
|
}
|
|
272
291
|
addMediaModelTag(t) {
|
|
273
|
-
return
|
|
274
|
-
const e = t.filter(
|
|
292
|
+
return P(this, null, function* () {
|
|
293
|
+
const e = t.filter(C).map((i) => this.loadModel(i));
|
|
275
294
|
yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
276
295
|
});
|
|
277
296
|
}
|
|
@@ -298,7 +317,7 @@ class Qe extends O {
|
|
|
298
317
|
withAnimation: this.store.visibleWithAnimation
|
|
299
318
|
}), this.filterCSS3DTag.forEach((e) => {
|
|
300
319
|
var i, o, n, a, s;
|
|
301
|
-
(a = (o = (i = e.tag3DContentSvelte) == null ? void 0 : i.
|
|
320
|
+
(a = (o = (i = e.tag3DContentSvelte) == null ? void 0 : i.css3DInstance) == null ? void 0 : o.css3DObject) == null || a.setVisible((this.state.visible && ((n = e.state) == null ? void 0 : n.visible)) !== !1), (s = e.tag3DContentSvelte) == null || s.svelteApp.$set({
|
|
302
321
|
state: this.state,
|
|
303
322
|
temporaryState: this.temporaryState,
|
|
304
323
|
withAnimation: this.store.visibleWithAnimation
|
|
@@ -313,7 +332,7 @@ class Qe extends O {
|
|
|
313
332
|
clearUnusedPanelTag() {
|
|
314
333
|
this.filter2DPointTag.forEach((t) => {
|
|
315
334
|
var e;
|
|
316
|
-
(e = t.tag3DContentSvelte) == null || e.
|
|
335
|
+
(e = t.tag3DContentSvelte) == null || e.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
|
|
317
336
|
});
|
|
318
337
|
for (const [t, e] of this.store.css3DRenderDisposer) {
|
|
319
338
|
const i = this.getTagById(t);
|
|
@@ -322,5 +341,5 @@ class Qe extends O {
|
|
|
322
341
|
}
|
|
323
342
|
}
|
|
324
343
|
export {
|
|
325
|
-
|
|
344
|
+
Xe as TagRender
|
|
326
345
|
};
|
|
@@ -6,17 +6,14 @@ import * as C from "three";
|
|
|
6
6
|
import { DefaultConfig as w } from "../tag.config.js";
|
|
7
7
|
import { anyPositionToVector3 as E, arrayPositionToVector3 as p } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
8
8
|
import { planeNormal as g } from "../utils/planeNormal.js";
|
|
9
|
-
import { tagPosition as P, getTagPosition as
|
|
10
|
-
import { normalPositionToPositions as
|
|
9
|
+
import { tagPosition as P, getTagPosition as M } from "../utils/tagPosition.js";
|
|
10
|
+
import { normalPositionToPositions as k } from "../utils/normalPositionToPositions.js";
|
|
11
11
|
import { TagCache as b } from "./TagCache.js";
|
|
12
12
|
import { writable as I } from "../../vendor/svelte/store/index.js";
|
|
13
13
|
import { isIOSWX as A } from "../utils/device.js";
|
|
14
14
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
15
15
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
16
16
|
import "@realsee/five";
|
|
17
|
-
import "hammerjs";
|
|
18
|
-
import "@tweenjs/tween.js";
|
|
19
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
20
17
|
import { isMediaPlaneTag as x, isMediaModelTag as v, isPlaneTag as V } from "../utils/tag/tagCheck.js";
|
|
21
18
|
import { DomEvents as L } from "../../shared-utils/threex/domevents/index.js";
|
|
22
19
|
import "@realsee/five/gltf-loader";
|
|
@@ -24,7 +21,7 @@ import "../../shared-utils/three/loadTexture.js";
|
|
|
24
21
|
import "../../shared-utils/three/centerPoint.js";
|
|
25
22
|
import "../../base/BasePlugin.js";
|
|
26
23
|
import "../../shared-utils/Subscribe.js";
|
|
27
|
-
import "../../
|
|
24
|
+
import "../../vendor/svelte/internal/index.js";
|
|
28
25
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
29
26
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
30
27
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -34,9 +31,7 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
|
34
31
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
35
32
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
36
33
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
37
|
-
|
|
38
|
-
import "../../vendor/svelte/internal/index.js";
|
|
39
|
-
class he extends b {
|
|
34
|
+
class le extends b {
|
|
40
35
|
constructor(e) {
|
|
41
36
|
super(e);
|
|
42
37
|
a(this, "tags", []);
|
|
@@ -96,10 +91,10 @@ class he extends b {
|
|
|
96
91
|
(e.stickType === s || s === "Any") && (e.contentType === n || n === "Any") && (i[r] = this.config.contentTypeConfig[r]);
|
|
97
92
|
}
|
|
98
93
|
if (f.length === 3) {
|
|
99
|
-
const [s = "Any", n,
|
|
94
|
+
const [s = "Any", n, m] = f;
|
|
100
95
|
if (n === "Audio" && e.contentType === "Audio") {
|
|
101
|
-
const
|
|
102
|
-
(
|
|
96
|
+
const h = e;
|
|
97
|
+
(h.stickType === s || s === "Any") && h.data.appearance === m && (i[r] = this.config.contentTypeConfig[r]);
|
|
103
98
|
}
|
|
104
99
|
}
|
|
105
100
|
});
|
|
@@ -143,10 +138,8 @@ class he extends b {
|
|
|
143
138
|
if (i.renderType === "Mesh") {
|
|
144
139
|
if (x(e))
|
|
145
140
|
if (o.length === 1) {
|
|
146
|
-
if (o[0].type === "Image")
|
|
141
|
+
if (o[0].type === "Image" || o[0].type === "Video")
|
|
147
142
|
return "Mesh";
|
|
148
|
-
if (o[0].type === "Video")
|
|
149
|
-
return "Dom";
|
|
150
143
|
} else
|
|
151
144
|
return "Dom";
|
|
152
145
|
else if (v(e))
|
|
@@ -172,8 +165,8 @@ class he extends b {
|
|
|
172
165
|
const n = P(e.position);
|
|
173
166
|
if (!n)
|
|
174
167
|
return;
|
|
175
|
-
const
|
|
176
|
-
return t.angle =
|
|
168
|
+
const m = new C.Vector3().copy(f).sub(n), h = s.angleTo(m) * 180 / Math.PI;
|
|
169
|
+
return t.angle = h, t.angle;
|
|
177
170
|
}
|
|
178
171
|
}
|
|
179
172
|
getDistance(e, i) {
|
|
@@ -188,7 +181,7 @@ class he extends b {
|
|
|
188
181
|
const f = (r = (l = this.five.work) == null ? void 0 : l.observers[o]) == null ? void 0 : r.position;
|
|
189
182
|
if (f === void 0)
|
|
190
183
|
throw new Error(`getDistance(): observerPosition is ${f}`);
|
|
191
|
-
const s =
|
|
184
|
+
const s = M(e);
|
|
192
185
|
if (!s)
|
|
193
186
|
return -1;
|
|
194
187
|
const n = f.distanceTo(s);
|
|
@@ -201,7 +194,7 @@ class he extends b {
|
|
|
201
194
|
if (v(e))
|
|
202
195
|
return e.data.mediaPosition;
|
|
203
196
|
const i = e;
|
|
204
|
-
return
|
|
197
|
+
return k(
|
|
205
198
|
this.five.camera.position,
|
|
206
199
|
p(i.position),
|
|
207
200
|
p(i.normal)
|
|
@@ -293,5 +286,5 @@ class he extends b {
|
|
|
293
286
|
}
|
|
294
287
|
}
|
|
295
288
|
export {
|
|
296
|
-
|
|
289
|
+
le as TagUtil
|
|
297
290
|
};
|
|
@@ -27,13 +27,14 @@ var f = (d, a, e) => new Promise((t, i) => {
|
|
|
27
27
|
}, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
|
|
28
28
|
r((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import { Subscribe as
|
|
30
|
+
import { Subscribe as M } from "@realsee/five";
|
|
31
31
|
import c from "object-assign-deep";
|
|
32
32
|
import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
33
|
-
import { addDebugPoints as
|
|
33
|
+
import { addDebugPoints as w } from "../utils/addDebugPoints.js";
|
|
34
34
|
import "three";
|
|
35
35
|
import "@realsee/five/gltf-loader";
|
|
36
36
|
import "../../shared-utils/three/loadTexture.js";
|
|
37
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
37
38
|
import { isMediaModelTag as v } from "../utils/tag/tagCheck.js";
|
|
38
39
|
import { waitFiveModelLoaded as I } from "../utils/actionAfterFiveModelLoad.js";
|
|
39
40
|
import { debounce as A } from "../utils/debounce.js";
|
|
@@ -69,11 +70,9 @@ import "../utils/planeNormal.js";
|
|
|
69
70
|
import "../utils/normalPositionToPositions.js";
|
|
70
71
|
import "./TagCache.js";
|
|
71
72
|
import "../../base/BasePlugin.js";
|
|
72
|
-
import "../../shared-utils/isAbsoluteURL.js";
|
|
73
73
|
import "../../vendor/svelte/store/index.js";
|
|
74
74
|
import "../../vendor/svelte/internal/index.js";
|
|
75
75
|
import "../utils/device.js";
|
|
76
|
-
import "../../shared-utils/threex/domevents/index.js";
|
|
77
76
|
import "../Components/TagContainer.js";
|
|
78
77
|
import "../Components/TagItem.js";
|
|
79
78
|
import "../Components/Tag/index.js";
|
|
@@ -145,13 +144,18 @@ import "../utils/getImageInfo.js";
|
|
|
145
144
|
import "../Components/Tag/CustomTag.js";
|
|
146
145
|
import "classnames";
|
|
147
146
|
import "../Components/Common/TagPoint.js";
|
|
148
|
-
import "../utils/model/
|
|
147
|
+
import "../utils/model/mediaPlane.js";
|
|
148
|
+
import "../../shared-utils/three/Quadrangle.js";
|
|
149
|
+
import "../../shared-utils/math/pointIsRectangle.js";
|
|
150
|
+
import "../../shared-utils/three/loadVideoTexture.js";
|
|
151
|
+
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
152
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
149
153
|
import "../../CSS3DRenderPlugin/index.js";
|
|
150
154
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
151
155
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
152
156
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
153
|
-
const D = "Dnalogel-PanoTagPlugin",
|
|
154
|
-
class
|
|
157
|
+
const D = "Dnalogel-PanoTagPlugin", si = (d) => `${D}--${d}`;
|
|
158
|
+
class oi extends k {
|
|
155
159
|
constructor(e, t) {
|
|
156
160
|
super(e);
|
|
157
161
|
p(this, "state", { enabled: !0, visible: !0 });
|
|
@@ -188,7 +192,7 @@ class ei extends k {
|
|
|
188
192
|
const i = yield this.addTag(e.tagList, t);
|
|
189
193
|
if (this.debug)
|
|
190
194
|
try {
|
|
191
|
-
|
|
195
|
+
w(this.five, this.tags);
|
|
192
196
|
} catch (r) {
|
|
193
197
|
console.error(r);
|
|
194
198
|
}
|
|
@@ -204,7 +208,7 @@ class ei extends k {
|
|
|
204
208
|
visible: void 0,
|
|
205
209
|
unfolded: !this.can("fold", o)
|
|
206
210
|
}, r.initialState),
|
|
207
|
-
hooks: new
|
|
211
|
+
hooks: new M(),
|
|
208
212
|
mergedConfig: r,
|
|
209
213
|
unfold: () => this.changeUnfoldedById(o.id, !0),
|
|
210
214
|
fold: () => this.changeUnfoldedById(o.id, !1),
|
|
@@ -324,13 +328,16 @@ class ei extends k {
|
|
|
324
328
|
this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.updateTagContainerVisible(), this.updateTagModelVisible(), this.five.needsRender = !0;
|
|
325
329
|
}
|
|
326
330
|
handleEnable() {
|
|
327
|
-
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.
|
|
331
|
+
this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.group.traverse((e) => {
|
|
332
|
+
var t;
|
|
333
|
+
(t = e == null ? void 0 : e.updateTagCss3DObjectMatrix) == null || t.call(e);
|
|
334
|
+
}), this.updateRenderAllTags(), this.five.needsRender = !0;
|
|
328
335
|
}
|
|
329
336
|
handleDisable() {
|
|
330
337
|
var e, t, i;
|
|
331
338
|
this.pauseCurrentMedia(), this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), this.five.scene.remove(this.group), (i = this.TagContainerSvelte) == null || i.$set({ tags: [] }), this.filterCSS3DTag.forEach((s) => {
|
|
332
339
|
var o;
|
|
333
|
-
(o = s.tag3DContentSvelte) == null || o.
|
|
340
|
+
(o = s.tag3DContentSvelte) == null || o.dispose(), s.tag3DContentSvelte = void 0;
|
|
334
341
|
}), this.five.needsRender = !0;
|
|
335
342
|
}
|
|
336
343
|
addEventListener() {
|
|
@@ -415,11 +422,11 @@ class ei extends k {
|
|
|
415
422
|
}
|
|
416
423
|
changeTagMode(e, t) {
|
|
417
424
|
var i, s, o, r, n, h;
|
|
418
|
-
((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((r = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.
|
|
425
|
+
((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((r = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : r.mode) !== t && ((n = e.config) != null && n.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((g) => g == null ? void 0 : g()), e.tag3DContentSvelte = void 0);
|
|
419
426
|
}
|
|
420
427
|
}
|
|
421
428
|
export {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
429
|
+
oi as PanoTagPluginController,
|
|
430
|
+
oi as default,
|
|
431
|
+
si as pluginFlag
|
|
425
432
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./controller/index.js";
|
|
2
|
-
import { default as
|
|
3
|
-
import { ContentType as
|
|
4
|
-
import { DimensionType as
|
|
2
|
+
import { default as kr, pluginFlag as qr } from "./controller/index.js";
|
|
3
|
+
import { ContentType as zr } from "./typings/tag/TagData.js";
|
|
4
|
+
import { DimensionType as Br } from "./typings/tag/Utils.js";
|
|
5
5
|
import "@realsee/five";
|
|
6
6
|
import "object-assign-deep";
|
|
7
7
|
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
@@ -9,6 +9,7 @@ import "three";
|
|
|
9
9
|
import "./utils/addDebugPoints.js";
|
|
10
10
|
import "@realsee/five/gltf-loader";
|
|
11
11
|
import "../shared-utils/three/loadTexture.js";
|
|
12
|
+
import "../shared-utils/threex/domevents/index.js";
|
|
12
13
|
import "./utils/tag/tagCheck.js";
|
|
13
14
|
import "./utils/actionAfterFiveModelLoad.js";
|
|
14
15
|
import "./utils/debounce.js";
|
|
@@ -44,11 +45,9 @@ import "./utils/planeNormal.js";
|
|
|
44
45
|
import "./utils/normalPositionToPositions.js";
|
|
45
46
|
import "./controller/TagCache.js";
|
|
46
47
|
import "../base/BasePlugin.js";
|
|
47
|
-
import "../shared-utils/isAbsoluteURL.js";
|
|
48
48
|
import "../vendor/svelte/store/index.js";
|
|
49
49
|
import "../vendor/svelte/internal/index.js";
|
|
50
50
|
import "./utils/device.js";
|
|
51
|
-
import "../shared-utils/threex/domevents/index.js";
|
|
52
51
|
import "./Components/TagContainer.js";
|
|
53
52
|
import "./Components/TagItem.js";
|
|
54
53
|
import "./Components/Tag/index.js";
|
|
@@ -120,17 +119,22 @@ import "./utils/getImageInfo.js";
|
|
|
120
119
|
import "./Components/Tag/CustomTag.js";
|
|
121
120
|
import "classnames";
|
|
122
121
|
import "./Components/Common/TagPoint.js";
|
|
123
|
-
import "./utils/model/
|
|
122
|
+
import "./utils/model/mediaPlane.js";
|
|
123
|
+
import "../shared-utils/three/Quadrangle.js";
|
|
124
|
+
import "../shared-utils/math/pointIsRectangle.js";
|
|
125
|
+
import "../shared-utils/three/loadVideoTexture.js";
|
|
126
|
+
import "../shared-utils/three/getPositionsByObjectFit.js";
|
|
127
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
124
128
|
import "../CSS3DRenderPlugin/index.js";
|
|
125
129
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
126
130
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
127
131
|
import "../shared-utils/three/GLTFLoader.js";
|
|
128
|
-
const
|
|
132
|
+
const br = (o, r) => new t(o, r);
|
|
129
133
|
export {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
zr as ContentType,
|
|
135
|
+
Br as DimensionType,
|
|
136
|
+
br as PanoTagPlugin,
|
|
137
|
+
kr as PanoTagPluginController,
|
|
138
|
+
br as default,
|
|
139
|
+
qr as pluginFlag
|
|
136
140
|
};
|
|
@@ -8,7 +8,7 @@ import type { Subscribe } from '@realsee/five';
|
|
|
8
8
|
import type { TagId, StickType, TagGLTFObject } from './tag/Utils';
|
|
9
9
|
import type { TagContentType } from './tag/TagData';
|
|
10
10
|
import type { Tag } from './tag/Tag';
|
|
11
|
-
import type ImagePlane from '../utils/model/
|
|
11
|
+
import type { ImagePlane, VideoPlane } from '../utils/model/mediaPlane';
|
|
12
12
|
declare type NonNullable<T> = T extends null | undefined | void ? never : T;
|
|
13
13
|
export declare type TagHooks = InstanceType<typeof PanoTagPluginController>['hooks'];
|
|
14
14
|
export interface State extends BasePlugin.State {
|
|
@@ -89,11 +89,14 @@ export declare type TagElement<C extends TagContentType = TagContentType, S exte
|
|
|
89
89
|
};
|
|
90
90
|
tag3DContentSvelte: {
|
|
91
91
|
svelteApp: TagContentSvelte;
|
|
92
|
+
/** @deprecated rename to css3DInstance */
|
|
92
93
|
domContainer: NonNullable<Create3DDomContainerReturnType>;
|
|
94
|
+
css3DInstance: NonNullable<Create3DDomContainerReturnType>;
|
|
93
95
|
initialNormal: Vector3;
|
|
94
96
|
currentNormal: Vector3;
|
|
97
|
+
dispose: () => void;
|
|
95
98
|
};
|
|
96
|
-
|
|
99
|
+
mediaPlane: ImagePlane | VideoPlane;
|
|
97
100
|
model: {
|
|
98
101
|
promise: Promise<TagGLTFObject>;
|
|
99
102
|
object?: TagGLTFObject;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { ContentType as
|
|
2
|
-
import { DimensionType as
|
|
1
|
+
import { ContentType as n } from "./tag/TagData.js";
|
|
2
|
+
import { DimensionType as x } from "./tag/Utils.js";
|
|
3
3
|
import "@realsee/five/gltf-loader";
|
|
4
4
|
import "three";
|
|
5
5
|
import "../../shared-utils/three/loadTexture.js";
|
|
6
|
+
import "@realsee/five";
|
|
7
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
6
8
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
n as ContentType,
|
|
10
|
+
x as DimensionType
|
|
9
11
|
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { State as FiveState } from '@realsee/five';
|
|
2
2
|
import type { TagConfig } from './TagConfig';
|
|
3
3
|
import { ContentTypeMap, ContentType, TagContentType } from './TagData';
|
|
4
|
-
import type { ContentTypeConfigKey, Position, TagId, StickType, TagStyle } from './Utils';
|
|
4
|
+
import type { ContentTypeConfigKey, Position, TagId, StickType, TagStyle, ElementRenderer } from './Utils';
|
|
5
5
|
export type { ContentTypeMap, TagContentType };
|
|
6
6
|
export { ContentType };
|
|
7
|
-
/** 返回一个销毁函数 */
|
|
8
|
-
declare type ElementRenderer = (container: HTMLElement) => () => void;
|
|
9
7
|
export interface Tags {
|
|
10
8
|
version?: string;
|
|
11
9
|
/** tag配置 > 按type配置 > 全局配置 */
|
|
@@ -2,7 +2,7 @@ import { GLTFObject } from '@realsee/five/gltf-loader';
|
|
|
2
2
|
import { Group } from 'three';
|
|
3
3
|
import type { Tag } from './Tag';
|
|
4
4
|
import type { TagContentType } from './TagData';
|
|
5
|
-
import ImagePlane from '../../utils/model/
|
|
5
|
+
import { ImagePlane } from '../../utils/model/mediaPlane';
|
|
6
6
|
export declare type TagId = string | number;
|
|
7
7
|
export declare type ArrayPosition = number[];
|
|
8
8
|
export declare type Position = ArrayPosition;
|
|
@@ -42,7 +42,10 @@ export interface TagStyle {
|
|
|
42
42
|
export declare type TagGLTFObject = GLTFObject & {
|
|
43
43
|
customID: number | string;
|
|
44
44
|
isTagModel: boolean;
|
|
45
|
+
updateTagCss3DObjectMatrix?: () => void;
|
|
45
46
|
};
|
|
47
|
+
/** 返回一个销毁函数 */
|
|
48
|
+
export declare type ElementRenderer = (container: HTMLElement) => () => void;
|
|
46
49
|
export interface TagObjectGroup extends Group {
|
|
47
50
|
children: Array<TagGLTFObjectGroup>;
|
|
48
51
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import "@realsee/five/gltf-loader";
|
|
2
2
|
import "three";
|
|
3
3
|
import "../../../shared-utils/three/loadTexture.js";
|
|
4
|
+
import "@realsee/five";
|
|
5
|
+
import "../../../shared-utils/threex/domevents/index.js";
|
|
4
6
|
var t = /* @__PURE__ */ ((r) => (r.Two = "2D", r.Three = "3D", r))(t || {});
|
|
5
7
|
export {
|
|
6
8
|
t as DimensionType
|