@realsee/dnalogel 2.16.0-1 → 2.16.0-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +2 -0
- package/dist/GuideLinePlugin/index.d.ts +2 -1
- package/dist/GuideLinePlugin/typing.d.ts +4 -0
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +1 -0
- package/dist/index.cjs.js +19 -18
- package/dist/index.js +552 -529
- package/dist/index.umd.js +20 -19
- 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 +47 -31
- 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 +126 -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/GuideLineItem/index.js +8 -8
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +50 -34
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +2 -0
- package/libs/GuideLinePlugin/index.d.ts +2 -1
- package/libs/GuideLinePlugin/typing.d.ts +4 -0
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +1 -0
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +31 -24
- 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-3</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.16.0-3"/><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-3</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-3</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/01f4151/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/>3</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-3</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.16.0-3"/><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-3</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-3</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/01f4151/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/>3</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,9 +1,9 @@
|
|
|
1
1
|
var u = Object.defineProperty;
|
|
2
2
|
var h = (o, e, t) => e in o ? u(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var i = (o, e, t) => (h(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import
|
|
4
|
+
import g from "object-assign-deep";
|
|
5
5
|
import { GuideLineModeItem as s } from "../GuideLineModeItem/index.js";
|
|
6
|
-
class
|
|
6
|
+
class c {
|
|
7
7
|
constructor(e) {
|
|
8
8
|
i(this, "id");
|
|
9
9
|
i(this, "renderID");
|
|
@@ -18,18 +18,18 @@ class d {
|
|
|
18
18
|
this.setDataByMode("panorama", e), this.setDataByMode("model", e);
|
|
19
19
|
}
|
|
20
20
|
setDataByMode(e, t) {
|
|
21
|
-
const r = e === "panorama" ? this.panoramaItem : this.modelItem,
|
|
22
|
-
if (!
|
|
21
|
+
const r = e === "panorama" ? this.panoramaItem : this.modelItem, n = e === "panorama" ? t.panorama_style : t.model_style;
|
|
22
|
+
if (!n)
|
|
23
23
|
return;
|
|
24
|
-
const
|
|
25
|
-
t.path ? r.setGeometryByPath(
|
|
24
|
+
const p = t.path, m = { url: this.plugin.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }, a = n, l = g({ texture: m }, n);
|
|
25
|
+
t.pano_group && e === "panorama" && r.setSkippedPanoGroup(t.pano_group), t.path ? r.setGeometryByPath(p, a) : t.pano_group && r.setGeometryByPanoGroup(t.pano_group, a), r.setMartial(l);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
const I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29
29
|
__proto__: null,
|
|
30
|
-
GuideLineItem:
|
|
30
|
+
GuideLineItem: c
|
|
31
31
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
c as GuideLineItem,
|
|
34
34
|
I as GuideLineItem$1
|
|
35
35
|
};
|
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var d = (r, e, i) => e in r ?
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var g = Object.getOwnPropertySymbols;
|
|
3
|
+
var c = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var d = (r, e, i) => e in r ? f(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i, p = (r, e) => {
|
|
5
5
|
for (var i in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var i of
|
|
9
|
-
|
|
6
|
+
c.call(e, i) && d(r, i, e[i]);
|
|
7
|
+
if (g)
|
|
8
|
+
for (var i of g(e))
|
|
9
|
+
v.call(e, i) && d(r, i, e[i]);
|
|
10
10
|
return r;
|
|
11
11
|
};
|
|
12
12
|
var t = (r, e, i) => (d(r, typeof e != "symbol" ? e + "" : e, i), i);
|
|
13
13
|
import * as o from "three";
|
|
14
|
-
import { logWarning as
|
|
15
|
-
import { createLineGeometry as
|
|
16
|
-
import { isPanoramaLike as
|
|
14
|
+
import { logWarning as C, logError as b } from "../../shared-utils/log.js";
|
|
15
|
+
import { createLineGeometry as y } from "../utils/createLineGeometry.js";
|
|
16
|
+
import { isPanoramaLike as E, isModelLike as k } 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
|
-
const
|
|
23
|
+
import { loadTexture as F } from "../../shared-utils/three/loadTexture.js";
|
|
24
|
+
const P = `
|
|
25
25
|
varying vec2 vUv;
|
|
26
|
+
|
|
26
27
|
void main() {
|
|
27
28
|
vUv = uv;
|
|
28
29
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
29
30
|
}
|
|
30
|
-
`,
|
|
31
|
+
`, w = `
|
|
31
32
|
// \u662F\u5426\u4F7F\u7528\u989C\u8272
|
|
32
33
|
uniform int useMapColor;
|
|
33
34
|
// \u8D34\u56FE
|
|
@@ -68,12 +69,13 @@ const F = `
|
|
|
68
69
|
gl_FragColor.a = gl_FragColor.a * opacity;
|
|
69
70
|
}
|
|
70
71
|
`;
|
|
71
|
-
class
|
|
72
|
+
class M {
|
|
72
73
|
constructor(e, i) {
|
|
73
74
|
t(this, "mesh");
|
|
74
75
|
t(this, "five");
|
|
75
76
|
t(this, "mode");
|
|
76
77
|
t(this, "path", []);
|
|
78
|
+
t(this, "skippedPositions", null);
|
|
77
79
|
t(this, "textureUrl", "");
|
|
78
80
|
t(this, "scale", 1);
|
|
79
81
|
t(this, "width", 0.5);
|
|
@@ -97,14 +99,14 @@ class w {
|
|
|
97
99
|
this.updateVisible();
|
|
98
100
|
});
|
|
99
101
|
t(this, "onFiveModeChange", (e) => {
|
|
100
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
102
|
+
this.modeVisible = this.mode === "panorama" ? E(e) : k(e), this.updateVisible();
|
|
101
103
|
});
|
|
102
|
-
t(this, "logWarning", (e) =>
|
|
103
|
-
t(this, "logError", (e) =>
|
|
104
|
+
t(this, "logWarning", (e) => C("GuideLineModeItem: ", e));
|
|
105
|
+
t(this, "logError", (e) => b("GuideLineModeItem: ", e));
|
|
104
106
|
this.five = e, this.mode = i.mode, this.plugin = i.plugin;
|
|
105
|
-
const s = new o.BufferGeometry(),
|
|
106
|
-
vertexShader:
|
|
107
|
-
fragmentShader:
|
|
107
|
+
const s = new o.BufferGeometry(), u = new o.ShaderMaterial({
|
|
108
|
+
vertexShader: P,
|
|
109
|
+
fragmentShader: w,
|
|
108
110
|
transparent: !0,
|
|
109
111
|
uniforms: {
|
|
110
112
|
map: { value: null },
|
|
@@ -116,7 +118,7 @@ class w {
|
|
|
116
118
|
opacity: { value: 1 }
|
|
117
119
|
}
|
|
118
120
|
});
|
|
119
|
-
this.mesh = new o.Mesh(s,
|
|
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);
|
|
120
122
|
}
|
|
121
123
|
setCustomVisible(e) {
|
|
122
124
|
if (this.disposed)
|
|
@@ -150,18 +152,32 @@ class w {
|
|
|
150
152
|
this.path = s, this.setGeometryByPath(s, i);
|
|
151
153
|
}
|
|
152
154
|
setGeometryByPath(e, i) {
|
|
153
|
-
var l;
|
|
155
|
+
var n, l, m;
|
|
156
|
+
if (this.disposed)
|
|
157
|
+
return this.logError("disposed");
|
|
158
|
+
const s = (n = i == null ? void 0 : i.scale) != null ? n : this.scale, u = (l = i == null ? void 0 : i.width) != null ? l : this.width, h = (m = i == null ? void 0 : i.unit_length) != null ? m : this.unitLength;
|
|
159
|
+
this.path = e, this.scale = s, this.width = u, this.unitLength = h;
|
|
160
|
+
const a = y({
|
|
161
|
+
path: e,
|
|
162
|
+
width: u * s,
|
|
163
|
+
unitLength: h * s,
|
|
164
|
+
skipPositions: this.skippedPositions
|
|
165
|
+
});
|
|
166
|
+
this.mesh.geometry = a;
|
|
167
|
+
}
|
|
168
|
+
setSkippedPanoGroup(e) {
|
|
154
169
|
if (this.disposed)
|
|
155
170
|
return this.logError("disposed");
|
|
156
|
-
this.
|
|
157
|
-
|
|
158
|
-
this.
|
|
171
|
+
if (!this.five.work)
|
|
172
|
+
return this.logError("setSkippedPanoGroup: work is not ready");
|
|
173
|
+
const i = e ? e.map((s) => this.five.work.observers[s]).map((s) => s.standingPosition.clone()) : null;
|
|
174
|
+
this.skippedPositions = i;
|
|
159
175
|
}
|
|
160
176
|
setMartial(e) {
|
|
161
177
|
var i;
|
|
162
178
|
if (this.disposed)
|
|
163
179
|
return this.logError("disposed");
|
|
164
|
-
e != null && e.color && this.setColor(e.color), e != null && e.opacity && this.setOpacity(e.opacity), (i = e == null ? void 0 : e.texture) != null && i.url && this.setTextureUrl(e.texture.url);
|
|
180
|
+
e != null && e.color && this.setColor(e.color), e != null && e.opacity && this.setOpacity(e.opacity), (i = e == null ? void 0 : e.texture) != null && i.url && this.setTextureUrl(e.texture.url), e != null && e.background_color && this.setBackgroundColor(e.background_color), e != null && e.background_opacity && this.setBackgroundOpacity(e.background_opacity);
|
|
165
181
|
}
|
|
166
182
|
setColor(e) {
|
|
167
183
|
if (this.disposed)
|
|
@@ -191,7 +207,7 @@ class w {
|
|
|
191
207
|
setTextureUrl(e) {
|
|
192
208
|
if (this.disposed)
|
|
193
209
|
return this.logError("disposed");
|
|
194
|
-
this.textureUrl = e,
|
|
210
|
+
this.textureUrl = e, F(e).then((i) => {
|
|
195
211
|
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());
|
|
196
212
|
});
|
|
197
213
|
}
|
|
@@ -206,15 +222,15 @@ class w {
|
|
|
206
222
|
this.five.scene.remove(this.mesh), this.five.needsRender = !0;
|
|
207
223
|
}
|
|
208
224
|
getPathFromPanoGroup(e, i, s) {
|
|
209
|
-
const h = e.map((
|
|
210
|
-
return [
|
|
225
|
+
const h = e.map((a) => i.observers[a]).map((a) => a.standingPosition.toArray());
|
|
226
|
+
return [p({ type: "CatmullRomCurve3", points: h }, s)];
|
|
211
227
|
}
|
|
212
228
|
}
|
|
213
|
-
const
|
|
229
|
+
const H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
214
230
|
__proto__: null,
|
|
215
|
-
GuideLineModeItem:
|
|
231
|
+
GuideLineModeItem: M
|
|
216
232
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
217
233
|
export {
|
|
218
|
-
|
|
219
|
-
|
|
234
|
+
M as GuideLineModeItem,
|
|
235
|
+
H as GuideLineModeItem$1
|
|
220
236
|
};
|
|
@@ -10,6 +10,7 @@ declare class GuideLineModeItem {
|
|
|
10
10
|
private five;
|
|
11
11
|
private mode;
|
|
12
12
|
private path;
|
|
13
|
+
private skippedPositions;
|
|
13
14
|
private textureUrl;
|
|
14
15
|
private scale;
|
|
15
16
|
private width;
|
|
@@ -38,6 +39,7 @@ declare class GuideLineModeItem {
|
|
|
38
39
|
setGeometryByPanoGroup(panoGroup: number[], options?: CatmullRomCurve3RestParams & PluginType.GuideLineGeometryStyle): void;
|
|
39
40
|
/** 通过路径设置线条形状 */
|
|
40
41
|
setGeometryByPath(path: PluginType.PathItem[], options?: PluginType.GuideLineGeometryStyle): void;
|
|
42
|
+
setSkippedPanoGroup(panoGroup: null | number[]): void;
|
|
41
43
|
/** 设置线条材质 */
|
|
42
44
|
setMartial(options?: PluginType.GuideLineMaterialStyle): void;
|
|
43
45
|
setColor(color: null | number[]): void;
|
|
@@ -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 };
|
|
@@ -1,35 +1,42 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as n from "three";
|
|
2
2
|
import { Vector3 as b } from "three";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
const
|
|
3
|
+
import F from "polyline-normals";
|
|
4
|
+
const z = 2, G = 3, M = 3, X = 2;
|
|
5
|
+
function H(e) {
|
|
6
|
+
const i = e.width, E = e.unitLength / i, c = i / 2, y = e.path, f = new n.CurvePath();
|
|
7
7
|
y.forEach((t) => {
|
|
8
|
-
const a =
|
|
9
|
-
a &&
|
|
8
|
+
const a = k(t);
|
|
9
|
+
a && f.add(a);
|
|
10
10
|
});
|
|
11
|
-
const
|
|
12
|
-
let
|
|
13
|
-
for (let t = 0; t <
|
|
14
|
-
const [a,
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
|
|
11
|
+
const P = Math.ceil(f.getLength() * 100), o = f.getPoints(P), g = o.length, L = F(o.map((t) => [t.x, t.z])), x = (g - 1) * z * G, p = 2 * g, C = p * M, B = p * X, r = new Uint32Array(x), s = new Float32Array(C), u = new Float32Array(B);
|
|
12
|
+
let d = 0;
|
|
13
|
+
for (let t = 0; t < o.length; t++) {
|
|
14
|
+
const [a, w] = L[t][0], T = o[t], { x: N, y: R, z: A } = T;
|
|
15
|
+
d += t > 0 ? o[t - 1].clone().sub(o[t]).length() : 0;
|
|
16
|
+
const m = new b(N + a * c, R + 0.05, A + w * c);
|
|
17
|
+
s[t * 6 + 0] = m.x, s[t * 6 + 1] = m.y, s[t * 6 + 2] = m.z;
|
|
18
|
+
const v = new b(N - a * c, R + 0.05, A - w * c);
|
|
19
|
+
s[t * 6 + 3] = v.x, s[t * 6 + 4] = v.y, s[t * 6 + 5] = v.z;
|
|
20
|
+
const _ = d / i / E;
|
|
21
|
+
if (u[t * 4 + 0] = 0, u[t * 4 + 1] = _, u[t * 4 + 2] = 1, u[t * 4 + 3] = _, e.skipPositions) {
|
|
22
|
+
const V = new n.Vector3().lerpVectors(m, v, 0.5);
|
|
23
|
+
if (e.skipPositions.some((U) => U.distanceTo(V) < 0.26))
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
t !== o.length - 1 && (r[t * 6 + 0] = t * 2 + 0, r[t * 6 + 1] = t * 2 + 2, r[t * 6 + 2] = t * 2 + 1, r[t * 6 + 3] = t * 2 + 2, r[t * 6 + 4] = t * 2 + 3, r[t * 6 + 5] = t * 2 + 1);
|
|
20
27
|
}
|
|
21
|
-
const l = new
|
|
22
|
-
return l.setAttribute("position", new
|
|
28
|
+
const l = new n.BufferGeometry();
|
|
29
|
+
return l.setAttribute("position", new n.BufferAttribute(s, 3)), l.setAttribute("uv", new n.BufferAttribute(u, 2)), l.setIndex(new n.BufferAttribute(r, 1)), l;
|
|
23
30
|
}
|
|
24
|
-
function
|
|
25
|
-
if (
|
|
26
|
-
const
|
|
27
|
-
return new
|
|
31
|
+
function k(e) {
|
|
32
|
+
if (I(e)) {
|
|
33
|
+
const i = [e.closed, e.curve_type, e.tension], h = e.points.map((c) => new n.Vector3().fromArray(c));
|
|
34
|
+
return new n.CatmullRomCurve3(h, ...i);
|
|
28
35
|
}
|
|
29
36
|
}
|
|
30
|
-
function
|
|
37
|
+
function I(e) {
|
|
31
38
|
return e.type === "CatmullRomCurve3";
|
|
32
39
|
}
|
|
33
40
|
export {
|
|
34
|
-
|
|
41
|
+
H as createLineGeometry
|
|
35
42
|
};
|
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-3");
|
|
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-3", "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-3",
|
|
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*",
|