@realsee/dnalogel 2.18.4 → 2.19.0-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/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +3 -0
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +12 -2
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +3 -1
- package/dist/index.cjs.js +22 -22
- package/dist/index.js +5169 -5143
- package/dist/index.umd.js +24 -24
- package/docs/assets/search.js +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 +55 -55
- 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 +27 -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 +16 -16
- 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 +23 -11
- 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 +22 -10
- 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 +5 -5
- 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/PanoTagPlugin/Components/Common/TagPoint.js +3 -3
- package/libs/PanoTagPlugin/controller/TagComputer.js +9 -9
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +97 -93
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +17 -17
- package/libs/PanoTagPlugin/controller/index.js +127 -109
- package/libs/PanoTagPlugin/index.js +12 -10
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +3 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +12 -2
- package/libs/PanoTagPlugin/typings/tag/TagData.js +1 -1
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +3 -1
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +13 -5
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.19.0-0</title><meta name="description" content="Documentation for 如视看房插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.19.0-0</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-content">
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<li class="tsd-parameter">
|
|
25
25
|
<h5><span class="tsd-kind-property">version</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div><aside class="tsd-sources">
|
|
26
26
|
<ul>
|
|
27
|
-
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/
|
|
27
|
+
<li>Defined in <a href="https://github.com/realsee-developer/dnalogel/blob/9934704/plugins/src/ModelRoomLabelPlugin/index.ts#L9">plugins/src/ModelRoomLabelPlugin/index.ts:9</a></li></ul></aside></div>
|
|
28
28
|
<div class="col-sidebar">
|
|
29
29
|
<div class="page-menu">
|
|
30
30
|
<div class="tsd-navigation settings">
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<div class="tsd-theme-toggle">
|
|
39
39
|
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
|
|
40
40
|
<div class="site-menu">
|
|
41
|
-
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4-path"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)" id="icon-4-text"></path></svg><span>如视看房插件合集 -<wbr/> v2.
|
|
41
|
+
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4-path"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)" id="icon-4-text"></path></svg><span>如视看房插件合集 -<wbr/> v2.19.0-<wbr/>0</span></a>
|
|
42
42
|
<ul class="tsd-small-nested-navigation">
|
|
43
43
|
<li>
|
|
44
44
|
<details class="tsd-index-accordion" data-key="CruisePluginTypes"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg><a href="../modules/CruisePluginTypes.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4-path"></use><use href="#icon-4-text"></use></svg><span>Cruise<wbr/>Plugin<wbr/>Types</span></a></summary>
|
|
@@ -128,14 +128,14 @@ function V(t, n, a) {
|
|
|
128
128
|
const w = G("hooks");
|
|
129
129
|
let { tag: o } = n, i, l = !1;
|
|
130
130
|
const g = () => {
|
|
131
|
-
|
|
131
|
+
i !== void 0 && clearTimeout(i), l = !0, i = setTimeout(
|
|
132
132
|
() => {
|
|
133
133
|
l = !1;
|
|
134
134
|
},
|
|
135
135
|
800
|
|
136
|
-
)
|
|
136
|
+
);
|
|
137
137
|
}, k = (r) => {
|
|
138
|
-
|
|
138
|
+
l || w.emit("click", { event: r, target: "TagPoint", tag: o });
|
|
139
139
|
}, e = (() => o.contentType === "Text" && o.data.appearance === "plane" ? 500 : 800)();
|
|
140
140
|
function s(r) {
|
|
141
141
|
H.call(this, t, r);
|
|
@@ -2,17 +2,17 @@ var M = Object.defineProperty, U = Object.defineProperties;
|
|
|
2
2
|
var R = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
4
|
var B = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var g = (c, l, e) => l in c ? M(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e, x = (c, l) => {
|
|
6
6
|
for (var e in l || (l = {}))
|
|
7
|
-
B.call(l, e) &&
|
|
7
|
+
B.call(l, e) && g(c, e, l[e]);
|
|
8
8
|
if (P)
|
|
9
9
|
for (var e of P(l))
|
|
10
|
-
C.call(l, e) &&
|
|
10
|
+
C.call(l, e) && g(c, e, l[e]);
|
|
11
11
|
return c;
|
|
12
12
|
}, I = (c, l) => U(c, R(l));
|
|
13
|
-
var T = (c, l, e) => (
|
|
13
|
+
var T = (c, l, e) => (g(c, typeof l != "symbol" ? l + "" : l, e), e);
|
|
14
14
|
import * as D from "three";
|
|
15
|
-
import {
|
|
15
|
+
import { is3DTag as j, isMediaModelTag as y } from "../utils/tag/tagCheck.js";
|
|
16
16
|
import { tagPosition as V, getTagPosition as k } from "../utils/tagPosition.js";
|
|
17
17
|
import { checkRange as h } from "../utils/checkRange.js";
|
|
18
18
|
import "hammerjs";
|
|
@@ -65,7 +65,7 @@ class Ue extends $ {
|
|
|
65
65
|
*/
|
|
66
66
|
getVisibleByPanoIndex(e, t) {
|
|
67
67
|
const s = this.getCache({ panoIndex: t, id: e.id }), n = t != null ? t : this.five.getCurrentState().panoIndex;
|
|
68
|
-
if (
|
|
68
|
+
if (e.stickType === "Model")
|
|
69
69
|
return !0;
|
|
70
70
|
if (s.visible !== void 0)
|
|
71
71
|
return s.visible;
|
|
@@ -270,7 +270,7 @@ class Ue extends $ {
|
|
|
270
270
|
const e = this.five.getCurrentState().mode;
|
|
271
271
|
this.tags.forEach((t) => {
|
|
272
272
|
var n;
|
|
273
|
-
if (!
|
|
273
|
+
if (!y(t))
|
|
274
274
|
return;
|
|
275
275
|
if (!((n = t.model) != null && n.object)) {
|
|
276
276
|
t.mediaVisible = !1;
|
|
@@ -306,9 +306,9 @@ class Ue extends $ {
|
|
|
306
306
|
getTagEnableByIntersect(e, t) {
|
|
307
307
|
var u, v, r;
|
|
308
308
|
const s = (u = this.getTagConfig(e).visibleConfig) != null ? u : {}, n = this.getDistance(e), [i] = this.five.model.intersectRaycaster(t), o = (() => {
|
|
309
|
-
if (!
|
|
309
|
+
if (!y(e))
|
|
310
310
|
return;
|
|
311
|
-
const a = this.tags.filter(
|
|
311
|
+
const a = this.tags.filter(y).map((b) => {
|
|
312
312
|
var m;
|
|
313
313
|
return (m = b.model) == null ? void 0 : m.object;
|
|
314
314
|
}).filter(S);
|
|
@@ -55,5 +55,5 @@ export declare abstract class TagRender extends TagComputer {
|
|
|
55
55
|
*/
|
|
56
56
|
protected clearUnusedPanelTag(): void;
|
|
57
57
|
/** 加载外部模型 */
|
|
58
|
-
protected loadModel: (tag: TagElement<'MediaModel', 'Model'>) => Promise<TagGLTFObject>;
|
|
58
|
+
protected loadModel: (tag: TagElement<'Model', 'Model'> | TagElement<'MediaModel', 'Model'>) => Promise<TagGLTFObject>;
|
|
59
59
|
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var o = (
|
|
1
|
+
var k = Object.defineProperty;
|
|
2
|
+
var w = (f, h, t) => h in f ? k(f, h, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[h] = t;
|
|
3
|
+
var g = (f, h, t) => (w(f, typeof h != "symbol" ? h + "" : h, t), t);
|
|
4
|
+
var P = (f, h, t) => new Promise((e, i) => {
|
|
5
|
+
var o = (r) => {
|
|
6
6
|
try {
|
|
7
|
-
a(t.next(
|
|
8
|
-
} catch (
|
|
9
|
-
i(
|
|
7
|
+
a(t.next(r));
|
|
8
|
+
} catch (s) {
|
|
9
|
+
i(s);
|
|
10
10
|
}
|
|
11
|
-
}, n = (
|
|
11
|
+
}, n = (r) => {
|
|
12
12
|
try {
|
|
13
|
-
a(t.throw(
|
|
14
|
-
} catch (
|
|
15
|
-
i(
|
|
13
|
+
a(t.throw(r));
|
|
14
|
+
} catch (s) {
|
|
15
|
+
i(s);
|
|
16
16
|
}
|
|
17
|
-
}, a = (
|
|
18
|
-
a((t = t.apply(
|
|
17
|
+
}, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(o, n);
|
|
18
|
+
a((t = t.apply(f, h)).next());
|
|
19
19
|
});
|
|
20
|
-
import { TagComputer as
|
|
21
|
-
import { Group as
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { arrayPositionToVector3 as
|
|
25
|
-
import { centerPoint as
|
|
26
|
-
import { isMediaModelTag as
|
|
20
|
+
import { TagComputer as E } from "./TagComputer.js";
|
|
21
|
+
import { Group as v, Quaternion as O, Vector3 as T, Matrix4 as D } from "three";
|
|
22
|
+
import x from "../Components/TagContainer.js";
|
|
23
|
+
import A from "../Components/Tag/index.js";
|
|
24
|
+
import { arrayPositionToVector3 as S } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
25
|
+
import { centerPoint as G } from "../../shared-utils/three/centerPoint.js";
|
|
26
|
+
import { isMediaModelTag as C, isStickModelTag as I } from "../utils/tag/tagCheck.js";
|
|
27
27
|
import { CSS3DRenderPlugin as V } from "../../CSS3DRenderPlugin/index.js";
|
|
28
|
-
import { loadGLTF as
|
|
29
|
-
import { VideoPlane as
|
|
28
|
+
import { loadGLTF as F } from "../../shared-utils/three/GLTFLoader.js";
|
|
29
|
+
import { VideoPlane as R, ImagePlane as j } from "../utils/model/mediaPlane.js";
|
|
30
30
|
import "../utils/tagPosition.js";
|
|
31
31
|
import "../utils/checkRange.js";
|
|
32
32
|
import "hammerjs";
|
|
@@ -139,43 +139,47 @@ import "../Components/Tag/CustomTag.js";
|
|
|
139
139
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
140
140
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
141
141
|
import "@realsee/five/gltf-loader";
|
|
142
|
-
const
|
|
143
|
-
class
|
|
142
|
+
const L = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
|
|
143
|
+
class ti extends E {
|
|
144
144
|
constructor(t) {
|
|
145
145
|
super(t);
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
g(this, "group", new v());
|
|
147
|
+
g(this, "imagePlaneGroup", new v());
|
|
148
|
+
g(this, "gltfObjectGroup", new v());
|
|
149
149
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
150
|
-
|
|
150
|
+
g(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
151
151
|
/** 临时状态 */
|
|
152
|
-
|
|
152
|
+
g(this, "temporaryState", { visible: !0 });
|
|
153
153
|
/** 点标签 */
|
|
154
|
-
|
|
154
|
+
g(this, "TagContainerSvelte");
|
|
155
155
|
/** 加载外部模型 */
|
|
156
|
-
|
|
157
|
-
var
|
|
156
|
+
g(this, "loadModel", (t) => P(this, null, function* () {
|
|
157
|
+
var a;
|
|
158
158
|
const e = t.data.modelUrl;
|
|
159
159
|
if (!e)
|
|
160
160
|
return;
|
|
161
|
-
const i =
|
|
161
|
+
const i = F(e).then((r) => {
|
|
162
|
+
var m, u, p, d, c;
|
|
163
|
+
const s = Object.assign(r.scene, { customID: t.id, isTagModel: !0 });
|
|
164
|
+
return s.visible = this.getCurrentVisibleState(t), new D().fromArray(t.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), s.visible = this.getVisibleByFiveMode(t), (p = (u = (m = this.config) == null ? void 0 : m.globalConfig) == null ? void 0 : u.modelConfig) != null && p.autoLookAtEnabled && ((c = (d = t.config) == null ? void 0 : d.modelConfig) != null && c.autoLookAtEnabled) && s.lookAt(this.five.camera.position.clone().setY(s.position.y)), s;
|
|
165
|
+
});
|
|
162
166
|
t.model = { promise: i };
|
|
163
167
|
const o = yield i;
|
|
164
|
-
if (((
|
|
168
|
+
if (((a = t.model) == null ? void 0 : a.promise) !== i || !this.tags.includes(t))
|
|
165
169
|
return;
|
|
166
|
-
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
169
|
-
if (!t.mediaPlane) {
|
|
170
|
-
const r = t.data.mediaPosition.map(
|
|
171
|
-
t.mediaPlane = new
|
|
170
|
+
t.model.object = o;
|
|
171
|
+
const n = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
|
|
172
|
+
if (n && this.gltfObjectGroup.remove(n), this.updateRender3DDomTag(), C(t)) {
|
|
173
|
+
if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
|
|
174
|
+
const r = t.data.mediaPosition.map(S);
|
|
175
|
+
t.mediaPlane = new j(t.data.mediaData[0].url, t.data.mediaPosition.map(S), {
|
|
172
176
|
objectFit: t.data.objectFit
|
|
173
177
|
});
|
|
174
|
-
const
|
|
175
|
-
t.mediaPlane.position.copy(
|
|
178
|
+
const s = new T().addVectors(r[0], r[2]).divideScalar(2);
|
|
179
|
+
t.mediaPlane.position.copy(s), o.add(t.mediaPlane);
|
|
176
180
|
}
|
|
177
|
-
|
|
178
|
-
|
|
181
|
+
this.getRenderType(t) !== "Mesh" && (o.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, o), o.updateTagCss3DObjectMatrix());
|
|
182
|
+
}
|
|
179
183
|
return this.gltfObjectGroup.add(o), o;
|
|
180
184
|
}));
|
|
181
185
|
this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
|
|
@@ -197,32 +201,32 @@ class ei extends k {
|
|
|
197
201
|
*/
|
|
198
202
|
updateRenderImagePlane() {
|
|
199
203
|
this.sort(this.filterImagePlane).forEach((e) => {
|
|
200
|
-
var s,
|
|
204
|
+
var r, s, l, m, u;
|
|
201
205
|
const i = e.data.mediaData[0];
|
|
202
206
|
if (!i)
|
|
203
207
|
return;
|
|
204
208
|
const { url: o, type: n } = i;
|
|
205
|
-
if (!o || (e.mediaPlane && (e.mediaPlane.visible = (
|
|
209
|
+
if (!o || (e.mediaPlane && (e.mediaPlane.visible = (s = (r = e.state) == null ? void 0 : r.visible) != null ? s : !0, e.mediaPlane.visible || e.mediaPlane instanceof R && ((l = e.data.autoplayConfig) != null && l.autoplayVideo || e.mediaPlane.pause())), ((m = e.mediaPlane) == null ? void 0 : m.src) === o))
|
|
206
210
|
return;
|
|
207
|
-
const a = e.position.map(
|
|
211
|
+
const a = e.position.map(S);
|
|
208
212
|
if (e.mediaPlane && e.mediaPlane.removeFromParent(), n === "Image")
|
|
209
|
-
e.mediaPlane = new
|
|
213
|
+
e.mediaPlane = new j(o, a, { objectFit: e.data.objectFit }), this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (p) => {
|
|
210
214
|
this.hooks.emit("click", { tag: e, target: "TagContent", event: p.origDomEvent });
|
|
211
215
|
});
|
|
212
216
|
else if (n === "Video") {
|
|
213
|
-
const p = new
|
|
217
|
+
const p = new R(o, a, {
|
|
214
218
|
videoCoverSrc: i.videoCoverUrl,
|
|
215
219
|
playButton: e.data.playIcon,
|
|
216
|
-
paused: !((
|
|
220
|
+
paused: !((u = e.data.autoplayConfig) != null && u.autoplayVideo),
|
|
217
221
|
objectFit: e.data.objectFit,
|
|
218
|
-
videoTextureMap:
|
|
222
|
+
videoTextureMap: L,
|
|
219
223
|
ImageTextureMap: B
|
|
220
224
|
});
|
|
221
|
-
p.onVideoReady = (
|
|
222
|
-
|
|
225
|
+
p.onVideoReady = (c) => {
|
|
226
|
+
c.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: p.videoInstance }));
|
|
223
227
|
}, p.initialDomEvents(this.domEvents);
|
|
224
|
-
const
|
|
225
|
-
p.initialRenderHooks(
|
|
228
|
+
const d = (c) => (this.five.on("renderFrame", c), () => this.five.off("renderFrame", c));
|
|
229
|
+
p.initialRenderHooks(d), e.mediaPlane = p;
|
|
226
230
|
}
|
|
227
231
|
this.imagePlaneGroup.add(e.mediaPlane);
|
|
228
232
|
});
|
|
@@ -232,44 +236,44 @@ class ei extends k {
|
|
|
232
236
|
*/
|
|
233
237
|
updateRender3DDomTag() {
|
|
234
238
|
this.sort([...this.filterCSS3DTag]).forEach((e) => {
|
|
235
|
-
var i, o;
|
|
239
|
+
var i, o, n;
|
|
236
240
|
if (e.tag3DContentSvelte) {
|
|
237
|
-
const { svelteApp:
|
|
238
|
-
if (
|
|
239
|
-
const m = new
|
|
240
|
-
|
|
241
|
+
const { svelteApp: a, css3DInstance: r, initialNormal: s, currentNormal: l } = e.tag3DContentSvelte;
|
|
242
|
+
if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(l)) {
|
|
243
|
+
const m = new O().setFromUnitVectors(s, l);
|
|
244
|
+
r.css3DObject.setRotationFromQuaternion(m);
|
|
241
245
|
}
|
|
242
246
|
return;
|
|
243
247
|
} else {
|
|
244
|
-
if (((i = e.state) == null ? void 0 :
|
|
248
|
+
if (C(e) && !((i = e.model) != null && i.object) || ((o = e.state) == null ? void 0 : o.visible) === !1 || !this.state.visible || !this.state.enabled)
|
|
245
249
|
return;
|
|
246
250
|
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = V(this.five)), e.stickType === "3DPoint" && !e.normal)
|
|
247
251
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
248
|
-
const
|
|
249
|
-
if (!n)
|
|
250
|
-
return;
|
|
251
|
-
const a = this.getTagNormal(e);
|
|
252
|
+
const a = this.getPositions(e);
|
|
252
253
|
if (!a)
|
|
253
254
|
return;
|
|
254
|
-
const r =
|
|
255
|
+
const r = this.getTagNormal(e);
|
|
256
|
+
if (!r)
|
|
257
|
+
return;
|
|
258
|
+
const l = (n = this.getTagConfig(e).tag3DConfig) != null ? n : {};
|
|
255
259
|
if (this.getRenderType(e) === "BehindDom") {
|
|
256
|
-
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
var
|
|
260
|
+
l.mode = "behind", l.container = document.createElement("div");
|
|
261
|
+
const p = "black";
|
|
262
|
+
l.container.style.backgroundColor = p, l.container.style.border = `3px solid ${p}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
263
|
+
var d;
|
|
260
264
|
if (m.css3DObject.opacityMesh) {
|
|
261
|
-
const
|
|
262
|
-
this.hooks.emit("click", { event:
|
|
265
|
+
const c = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (b) => {
|
|
266
|
+
this.hooks.emit("click", { event: b, target: "TagContent", tag: e });
|
|
263
267
|
});
|
|
264
|
-
(
|
|
268
|
+
(d = this.store.css3DRenderDisposer.get(e.id)) == null || d.push(c);
|
|
265
269
|
}
|
|
266
270
|
});
|
|
267
271
|
}
|
|
268
|
-
const m = this.css3DRenderPlugin.create3DDomContainer(
|
|
272
|
+
const m = this.css3DRenderPlugin.create3DDomContainer(a, l);
|
|
269
273
|
if (!m)
|
|
270
274
|
return;
|
|
271
275
|
this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
|
|
272
|
-
const
|
|
276
|
+
const u = new A({
|
|
273
277
|
target: m.container,
|
|
274
278
|
props: {
|
|
275
279
|
tag: e,
|
|
@@ -281,13 +285,13 @@ class ei extends k {
|
|
|
281
285
|
}
|
|
282
286
|
});
|
|
283
287
|
e.tag3DContentSvelte = {
|
|
284
|
-
svelteApp:
|
|
288
|
+
svelteApp: u,
|
|
285
289
|
domContainer: m,
|
|
286
290
|
css3DInstance: m,
|
|
287
|
-
initialNormal:
|
|
288
|
-
currentNormal:
|
|
291
|
+
initialNormal: r,
|
|
292
|
+
currentNormal: r,
|
|
289
293
|
dispose: () => {
|
|
290
|
-
|
|
294
|
+
u.$destroy(), m.dispose();
|
|
291
295
|
}
|
|
292
296
|
};
|
|
293
297
|
}
|
|
@@ -302,7 +306,7 @@ class ei extends k {
|
|
|
302
306
|
*/
|
|
303
307
|
updateRenderModelTag() {
|
|
304
308
|
const t = (i) => !this.enabledModelTagSet.has(i.customID);
|
|
305
|
-
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(
|
|
309
|
+
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter((i) => i.stickType === "Model").forEach((i) => {
|
|
306
310
|
var o;
|
|
307
311
|
(o = i.model) == null || o.promise.then((n) => {
|
|
308
312
|
n.visible = this.getCurrentVisibleState(i);
|
|
@@ -320,21 +324,21 @@ class ei extends k {
|
|
|
320
324
|
* @param model 模型
|
|
321
325
|
*/
|
|
322
326
|
updateTagCss3DObjectMatrix(t, e) {
|
|
323
|
-
var
|
|
324
|
-
const i = (y = (
|
|
327
|
+
var c, b, y, M;
|
|
328
|
+
const i = (y = (b = (c = t.mergedConfig) == null ? void 0 : c.tag3DConfig) == null ? void 0 : b.ratio) != null ? y : 216e-5, o = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
|
|
325
329
|
if (!o)
|
|
326
330
|
return;
|
|
327
|
-
const n =
|
|
331
|
+
const n = C(t) ? t.data.mediaPosition : t.position;
|
|
328
332
|
e.updateWorldMatrix(!1, !1);
|
|
329
|
-
const a = e.matrixWorld,
|
|
333
|
+
const a = e.matrixWorld, r = new T().fromArray(n[0]), s = new T().fromArray(n[2]), l = G(r, s).add(new T(0, 0, 5e-4)), m = new D().setPosition(l), u = new D().makeScale(i, i, i), p = new D().multiply(a).multiply(m).multiply(u);
|
|
330
334
|
p.decompose(o.position, o.quaternion, o.scale);
|
|
331
|
-
const
|
|
332
|
-
|
|
335
|
+
const d = o.opacityMesh;
|
|
336
|
+
d && p.decompose(d.position, d.quaternion, d.scale);
|
|
333
337
|
}
|
|
334
338
|
/** 添加模型标签 */
|
|
335
339
|
addMediaModelTag(t) {
|
|
336
|
-
return
|
|
337
|
-
const e = t.filter(
|
|
340
|
+
return P(this, null, function* () {
|
|
341
|
+
const e = t.filter(I).map((i) => this.loadModel(i));
|
|
338
342
|
yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
339
343
|
});
|
|
340
344
|
}
|
|
@@ -350,7 +354,7 @@ class ei extends k {
|
|
|
350
354
|
const i = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
|
|
351
355
|
if (!i)
|
|
352
356
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
353
|
-
this.TagContainerSvelte = new
|
|
357
|
+
this.TagContainerSvelte = new x({
|
|
354
358
|
target: i,
|
|
355
359
|
props: { hooks: this.hooks, tags: t, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
356
360
|
});
|
|
@@ -363,8 +367,8 @@ class ei extends k {
|
|
|
363
367
|
temporaryState: this.temporaryState,
|
|
364
368
|
withAnimation: this.store.visibleWithAnimation
|
|
365
369
|
}), this.filterCSS3DTag.forEach((e) => {
|
|
366
|
-
var i, o, n, a,
|
|
367
|
-
(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), (
|
|
370
|
+
var i, o, n, a, r;
|
|
371
|
+
(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), (r = e.tag3DContentSvelte) == null || r.svelteApp.$set({
|
|
368
372
|
state: this.state,
|
|
369
373
|
temporaryState: this.temporaryState,
|
|
370
374
|
withAnimation: this.store.visibleWithAnimation
|
|
@@ -391,5 +395,5 @@ class ei extends k {
|
|
|
391
395
|
}
|
|
392
396
|
}
|
|
393
397
|
export {
|
|
394
|
-
|
|
398
|
+
ti as TagRender
|
|
395
399
|
};
|
|
@@ -32,7 +32,7 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
32
32
|
* @description: 获取merge后的配置
|
|
33
33
|
* TODO: 缓存
|
|
34
34
|
*/
|
|
35
|
-
getTagConfig(tag: Tag<any, any>): TagConfig<"Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", StickType>;
|
|
35
|
+
getTagConfig(tag: Tag<any, any>): TagConfig<"Model" | "Custom" | "Audio" | "Text" | "ImageText" | "Image" | "Video" | "Link" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Unknown", StickType>;
|
|
36
36
|
protected loadVideoFirstFrame(): void;
|
|
37
37
|
protected updateTagConfig(params?: {
|
|
38
38
|
force?: boolean;
|
|
@@ -6,8 +6,8 @@ import * as C from "three";
|
|
|
6
6
|
import { DefaultConfig as P } from "../tag.config.js";
|
|
7
7
|
import { anyPositionToVector3 as w, arrayPositionToVector3 as h } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
8
8
|
import { planeNormal as p } from "../utils/planeNormal.js";
|
|
9
|
-
import { tagPosition as E, getTagPosition as
|
|
10
|
-
import { normalPositionToPositions as
|
|
9
|
+
import { tagPosition as E, 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 "../../shared-utils/device.js";
|
|
@@ -97,12 +97,12 @@ class De extends b {
|
|
|
97
97
|
* TODO: 缓存
|
|
98
98
|
*/
|
|
99
99
|
getTagConfig(e) {
|
|
100
|
-
var o,
|
|
100
|
+
var o, d;
|
|
101
101
|
if (!e)
|
|
102
102
|
return (o = this.config.globalConfig) != null ? o : {};
|
|
103
103
|
const i = {};
|
|
104
|
-
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((
|
|
105
|
-
const r =
|
|
104
|
+
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((a) => {
|
|
105
|
+
const r = a;
|
|
106
106
|
if (i[r])
|
|
107
107
|
return;
|
|
108
108
|
const f = r.split("-");
|
|
@@ -123,7 +123,7 @@ class De extends b {
|
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
const t = T({}, this.config.globalConfig, ...Object.values(i), e.config);
|
|
126
|
-
return typeof t.unfoldedConfig == "object" && (t.unfoldedConfig.disableFold && (t.unfoldedConfig = { keep: "unfolded" }), t.unfoldedConfig.disableUnfold && (t.unfoldedConfig = { keep: "folded" }), t.unfoldedConfig.keep && (t.unfoldedConfig = { keep: t.unfoldedConfig.keep })), typeof t.visibleConfig == "object" && t.visibleConfig.keep && (t.visibleConfig = { keep: t.visibleConfig.keep, visibleFiveMode: (
|
|
126
|
+
return typeof t.unfoldedConfig == "object" && (t.unfoldedConfig.disableFold && (t.unfoldedConfig = { keep: "unfolded" }), t.unfoldedConfig.disableUnfold && (t.unfoldedConfig = { keep: "folded" }), t.unfoldedConfig.keep && (t.unfoldedConfig = { keep: t.unfoldedConfig.keep })), typeof t.visibleConfig == "object" && t.visibleConfig.keep && (t.visibleConfig = { keep: t.visibleConfig.keep, visibleFiveMode: (d = t.visibleConfig) == null ? void 0 : d.visibleFiveMode }), t;
|
|
127
127
|
}
|
|
128
128
|
loadVideoFirstFrame() {
|
|
129
129
|
A && this.hooks.emit("loadVideoFirstFrame");
|
|
@@ -175,7 +175,7 @@ class De extends b {
|
|
|
175
175
|
* @description: 获取角度
|
|
176
176
|
*/
|
|
177
177
|
getAngle(e, i) {
|
|
178
|
-
var
|
|
178
|
+
var d, a;
|
|
179
179
|
const t = i != null ? i : this.five.getCurrentState().panoIndex;
|
|
180
180
|
if (t === void 0)
|
|
181
181
|
throw new Error(`getDistance(): fivePanoIndex is ${t}`);
|
|
@@ -183,7 +183,7 @@ class De extends b {
|
|
|
183
183
|
if (o.angle !== void 0)
|
|
184
184
|
return o.angle;
|
|
185
185
|
{
|
|
186
|
-
const r = (
|
|
186
|
+
const r = (a = (d = this.five.work) == null ? void 0 : d.observers[t]) == null ? void 0 : a.position;
|
|
187
187
|
if (r === void 0)
|
|
188
188
|
throw new Error(`getAngleRange(): observerPosition is ${r}`);
|
|
189
189
|
const f = (() => e.stickType === "3DPoint" ? w(e.normal) : p(e.position))();
|
|
@@ -200,7 +200,7 @@ class De extends b {
|
|
|
200
200
|
* @description: 获取距离
|
|
201
201
|
*/
|
|
202
202
|
getDistance(e, i) {
|
|
203
|
-
var
|
|
203
|
+
var d, a;
|
|
204
204
|
const t = i != null ? i : this.five.getCurrentState().panoIndex;
|
|
205
205
|
if (t === void 0)
|
|
206
206
|
throw new Error(`getDistance(): fivePanoIndex is ${t}`);
|
|
@@ -208,10 +208,10 @@ class De extends b {
|
|
|
208
208
|
if (o.distance !== void 0)
|
|
209
209
|
return o.distance;
|
|
210
210
|
{
|
|
211
|
-
const r = (
|
|
211
|
+
const r = (a = (d = this.five.work) == null ? void 0 : d.observers[t]) == null ? void 0 : a.position;
|
|
212
212
|
if (r === void 0)
|
|
213
213
|
throw new Error(`getDistance(): observerPosition is ${r}`);
|
|
214
|
-
const f =
|
|
214
|
+
const f = M(e);
|
|
215
215
|
if (!f)
|
|
216
216
|
return -1;
|
|
217
217
|
const s = r.distanceTo(f);
|
|
@@ -224,7 +224,7 @@ class De extends b {
|
|
|
224
224
|
if (g(e))
|
|
225
225
|
return e.data.mediaPosition;
|
|
226
226
|
const i = e;
|
|
227
|
-
return
|
|
227
|
+
return k(
|
|
228
228
|
this.five.camera.position,
|
|
229
229
|
h(i.position),
|
|
230
230
|
h(i.normal)
|
|
@@ -234,7 +234,7 @@ class De extends b {
|
|
|
234
234
|
if (!i || !this.domEvents)
|
|
235
235
|
return () => {
|
|
236
236
|
};
|
|
237
|
-
const o = () => !(!e.state.visible || !this.state.visible || g(e) && !e.mediaVisible),
|
|
237
|
+
const o = () => !(!e.state.visible || !this.state.visible || g(e) && !e.mediaVisible), d = (s) => {
|
|
238
238
|
if (!o()) {
|
|
239
239
|
this.mouseInfo = void 0;
|
|
240
240
|
return;
|
|
@@ -246,7 +246,7 @@ class De extends b {
|
|
|
246
246
|
isDown: !0,
|
|
247
247
|
mouseDownTimestamp: Date.now()
|
|
248
248
|
};
|
|
249
|
-
},
|
|
249
|
+
}, a = (s) => {
|
|
250
250
|
if (!o()) {
|
|
251
251
|
this.mouseInfo = void 0;
|
|
252
252
|
return;
|
|
@@ -273,8 +273,8 @@ class De extends b {
|
|
|
273
273
|
const n = s.origDomEvent;
|
|
274
274
|
this.mouseInfo && (this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && t(n), this.mouseInfo = void 0);
|
|
275
275
|
};
|
|
276
|
-
return this.domEvents.addEventListener(i, "mousedown",
|
|
277
|
-
this.domEvents && (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown",
|
|
276
|
+
return this.domEvents.addEventListener(i, "mousedown", d, !1), this.domEvents.addEventListener(i, "mouseup", a, !1), this.domEvents.addEventListener(i, "touchstart", r, !1), this.domEvents.addEventListener(i, "touchend", f, !1), () => {
|
|
277
|
+
this.domEvents && (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown", d), this.domEvents.removeEventListener(i, "mouseup", a), this.domEvents.removeEventListener(i, "touchstart", r), this.domEvents.removeEventListener(i, "touchend", f));
|
|
278
278
|
};
|
|
279
279
|
}
|
|
280
280
|
getTagNormal(e) {
|
|
@@ -307,7 +307,7 @@ class De extends b {
|
|
|
307
307
|
return this.tags.filter((e) => e.stickType === "Model");
|
|
308
308
|
}
|
|
309
309
|
get filterCSS3DTag() {
|
|
310
|
-
return this.tags.filter((i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model").filter((i) => {
|
|
310
|
+
return this.tags.filter((i) => i.stickType === "3DPoint" || i.stickType === "Plane" || i.stickType === "Model" && i.contentType === "MediaModel").filter((i) => {
|
|
311
311
|
const t = this.getRenderType(i);
|
|
312
312
|
return t === "BehindDom" || t === "Dom";
|
|
313
313
|
});
|