@realsee/dnalogel 2.18.5 → 2.19.0-1
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/PanoMeasurePlugin/Controller/MixedController.d.ts +1 -4
- 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 +24 -24
- package/dist/index.js +5261 -5239
- package/dist/index.umd.js +25 -25
- 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/PanoMeasurePlugin/Controller/MixedController.d.ts +1 -4
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +35 -39
- 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 +121 -103
- 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-1</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-1</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/b542819/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/>1</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>
|
|
@@ -17,10 +17,7 @@ export default class MixedController extends BaseController {
|
|
|
17
17
|
dispose(): void;
|
|
18
18
|
highlightLine(line: Line): void;
|
|
19
19
|
clearHighlightLines(): void;
|
|
20
|
-
getEditingLines():
|
|
21
|
-
addStartPoint(): void;
|
|
22
|
-
/** 编辑线条发生改变时通知外部 */
|
|
23
|
-
private onLineChanged;
|
|
20
|
+
getEditingLines(): Polyline[];
|
|
24
21
|
private onWantsTapGesture;
|
|
25
22
|
/** 编辑时取消走点,watch时可以走 */
|
|
26
23
|
private onWantsToMoveToPano;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var k = (h,
|
|
3
|
-
var t = (h,
|
|
4
|
-
import { Model as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { findAssociatedLines as
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var k = (h, n, e) => n in h ? S(h, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[n] = e;
|
|
3
|
+
var t = (h, n, e) => (k(h, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
|
+
import { Model as D } from "../Model/index.js";
|
|
5
|
+
import T from "../Model/line.js";
|
|
6
|
+
import y from "./BaseController.js";
|
|
7
|
+
import M from "../Modules/DeleteDom/index.js";
|
|
8
|
+
import { findAssociatedLines as G } from "../utils/findAssociatedLines.js";
|
|
9
9
|
import { Vector2 as p } from "three";
|
|
10
|
-
import
|
|
11
|
-
import { closestPointOnLine as
|
|
12
|
-
import { Polyline as
|
|
13
|
-
import
|
|
10
|
+
import L from "../utils/isNDCPointInScreen.js";
|
|
11
|
+
import { closestPointOnLine as N } from "../utils/math.js";
|
|
12
|
+
import { Polyline as v } from "../Model/polyline.js";
|
|
13
|
+
import W from "../Modules/rangePiece/index.js";
|
|
14
14
|
import "@realsee/five";
|
|
15
15
|
import "../../shared-utils/uuid.js";
|
|
16
16
|
import "../utils/line.js";
|
|
@@ -29,7 +29,7 @@ import "../../shared-utils/animationFrame/index.js";
|
|
|
29
29
|
import "../../shared-utils/noop.js";
|
|
30
30
|
import "../utils/calculateThreeMouse.js";
|
|
31
31
|
import "../utils/mouseGroup.js";
|
|
32
|
-
class re extends
|
|
32
|
+
class re extends y {
|
|
33
33
|
constructor(e) {
|
|
34
34
|
super(e);
|
|
35
35
|
t(this, "state", "watching");
|
|
@@ -41,32 +41,28 @@ class re extends D {
|
|
|
41
41
|
t(this, "deleteDom");
|
|
42
42
|
t(this, "rangePieceController");
|
|
43
43
|
t(this, "disposers", []);
|
|
44
|
-
/** 编辑线条发生改变时通知外部 */
|
|
45
|
-
t(this, "onLineChanged", () => {
|
|
46
|
-
this.hook.emit("editedPolylineChange", this.polyline);
|
|
47
|
-
});
|
|
48
44
|
t(this, "onWantsTapGesture", (e) => {
|
|
49
45
|
if (this.state === "editing")
|
|
50
46
|
return !1;
|
|
51
47
|
const [i] = this.five.model.intersectRaycaster(e);
|
|
52
48
|
if (!i)
|
|
53
49
|
return;
|
|
54
|
-
const o = this.five.camera,
|
|
55
|
-
const [
|
|
56
|
-
if (!
|
|
50
|
+
const o = this.five.camera, a = i.point.clone().project(o), d = this.container.clientWidth, l = this.container.clientHeight, f = new p(a.x * d, a.y * l), g = this.model.getAllLines().map((s) => {
|
|
51
|
+
const [r, C] = s.points, c = r.position.clone().project(o), m = C.position.clone().project(o);
|
|
52
|
+
if (!L(c) && !L(m))
|
|
57
53
|
return null;
|
|
58
|
-
const
|
|
59
|
-
return { id:
|
|
60
|
-
}).filter((
|
|
54
|
+
const w = new p(c.x * d, c.y * l), b = new p(m.x * d, m.y * l);
|
|
55
|
+
return { id: s.id, points: [w, b] };
|
|
56
|
+
}).filter((s) => !!s);
|
|
61
57
|
if (g.length === 0)
|
|
62
58
|
return;
|
|
63
|
-
const u = g.map((
|
|
64
|
-
const
|
|
65
|
-
return { id:
|
|
66
|
-
}).sort((
|
|
59
|
+
const u = g.map((s) => {
|
|
60
|
+
const r = N(f, s.points);
|
|
61
|
+
return { id: s.id, distance: r.distanceTo(f) };
|
|
62
|
+
}).sort((s, r) => s.distance - r.distance)[0];
|
|
67
63
|
if (u.distance > 20)
|
|
68
64
|
return;
|
|
69
|
-
const P = this.
|
|
65
|
+
const P = this.model.getAllLines().find(({ id: s }) => s === u.id);
|
|
70
66
|
if (P)
|
|
71
67
|
return this.chooseLine(P), !1;
|
|
72
68
|
});
|
|
@@ -90,8 +86,8 @@ class re extends D {
|
|
|
90
86
|
t(this, "onGetEndPoint", (e) => {
|
|
91
87
|
const i = this.mobileNowPoint;
|
|
92
88
|
if (this.removeLine(this.dashed), this.hasAppendDashed = !1, this.mobileStartPoint && i) {
|
|
93
|
-
const o = new
|
|
94
|
-
o.distanceItem.appendTo(this.container), o.distanceItem.update(this.five), o.hook.on("selected", this.chooseLine), this.disposers.push(() => o.hook.off("selected", this.chooseLine)), this.group.add(o.mesh), this.
|
|
89
|
+
const o = new T(this.mobileStartPoint, i, this.model), a = new v({ model: this.model });
|
|
90
|
+
a.addLine(o), o.distanceItem.appendTo(this.container), o.distanceItem.update(this.five), o.hook.on("selected", this.chooseLine), this.disposers.push(() => o.hook.off("selected", this.chooseLine)), this.group.add(o.mesh), this.model.addPolyline(a);
|
|
95
91
|
}
|
|
96
92
|
this.mobileStartPoint = null, this.mobileNowPoint = null, this.five.needsRender = !0;
|
|
97
93
|
});
|
|
@@ -106,7 +102,7 @@ class re extends D {
|
|
|
106
102
|
this.state = i, this.state === "watching" ? this.five.helperVisible = !0 : this.five.helperVisible = !1;
|
|
107
103
|
});
|
|
108
104
|
t(this, "chooseLine", (e) => {
|
|
109
|
-
const i =
|
|
105
|
+
const i = G(e);
|
|
110
106
|
this.highlightLines(i), this.five.needsRender = !0, this.hook.emit(
|
|
111
107
|
"selectedChange",
|
|
112
108
|
i.map((o) => o)
|
|
@@ -114,33 +110,33 @@ class re extends D {
|
|
|
114
110
|
});
|
|
115
111
|
t(this, "deleteDomClickCallback", () => {
|
|
116
112
|
this.highlightedLines.forEach((e) => {
|
|
117
|
-
this.removeLine(e)
|
|
113
|
+
this.removeLine(e);
|
|
114
|
+
const i = this.model.getPolylineByLine(e);
|
|
115
|
+
this.model.removePolyline(i);
|
|
118
116
|
}), this.highlightedLines = [], this.deleteDom.setLines([]).hide();
|
|
119
117
|
});
|
|
120
118
|
t(this, "cancelDeleteClickCallback", () => {
|
|
121
119
|
this.clearHighlightLines();
|
|
122
120
|
});
|
|
123
|
-
this.model = new
|
|
121
|
+
this.model = new D(this.config), this.polyline = new v({ model: this.model }), this.rangePieceController = new W(e), this.deleteDom = new M(this.five, {
|
|
124
122
|
i18n: this.config.i18n,
|
|
125
123
|
onClick: this.deleteDomClickCallback,
|
|
126
124
|
cancelDelete: this.cancelDeleteClickCallback
|
|
127
|
-
}).appendTo(this.container), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.onWantsTapGesture), this.five.on("wantsToMoveToPano", this.onWantsToMoveToPano), this.
|
|
125
|
+
}).appendTo(this.container), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.onWantsTapGesture), this.five.on("wantsToMoveToPano", this.onWantsToMoveToPano), this.five.helperVisible = !1, this.hook.emit("editedDashedLineChange", null), this.hook.on("getStartPoint", this.onGetStartPoint), this.hook.on("getEndPoint", this.onGetEndPoint), this.hook.on("nowPointChange", this.onNowPointChange), this.hook.on("willChangeState", this.onWillChangeState), this.five.refresh();
|
|
128
126
|
}
|
|
129
127
|
dispose() {
|
|
130
|
-
super.dispose(), this.disposers.forEach((e) => e()), this.five.helperVisible = !0, this.rangePieceController.dispose(), this.group.remove(this.mouseGroup, this.dashed.mesh), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsTapGesture", this.onWantsTapGesture), this.five.off("wantsToMoveToPano", this.onWantsToMoveToPano), this.
|
|
128
|
+
super.dispose(), this.disposers.forEach((e) => e()), this.five.helperVisible = !0, this.rangePieceController.dispose(), this.group.remove(this.mouseGroup, this.dashed.mesh), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsTapGesture", this.onWantsTapGesture), this.five.off("wantsToMoveToPano", this.onWantsToMoveToPano), this.hook.off("getStartPoint", this.onGetStartPoint), this.hook.off("getEndPoint", this.onGetEndPoint), this.hook.off("nowPointChange", this.onNowPointChange), this.hook.off("willChangeState", this.onWillChangeState), this.hook.emit("selectedChange", []), this.dashed.distanceItem.remove(), this.five.needsRender = !0;
|
|
131
129
|
}
|
|
132
130
|
highlightLine(e) {
|
|
133
131
|
e.selected || (e.selected = !0, this.group.add(e.lightMesh), e.distanceItem.highlight(), this.five.needsRender = !0);
|
|
134
132
|
}
|
|
135
133
|
clearHighlightLines() {
|
|
136
|
-
this.group.children.length !== 0 && (this.deleteDom.setLines([]).hide(), this.
|
|
134
|
+
this.group.children.length !== 0 && (this.deleteDom.setLines([]).hide(), this.model.getAllLines().forEach((e) => {
|
|
137
135
|
e.selected = !1, e.distanceItem.unHighlight(), this.group.remove(e.lightMesh);
|
|
138
136
|
}), this.highlightedLines = [], this.five.needsRender = !0);
|
|
139
137
|
}
|
|
140
138
|
getEditingLines() {
|
|
141
|
-
return this.
|
|
142
|
-
}
|
|
143
|
-
addStartPoint() {
|
|
139
|
+
return this.model.polylines;
|
|
144
140
|
}
|
|
145
141
|
highlightLines(e) {
|
|
146
142
|
this.clearHighlightLines(), this.highlightedLines = e, this.deleteDom.setLines(e).updatePosition().show(), e.forEach((i) => this.highlightLine(i));
|
|
@@ -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;
|