@realsee/dnalogel 2.23.1-dev.0 → 2.24.0-dev.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 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +5 -1
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +3 -6
- package/dist/index.cjs.js +22 -22
- package/dist/index.js +935 -925
- package/dist/index.umd.js +29 -29
- package/dist/shared-utils/five/FiveDomEvents.d.ts +2 -2
- 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 +34 -34
- 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 +26 -26
- package/docs/classes/PanoMeasurePluginModel.html +26 -26
- package/docs/classes/PanoMeasurePluginPoint.html +13 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +46 -46
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.Magnifier.html +19 -19
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.PointSelectorHelper.html +15 -15
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +19 -19
- 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/PointType.html +6 -6
- 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.absoluteUrl.html +4 -4
- 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 +14 -14
- 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 +18 -13
- 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/interfaces/Util.PointIntersection.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/DeprecatedMediaPlaneProperty.html +4 -4
- package/docs/types/DeprecatedTagProperty.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/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/Point2DTag.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagInstance.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/TagId.html +4 -4
- package/docs/types/TagInstance.html +4 -4
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TagRendererMap.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/controller/TagRender.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagRender.js +120 -105
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +5 -1
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +3 -6
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +85 -90
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.d.ts +2 -2
- 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>modelItemLabelPluginServerParams | 如视看房插件合集 - v2.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelItemLabelPluginServerParams | 如视看房插件合集 - v2.24.0-dev.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.24.0-dev.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/c6eb361/plugins/src/ModelItemLabelPlugin/index.ts#L7">plugins/src/ModelItemLabelPlugin/index.ts:7</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.24.0-<wbr/>dev.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>
|
|
@@ -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.24.0-dev.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.24.0-dev.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/c6eb361/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.24.0-<wbr/>dev.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>
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var k = Object.defineProperty;
|
|
2
|
+
var E = (b, u, t) => u in b ? k(b, u, { enumerable: !0, configurable: !0, writable: !0, value: t }) : b[u] = t;
|
|
3
|
+
var P = (b, u, t) => (E(b, typeof u != "symbol" ? u + "" : u, t), t);
|
|
4
|
+
var M = (b, u, t) => new Promise((e, o) => {
|
|
5
5
|
var i = (r) => {
|
|
6
6
|
try {
|
|
7
7
|
a(t.next(r));
|
|
8
|
-
} catch (
|
|
9
|
-
o(
|
|
8
|
+
} catch (n) {
|
|
9
|
+
o(n);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, s = (r) => {
|
|
12
12
|
try {
|
|
13
13
|
a(t.throw(r));
|
|
14
|
-
} catch (
|
|
15
|
-
o(
|
|
14
|
+
} catch (n) {
|
|
15
|
+
o(n);
|
|
16
16
|
}
|
|
17
|
-
}, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i,
|
|
18
|
-
a((t = t.apply(b,
|
|
17
|
+
}, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, s);
|
|
18
|
+
a((t = t.apply(b, u)).next());
|
|
19
19
|
});
|
|
20
20
|
import { TagComputer as w } from "./TagComputer.js";
|
|
21
|
-
import { Group as
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { arrayPositionToVector3 as
|
|
25
|
-
import { centerPoint as
|
|
26
|
-
import { isMediaModelTag as
|
|
27
|
-
import { CSS3DRenderPlugin as
|
|
28
|
-
import { loadGLTF as
|
|
29
|
-
import { VideoPlane as
|
|
21
|
+
import { Group as y, Quaternion as O, Vector3 as g, Matrix4 as D } from "three";
|
|
22
|
+
import A from "../Components/TagContainer.js";
|
|
23
|
+
import x from "../Components/Tag/index.js";
|
|
24
|
+
import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
25
|
+
import { centerPoint as V } from "../../shared-utils/three/centerPoint.js";
|
|
26
|
+
import { isMediaModelTag as S, isStickModelTag as G } from "../utils/tag/tagCheck.js";
|
|
27
|
+
import { CSS3DRenderPlugin as I } from "../../CSS3DRenderPlugin/index.js";
|
|
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";
|
|
@@ -152,51 +152,51 @@ import "../Components/Tag/CustomTag.js";
|
|
|
152
152
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
153
153
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
154
154
|
import "@realsee/five/gltf-loader";
|
|
155
|
-
const
|
|
156
|
-
class
|
|
155
|
+
const L = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
|
|
156
|
+
class ui extends w {
|
|
157
157
|
constructor(t) {
|
|
158
158
|
super(t);
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
159
|
+
P(this, "group", new y());
|
|
160
|
+
P(this, "renderMap", /* @__PURE__ */ new Map());
|
|
161
|
+
P(this, "imagePlaneGroup", new y());
|
|
162
|
+
P(this, "gltfObjectGroup", new y());
|
|
163
163
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
164
|
-
|
|
164
|
+
P(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
165
165
|
/** 临时状态 */
|
|
166
|
-
|
|
166
|
+
P(this, "temporaryState", { visible: !0 });
|
|
167
167
|
/** 点标签 */
|
|
168
|
-
|
|
168
|
+
P(this, "TagContainerSvelte");
|
|
169
169
|
/** 加载外部模型 */
|
|
170
|
-
|
|
170
|
+
P(this, "loadModel", (t) => M(this, null, function* () {
|
|
171
171
|
var a;
|
|
172
172
|
const e = t.data.modelUrl;
|
|
173
173
|
if (!e)
|
|
174
174
|
return;
|
|
175
|
-
const o =
|
|
176
|
-
var p, m,
|
|
177
|
-
const
|
|
175
|
+
const o = F(e).then((r) => {
|
|
176
|
+
var p, m, c, l, h;
|
|
177
|
+
const n = Object.assign(r.scene, {
|
|
178
178
|
customID: t.id,
|
|
179
179
|
isTagModel: !0,
|
|
180
|
-
removeEventListener: this.addObjectClickHandler(t, r.scene, (
|
|
181
|
-
this.hooks.emit("click", { target: "TagModel", tag: t, event:
|
|
180
|
+
removeEventListener: this.addObjectClickHandler(t, r.scene, (d) => {
|
|
181
|
+
this.hooks.emit("click", { target: "TagModel", tag: t, event: d });
|
|
182
182
|
})
|
|
183
183
|
});
|
|
184
|
-
return
|
|
184
|
+
return n.visible = this.getCurrentVisibleState(t), new D().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisibleByFiveMode(t), (c = (m = (p = this.config) == null ? void 0 : p.globalConfig) == null ? void 0 : m.modelConfig) != null && c.autoLookAtEnabled && ((h = (l = t.config) == null ? void 0 : l.modelConfig) != null && h.autoLookAtEnabled) && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
|
|
185
185
|
});
|
|
186
186
|
t.model = { promise: o };
|
|
187
187
|
const i = yield o;
|
|
188
188
|
if (((a = t.model) == null ? void 0 : a.promise) !== o || !this.tags.includes(t))
|
|
189
189
|
return;
|
|
190
190
|
t.model.object = i;
|
|
191
|
-
const
|
|
192
|
-
if (
|
|
191
|
+
const s = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
|
|
192
|
+
if (s && (this.gltfObjectGroup.remove(s), s.removeEventListener()), this.updateRender3DDomTag(), S(t)) {
|
|
193
193
|
if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
|
|
194
|
-
const r = t.data.mediaPosition.map(
|
|
195
|
-
t.mediaPlane = new j(t.data.mediaData[0].url, t.data.mediaPosition.map(
|
|
194
|
+
const r = t.data.mediaPosition.map(C);
|
|
195
|
+
t.mediaPlane = new j(t.data.mediaData[0].url, t.data.mediaPosition.map(C), {
|
|
196
196
|
objectFit: t.data.objectFit
|
|
197
197
|
});
|
|
198
|
-
const
|
|
199
|
-
t.mediaPlane.position.copy(
|
|
198
|
+
const n = new g().addVectors(r[0], r[2]).divideScalar(2);
|
|
199
|
+
t.mediaPlane.position.copy(n), i.add(t.mediaPlane);
|
|
200
200
|
}
|
|
201
201
|
this.getRenderType(t) !== "Mesh" && (i.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, i), i.updateTagCss3DObjectMatrix());
|
|
202
202
|
}
|
|
@@ -225,41 +225,56 @@ class hi extends w {
|
|
|
225
225
|
* @description: 更新所有标签
|
|
226
226
|
*/
|
|
227
227
|
updateRenderAllTags() {
|
|
228
|
-
this.enabledModelTagSet.clear(), this.tags.forEach((t) => t.stickType === "Model" && this.enabledModelTagSet.add(t.id)), this.updateRenderPointTag(), this.updateRender3DDomTag(), this.updateRenderModelTag(), this.updateRenderImagePlane();
|
|
228
|
+
this.enabledModelTagSet.clear(), this.tags.forEach((t) => t.stickType === "Model" && this.enabledModelTagSet.add(t.id)), this.updateRenderPointTag(), this.updateRender3DDomTag(), this.updateRenderModelTag(), this.updateRenderImagePlane(), this.updateRenderVideoPlane();
|
|
229
229
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
var
|
|
230
|
+
updateRenderVideoPlane() {
|
|
231
|
+
this.sort(this.filterImagePlane).filter((e) => {
|
|
232
|
+
var o, i;
|
|
233
|
+
return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Video";
|
|
234
|
+
}).forEach((e) => {
|
|
235
|
+
var p, m, c, l, h;
|
|
236
236
|
const o = e.data.mediaData[0];
|
|
237
237
|
if (!o)
|
|
238
238
|
return;
|
|
239
|
-
const { url: i
|
|
240
|
-
if (!i
|
|
239
|
+
const { url: i } = o;
|
|
240
|
+
if (!i)
|
|
241
241
|
return;
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
});
|
|
247
|
-
else if (n === "Video") {
|
|
248
|
-
const l = new M(i, a, {
|
|
242
|
+
e.mediaPlane && !((m = (p = e.state) == null ? void 0 : p.visible) == null || m) && e.mediaPlane instanceof R && e.mediaPlane.pause();
|
|
243
|
+
const s = e.position.map(C), a = e.state.visible, r = (() => !!(e.mediaPlane && !a))(), n = (() => !!(!e.mediaPlane && a))(), f = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
|
|
244
|
+
if ((r || f) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (c = e.mediaPlane) == null || c.dispose(), (l = e.mediaPlane) == null || l.removeFromParent(), e.mediaPlane = void 0), n || f) {
|
|
245
|
+
const d = new R(i, s, {
|
|
249
246
|
videoCoverSrc: o.videoCoverUrl,
|
|
250
247
|
playButton: e.data.playIcon,
|
|
251
|
-
paused: !((
|
|
248
|
+
paused: !((h = e.data.autoplayConfig) != null && h.autoplayVideo),
|
|
252
249
|
objectFit: e.data.objectFit,
|
|
253
|
-
videoTextureMap:
|
|
254
|
-
ImageTextureMap:
|
|
250
|
+
videoTextureMap: L,
|
|
251
|
+
ImageTextureMap: B,
|
|
252
|
+
domEvents: this.domEvents
|
|
255
253
|
});
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
259
|
-
const
|
|
260
|
-
|
|
254
|
+
d.onVideoReady = (T) => {
|
|
255
|
+
T.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: d.videoInstance }));
|
|
256
|
+
};
|
|
257
|
+
const v = (T) => (this.five.on("renderFrame", T), () => this.five.off("renderFrame", T));
|
|
258
|
+
d.initialRenderHooks(v), e.mediaPlane = d, this.imagePlaneGroup.add(e.mediaPlane);
|
|
261
259
|
}
|
|
262
|
-
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* @description: 渲染图片贴片
|
|
264
|
+
*/
|
|
265
|
+
updateRenderImagePlane() {
|
|
266
|
+
this.sort(this.filterImagePlane).filter((e) => {
|
|
267
|
+
var o, i;
|
|
268
|
+
return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Image";
|
|
269
|
+
}).forEach((e) => {
|
|
270
|
+
var s;
|
|
271
|
+
const { url: o } = e.data.mediaData[0];
|
|
272
|
+
if (!o)
|
|
273
|
+
return;
|
|
274
|
+
const i = e.position.map(C);
|
|
275
|
+
((s = e.mediaPlane) == null ? void 0 : s.src) !== o && (e.mediaPlane && e.mediaPlane.removeFromParent(), e.mediaPlane = new j(o, i, { objectFit: e.data.objectFit }), e.config.clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (a) => {
|
|
276
|
+
this.hooks.emit("click", { tag: e, target: "TagContent", event: a.origDomEvent });
|
|
277
|
+
}), this.imagePlaneGroup.add(e.mediaPlane));
|
|
263
278
|
});
|
|
264
279
|
}
|
|
265
280
|
/**
|
|
@@ -267,36 +282,36 @@ class hi extends w {
|
|
|
267
282
|
*/
|
|
268
283
|
updateRender3DDomTag() {
|
|
269
284
|
this.sort([...this.filterCSS3DTag]).forEach((e) => {
|
|
270
|
-
var o, i,
|
|
285
|
+
var o, i, s, a;
|
|
271
286
|
if (e.tag3DContentSvelte) {
|
|
272
|
-
const { svelteApp: r, css3DInstance:
|
|
273
|
-
if (r.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !
|
|
274
|
-
const m = new
|
|
275
|
-
|
|
287
|
+
const { svelteApp: r, css3DInstance: n, initialNormal: f, currentNormal: p } = e.tag3DContentSvelte;
|
|
288
|
+
if (r.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !f.equals(p)) {
|
|
289
|
+
const m = new O().setFromUnitVectors(f, p);
|
|
290
|
+
n.css3DObject.setRotationFromQuaternion(m);
|
|
276
291
|
}
|
|
277
292
|
return;
|
|
278
293
|
} else {
|
|
279
|
-
if (
|
|
294
|
+
if (S(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
|
|
280
295
|
return;
|
|
281
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin =
|
|
296
|
+
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = I(this.five)), e.stickType === "3DPoint" && !e.normal)
|
|
282
297
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
283
298
|
const r = this.getPositions(e);
|
|
284
299
|
if (!r)
|
|
285
300
|
return;
|
|
286
|
-
const
|
|
287
|
-
if (!
|
|
301
|
+
const n = this.getTagNormal(e);
|
|
302
|
+
if (!n)
|
|
288
303
|
return;
|
|
289
|
-
const p = (
|
|
304
|
+
const p = (s = this.getTagConfig(e).tag3DConfig) != null ? s : {};
|
|
290
305
|
if (this.getRenderType(e) === "BehindDom") {
|
|
291
306
|
p.mode = "behind", p.container = document.createElement("div");
|
|
292
|
-
const
|
|
293
|
-
p.container.style.backgroundColor =
|
|
294
|
-
var
|
|
307
|
+
const l = "black";
|
|
308
|
+
p.container.style.backgroundColor = l, p.container.style.border = `3px solid ${l}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
309
|
+
var h;
|
|
295
310
|
if (m.css3DObject.opacityMesh) {
|
|
296
|
-
const
|
|
297
|
-
this.hooks.emit("click", { event:
|
|
311
|
+
const d = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (v) => {
|
|
312
|
+
this.hooks.emit("click", { event: v, target: "TagContent", tag: e });
|
|
298
313
|
});
|
|
299
|
-
(
|
|
314
|
+
(h = this.store.css3DRenderDisposer.get(e.id)) == null || h.push(d);
|
|
300
315
|
}
|
|
301
316
|
});
|
|
302
317
|
}
|
|
@@ -304,7 +319,7 @@ class hi extends w {
|
|
|
304
319
|
if (!m)
|
|
305
320
|
return;
|
|
306
321
|
this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
|
|
307
|
-
const
|
|
322
|
+
const c = new x({
|
|
308
323
|
target: m.container,
|
|
309
324
|
props: {
|
|
310
325
|
tag: e,
|
|
@@ -316,15 +331,15 @@ class hi extends w {
|
|
|
316
331
|
}
|
|
317
332
|
});
|
|
318
333
|
e.tag3DContentSvelte = {
|
|
319
|
-
svelteApp:
|
|
334
|
+
svelteApp: c,
|
|
320
335
|
domContainer: m,
|
|
321
336
|
css3DInstance: m,
|
|
322
|
-
initialNormal:
|
|
323
|
-
currentNormal:
|
|
337
|
+
initialNormal: n,
|
|
338
|
+
currentNormal: n,
|
|
324
339
|
dispose: () => {
|
|
325
|
-
|
|
340
|
+
c.$destroy(), m.dispose();
|
|
326
341
|
}
|
|
327
|
-
},
|
|
342
|
+
}, S(e) && ((a = e.model) != null && a.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
|
|
328
343
|
}
|
|
329
344
|
}), this.clearUnusedPanelTag();
|
|
330
345
|
}
|
|
@@ -338,8 +353,8 @@ class hi extends w {
|
|
|
338
353
|
updateRenderModelTag() {
|
|
339
354
|
const t = (i) => !this.enabledModelTagSet.has(i.customID), e = this.gltfObjectGroup.children.filter(t);
|
|
340
355
|
e.forEach((i) => i.removeEventListener()), this.gltfObjectGroup.remove(...e), this.tags.filter((i) => i.stickType === "Model").forEach((i) => {
|
|
341
|
-
var
|
|
342
|
-
(
|
|
356
|
+
var s;
|
|
357
|
+
(s = i.model) == null || s.promise.then((a) => {
|
|
343
358
|
a.visible = this.getCurrentVisibleState(i);
|
|
344
359
|
});
|
|
345
360
|
}), this.five.needsRender = !0;
|
|
@@ -355,23 +370,23 @@ class hi extends w {
|
|
|
355
370
|
* @param model 模型
|
|
356
371
|
*/
|
|
357
372
|
updateTagCss3DObjectMatrix(t, e) {
|
|
358
|
-
var
|
|
359
|
-
const o = (
|
|
373
|
+
var h, d, v;
|
|
374
|
+
const o = (d = (h = t.config.tag3DConfig) == null ? void 0 : h.ratio) != null ? d : 216e-5, i = (v = t.tag3DContentSvelte) == null ? void 0 : v.css3DInstance.css3DObject;
|
|
360
375
|
if (!i)
|
|
361
376
|
return;
|
|
362
|
-
const
|
|
363
|
-
if (!
|
|
377
|
+
const s = S(t) ? t.data.mediaPosition : t.position;
|
|
378
|
+
if (!s || s.length !== 4 || !Array.isArray(s[0]) || !Array.isArray(s[2]))
|
|
364
379
|
return;
|
|
365
380
|
e.updateWorldMatrix(!1, !1);
|
|
366
|
-
const a = e.matrixWorld, r = new
|
|
367
|
-
|
|
368
|
-
const
|
|
369
|
-
|
|
381
|
+
const a = e.matrixWorld, r = new g().fromArray(s[0]), n = new g().fromArray(s[2]), f = V(r, n).add(new g(0, 0, 5e-4)), p = new D().setPosition(f), m = new D().makeScale(o, o, o), c = new D().multiply(a).multiply(p).multiply(m);
|
|
382
|
+
c.decompose(i.position, i.quaternion, i.scale);
|
|
383
|
+
const l = i.opacityMesh;
|
|
384
|
+
l && c.decompose(l.position, l.quaternion, l.scale);
|
|
370
385
|
}
|
|
371
386
|
/** 添加模型标签 */
|
|
372
387
|
addMediaModelTag(t) {
|
|
373
|
-
return
|
|
374
|
-
const e = t.filter(
|
|
388
|
+
return M(this, null, function* () {
|
|
389
|
+
const e = t.filter(G).map((o) => this.loadModel(o));
|
|
375
390
|
yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
376
391
|
});
|
|
377
392
|
}
|
|
@@ -387,7 +402,7 @@ class hi extends w {
|
|
|
387
402
|
const o = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
|
|
388
403
|
if (!o)
|
|
389
404
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
390
|
-
this.TagContainerSvelte = new
|
|
405
|
+
this.TagContainerSvelte = new A({
|
|
391
406
|
target: o,
|
|
392
407
|
props: {
|
|
393
408
|
hooks: this.hooks,
|
|
@@ -407,8 +422,8 @@ class hi extends w {
|
|
|
407
422
|
temporaryState: this.temporaryState,
|
|
408
423
|
withAnimation: this.store.visibleWithAnimation
|
|
409
424
|
}), this.filterCSS3DTag.forEach((e) => {
|
|
410
|
-
var o, i,
|
|
411
|
-
(a = (i = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : i.css3DObject) == null || a.setVisible((this.state.visible && ((
|
|
425
|
+
var o, i, s, a, r;
|
|
426
|
+
(a = (i = (o = e.tag3DContentSvelte) == null ? void 0 : o.css3DInstance) == null ? void 0 : i.css3DObject) == null || a.setVisible((this.state.visible && ((s = e.state) == null ? void 0 : s.visible)) !== !1), (r = e.tag3DContentSvelte) == null || r.svelteApp.$set({
|
|
412
427
|
state: this.state,
|
|
413
428
|
temporaryState: this.temporaryState,
|
|
414
429
|
withAnimation: this.store.visibleWithAnimation
|
|
@@ -435,5 +450,5 @@ class hi extends w {
|
|
|
435
450
|
}
|
|
436
451
|
}
|
|
437
452
|
export {
|
|
438
|
-
|
|
453
|
+
ui as TagRender
|
|
439
454
|
};
|
|
@@ -124,6 +124,10 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
124
124
|
};
|
|
125
125
|
/** 当图片为一张时可以通过Mesh渲染 */
|
|
126
126
|
renderType?: 'Mesh' | 'Dom';
|
|
127
|
-
|
|
127
|
+
/**
|
|
128
|
+
* @description: 是否可以点击
|
|
129
|
+
* @default true
|
|
130
|
+
*/
|
|
131
|
+
clickable?: boolean;
|
|
128
132
|
}
|
|
129
133
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { Vector3 } from 'three';
|
|
3
|
+
import type { FiveDomEvents } from '../../../shared-utils/five/FiveDomEvents';
|
|
3
4
|
import type { ObjectFit } from '../../typings';
|
|
4
|
-
import type DomEvents from '../../../shared-utils/threex/domevents';
|
|
5
5
|
import type { Overwrite } from '../../../typings/utils.type';
|
|
6
6
|
type Src = string;
|
|
7
7
|
type VideoTexture = Overwrite<THREE.VideoTexture, {
|
|
@@ -15,6 +15,7 @@ declare abstract class MediaPlane extends THREE.Mesh<THREE.BufferGeometry | THRE
|
|
|
15
15
|
name: string;
|
|
16
16
|
src?: string;
|
|
17
17
|
removeFromParent(): this;
|
|
18
|
+
dispose(): void;
|
|
18
19
|
}
|
|
19
20
|
declare class ImagePlane extends MediaPlane {
|
|
20
21
|
name: string;
|
|
@@ -32,7 +33,6 @@ declare class VideoPlane extends MediaPlane {
|
|
|
32
33
|
private videoCoverSrc?;
|
|
33
34
|
private domEvents?;
|
|
34
35
|
private disposers;
|
|
35
|
-
private domEventsListenerTemporaryList;
|
|
36
36
|
private cornerPoints;
|
|
37
37
|
private videoMesh?;
|
|
38
38
|
private coverMesh?;
|
|
@@ -46,17 +46,14 @@ declare class VideoPlane extends MediaPlane {
|
|
|
46
46
|
objectFit?: ObjectFit;
|
|
47
47
|
videoTextureMap?: Map<Src, VideoTexture>;
|
|
48
48
|
ImageTextureMap?: Map<Src, ImageTexture>;
|
|
49
|
+
domEvents?: FiveDomEvents;
|
|
49
50
|
});
|
|
50
51
|
play(muted?: boolean): Promise<void>;
|
|
51
52
|
pause(): void;
|
|
52
|
-
initialDomEvents(domEvents: DomEvents): void;
|
|
53
53
|
initialRenderHooks(func: (render: () => void) => () => void): void;
|
|
54
54
|
private showPlayUI;
|
|
55
55
|
private showPauseUI;
|
|
56
56
|
private render;
|
|
57
|
-
private addAutoBindEventListener;
|
|
58
|
-
private addDomEventListener;
|
|
59
|
-
private removeDomEventListener;
|
|
60
57
|
private addCoverMesh;
|
|
61
58
|
private addVideoMesh;
|
|
62
59
|
private addButtonMesh;
|