@realsee/dnalogel 2.16.0-0 → 2.16.0-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GuideLinePlugin/Controller.d.ts +3 -1
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +7 -4
- package/dist/GuideLinePlugin/index.d.ts +2 -1
- package/dist/GuideLinePlugin/typing.d.ts +2 -10
- package/dist/index.cjs.js +69 -22
- package/dist/index.js +1020 -926
- package/dist/index.umd.js +69 -22
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +32 -31
- package/docs/classes/CruisePluginController.html +29 -28
- package/docs/classes/GuideLineItem.GuideLineItem.html +21 -20
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +90 -29
- package/docs/classes/Magnifier.html +21 -20
- package/docs/classes/ModelRoomLabelController.html +12 -11
- package/docs/classes/Object3DHelperController.html +26 -25
- package/docs/classes/PaintBrush.html +16 -15
- package/docs/classes/PanoMeasurePluginLine.html +24 -23
- package/docs/classes/PanoMeasurePluginModel.html +23 -22
- package/docs/classes/PanoMeasurePluginPoint.html +15 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +27 -26
- package/docs/classes/PanoTagPluginController.html +48 -47
- package/docs/classes/Util.BetterTween.html +9 -8
- package/docs/classes/Util.FivePointSelector.html +13 -12
- package/docs/classes/Util.Interval.html +13 -12
- package/docs/classes/Util.Magnifier.html +18 -17
- package/docs/classes/Util.PointDomHelper.html +12 -11
- package/docs/classes/Util.PointHelper.html +12 -11
- package/docs/classes/Util.Rectangle.html +14 -13
- package/docs/enums/CameraMovementEffect.html +8 -7
- package/docs/enums/ContentType.html +20 -19
- package/docs/enums/DIRECTION.html +10 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +10 -9
- package/docs/enums/DimensionType.html +8 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +9 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +10 -9
- package/docs/enums/PaintBrushTypeEnum.html +9 -8
- package/docs/enums/Rotation.html +9 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -4
- package/docs/functions/CameraMovementPlugin.html +5 -4
- package/docs/functions/CruisePlugin.html +5 -4
- package/docs/functions/GuideLinePlugin.html +6 -5
- package/docs/functions/ItemLabelPlugin.html +5 -4
- package/docs/functions/MapviewFloorplanPlugin.html +5 -4
- package/docs/functions/ModelChassisCompassPlugin.html +5 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
- package/docs/functions/ModelFloorplanPlugin.html +5 -4
- package/docs/functions/ModelItemLabelPlugin.html +5 -4
- package/docs/functions/ModelRoomLabelPlugin.html +5 -4
- package/docs/functions/ModelTVVideoPlugin.html +5 -4
- package/docs/functions/ModelViewPlugin.html +5 -4
- package/docs/functions/Object3DHelperPlugin.html +5 -4
- package/docs/functions/PanoCompassPlugin.html +5 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
- package/docs/functions/PanoDoorLabelPlugin.html +5 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
- package/docs/functions/PanoMeasurePlugin.html +5 -4
- package/docs/functions/PanoRulerPlugin.html +5 -4
- package/docs/functions/PanoRulerProPlugin.html +5 -4
- package/docs/functions/PanoSpatialTagPlugin.html +5 -4
- package/docs/functions/PanoTagPlugin.html +5 -4
- package/docs/functions/PanoVideoPlugin.html +5 -4
- package/docs/functions/TopviewFloorplanPlugin.html +5 -4
- package/docs/functions/Util.getCoordsFromClient.html +6 -5
- package/docs/functions/Util.getCoordsFromElement.html +6 -5
- package/docs/functions/Util.getFrameTime.html +6 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -5
- package/docs/functions/Util.isAbsoluteURL.html +6 -5
- package/docs/functions/Util.isModelLike.html +6 -5
- package/docs/functions/Util.isNil.html +6 -5
- package/docs/functions/Util.isPanoramaLike.html +6 -5
- package/docs/functions/Util.nextFrame.html +6 -5
- package/docs/functions/Util.notNil.html +6 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +6 -5
- package/docs/functions/Util.tweenProgress.html +6 -5
- package/docs/functions/Util.uuid.html +6 -5
- package/docs/functions/pluginFlag.html +6 -5
- package/docs/index.html +5 -4
- package/docs/interfaces/AddTagConfig.html +7 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +12 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +9 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +8 -7
- package/docs/interfaces/EventMap.html +16 -15
- package/docs/interfaces/FloorplanBounding.html +9 -8
- package/docs/interfaces/FloorplanData.html +11 -10
- package/docs/interfaces/FloorplanEntrance.html +12 -11
- package/docs/interfaces/FloorplanExtraObject.html +11 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +9 -8
- package/docs/interfaces/FloorplanFloorData.html +10 -9
- package/docs/interfaces/FloorplanImagePosition.html +8 -7
- package/docs/interfaces/FloorplanObserver.html +10 -9
- package/docs/interfaces/FloorplanOutlineItem.html +10 -9
- package/docs/interfaces/FloorplanPosition.html +8 -7
- package/docs/interfaces/FloorplanRoomItem.html +14 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +8 -7
- package/docs/interfaces/FloorplanServerBounding.html +9 -8
- package/docs/interfaces/FloorplanServerComputedData.html +11 -10
- package/docs/interfaces/FloorplanServerData.html +8 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +11 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +9 -8
- package/docs/interfaces/FloorplanServerEntrance.html +12 -11
- package/docs/interfaces/FloorplanServerFloorData.html +10 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +8 -7
- package/docs/interfaces/FloorplanServerObserver.html +10 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +10 -9
- package/docs/interfaces/FloorplanServerPosition.html +8 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +15 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +8 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +97 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +258 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +92 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +87 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +108 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +85 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +76 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +71 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +82 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +99 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +103 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +92 -0
- package/docs/interfaces/HelperOffset.html +9 -8
- package/docs/interfaces/ImagePlaneGroup.html +7 -6
- package/docs/interfaces/ItemLabelPluginData.html +7 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +12 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +10 -9
- package/docs/interfaces/MinMax.html +8 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +8 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +9 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +8 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +9 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +9 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +7 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +12 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +8 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +7 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +10 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +9 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +7 -6
- package/docs/interfaces/ModelViewPluginExportType.html +12 -11
- package/docs/interfaces/Object3DHelperState.html +9 -8
- package/docs/interfaces/ObjectHelperControllers.html +10 -9
- package/docs/interfaces/PaintBrushAction.html +13 -12
- package/docs/interfaces/PaintBrushConfigs.html +13 -12
- package/docs/interfaces/PaintBrushState.html +11 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +11 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
- package/docs/interfaces/PanoMeasureParameterType.html +15 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +9 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +8 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +8 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +9 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +11 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +8 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +9 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +10 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +8 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +8 -7
- package/docs/interfaces/PanoRulerProPluginState.html +9 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +12 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +12 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +11 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +16 -15
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +7 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +11 -10
- package/docs/interfaces/Point.html +9 -8
- package/docs/interfaces/Room.html +10 -9
- package/docs/interfaces/RoomInfo.html +8 -7
- package/docs/interfaces/RoomLabel.html +15 -14
- package/docs/interfaces/RoomRules.html +6 -5
- package/docs/interfaces/Rooms.html +6 -5
- package/docs/interfaces/Scissor.html +10 -9
- package/docs/interfaces/State.html +9 -8
- package/docs/interfaces/TagCacheInterface.html +13 -12
- package/docs/interfaces/TagConfig.html +12 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +7 -6
- package/docs/interfaces/TagIconUrl.html +12 -11
- package/docs/interfaces/TagObjectGroup.html +7 -6
- package/docs/interfaces/TagStyle.html +7 -6
- package/docs/interfaces/Tags.html +10 -9
- package/docs/interfaces/TemporaryState.html +7 -6
- package/docs/interfaces/Util.MagnifierParameter.html +12 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +9 -8
- package/docs/modules/GuideLineItem.html +6 -5
- package/docs/modules/GuideLineModeItem.html +6 -5
- package/docs/modules/GuideLinePluginType.html +99 -0
- package/docs/modules/PanoVideoPluginType.html +6 -5
- package/docs/modules/Util.html +6 -5
- package/docs/modules.html +6 -4
- package/docs/types/ArrayPosition.html +6 -5
- package/docs/types/AudioAppearance.html +6 -5
- package/docs/types/AudioTagTypeConfigKey.html +6 -5
- package/docs/types/CSS3DRenderExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
- package/docs/types/ClassFunctionParameters.html +6 -5
- package/docs/types/Color.html +6 -5
- package/docs/types/ContentTypeConfigKey.html +6 -5
- package/docs/types/ContentTypeConfigKeySplit.html +6 -5
- package/docs/types/ContentTypeMap.html +6 -5
- package/docs/types/Create3DDomContainerReturnType.html +6 -5
- package/docs/types/Create3DElementReturnType.html +6 -5
- package/docs/types/CruisePluginExportType.html +6 -5
- package/docs/types/Direction-1.html +6 -5
- package/docs/types/Direction4.html +6 -5
- package/docs/types/FloorplanRuleLabels.html +6 -5
- package/docs/types/FloorplanServerRuleLabels.html +6 -5
- package/docs/types/GuideLinePluginExportType.html +6 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +67 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +65 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +67 -0
- package/docs/types/GuideLinePluginType.PathItem.html +67 -0
- package/docs/types/GuideLinePluginType.PluginData.html +65 -0
- package/docs/types/HelperEventMap.html +6 -5
- package/docs/types/LoadTagConfig.html +6 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/MediaData.html +6 -5
- package/docs/types/MediaStore.html +6 -5
- package/docs/types/ModelElement.html +6 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
- package/docs/types/MoveArgs.html +6 -5
- package/docs/types/MoveOpts.html +6 -5
- package/docs/types/Object3DHelperEventMap.html +6 -5
- package/docs/types/ObjectFit.html +6 -5
- package/docs/types/PaintBrushEventMap.html +6 -5
- package/docs/types/PanoCompassPluginData.html +6 -5
- package/docs/types/PanoCompassPluginExportType.html +6 -5
- package/docs/types/PanoCompassPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
- package/docs/types/PanoIndex.html +6 -5
- package/docs/types/PanoMeasurePluginEvent.html +6 -5
- package/docs/types/PanoMeasureReturnType.html +6 -5
- package/docs/types/PanoSpatialTagPluginId.html +6 -5
- package/docs/types/PanoTagPluginExportInterface.html +6 -5
- package/docs/types/PanoTagPluginParamsInterface.html +6 -5
- package/docs/types/PanoVideoPluginParameterType.html +6 -5
- package/docs/types/PanoVideoPluginReturnType.html +6 -5
- package/docs/types/PlaneTag.html +6 -5
- package/docs/types/PlaneTagElement.html +6 -5
- package/docs/types/Point2DElement.html +6 -5
- package/docs/types/Point2DTag.html +6 -5
- package/docs/types/Point3DElement.html +6 -5
- package/docs/types/Point3DTag.html +6 -5
- package/docs/types/PointTag.html +6 -5
- package/docs/types/PointTagElement.html +6 -5
- package/docs/types/Position.html +6 -5
- package/docs/types/RotateArgs.html +6 -5
- package/docs/types/RotateOpts.html +6 -5
- package/docs/types/RuleLabelsKey.html +6 -5
- package/docs/types/RuleLabelsValue.html +6 -5
- package/docs/types/StickType.html +6 -5
- package/docs/types/Tag.html +6 -5
- package/docs/types/Tag2D.html +6 -5
- package/docs/types/Tag3D.html +6 -5
- package/docs/types/TagContentType.html +6 -5
- package/docs/types/TagDimensionType.html +6 -5
- package/docs/types/TagElement.html +6 -5
- package/docs/types/TagEvents.html +6 -5
- package/docs/types/TagGLTFObject.html +6 -5
- package/docs/types/TagHooks.html +6 -5
- package/docs/types/TagIconSize.html +6 -5
- package/docs/types/TagId.html +6 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/WorkCode.html +6 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
- package/docs/variables/PLUGIN.html +6 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
- package/docs/variables/ROOM_TYPE_MAP.html +6 -5
- package/docs/variables/itemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
- package/libs/GuideLinePlugin/Controller.d.ts +3 -1
- package/libs/GuideLinePlugin/Controller.js +38 -27
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +124 -41
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +7 -4
- package/libs/GuideLinePlugin/index.d.ts +2 -1
- package/libs/GuideLinePlugin/typing.d.ts +2 -10
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.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.16.0-
|
|
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.16.0-2</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.16.0-2"/><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 async src="../assets/search.js" id="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,13 +6,13 @@
|
|
|
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.16.0-
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.16.0-2</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-8 col-content">
|
|
13
13
|
<div class="tsd-page-title">
|
|
14
14
|
<ul class="tsd-breadcrumb">
|
|
15
|
-
<li><a href="../modules.html">如视看房插件合集 - v2.16.0-
|
|
15
|
+
<li><a href="../modules.html">如视看房插件合集 - v2.16.0-2</a></li>
|
|
16
16
|
<li><a href="modelItemLabelPluginServerParams.html">modelItemLabelPluginServerParams</a></li></ul>
|
|
17
17
|
<h1>Variable modelItemLabelPluginServerParams<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
18
18
|
<div class="tsd-signature">model<wbr/>Item<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span> </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<li class="tsd-parameter">
|
|
25
25
|
<h5>version<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/a512d4d/plugins/src/ModelItemLabelPlugin/index.ts#L7">plugins/src/ModelItemLabelPlugin/index.ts:7</a></li></ul></aside></div>
|
|
28
28
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
29
29
|
<div class="tsd-navigation settings">
|
|
30
30
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -41,10 +41,11 @@
|
|
|
41
41
|
<h3><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> Modules</h3></summary>
|
|
42
42
|
<div class="tsd-accordion-details">
|
|
43
43
|
<ul>
|
|
44
|
-
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.16.0-<wbr/>
|
|
44
|
+
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.16.0-<wbr/>2</a>
|
|
45
45
|
<ul>
|
|
46
46
|
<li class="tsd-kind-namespace"><a href="../modules/GuideLineItem.html">Guide<wbr/>Line<wbr/>Item</a></li>
|
|
47
47
|
<li class="tsd-kind-namespace"><a href="../modules/GuideLineModeItem.html">Guide<wbr/>Line<wbr/>Mode<wbr/>Item</a></li>
|
|
48
|
+
<li class="tsd-kind-namespace"><a href="../modules/GuideLinePluginType.html">Guide<wbr/>Line<wbr/>Plugin<wbr/>Type</a></li>
|
|
48
49
|
<li class="tsd-kind-namespace"><a href="../modules/PanoVideoPluginType.html">Pano<wbr/>Video<wbr/>Plugin<wbr/>Type</a></li>
|
|
49
50
|
<li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
|
|
50
51
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
@@ -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.16.0-
|
|
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.16.0-2</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.16.0-2"/><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 async src="../assets/search.js" id="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,13 +6,13 @@
|
|
|
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.16.0-
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.16.0-2</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-8 col-content">
|
|
13
13
|
<div class="tsd-page-title">
|
|
14
14
|
<ul class="tsd-breadcrumb">
|
|
15
|
-
<li><a href="../modules.html">如视看房插件合集 - v2.16.0-
|
|
15
|
+
<li><a href="../modules.html">如视看房插件合集 - v2.16.0-2</a></li>
|
|
16
16
|
<li><a href="modelRoomLabelPluginServerParams.html">modelRoomLabelPluginServerParams</a></li></ul>
|
|
17
17
|
<h1>Variable modelRoomLabelPluginServerParams<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
18
18
|
<div class="tsd-signature">model<wbr/>Room<wbr/>Label<wbr/>Plugin<wbr/>Server<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span> </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>version<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<li class="tsd-parameter">
|
|
25
25
|
<h5>version<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/a512d4d/plugins/src/ModelRoomLabelPlugin/index.ts#L9">plugins/src/ModelRoomLabelPlugin/index.ts:9</a></li></ul></aside></div>
|
|
28
28
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
29
29
|
<div class="tsd-navigation settings">
|
|
30
30
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -41,10 +41,11 @@
|
|
|
41
41
|
<h3><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> Modules</h3></summary>
|
|
42
42
|
<div class="tsd-accordion-details">
|
|
43
43
|
<ul>
|
|
44
|
-
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.16.0-<wbr/>
|
|
44
|
+
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.16.0-<wbr/>2</a>
|
|
45
45
|
<ul>
|
|
46
46
|
<li class="tsd-kind-namespace"><a href="../modules/GuideLineItem.html">Guide<wbr/>Line<wbr/>Item</a></li>
|
|
47
47
|
<li class="tsd-kind-namespace"><a href="../modules/GuideLineModeItem.html">Guide<wbr/>Line<wbr/>Mode<wbr/>Item</a></li>
|
|
48
|
+
<li class="tsd-kind-namespace"><a href="../modules/GuideLinePluginType.html">Guide<wbr/>Line<wbr/>Plugin<wbr/>Type</a></li>
|
|
48
49
|
<li class="tsd-kind-namespace"><a href="../modules/PanoVideoPluginType.html">Pano<wbr/>Video<wbr/>Plugin<wbr/>Type</a></li>
|
|
49
50
|
<li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
|
|
50
51
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
@@ -45,6 +45,8 @@ export default class Controller extends BasePluginWithData.Controller<PluginStat
|
|
|
45
45
|
addGuideLineItem(data?: PluginType.GuideLineItem): GuideLineItem;
|
|
46
46
|
/** 获取 Plugin 内的 GuideLineItem */
|
|
47
47
|
getGuideLineItemByID(id: string | number): GuideLineItem;
|
|
48
|
+
removeGuideLineItem(item: GuideLineItem): void;
|
|
49
|
+
clear(): void;
|
|
48
50
|
private handleEnable;
|
|
49
51
|
private handleVisible;
|
|
50
52
|
private handleDispose;
|
|
@@ -52,6 +54,6 @@ export default class Controller extends BasePluginWithData.Controller<PluginStat
|
|
|
52
54
|
/**
|
|
53
55
|
* @description: Wait for five model ready
|
|
54
56
|
*/
|
|
55
|
-
private
|
|
57
|
+
private waitFiveLoaded;
|
|
56
58
|
private getDataWithoutVersion;
|
|
57
59
|
}
|
|
@@ -10,26 +10,26 @@ var u = (s, t, e) => t in s ? g(s, t, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
return s;
|
|
11
11
|
};
|
|
12
12
|
var n = (s, t, e) => (u(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
13
|
-
var
|
|
13
|
+
var l = (s, t, e) => new Promise((i, r) => {
|
|
14
14
|
var d = (a) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
16
|
+
h(e.next(a));
|
|
17
17
|
} catch (p) {
|
|
18
18
|
r(p);
|
|
19
19
|
}
|
|
20
20
|
}, o = (a) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
22
|
+
h(e.throw(a));
|
|
23
23
|
} catch (p) {
|
|
24
24
|
r(p);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, h = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(d, o);
|
|
27
|
+
h((e = e.apply(s, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Controller as
|
|
29
|
+
import { Controller as G } from "../base/BasePluginWithData.js";
|
|
30
30
|
import "three";
|
|
31
|
-
import { equal as
|
|
32
|
-
import { GuideLineItem as
|
|
31
|
+
import { equal as I } from "../shared-utils/equal.js";
|
|
32
|
+
import { GuideLineItem as D } from "./GuideLineItem/index.js";
|
|
33
33
|
import "polyline-normals";
|
|
34
34
|
import "@realsee/five";
|
|
35
35
|
import "hammerjs";
|
|
@@ -61,10 +61,10 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
61
61
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
62
62
|
import "../shared-utils/animationFrame/index.js";
|
|
63
63
|
const v = "v1.1.0", c = "GuideLinePlugin", f = `${c}@${v}`, ne = (s) => `${f}--${s}`;
|
|
64
|
-
function
|
|
64
|
+
function _(s) {
|
|
65
65
|
return Object.hasOwn(s, "routes");
|
|
66
66
|
}
|
|
67
|
-
class de extends
|
|
67
|
+
class de extends G {
|
|
68
68
|
constructor(e, i) {
|
|
69
69
|
super(e, i);
|
|
70
70
|
n(this, "version", v);
|
|
@@ -83,25 +83,28 @@ class de extends _ {
|
|
|
83
83
|
Object.assign(window, { [`__${c}_DEBUG__`]: this });
|
|
84
84
|
}
|
|
85
85
|
load(e, i, r = !0) {
|
|
86
|
-
return
|
|
86
|
+
return l(this, null, function* () {
|
|
87
|
+
if (this.state.disposed)
|
|
88
|
+
return;
|
|
89
|
+
this.clear();
|
|
87
90
|
const d = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, o = yield this.formatData(e);
|
|
88
|
-
this.hooks.emit("dataChange", o, d), this.data = o, o.lines.forEach((
|
|
89
|
-
this.addGuideLineItem(
|
|
90
|
-
}), yield this.
|
|
91
|
+
this.hooks.emit("dataChange", o, d), this.data = o, o.lines.forEach((h) => {
|
|
92
|
+
this.addGuideLineItem(h);
|
|
93
|
+
}), yield this.waitFiveLoaded(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: r }), this.hooks.emit("dataLoaded", o), console.info(`${f} loaded`, o);
|
|
91
94
|
});
|
|
92
95
|
}
|
|
93
96
|
formatData(e) {
|
|
94
|
-
return
|
|
97
|
+
return l(this, null, function* () {
|
|
95
98
|
const i = this.getDataWithoutVersion(e);
|
|
96
|
-
if (
|
|
99
|
+
if (_(i)) {
|
|
97
100
|
const { routes: r } = i;
|
|
98
101
|
return { lines: r.map((o) => {
|
|
99
|
-
const { panoIndexList:
|
|
102
|
+
const { panoIndexList: h } = o;
|
|
100
103
|
return {
|
|
101
104
|
render_id: S(),
|
|
102
|
-
pano_group:
|
|
103
|
-
panorama_like_visible: !0,
|
|
105
|
+
pano_group: h,
|
|
104
106
|
panorama_style: {
|
|
107
|
+
visible: !0,
|
|
105
108
|
width: 0.6,
|
|
106
109
|
unit_length: 0.4
|
|
107
110
|
}
|
|
@@ -112,12 +115,12 @@ class de extends _ {
|
|
|
112
115
|
});
|
|
113
116
|
}
|
|
114
117
|
show(e) {
|
|
115
|
-
return
|
|
118
|
+
return l(this, null, function* () {
|
|
116
119
|
this.setState({ visible: !0 }, e);
|
|
117
120
|
});
|
|
118
121
|
}
|
|
119
122
|
hide(e) {
|
|
120
|
-
return
|
|
123
|
+
return l(this, null, function* () {
|
|
121
124
|
this.setState({ visible: !1 }, e);
|
|
122
125
|
});
|
|
123
126
|
}
|
|
@@ -135,15 +138,23 @@ class de extends _ {
|
|
|
135
138
|
if (this.state.disposed)
|
|
136
139
|
return this.disposedErrorLog();
|
|
137
140
|
const r = m({}, this.state);
|
|
138
|
-
this.state = m(m({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible, i == null ? void 0 : i.userAction), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled, i == null ? void 0 : i.userAction),
|
|
141
|
+
this.state = m(m({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible, i == null ? void 0 : i.userAction), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled, i == null ? void 0 : i.userAction), I(r, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: (d = i == null ? void 0 : i.userAction) != null ? d : !0 }), this.five.needsRender = !0);
|
|
139
142
|
}
|
|
140
143
|
addGuideLineItem(e) {
|
|
141
|
-
const i = e.render_id || e.id, r = new
|
|
144
|
+
const i = e.render_id || e.id, r = new D({ five: this.five, id: i, plugin: this });
|
|
142
145
|
return this.itemMap.set(i, r), e && r.setData(e), r;
|
|
143
146
|
}
|
|
144
147
|
getGuideLineItemByID(e) {
|
|
145
148
|
return this.itemMap.get(e);
|
|
146
149
|
}
|
|
150
|
+
removeGuideLineItem(e) {
|
|
151
|
+
this.itemMap.delete(e.id), e.panoramaItem.dispose(), e.modelItem.dispose();
|
|
152
|
+
}
|
|
153
|
+
clear() {
|
|
154
|
+
this.itemMap.forEach((e) => {
|
|
155
|
+
this.removeGuideLineItem(e);
|
|
156
|
+
});
|
|
157
|
+
}
|
|
147
158
|
handleEnable(e, i = !0) {
|
|
148
159
|
this.hooks.emit(e ? "enable" : "disable", { userAction: i });
|
|
149
160
|
}
|
|
@@ -153,14 +164,14 @@ class de extends _ {
|
|
|
153
164
|
handleDispose() {
|
|
154
165
|
this.linesGroup && this.five.scene.remove(this.linesGroup), this.hooks.emit("dispose");
|
|
155
166
|
}
|
|
156
|
-
|
|
157
|
-
return
|
|
167
|
+
waitFiveLoaded() {
|
|
168
|
+
return l(this, null, function* () {
|
|
158
169
|
return new Promise((e) => {
|
|
159
|
-
if (this.five.
|
|
170
|
+
if (this.five.work) {
|
|
160
171
|
e();
|
|
161
172
|
return;
|
|
162
173
|
}
|
|
163
|
-
this.five.once("
|
|
174
|
+
this.five.once("loaded", () => {
|
|
164
175
|
e();
|
|
165
176
|
});
|
|
166
177
|
});
|
|
@@ -1,37 +1,81 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var p = Object.getOwnPropertySymbols;
|
|
3
|
+
var v = Object.prototype.hasOwnProperty, c = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var n = (r, e, i) => e in r ? f(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i, g = (r, e) => {
|
|
5
5
|
for (var i in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var i of
|
|
9
|
-
|
|
10
|
-
return
|
|
6
|
+
v.call(e, i) && n(r, i, e[i]);
|
|
7
|
+
if (p)
|
|
8
|
+
for (var i of p(e))
|
|
9
|
+
c.call(e, i) && n(r, i, e[i]);
|
|
10
|
+
return r;
|
|
11
11
|
};
|
|
12
|
-
var t = (
|
|
12
|
+
var t = (r, e, i) => (n(r, typeof e != "symbol" ? e + "" : e, i), i);
|
|
13
13
|
import * as o from "three";
|
|
14
|
-
import { logWarning as
|
|
14
|
+
import { logWarning as C, logError as b } from "../../shared-utils/log.js";
|
|
15
15
|
import { createLineGeometry as y } from "../utils/createLineGeometry.js";
|
|
16
|
-
import { isPanoramaLike as
|
|
16
|
+
import { isPanoramaLike as E, isModelLike as F } from "../../shared-utils/five/mode.js";
|
|
17
17
|
import "hammerjs";
|
|
18
18
|
import "@realsee/five";
|
|
19
19
|
import "@tweenjs/tween.js";
|
|
20
20
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
21
21
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
22
|
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
23
|
-
import { loadTexture as
|
|
24
|
-
|
|
23
|
+
import { loadTexture as P } from "../../shared-utils/three/loadTexture.js";
|
|
24
|
+
const k = `
|
|
25
|
+
varying vec2 vUv;
|
|
26
|
+
|
|
27
|
+
void main() {
|
|
28
|
+
vUv = uv;
|
|
29
|
+
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
30
|
+
}
|
|
31
|
+
`, w = `
|
|
32
|
+
// \u662F\u5426\u4F7F\u7528\u989C\u8272
|
|
33
|
+
uniform int useMapColor;
|
|
34
|
+
// \u8D34\u56FE
|
|
35
|
+
uniform sampler2D map;
|
|
36
|
+
// \u8D34\u56FE\u989C\u8272
|
|
37
|
+
uniform vec3 mapColor;
|
|
38
|
+
// \u8D34\u56FE\u900F\u660E\u5EA6
|
|
39
|
+
uniform float mapOpacity;
|
|
40
|
+
// \u80CC\u666F\u989C\u8272
|
|
41
|
+
uniform vec3 backgroundColor;
|
|
42
|
+
// \u80CC\u666F\u900F\u660E\u5EA6
|
|
43
|
+
uniform float backgroundOpacity;
|
|
44
|
+
// \u6574\u4F53\u900F\u660E\u5EA6
|
|
45
|
+
uniform float opacity;
|
|
46
|
+
// \u7EB9\u7406\u5750\u6807
|
|
47
|
+
varying vec2 vUv;
|
|
48
|
+
|
|
49
|
+
// \u83B7\u53D6\u7EB9\u7406\u989C\u8272
|
|
50
|
+
vec4 getTextureColor() {
|
|
51
|
+
// \u539F\u59CB\u8D34\u56FE\u989C\u8272
|
|
52
|
+
vec4 image = texture2D(map, vUv);
|
|
53
|
+
// \u5982\u679C\u4F7F\u7528\u989C\u8272
|
|
54
|
+
if (useMapColor == 1) {
|
|
55
|
+
// \u6DF7\u5408\u989C\u8272
|
|
56
|
+
image = mix(image, vec4(mapColor, image.a), image.a);
|
|
57
|
+
}
|
|
58
|
+
image.a = image.a * mapOpacity;
|
|
59
|
+
return image;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
void main() {
|
|
63
|
+
vec4 image = getTextureColor();
|
|
64
|
+
// \u8BBE\u7F6E\u80CC\u666F\u989C\u8272
|
|
65
|
+
gl_FragColor = vec4(backgroundColor, backgroundOpacity);
|
|
66
|
+
// \u6DF7\u5408\u989C\u8272\u548C\u80CC\u666F
|
|
67
|
+
gl_FragColor = mix(gl_FragColor, image, image.a);
|
|
68
|
+
// \u8BBE\u7F6E\u6574\u4F53\u900F\u660E\u5EA6
|
|
69
|
+
gl_FragColor.a = gl_FragColor.a * opacity;
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
72
|
+
class M {
|
|
25
73
|
constructor(e, i) {
|
|
26
|
-
t(this, "mesh"
|
|
27
|
-
new o.BufferGeometry(),
|
|
28
|
-
new o.MeshBasicMaterial({ transparent: !0 })
|
|
29
|
-
));
|
|
74
|
+
t(this, "mesh");
|
|
30
75
|
t(this, "five");
|
|
31
76
|
t(this, "mode");
|
|
32
77
|
t(this, "path", []);
|
|
33
|
-
t(this, "
|
|
34
|
-
t(this, "opacity", 1);
|
|
78
|
+
t(this, "skippedPositions", null);
|
|
35
79
|
t(this, "textureUrl", "");
|
|
36
80
|
t(this, "scale", 1);
|
|
37
81
|
t(this, "width", 0.5);
|
|
@@ -55,11 +99,26 @@ class w {
|
|
|
55
99
|
this.updateVisible();
|
|
56
100
|
});
|
|
57
101
|
t(this, "onFiveModeChange", (e) => {
|
|
58
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
102
|
+
this.modeVisible = this.mode === "panorama" ? E(e) : F(e), this.updateVisible();
|
|
59
103
|
});
|
|
60
|
-
t(this, "logWarning", (e) =>
|
|
61
|
-
t(this, "logError", (e) =>
|
|
62
|
-
this.five = e, this.mode = i.mode, this.
|
|
104
|
+
t(this, "logWarning", (e) => C("GuideLineModeItem: ", e));
|
|
105
|
+
t(this, "logError", (e) => b("GuideLineModeItem: ", e));
|
|
106
|
+
this.five = e, this.mode = i.mode, this.plugin = i.plugin;
|
|
107
|
+
const s = new o.BufferGeometry(), u = new o.ShaderMaterial({
|
|
108
|
+
vertexShader: k,
|
|
109
|
+
fragmentShader: w,
|
|
110
|
+
transparent: !0,
|
|
111
|
+
uniforms: {
|
|
112
|
+
map: { value: null },
|
|
113
|
+
useMapColor: { value: 0 },
|
|
114
|
+
mapColor: { value: new o.Color() },
|
|
115
|
+
mapOpacity: { value: 1 },
|
|
116
|
+
backgroundColor: { value: new o.Color() },
|
|
117
|
+
backgroundOpacity: { value: 0 },
|
|
118
|
+
opacity: { value: 1 }
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
this.mesh = new o.Mesh(s, u), this.mesh.name = "GuideLineModeItem", this.plugin.hooks.on("show", this.onPluginShow), this.plugin.hooks.on("hide", this.onPluginHide), this.plugin.hooks.on("enable", this.onPluginEnable), this.plugin.hooks.on("disable", this.onPluginDisable), this.five.on("modeChange", this.onFiveModeChange), this.onFiveModeChange(this.five.getCurrentState().mode);
|
|
63
122
|
}
|
|
64
123
|
setCustomVisible(e) {
|
|
65
124
|
if (this.disposed)
|
|
@@ -89,16 +148,25 @@ class w {
|
|
|
89
148
|
return this.logError("disposed");
|
|
90
149
|
if (!this.five.work)
|
|
91
150
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
92
|
-
const
|
|
93
|
-
this.path =
|
|
151
|
+
const s = this.getPathFromPanoGroup(e, this.five.work, i);
|
|
152
|
+
this.path = s, this.setGeometryByPath(s, i);
|
|
94
153
|
}
|
|
95
154
|
setGeometryByPath(e, i) {
|
|
96
|
-
var
|
|
155
|
+
var d, l, m;
|
|
97
156
|
if (this.disposed)
|
|
98
157
|
return this.logError("disposed");
|
|
99
|
-
this.
|
|
100
|
-
|
|
101
|
-
|
|
158
|
+
const s = (d = i == null ? void 0 : i.scale) != null ? d : this.scale, u = (l = i == null ? void 0 : i.width) != null ? l : i.width, h = (m = i == null ? void 0 : i.unit_length) != null ? m : i.unit_length;
|
|
159
|
+
this.path = e, this.scale = s, this.width = u, this.unitLength = h;
|
|
160
|
+
const a = y({ path: e, width: u * s, unitLength: h * s });
|
|
161
|
+
this.mesh.geometry = a;
|
|
162
|
+
}
|
|
163
|
+
setSkippedPanoGroup(e) {
|
|
164
|
+
if (this.disposed)
|
|
165
|
+
return this.logError("disposed");
|
|
166
|
+
if (!this.five.work)
|
|
167
|
+
return this.logError("setSkippedPanoGroup: work is not ready");
|
|
168
|
+
const i = e ? e.map((s) => this.five.work.observers[s]).map((s) => s.standingPosition.clone()) : null;
|
|
169
|
+
this.skippedPositions = i;
|
|
102
170
|
}
|
|
103
171
|
setMartial(e) {
|
|
104
172
|
var i;
|
|
@@ -109,18 +177,33 @@ class w {
|
|
|
109
177
|
setColor(e) {
|
|
110
178
|
if (this.disposed)
|
|
111
179
|
return this.logError("disposed");
|
|
112
|
-
this.
|
|
180
|
+
this.mesh.material.uniforms.useMapColor.value = e ? 1 : 0, this.mesh.material.uniforms.mapColor.value = new o.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
181
|
+
}
|
|
182
|
+
setBackgroundColor(e) {
|
|
183
|
+
if (this.disposed)
|
|
184
|
+
return this.logError("disposed");
|
|
185
|
+
this.mesh.material.uniforms.backgroundColor.value = new o.Color().setRGB(e[0], e[1], e[2]), this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
113
186
|
}
|
|
114
187
|
setOpacity(e) {
|
|
115
188
|
if (this.disposed)
|
|
116
189
|
return this.logError("disposed");
|
|
117
|
-
this.opacity = e;
|
|
190
|
+
this.mesh.material.uniforms.opacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
191
|
+
}
|
|
192
|
+
setBackgroundOpacity(e) {
|
|
193
|
+
if (this.disposed)
|
|
194
|
+
return this.logError("disposed");
|
|
195
|
+
this.mesh.material.uniforms.backgroundOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
196
|
+
}
|
|
197
|
+
setMapOpacity(e) {
|
|
198
|
+
if (this.disposed)
|
|
199
|
+
return this.logError("disposed");
|
|
200
|
+
this.mesh.material.uniforms.mapOpacity.value = e, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
118
201
|
}
|
|
119
202
|
setTextureUrl(e) {
|
|
120
203
|
if (this.disposed)
|
|
121
204
|
return this.logError("disposed");
|
|
122
|
-
this.textureUrl = e,
|
|
123
|
-
this.disposed || this.textureUrl === e && (i.wrapT = o.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.map = i, this.mesh.material.
|
|
205
|
+
this.textureUrl = e, P(e).then((i) => {
|
|
206
|
+
this.disposed || this.textureUrl === e && (i.wrapT = o.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = i, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
|
|
124
207
|
});
|
|
125
208
|
}
|
|
126
209
|
updateVisible() {
|
|
@@ -133,16 +216,16 @@ class w {
|
|
|
133
216
|
doHide() {
|
|
134
217
|
this.five.scene.remove(this.mesh), this.five.needsRender = !0;
|
|
135
218
|
}
|
|
136
|
-
getPathFromPanoGroup(e, i,
|
|
137
|
-
const
|
|
138
|
-
return [
|
|
219
|
+
getPathFromPanoGroup(e, i, s) {
|
|
220
|
+
const h = e.map((a) => i.observers[a]).map((a) => a.standingPosition.toArray());
|
|
221
|
+
return [g({ type: "CatmullRomCurve3", points: h }, s)];
|
|
139
222
|
}
|
|
140
223
|
}
|
|
141
|
-
const
|
|
224
|
+
const H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
142
225
|
__proto__: null,
|
|
143
|
-
GuideLineModeItem:
|
|
226
|
+
GuideLineModeItem: M
|
|
144
227
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
145
228
|
export {
|
|
146
|
-
|
|
147
|
-
|
|
229
|
+
M as GuideLineModeItem,
|
|
230
|
+
H as GuideLineModeItem$1
|
|
148
231
|
};
|
|
@@ -6,12 +6,11 @@ import * as THREE from 'three';
|
|
|
6
6
|
declare type CatmullRomCurve3RestParams = Omit<PluginType.CatmullRomCurve3, 'type' | 'points'>;
|
|
7
7
|
/** 在不同模态下的 GuideLine */
|
|
8
8
|
declare class GuideLineModeItem {
|
|
9
|
-
readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.
|
|
9
|
+
readonly mesh: THREE.Mesh<THREE.BufferGeometry, THREE.ShaderMaterial>;
|
|
10
10
|
private five;
|
|
11
11
|
private mode;
|
|
12
12
|
private path;
|
|
13
|
-
private
|
|
14
|
-
private opacity;
|
|
13
|
+
private skippedPositions;
|
|
15
14
|
private textureUrl;
|
|
16
15
|
private scale;
|
|
17
16
|
private width;
|
|
@@ -40,10 +39,14 @@ declare class GuideLineModeItem {
|
|
|
40
39
|
setGeometryByPanoGroup(panoGroup: number[], options?: CatmullRomCurve3RestParams & PluginType.GuideLineGeometryStyle): void;
|
|
41
40
|
/** 通过路径设置线条形状 */
|
|
42
41
|
setGeometryByPath(path: PluginType.PathItem[], options?: PluginType.GuideLineGeometryStyle): void;
|
|
42
|
+
setSkippedPanoGroup(panoGroup: null | number[]): void;
|
|
43
43
|
/** 设置线条材质 */
|
|
44
44
|
setMartial(options?: PluginType.GuideLineMaterialStyle): void;
|
|
45
|
-
setColor(color: number[]): void;
|
|
45
|
+
setColor(color: null | number[]): void;
|
|
46
|
+
setBackgroundColor(color: number[]): void;
|
|
46
47
|
setOpacity(opacity: number): void;
|
|
48
|
+
setBackgroundOpacity(opacity: number): void;
|
|
49
|
+
setMapOpacity(opacity: number): void;
|
|
47
50
|
setTextureUrl(url: string): void;
|
|
48
51
|
private onPluginShow;
|
|
49
52
|
private onPluginHide;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
2
|
import Controller from './Controller';
|
|
3
|
+
import type * as GuideLinePluginType from './typing';
|
|
3
4
|
import * as GuideLineItem from './GuideLineItem';
|
|
4
5
|
import * as GuideLineModeItem from './GuideLineModeItem';
|
|
5
6
|
export declare const GuideLinePlugin: (five: Five, config?: ConstructorParameters<typeof Controller>[1]) => Controller;
|
|
6
7
|
export type { GuideLinePluginExportType } from './typing';
|
|
7
8
|
export default GuideLinePlugin;
|
|
8
|
-
export { GuideLineItem, GuideLineModeItem };
|
|
9
|
+
export { GuideLineItem, GuideLineModeItem, GuideLinePluginType };
|
|
@@ -65,16 +65,6 @@ export declare type GuideLineItem = RequireAtLeastOne<{
|
|
|
65
65
|
pano_group?: number[];
|
|
66
66
|
/** 路径:由多个曲线组合而成的路径,路径为空时,会使用 pano_group 自动创建 */
|
|
67
67
|
path?: PathItem[];
|
|
68
|
-
/** 全景态是默认否展示
|
|
69
|
-
* - 全景态包括:
|
|
70
|
-
* - Panorama
|
|
71
|
-
* - DepthPanorama
|
|
72
|
-
* - VRPanorama
|
|
73
|
-
* - XRPanorama
|
|
74
|
-
*/
|
|
75
|
-
panorama_like_visible?: boolean;
|
|
76
|
-
/** 模型态是默认否展示,不是全景态的都算模型态 */
|
|
77
|
-
model_like_visible?: boolean;
|
|
78
68
|
/** 全景态使用的数据 */
|
|
79
69
|
panorama_style?: GuideLineStyle;
|
|
80
70
|
/** 模型态使用的数据 */
|
|
@@ -91,6 +81,8 @@ export interface GuideLineGeometryStyle {
|
|
|
91
81
|
}
|
|
92
82
|
/** 影响材质的样式 */
|
|
93
83
|
export interface GuideLineMaterialStyle {
|
|
84
|
+
/** 是否可见 */
|
|
85
|
+
visible?: boolean;
|
|
94
86
|
/** rgb 颜色 [r, g, b] */
|
|
95
87
|
color?: number[];
|
|
96
88
|
/** 透明度 */
|
|
@@ -8,7 +8,7 @@ function D(e) {
|
|
|
8
8
|
const a = M(t);
|
|
9
9
|
a && m.add(a);
|
|
10
10
|
});
|
|
11
|
-
const d = Math.ceil(m.getLength() *
|
|
11
|
+
const d = Math.ceil(m.getLength() * 100), n = m.getPoints(d), L = n.length, P = U(n.map((t) => [t.x, t.z])), x = (n.length - 1) * F * V, E = 2 * L, C = E * z, B = E * G, o = new Uint32Array(x), r = new Float32Array(C), i = new Float32Array(B);
|
|
12
12
|
let N = 0;
|
|
13
13
|
for (let t = 0; t < n.length; t++) {
|
|
14
14
|
const [a, R] = P[t][0], T = n[t], { x: p, y: w, z: A } = T, v = new b(p + a * s, w + 0.05, A + R * s);
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -12,7 +12,7 @@ import { isAbsoluteURL as a } from "../shared-utils/isAbsoluteURL.js";
|
|
|
12
12
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
13
13
|
class R {
|
|
14
14
|
constructor(t, r) {
|
|
15
|
-
s(this, "VERSION", "2.16.0-
|
|
15
|
+
s(this, "VERSION", "2.16.0-2");
|
|
16
16
|
s(this, "five");
|
|
17
17
|
s(this, "hooks", new m());
|
|
18
18
|
s(this, "staticPrefix", "//vrlab-static.ljcdn.com");
|
package/libs/index.js
CHANGED
|
@@ -353,7 +353,7 @@ import "./shared-utils/three/PointHelper.js";
|
|
|
353
353
|
import "./shared-utils/three/Assets/index.js";
|
|
354
354
|
import "./shared-utils/three/PointDomHelper.js";
|
|
355
355
|
import "./shared-utils/three/FivePointSelector.js";
|
|
356
|
-
console.info("@realsee/dnalogel %cv2.16.0-
|
|
356
|
+
console.info("@realsee/dnalogel %cv2.16.0-2", "background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px");
|
|
357
357
|
export {
|
|
358
358
|
Xp as CSS3DRender,
|
|
359
359
|
jm as CSS3DRenderPlugin,
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.16.0-
|
|
10
|
+
"version": "2.16.0-2",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|