@realsee/dnalogel 2.18.1-2 → 2.18.2
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/GuideLinePlugin/GuideLineModeItem.d.ts +2 -2
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +46 -12
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +1 -0
- package/dist/index.cjs.js +50 -50
- package/dist/index.js +2730 -2699
- package/dist/index.umd.js +42 -42
- package/dist/shared-utils/device.d.ts +6 -0
- package/dist/shared-utils/three/loadVideoTexture.d.ts +1 -1
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +30 -30
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +22 -22
- package/docs/classes/PanoMeasurePluginModel.html +21 -21
- package/docs/classes/PanoMeasurePluginPoint.html +13 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
- package/docs/classes/PanoTagPluginController.html +45 -45
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +11 -11
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.Magnifier.html +16 -16
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +18 -18
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/Rotation.html +7 -7
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +13 -13
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +12 -12
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelElement.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/PlaneTagElement.html +4 -4
- package/docs/types/Point2DElement.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DElement.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagElement.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagIconSize.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/CruisePlugin/Controller.js +46 -46
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem/index.js +36 -36
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +33 -31
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +2 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +118 -118
- package/libs/PanoTagPlugin/controller/TagComputer.js +15 -13
- package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/tag.config.js +3 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +46 -12
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +34 -30
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +1 -1
- package/libs/shared-utils/device.d.ts +6 -0
- package/libs/shared-utils/device.js +8 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/loadVideoTexture.d.ts +1 -1
- package/libs/shared-utils/three/loadVideoTexture.js +28 -8
- package/package.json +1 -2
- package/dist/PanoTagPlugin/utils/device.d.ts +0 -1
- package/libs/PanoTagPlugin/utils/device.d.ts +0 -1
- package/libs/PanoTagPlugin/utils/device.js +0 -4
|
@@ -7,31 +7,59 @@ import type { PartialDeep } from 'type-fest';
|
|
|
7
7
|
export interface TagConfig<C extends TagContentType = TagContentType, S extends StickType = StickType> {
|
|
8
8
|
/** 显示/隐藏配置 */
|
|
9
9
|
visibleConfig?: {
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* @description 保持可见/不可见, 设置后visibleConfig下所有其他配置都不生效
|
|
12
|
+
* @default undefined
|
|
13
|
+
*/
|
|
11
14
|
keep?: 'visible' | 'hidden';
|
|
12
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* @description 在哪些 five mode 下可见
|
|
17
|
+
* @default ['Panorama']
|
|
18
|
+
*/
|
|
13
19
|
visibleFiveMode?: Mode[];
|
|
14
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* @description 当 visibleFiveMode 包含 'Floorplan' 或者 'MapView' 时,是否仅在当前楼层模型下可见
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
15
24
|
followModelVisibility?: boolean;
|
|
16
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* @description 走点时不隐藏
|
|
27
|
+
* @default false
|
|
28
|
+
*/
|
|
17
29
|
alwaysShowWhenMovePano?: true;
|
|
18
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* @description min-max米内显示 | 无距离限制
|
|
32
|
+
* @default 'unLimited'
|
|
33
|
+
*/
|
|
19
34
|
visibleDistance?: MinMax | 'unLimited';
|
|
20
35
|
/**
|
|
21
36
|
* @description: 限制xx点位上可见,默认为all
|
|
22
37
|
* @param all: 不限制
|
|
23
38
|
* @param current: 仅当前点位可见
|
|
24
39
|
* @param: number[] 仅指定点位可见
|
|
40
|
+
* @default 'all'
|
|
25
41
|
*/
|
|
26
42
|
visiblePanoIndex?: 'all' | 'current' | number[];
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
|
|
43
|
+
/**
|
|
44
|
+
* @description 碰撞检测配置,默认开启
|
|
45
|
+
* @default true
|
|
46
|
+
*/
|
|
47
|
+
intersectRaycaster?: boolean | {
|
|
48
|
+
/**
|
|
49
|
+
* @description 是否开启碰撞检测
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
30
52
|
enabled?: boolean;
|
|
31
|
-
/**
|
|
53
|
+
/**
|
|
54
|
+
* @description 碰撞检测的允许误差
|
|
55
|
+
* @default 0.01
|
|
56
|
+
*/
|
|
32
57
|
distanceAccuracy?: number;
|
|
33
58
|
};
|
|
34
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* @description 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角,范围内自动展开,范围外自动收起
|
|
61
|
+
* @default undefined
|
|
62
|
+
*/
|
|
35
63
|
angleRange?: MinMax;
|
|
36
64
|
} | ((five: Five, tagState: {
|
|
37
65
|
tag: Tag<C, S>;
|
|
@@ -44,16 +72,22 @@ export interface TagConfig<C extends TagContentType = TagContentType, S extends
|
|
|
44
72
|
unfoldedConfig?: {
|
|
45
73
|
/** 保持展开/收起,设置后unfoldedConfig下所有其他配置都不生效 */
|
|
46
74
|
keep?: 'unfolded' | 'folded';
|
|
47
|
-
/**
|
|
48
|
-
|
|
75
|
+
/**
|
|
76
|
+
* @description 划动到不可见状态时,自动收起,disableFold: true 的标签不受此参数影响
|
|
77
|
+
* @note 部分标签是无法收起的
|
|
78
|
+
* @default true
|
|
79
|
+
*/
|
|
80
|
+
autoFoldWhenHide?: false;
|
|
49
81
|
/**
|
|
50
82
|
* @deprecated replace by { keep: 'folded' }
|
|
51
83
|
* @deprecated 部分标签是无法打开的
|
|
84
|
+
* @default undefined
|
|
52
85
|
*/
|
|
53
86
|
disableUnfold?: true;
|
|
54
87
|
/**
|
|
55
88
|
* @deprecated replace by { keep: 'unfolded' }
|
|
56
89
|
* @deprecated 部分标签是无法收起的
|
|
90
|
+
* @default undefined
|
|
57
91
|
*/
|
|
58
92
|
disableFold?: true;
|
|
59
93
|
/** min-max米内自动展开,否则收起 */
|
|
@@ -51,6 +51,7 @@ declare class VideoPlane extends MediaPlane {
|
|
|
51
51
|
pause(): void;
|
|
52
52
|
initialDomEvents(domEvents: DomEvents): void;
|
|
53
53
|
initialRenderHooks(func: (render: () => void) => () => any): void;
|
|
54
|
+
private showPlayUI;
|
|
54
55
|
private showPauseUI;
|
|
55
56
|
private render;
|
|
56
57
|
private addAutoBindEventListener;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var o = (c, a, e) => (
|
|
1
|
+
var b = Object.defineProperty;
|
|
2
|
+
var x = (c, a, e) => a in c ? b(c, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[a] = e;
|
|
3
|
+
var o = (c, a, e) => (x(c, typeof a != "symbol" ? a + "" : a, e), e);
|
|
4
4
|
var u = (c, a, e) => new Promise((t, s) => {
|
|
5
5
|
var i = (n) => {
|
|
6
6
|
try {
|
|
@@ -17,17 +17,18 @@ var u = (c, a, e) => new Promise((t, s) => {
|
|
|
17
17
|
}, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(i, d);
|
|
18
18
|
r((e = e.apply(c, a)).next());
|
|
19
19
|
});
|
|
20
|
-
import * as
|
|
20
|
+
import * as l from "three";
|
|
21
21
|
import { Vector3 as g } from "three";
|
|
22
|
-
import { centerPoint as
|
|
23
|
-
import { loadTexture as
|
|
22
|
+
import { centerPoint as L } from "../../../shared-utils/three/centerPoint.js";
|
|
23
|
+
import { loadTexture as T } from "../../../shared-utils/three/loadTexture.js";
|
|
24
24
|
import { QuadrangleGeometry as V, QuadrangleMesh as y } from "../../../shared-utils/three/Quadrangle.js";
|
|
25
25
|
import { getVideoTexture as B } from "../../../shared-utils/three/loadVideoTexture.js";
|
|
26
|
-
import { Image_Play_Icon_With_Text as C, Image_Play_Icon as
|
|
26
|
+
import { Image_Play_Icon_With_Text as C, Image_Play_Icon as I } from "../../Assets/Icon.js";
|
|
27
27
|
import { getPositionsByObjectFit as p } from "../../../shared-utils/three/getPositionsByObjectFit.js";
|
|
28
28
|
import { FragmentTransparencyMaterial as F } from "../../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
29
29
|
import "../../../shared-utils/math/pointIsRectangle.js";
|
|
30
|
-
|
|
30
|
+
import "../../../shared-utils/device.js";
|
|
31
|
+
class P extends l.Mesh {
|
|
31
32
|
constructor() {
|
|
32
33
|
super(...arguments);
|
|
33
34
|
o(this, "name", "MediaPlane");
|
|
@@ -38,20 +39,20 @@ class b extends M.Mesh {
|
|
|
38
39
|
return e !== null && e.remove(this), this;
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
|
-
class
|
|
42
|
+
class z extends P {
|
|
42
43
|
constructor(e, t, s) {
|
|
43
44
|
super();
|
|
44
45
|
o(this, "name", "PanoTagPluginImagePlane");
|
|
45
|
-
this.src = e,
|
|
46
|
+
this.src = e, T(e).then((i) => {
|
|
46
47
|
var m;
|
|
47
|
-
const d = new URL(e, location.href).pathname.endsWith(".png"), r = new
|
|
48
|
-
this.position.copy(h), this.geometry =
|
|
48
|
+
const d = new URL(e, location.href).pathname.endsWith(".png"), r = new l.MeshBasicMaterial({ map: i, transparent: d }), n = p((m = s == null ? void 0 : s.objectFit) != null ? m : "contain", t, i.image.width / i.image.height), h = L(...n), v = n.map((f) => f.clone().sub(h)), M = new V(v);
|
|
49
|
+
this.position.copy(h), this.geometry = M, this.material = r;
|
|
49
50
|
}).catch((i) => {
|
|
50
|
-
console.error(
|
|
51
|
+
console.error(`Imageplane error ${i}`);
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
|
-
class
|
|
55
|
+
class G extends P {
|
|
55
56
|
// eslint-disable-next-line max-params
|
|
56
57
|
constructor(e, t, s) {
|
|
57
58
|
const { videoCoverSrc: i, objectFit: d = "contain", playButton: r = "withText", paused: n = !0, videoTextureMap: h, ImageTextureMap: v } = s != null ? s : {};
|
|
@@ -72,24 +73,24 @@ class z extends b {
|
|
|
72
73
|
o(this, "buttonMesh");
|
|
73
74
|
o(this, "videoTextureMap");
|
|
74
75
|
o(this, "ImageTextureMap");
|
|
75
|
-
this.cornerPoints = t, this.src = e, this.buttonSrc = (() => r === "withText" ? C : r === "withoutText" ?
|
|
76
|
+
this.cornerPoints = t, this.src = e, this.buttonSrc = (() => r === "withText" ? C : r === "withoutText" ? I : typeof r == "string" ? r : I)(), this.videoCoverSrc = i, this.objectFit = d, this.videoTextureMap = h, this.ImageTextureMap = v, this.position.copy(L(...t)), this.videoCoverSrc && n ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => {
|
|
76
77
|
n ? this.addButtonMesh() : this.play(!0);
|
|
77
78
|
}), this.addEventListener("removed", () => {
|
|
78
79
|
this.remove(...this.children);
|
|
79
80
|
}), this.addEventListener("dispose", () => {
|
|
80
|
-
var
|
|
81
|
-
this.domEventsListenerTemporaryList = [], (
|
|
81
|
+
var M;
|
|
82
|
+
this.domEventsListenerTemporaryList = [], (M = this.disposers) == null || M.forEach((m) => m == null ? void 0 : m());
|
|
82
83
|
});
|
|
83
84
|
}
|
|
84
85
|
play(e = !1) {
|
|
85
86
|
return u(this, null, function* () {
|
|
86
|
-
this.videoMesh || (yield this.addVideoMesh()), this.
|
|
87
|
-
console.error(t);
|
|
87
|
+
this.videoMesh || (yield this.addVideoMesh()), this.showPlayUI(), this.videoInstance.paused && this.videoInstance.play().then(() => this.showPlayUI()).catch((t) => {
|
|
88
|
+
this.pause(), console.error("play error", t);
|
|
88
89
|
}), this.videoInstance.muted = e, this.render();
|
|
89
90
|
});
|
|
90
91
|
}
|
|
91
92
|
pause() {
|
|
92
|
-
this.videoInstance && (this.
|
|
93
|
+
this.videoInstance && (this.videoInstance.pause(), this.showPauseUI().then(() => this.render()));
|
|
93
94
|
}
|
|
94
95
|
initialDomEvents(e) {
|
|
95
96
|
this.domEvents || (this.domEvents = e, this.domEventsListenerTemporaryList.forEach((t) => this.addDomEventListener(...t)), this.domEventsListenerTemporaryList = []);
|
|
@@ -101,9 +102,12 @@ class z extends b {
|
|
|
101
102
|
});
|
|
102
103
|
this.disposers.push(() => s);
|
|
103
104
|
}
|
|
105
|
+
showPlayUI() {
|
|
106
|
+
this.coverMesh && (this.coverMesh.visible = !1), this.remove(this.buttonMesh), this.videoMesh.visible = !0;
|
|
107
|
+
}
|
|
104
108
|
showPauseUI() {
|
|
105
109
|
return u(this, null, function* () {
|
|
106
|
-
this.coverMesh ? (this.coverMesh.visible = !0, this.videoMesh && (this.videoMesh.visible = !1)) : (yield this.addCoverMesh(), this.coverMesh && (this.videoMesh.visible = !1)), this.addButtonMesh()
|
|
110
|
+
this.coverMesh ? (this.coverMesh.visible = !0, this.videoMesh && (this.videoMesh.visible = !1)) : (yield this.addCoverMesh(), this.coverMesh && (this.videoMesh.visible = !1)), this.addButtonMesh().then(() => this.render());
|
|
107
111
|
});
|
|
108
112
|
}
|
|
109
113
|
render() {
|
|
@@ -141,7 +145,7 @@ class z extends b {
|
|
|
141
145
|
const t = yield this.getImageTexture(this.videoCoverSrc);
|
|
142
146
|
if (!t)
|
|
143
147
|
return;
|
|
144
|
-
const s = new
|
|
148
|
+
const s = new l.MeshBasicMaterial({ transparent: !1, map: t }), i = p(this.objectFit, this.cornerPoints, t.image.width / t.image.height), d = new y(i, s);
|
|
145
149
|
return d.position.copy(new g(0, 0, 0)), d.name = "videoCoverMesh", d;
|
|
146
150
|
}))();
|
|
147
151
|
return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
|
|
@@ -156,7 +160,7 @@ class z extends b {
|
|
|
156
160
|
return this.videoMesh;
|
|
157
161
|
if (!this.src)
|
|
158
162
|
return;
|
|
159
|
-
const s = this.getVideoTexture(this.src), i = new
|
|
163
|
+
const s = this.getVideoTexture(this.src), i = new l.MeshBasicMaterial({ transparent: !1, map: s }), d = yield new Promise((n) => {
|
|
160
164
|
s.metadataLoaded ? n(p(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight)) : s.addEventListener(
|
|
161
165
|
"videoLoaded",
|
|
162
166
|
() => n(p(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight))
|
|
@@ -182,13 +186,13 @@ class z extends b {
|
|
|
182
186
|
if (this.children.includes(this.buttonMesh))
|
|
183
187
|
return;
|
|
184
188
|
const e = yield (() => u(this, null, function* () {
|
|
185
|
-
var m, f, E,
|
|
189
|
+
var m, f, E, w;
|
|
186
190
|
if (this.buttonMesh)
|
|
187
191
|
return this.buttonMesh;
|
|
188
|
-
const t = (f = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? f : 1 / 0, s = (
|
|
192
|
+
const t = (f = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? f : 1 / 0, s = (w = (E = this.coverMesh) == null ? void 0 : E.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? w : 1 / 0, i = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), r = Math.min(t, s, i) / i * 0.3, n = yield this.getImageTexture(this.buttonSrc), h = p("contain", this.cornerPoints, n.image.width / n.image.height), v = new y(h, new F(n));
|
|
189
193
|
v.position.copy(new g(0, 0, 0)), v.name = "buttonMesh", v.scale.set(r, r, r), this.addAutoBindEventListener(v, "click", () => this.play());
|
|
190
|
-
const
|
|
191
|
-
return v.position.add(
|
|
194
|
+
const M = new l.Vector3().crossVectors(new l.Vector3().subVectors(h[0], h[1]), new l.Vector3().subVectors(h[0], h[3])).normalize().multiplyScalar(1e-4);
|
|
195
|
+
return v.position.add(M), v;
|
|
192
196
|
}))();
|
|
193
197
|
return this.children.includes(this.buttonMesh) || (this.add(e), this.buttonMesh = e), e;
|
|
194
198
|
});
|
|
@@ -198,7 +202,7 @@ class z extends b {
|
|
|
198
202
|
var s, i;
|
|
199
203
|
if ((s = this.ImageTextureMap) != null && s.has(e))
|
|
200
204
|
return this.ImageTextureMap.get(e);
|
|
201
|
-
const t = yield
|
|
205
|
+
const t = yield T(e);
|
|
202
206
|
return (i = this.ImageTextureMap) == null || i.set(e, t), t;
|
|
203
207
|
});
|
|
204
208
|
}
|
|
@@ -211,6 +215,6 @@ class z extends b {
|
|
|
211
215
|
}
|
|
212
216
|
}
|
|
213
217
|
export {
|
|
214
|
-
|
|
215
|
-
|
|
218
|
+
z as ImagePlane,
|
|
219
|
+
G as VideoPlane
|
|
216
220
|
};
|
package/libs/base/BasePlugin.js
CHANGED
package/libs/index.js
CHANGED
|
@@ -244,7 +244,7 @@ import "./PanoTagPlugin/tag.config.js";
|
|
|
244
244
|
import "./PanoTagPlugin/utils/planeNormal.js";
|
|
245
245
|
import "./PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
246
246
|
import "./PanoTagPlugin/controller/TagCache.js";
|
|
247
|
-
import "./
|
|
247
|
+
import "./shared-utils/device.js";
|
|
248
248
|
import "./PanoTagPlugin/utils/model/mediaPlane.js";
|
|
249
249
|
import "./shared-utils/three/Quadrangle.js";
|
|
250
250
|
import "./shared-utils/math/pointIsRectangle.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const e = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1;
|
|
2
|
+
navigator.userAgent.toLowerCase().indexOf("android");
|
|
3
|
+
const o = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, n = e && o;
|
|
4
|
+
export {
|
|
5
|
+
e as isIOS,
|
|
6
|
+
n as isIOSWX,
|
|
7
|
+
o as isWX
|
|
8
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.info(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv2.18.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv2.18.2",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
|
@@ -3,7 +3,7 @@ import { type Overwrite } from '../../typings/utils.type';
|
|
|
3
3
|
export default function loadVideoTexture(src: string, videoElement?: HTMLVideoElement): Promise<Overwrite<THREE.VideoTexture, {
|
|
4
4
|
image: HTMLVideoElement;
|
|
5
5
|
}>>;
|
|
6
|
-
export declare function getVideoTexture(src: string, videoElement?: HTMLVideoElement
|
|
6
|
+
export declare function getVideoTexture(src: string, videoElement?: HTMLVideoElement): Overwrite<THREE.VideoTexture, {
|
|
7
7
|
image: HTMLVideoElement;
|
|
8
8
|
metadataLoaded: boolean;
|
|
9
9
|
}>;
|
|
@@ -1,12 +1,32 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as a from "three";
|
|
2
|
+
import { isWX as d, isIOS as s } from "../device.js";
|
|
3
|
+
function m(u, r) {
|
|
4
|
+
let n = !d;
|
|
5
|
+
const e = r != null ? r : document.createElement("video");
|
|
4
6
|
e.preload = "metadata", e.crossOrigin = "anonymous", e.muted = !0, e.loop = !0, e.playsInline = !0, e.autoplay = !0;
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
const t = new a.VideoTexture(e);
|
|
8
|
+
t.minFilter = a.LinearFilter, t.magFilter = a.LinearFilter, t.encoding = a.sRGBEncoding, t.metadataLoaded = !1, e.src = u;
|
|
9
|
+
const o = () => {
|
|
10
|
+
t.metadataLoaded || (t.dispatchEvent({ type: "videoLoaded" }), t.metadataLoaded = !0);
|
|
11
|
+
};
|
|
12
|
+
if (d || (e.onloadedmetadata = () => {
|
|
13
|
+
o();
|
|
14
|
+
}), d) {
|
|
15
|
+
const i = () => {
|
|
16
|
+
if (!n) {
|
|
17
|
+
if (!e.paused) {
|
|
18
|
+
o();
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
n = !0, e.muted = !0, e.play().then(() => {
|
|
22
|
+
e.pause(), e.currentTime = 0, o();
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
document.addEventListener("click", i, { once: !0 }), s && document.addEventListener("touchstart", i, { once: !0 });
|
|
27
|
+
}
|
|
28
|
+
return t;
|
|
9
29
|
}
|
|
10
30
|
export {
|
|
11
|
-
|
|
31
|
+
m as getVideoTexture
|
|
12
32
|
};
|
package/package.json
CHANGED
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
"module": "./libs/index.js",
|
|
5
5
|
"types": "./libs/index.d.ts",
|
|
6
6
|
"author": "REALSEE-DEVELOPER",
|
|
7
|
-
"type": "module",
|
|
8
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
9
8
|
"description": "如视 VR 看房插件合集",
|
|
10
9
|
"private": false,
|
|
11
|
-
"version": "2.18.
|
|
10
|
+
"version": "2.18.2",
|
|
12
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
13
12
|
"scripts": {
|
|
14
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isIOSWX: boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isIOSWX: boolean;
|