@realsee/dnalogel 2.16.0-alpha.0 → 2.16.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +3 -1
- package/dist/index.cjs.js +33 -33
- package/dist/index.js +832 -815
- package/dist/index.umd.js +26 -26
- package/dist/shared-utils/three/loadVideoTexture.d.ts +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +46 -46
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/PanoVideoPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ImagePlaneGroup.html +6 -6
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +6 -6
- package/docs/interfaces/TagStyle.html +6 -6
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/ElementRenderer.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelElement.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PanoVideoPluginParameterType.html +5 -5
- package/docs/types/PanoVideoPluginReturnType.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/PanoTagPlugin/controller/TagComputer.js +9 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +41 -33
- package/libs/PanoTagPlugin/controller/TagUtil.js +60 -50
- package/libs/PanoTagPlugin/controller/index.js +7 -7
- package/libs/PanoTagPlugin/index.js +7 -7
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +3 -1
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +62 -56
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +7 -7
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/loadVideoTexture.d.ts +1 -1
- package/libs/shared-utils/three/loadVideoTexture.js +9 -9
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视看房插件合集 - v2.16.0-alpha.
|
|
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-alpha.1</title><meta name="description" content="Documentation for 如视看房插件合集 - v2.16.0-alpha.1"/><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-alpha.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视看房插件合集 - v2.16.0-alpha.1</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-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-alpha.
|
|
15
|
+
<li><a href="../modules.html">如视看房插件合集 - v2.16.0-alpha.1</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/12a37b2/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,7 +41,7 @@
|
|
|
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/>alpha.
|
|
44
|
+
<li><a href="../modules.html">如视看房插件合集 -<wbr/> v2.16.0-<wbr/>alpha.1</a>
|
|
45
45
|
<ul>
|
|
46
46
|
<li class="tsd-kind-namespace"><a href="../modules/PanoVideoPluginType.html">Pano<wbr/>Video<wbr/>Plugin<wbr/>Type</a></li>
|
|
47
47
|
<li class="tsd-kind-namespace"><a href="../modules/Util.html">Util</a></li></ul></li></ul></div></details></nav>
|
|
@@ -48,7 +48,14 @@ import "../../base/BasePlugin.js";
|
|
|
48
48
|
import "../../vendor/svelte/store/index.js";
|
|
49
49
|
import "../../vendor/svelte/internal/index.js";
|
|
50
50
|
import "../utils/device.js";
|
|
51
|
-
|
|
51
|
+
import "../utils/model/mediaPlane.js";
|
|
52
|
+
import "../../shared-utils/three/Quadrangle.js";
|
|
53
|
+
import "../../shared-utils/math/pointIsRectangle.js";
|
|
54
|
+
import "../../shared-utils/three/loadVideoTexture.js";
|
|
55
|
+
import "../Assets/Icon.js";
|
|
56
|
+
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
57
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
58
|
+
class Ve extends S {
|
|
52
59
|
constructor(e) {
|
|
53
60
|
super(e);
|
|
54
61
|
T(this, "raycaster", new C.Raycaster());
|
|
@@ -308,5 +315,5 @@ class he extends S {
|
|
|
308
315
|
}
|
|
309
316
|
}
|
|
310
317
|
export {
|
|
311
|
-
|
|
318
|
+
Ve as TagComputer
|
|
312
319
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var j = Object.defineProperty;
|
|
2
|
-
var w = (
|
|
3
|
-
var c = (
|
|
4
|
-
var P = (
|
|
2
|
+
var w = (d, p, t) => p in d ? j(d, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[p] = t;
|
|
3
|
+
var c = (d, p, t) => (w(d, typeof p != "symbol" ? p + "" : p, t), t);
|
|
4
|
+
var P = (d, p, t) => new Promise((e, i) => {
|
|
5
5
|
var o = (s) => {
|
|
6
6
|
try {
|
|
7
7
|
a(t.next(s));
|
|
@@ -15,17 +15,17 @@ var P = (l, p, t) => new Promise((e, i) => {
|
|
|
15
15
|
i(r);
|
|
16
16
|
}
|
|
17
17
|
}, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(o, n);
|
|
18
|
-
a((t = t.apply(
|
|
18
|
+
a((t = t.apply(d, p)).next());
|
|
19
19
|
});
|
|
20
20
|
import { TagComputer as O } from "./TagComputer.js";
|
|
21
21
|
import { Group as b, Quaternion as x, Vector3 as D, Matrix4 as T } from "three";
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { arrayPositionToVector3 as
|
|
25
|
-
import { centerPoint as
|
|
22
|
+
import I from "../Components/TagContainer.js";
|
|
23
|
+
import E from "../Components/Tag/index.js";
|
|
24
|
+
import { arrayPositionToVector3 as v } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
25
|
+
import { centerPoint as G } from "../../shared-utils/three/centerPoint.js";
|
|
26
26
|
import "@realsee/five/gltf-loader";
|
|
27
|
-
import { ImagePlane as R, VideoPlane as
|
|
28
|
-
import { isMediaModelTag as
|
|
27
|
+
import { ImagePlane as R, VideoPlane as k } from "../utils/model/mediaPlane.js";
|
|
28
|
+
import { isMediaModelTag as S } from "../utils/tag/tagCheck.js";
|
|
29
29
|
import { CSS3DRenderPlugin as A } from "../../CSS3DRenderPlugin/index.js";
|
|
30
30
|
import { loadGLTF as V } from "../../shared-utils/three/GLTFLoader.js";
|
|
31
31
|
import "@realsee/five";
|
|
@@ -60,6 +60,12 @@ import "../../base/BasePlugin.js";
|
|
|
60
60
|
import "../../vendor/svelte/store/index.js";
|
|
61
61
|
import "../../vendor/svelte/internal/index.js";
|
|
62
62
|
import "../utils/device.js";
|
|
63
|
+
import "../../shared-utils/three/Quadrangle.js";
|
|
64
|
+
import "../../shared-utils/math/pointIsRectangle.js";
|
|
65
|
+
import "../../shared-utils/three/loadVideoTexture.js";
|
|
66
|
+
import "../Assets/Icon.js";
|
|
67
|
+
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
68
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
63
69
|
import "../Components/TagItem.js";
|
|
64
70
|
import "../utils/noTypecheck.js";
|
|
65
71
|
import "../Components/Common/TagPoint.js";
|
|
@@ -69,7 +75,6 @@ import "../../vendor/svelte/easing/index.js";
|
|
|
69
75
|
import "../Components/Common/Icon/Icon.js";
|
|
70
76
|
import "../utils/getImageInfo.js";
|
|
71
77
|
import "../utils/px2rem.js";
|
|
72
|
-
import "../Assets/Icon.js";
|
|
73
78
|
import "classnames";
|
|
74
79
|
import "../Components/Tag/TextTag/index.js";
|
|
75
80
|
import "../Components/Tag/TextTag/TextTag.js";
|
|
@@ -130,14 +135,10 @@ import "../Components/Tag/AudioTag/AudioPlaneTag.js";
|
|
|
130
135
|
import "../Components/Tag/MediaPlane.js";
|
|
131
136
|
import "../Components/Tag/LinkTag.js";
|
|
132
137
|
import "../Components/Tag/CustomTag.js";
|
|
133
|
-
import "../../shared-utils/three/Quadrangle.js";
|
|
134
|
-
import "../../shared-utils/math/pointIsRectangle.js";
|
|
135
|
-
import "../../shared-utils/three/loadVideoTexture.js";
|
|
136
|
-
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
137
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
138
138
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
139
139
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
140
|
-
|
|
140
|
+
const F = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
|
|
141
|
+
class Ze extends O {
|
|
141
142
|
constructor(t) {
|
|
142
143
|
super(t);
|
|
143
144
|
c(this, "group", new b());
|
|
@@ -160,8 +161,8 @@ class Xe extends O {
|
|
|
160
161
|
const a = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
|
|
161
162
|
if (a && this.gltfObjectGroup.remove(a), this.getRenderType(t) === "Mesh") {
|
|
162
163
|
if (!t.mediaPlane) {
|
|
163
|
-
const r = t.data.mediaPosition.map(
|
|
164
|
-
t.mediaPlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(
|
|
164
|
+
const r = t.data.mediaPosition.map(v);
|
|
165
|
+
t.mediaPlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(v));
|
|
165
166
|
const m = new D().addVectors(r[0], r[2]).divideScalar(2);
|
|
166
167
|
t.mediaPlane.position.copy(m), o.add(t.mediaPlane);
|
|
167
168
|
}
|
|
@@ -189,12 +190,19 @@ class Xe extends O {
|
|
|
189
190
|
const o = i.url, n = i.type;
|
|
190
191
|
if (!o || (e.mediaPlane && (e.mediaPlane.visible = (r = (s = e.state) == null ? void 0 : s.visible) != null ? r : !0), ((m = e.mediaPlane) == null ? void 0 : m.src) === o))
|
|
191
192
|
return;
|
|
192
|
-
const a = e.position.map(
|
|
193
|
+
const a = e.position.map(v);
|
|
193
194
|
if (e.mediaPlane && e.mediaPlane.removeFromParent(), n === "Image")
|
|
194
195
|
e.mediaPlane = new R(o, a);
|
|
195
196
|
else if (n === "Video") {
|
|
196
|
-
const
|
|
197
|
-
|
|
197
|
+
const l = new k(o, a, {
|
|
198
|
+
videoCoverSrc: i.videoCoverUrl,
|
|
199
|
+
playButton: e.data.playIcon,
|
|
200
|
+
videoTextureMap: F,
|
|
201
|
+
ImageTextureMap: B
|
|
202
|
+
});
|
|
203
|
+
l.videoInstance.addEventListener("play", () => {
|
|
204
|
+
this.mediaStore.set({ currentMediaElement: l.videoInstance });
|
|
205
|
+
}), l.initialDomEvents(this.five), l.initialRenderHooks(this.five), e.mediaPlane = l;
|
|
198
206
|
}
|
|
199
207
|
this.imagePlaneGroup.add(e.mediaPlane);
|
|
200
208
|
});
|
|
@@ -238,7 +246,7 @@ class Xe extends O {
|
|
|
238
246
|
if (!m)
|
|
239
247
|
return;
|
|
240
248
|
this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
|
|
241
|
-
const
|
|
249
|
+
const l = new E({
|
|
242
250
|
target: m.container,
|
|
243
251
|
props: {
|
|
244
252
|
tag: e,
|
|
@@ -249,13 +257,13 @@ class Xe extends O {
|
|
|
249
257
|
}
|
|
250
258
|
});
|
|
251
259
|
e.tag3DContentSvelte = {
|
|
252
|
-
svelteApp:
|
|
260
|
+
svelteApp: l,
|
|
253
261
|
domContainer: m,
|
|
254
262
|
css3DInstance: m,
|
|
255
263
|
initialNormal: a,
|
|
256
264
|
currentNormal: a,
|
|
257
265
|
dispose: () => {
|
|
258
|
-
|
|
266
|
+
l.$destroy(), m.dispose();
|
|
259
267
|
}
|
|
260
268
|
};
|
|
261
269
|
}
|
|
@@ -263,7 +271,7 @@ class Xe extends O {
|
|
|
263
271
|
}
|
|
264
272
|
updateRenderModelTag() {
|
|
265
273
|
const t = (i) => !this.enabledModelTagSet.has(i.customID);
|
|
266
|
-
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(
|
|
274
|
+
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(S).forEach((i) => {
|
|
267
275
|
var o;
|
|
268
276
|
(o = i.model) == null || o.promise.then((n) => {
|
|
269
277
|
n.visible = this.getCurrentVisibleState(i);
|
|
@@ -277,20 +285,20 @@ class Xe extends O {
|
|
|
277
285
|
});
|
|
278
286
|
}
|
|
279
287
|
updateTagCss3DObjectMatrix(t, e) {
|
|
280
|
-
var g,
|
|
281
|
-
const i = (
|
|
288
|
+
var g, C, M, y;
|
|
289
|
+
const i = (M = (C = (g = t.mergedConfig) == null ? void 0 : g.tag3DConfig) == null ? void 0 : C.ratio) != null ? M : 216e-5, o = (y = t.tag3DContentSvelte) == null ? void 0 : y.css3DInstance.css3DObject;
|
|
282
290
|
if (!o)
|
|
283
291
|
return;
|
|
284
|
-
const n =
|
|
292
|
+
const n = S(t) ? t.data.mediaPosition : t.position;
|
|
285
293
|
e.updateWorldMatrix(!1, !1);
|
|
286
|
-
const a = e.matrixWorld, s = new D().fromArray(n[0]), r = new D().fromArray(n[2]), m =
|
|
294
|
+
const a = e.matrixWorld, s = new D().fromArray(n[0]), r = new D().fromArray(n[2]), m = G(s, r).add(new D(0, 0, 5e-4)), l = new T().setPosition(m), f = new T().makeScale(i, i, i), u = new T().multiply(a).multiply(l).multiply(f);
|
|
287
295
|
u.decompose(o.position, o.quaternion, o.scale);
|
|
288
296
|
const h = o.opacityMesh;
|
|
289
297
|
h && u.decompose(h.position, h.quaternion, h.scale);
|
|
290
298
|
}
|
|
291
299
|
addMediaModelTag(t) {
|
|
292
300
|
return P(this, null, function* () {
|
|
293
|
-
const e = t.filter(
|
|
301
|
+
const e = t.filter(S).map((i) => this.loadModel(i));
|
|
294
302
|
yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
295
303
|
});
|
|
296
304
|
}
|
|
@@ -303,7 +311,7 @@ class Xe extends O {
|
|
|
303
311
|
const i = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
|
|
304
312
|
if (!i)
|
|
305
313
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
306
|
-
this.TagContainerSvelte = new
|
|
314
|
+
this.TagContainerSvelte = new I({
|
|
307
315
|
target: i,
|
|
308
316
|
props: { hooks: this.hooks, tags: t, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
309
317
|
});
|
|
@@ -341,5 +349,5 @@ class Xe extends O {
|
|
|
341
349
|
}
|
|
342
350
|
}
|
|
343
351
|
export {
|
|
344
|
-
|
|
352
|
+
Ze as TagRender
|
|
345
353
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var T = Object.defineProperty;
|
|
2
2
|
var y = (c, u, e) => u in c ? T(c, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[u] = e;
|
|
3
|
-
var
|
|
3
|
+
var l = (c, u, e) => (y(c, typeof u != "symbol" ? u + "" : u, e), e);
|
|
4
4
|
import D from "object-assign-deep";
|
|
5
5
|
import * as C from "three";
|
|
6
|
-
import { DefaultConfig as
|
|
7
|
-
import { anyPositionToVector3 as
|
|
6
|
+
import { DefaultConfig as P } from "../tag.config.js";
|
|
7
|
+
import { anyPositionToVector3 as w, arrayPositionToVector3 as p } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
8
8
|
import { planeNormal as g } from "../utils/planeNormal.js";
|
|
9
|
-
import { tagPosition as
|
|
10
|
-
import { normalPositionToPositions as
|
|
9
|
+
import { tagPosition as E, getTagPosition as k } from "../utils/tagPosition.js";
|
|
10
|
+
import { normalPositionToPositions as M } from "../utils/normalPositionToPositions.js";
|
|
11
11
|
import { TagCache as b } from "./TagCache.js";
|
|
12
12
|
import { writable as I } from "../../vendor/svelte/store/index.js";
|
|
13
13
|
import { isIOSWX as A } from "../utils/device.js";
|
|
@@ -16,6 +16,7 @@ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
16
16
|
import "@realsee/five";
|
|
17
17
|
import { isMediaPlaneTag as x, isMediaModelTag as v, isPlaneTag as V } from "../utils/tag/tagCheck.js";
|
|
18
18
|
import { DomEvents as L } from "../../shared-utils/threex/domevents/index.js";
|
|
19
|
+
import { VideoPlane as S } from "../utils/model/mediaPlane.js";
|
|
19
20
|
import "@realsee/five/gltf-loader";
|
|
20
21
|
import "../../shared-utils/three/loadTexture.js";
|
|
21
22
|
import "../../shared-utils/three/centerPoint.js";
|
|
@@ -31,30 +32,40 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
|
31
32
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
32
33
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
33
34
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
34
|
-
|
|
35
|
+
import "../../shared-utils/three/Quadrangle.js";
|
|
36
|
+
import "../../shared-utils/math/pointIsRectangle.js";
|
|
37
|
+
import "../../shared-utils/three/loadVideoTexture.js";
|
|
38
|
+
import "../Assets/Icon.js";
|
|
39
|
+
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
40
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
41
|
+
class ve extends b {
|
|
35
42
|
constructor(e) {
|
|
36
43
|
super(e);
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
44
|
+
l(this, "tags", []);
|
|
45
|
+
l(this, "config", P);
|
|
46
|
+
l(this, "mediaStore", I({
|
|
40
47
|
currentMediaElement: null
|
|
41
48
|
}));
|
|
42
|
-
|
|
43
|
-
|
|
49
|
+
l(this, "css3DRenderPlugin");
|
|
50
|
+
l(this, "store", {
|
|
44
51
|
disposers: [],
|
|
45
52
|
disposed: !1,
|
|
46
53
|
resizeObserverDisposerAdding: !1,
|
|
47
54
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
48
55
|
});
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
56
|
+
l(this, "domEvents");
|
|
57
|
+
l(this, "mouseInfo");
|
|
58
|
+
l(this, "preventWhenMouseDown", () => {
|
|
52
59
|
var e;
|
|
53
60
|
if ((e = this.mouseInfo) != null && e.isDown)
|
|
54
61
|
return !1;
|
|
55
62
|
});
|
|
56
63
|
const i = this.five.getElement();
|
|
57
|
-
i && (this.domEvents = new L(this.five.camera, i)), this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.
|
|
64
|
+
i && (this.domEvents = new L(this.five.camera, i)), this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: o }) => {
|
|
65
|
+
this.tags.forEach((t) => {
|
|
66
|
+
t.mediaPlane instanceof S && o !== t.mediaPlane.videoInstance && t.mediaPlane.pause();
|
|
67
|
+
});
|
|
68
|
+
}), this.store.disposers.push(() => {
|
|
58
69
|
this.five.off("wantsMoveToPano", this.preventWhenMouseDown), this.five.off("wantsTapGesture", this.preventWhenMouseDown);
|
|
59
70
|
});
|
|
60
71
|
}
|
|
@@ -77,8 +88,8 @@ class le extends b {
|
|
|
77
88
|
if (!e)
|
|
78
89
|
return (t = this.config.globalConfig) != null ? t : {};
|
|
79
90
|
const i = {};
|
|
80
|
-
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((
|
|
81
|
-
const r =
|
|
91
|
+
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((a) => {
|
|
92
|
+
const r = a;
|
|
82
93
|
if (i[r])
|
|
83
94
|
return;
|
|
84
95
|
const f = r.split("-");
|
|
@@ -91,10 +102,10 @@ class le extends b {
|
|
|
91
102
|
(e.stickType === s || s === "Any") && (e.contentType === n || n === "Any") && (i[r] = this.config.contentTypeConfig[r]);
|
|
92
103
|
}
|
|
93
104
|
if (f.length === 3) {
|
|
94
|
-
const [s = "Any", n,
|
|
105
|
+
const [s = "Any", n, h] = f;
|
|
95
106
|
if (n === "Audio" && e.contentType === "Audio") {
|
|
96
|
-
const
|
|
97
|
-
(
|
|
107
|
+
const m = e;
|
|
108
|
+
(m.stickType === s || s === "Any") && m.data.appearance === h && (i[r] = this.config.contentTypeConfig[r]);
|
|
98
109
|
}
|
|
99
110
|
}
|
|
100
111
|
});
|
|
@@ -129,26 +140,25 @@ class le extends b {
|
|
|
129
140
|
return !0;
|
|
130
141
|
}
|
|
131
142
|
getRenderType(e) {
|
|
132
|
-
const i =
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
if (
|
|
140
|
-
if (
|
|
141
|
-
if (
|
|
143
|
+
const i = (() => {
|
|
144
|
+
if (e.stickType === "3DPoint")
|
|
145
|
+
return "Dom";
|
|
146
|
+
const o = this.getTagConfig(e);
|
|
147
|
+
if (!o || typeof o != "object" || !o.renderType)
|
|
148
|
+
return;
|
|
149
|
+
const t = e.data.mediaData;
|
|
150
|
+
if (!(!t || t.length === 0) && o.renderType === "Mesh") {
|
|
151
|
+
if (x(e)) {
|
|
152
|
+
if (t.length === 1 && (t[0].type === "Image" || t[0].type === "Video"))
|
|
142
153
|
return "Mesh";
|
|
143
|
-
} else
|
|
144
|
-
return "
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
return "Dom";
|
|
154
|
+
} else if (v(e))
|
|
155
|
+
return t.length === 1 && t[0].type === "Image" ? "Mesh" : "BehindDom";
|
|
156
|
+
}
|
|
157
|
+
})();
|
|
158
|
+
return i != null ? i : "Dom";
|
|
149
159
|
}
|
|
150
160
|
getAngle(e, i) {
|
|
151
|
-
var d,
|
|
161
|
+
var d, a, r;
|
|
152
162
|
const o = (d = this.five.panoIndex) != null ? d : i;
|
|
153
163
|
if (o === void 0)
|
|
154
164
|
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
@@ -156,21 +166,21 @@ class le extends b {
|
|
|
156
166
|
if (t.angle !== void 0)
|
|
157
167
|
return t.angle;
|
|
158
168
|
{
|
|
159
|
-
const f = (r = (
|
|
169
|
+
const f = (r = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : r.position;
|
|
160
170
|
if (f === void 0)
|
|
161
171
|
throw new Error(`getAngleRange(): observerPosition is ${f}`);
|
|
162
|
-
const s = (() => e.stickType === "3DPoint" ?
|
|
172
|
+
const s = (() => e.stickType === "3DPoint" ? w(e.normal) : g(e.position))();
|
|
163
173
|
if (!s)
|
|
164
174
|
return;
|
|
165
|
-
const n =
|
|
175
|
+
const n = E(e.position);
|
|
166
176
|
if (!n)
|
|
167
177
|
return;
|
|
168
|
-
const
|
|
169
|
-
return t.angle =
|
|
178
|
+
const h = new C.Vector3().copy(f).sub(n), m = s.angleTo(h) * 180 / Math.PI;
|
|
179
|
+
return t.angle = m, t.angle;
|
|
170
180
|
}
|
|
171
181
|
}
|
|
172
182
|
getDistance(e, i) {
|
|
173
|
-
var d,
|
|
183
|
+
var d, a, r;
|
|
174
184
|
const o = (d = this.five.panoIndex) != null ? d : i;
|
|
175
185
|
if (o === void 0)
|
|
176
186
|
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
@@ -178,10 +188,10 @@ class le extends b {
|
|
|
178
188
|
if (t.distance !== void 0)
|
|
179
189
|
return t.distance;
|
|
180
190
|
{
|
|
181
|
-
const f = (r = (
|
|
191
|
+
const f = (r = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : r.position;
|
|
182
192
|
if (f === void 0)
|
|
183
193
|
throw new Error(`getDistance(): observerPosition is ${f}`);
|
|
184
|
-
const s =
|
|
194
|
+
const s = k(e);
|
|
185
195
|
if (!s)
|
|
186
196
|
return -1;
|
|
187
197
|
const n = f.distanceTo(s);
|
|
@@ -194,7 +204,7 @@ class le extends b {
|
|
|
194
204
|
if (v(e))
|
|
195
205
|
return e.data.mediaPosition;
|
|
196
206
|
const i = e;
|
|
197
|
-
return
|
|
207
|
+
return M(
|
|
198
208
|
this.five.camera.position,
|
|
199
209
|
p(i.position),
|
|
200
210
|
p(i.normal)
|
|
@@ -216,7 +226,7 @@ class le extends b {
|
|
|
216
226
|
isDown: !0,
|
|
217
227
|
mouseDownTimestamp: Date.now()
|
|
218
228
|
};
|
|
219
|
-
},
|
|
229
|
+
}, a = (s) => {
|
|
220
230
|
if (!t()) {
|
|
221
231
|
this.mouseInfo = void 0;
|
|
222
232
|
return;
|
|
@@ -243,8 +253,8 @@ class le extends b {
|
|
|
243
253
|
const n = s.origDomEvent;
|
|
244
254
|
!this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && o(n), this.mouseInfo = void 0);
|
|
245
255
|
};
|
|
246
|
-
return this.domEvents.addEventListener(i, "mousedown", d, !1), this.domEvents.addEventListener(i, "mouseup",
|
|
247
|
-
!this.domEvents || (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown", d), this.domEvents.removeEventListener(i, "mouseup",
|
|
256
|
+
return this.domEvents.addEventListener(i, "mousedown", d, !1), this.domEvents.addEventListener(i, "mouseup", a, !1), this.domEvents.addEventListener(i, "touchstart", r, !1), this.domEvents.addEventListener(i, "touchend", f, !1), () => {
|
|
257
|
+
!this.domEvents || (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown", d), this.domEvents.removeEventListener(i, "mouseup", a), this.domEvents.removeEventListener(i, "touchstart", r), this.domEvents.removeEventListener(i, "touchend", f));
|
|
248
258
|
};
|
|
249
259
|
}
|
|
250
260
|
getTagNormal(e) {
|
|
@@ -286,5 +296,5 @@ class le extends b {
|
|
|
286
296
|
}
|
|
287
297
|
}
|
|
288
298
|
export {
|
|
289
|
-
|
|
299
|
+
ve as TagUtil
|
|
290
300
|
};
|
|
@@ -73,6 +73,13 @@ import "../../base/BasePlugin.js";
|
|
|
73
73
|
import "../../vendor/svelte/store/index.js";
|
|
74
74
|
import "../../vendor/svelte/internal/index.js";
|
|
75
75
|
import "../utils/device.js";
|
|
76
|
+
import "../utils/model/mediaPlane.js";
|
|
77
|
+
import "../../shared-utils/three/Quadrangle.js";
|
|
78
|
+
import "../../shared-utils/math/pointIsRectangle.js";
|
|
79
|
+
import "../../shared-utils/three/loadVideoTexture.js";
|
|
80
|
+
import "../Assets/Icon.js";
|
|
81
|
+
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
82
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
76
83
|
import "../Components/TagContainer.js";
|
|
77
84
|
import "../Components/TagItem.js";
|
|
78
85
|
import "../Components/Tag/index.js";
|
|
@@ -89,7 +96,6 @@ import "animejs";
|
|
|
89
96
|
import "../utils/search.js";
|
|
90
97
|
import "../utils/constants.js";
|
|
91
98
|
import "../Components/Common/Arrow.js";
|
|
92
|
-
import "../Assets/Icon.js";
|
|
93
99
|
import "../utils/doUtil.js";
|
|
94
100
|
import "../../shared-utils/svelte/resizeObserver.js";
|
|
95
101
|
import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
@@ -144,12 +150,6 @@ import "../utils/getImageInfo.js";
|
|
|
144
150
|
import "../Components/Tag/CustomTag.js";
|
|
145
151
|
import "classnames";
|
|
146
152
|
import "../Components/Common/TagPoint.js";
|
|
147
|
-
import "../utils/model/mediaPlane.js";
|
|
148
|
-
import "../../shared-utils/three/Quadrangle.js";
|
|
149
|
-
import "../../shared-utils/math/pointIsRectangle.js";
|
|
150
|
-
import "../../shared-utils/three/loadVideoTexture.js";
|
|
151
|
-
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
152
|
-
import "../../shared-utils/five/FiveDomEvents.js";
|
|
153
153
|
import "../../CSS3DRenderPlugin/index.js";
|
|
154
154
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
155
155
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
@@ -48,6 +48,13 @@ import "../base/BasePlugin.js";
|
|
|
48
48
|
import "../vendor/svelte/store/index.js";
|
|
49
49
|
import "../vendor/svelte/internal/index.js";
|
|
50
50
|
import "./utils/device.js";
|
|
51
|
+
import "./utils/model/mediaPlane.js";
|
|
52
|
+
import "../shared-utils/three/Quadrangle.js";
|
|
53
|
+
import "../shared-utils/math/pointIsRectangle.js";
|
|
54
|
+
import "../shared-utils/three/loadVideoTexture.js";
|
|
55
|
+
import "./Assets/Icon.js";
|
|
56
|
+
import "../shared-utils/three/getPositionsByObjectFit.js";
|
|
57
|
+
import "../shared-utils/five/FiveDomEvents.js";
|
|
51
58
|
import "./Components/TagContainer.js";
|
|
52
59
|
import "./Components/TagItem.js";
|
|
53
60
|
import "./Components/Tag/index.js";
|
|
@@ -64,7 +71,6 @@ import "animejs";
|
|
|
64
71
|
import "./utils/search.js";
|
|
65
72
|
import "./utils/constants.js";
|
|
66
73
|
import "./Components/Common/Arrow.js";
|
|
67
|
-
import "./Assets/Icon.js";
|
|
68
74
|
import "./utils/doUtil.js";
|
|
69
75
|
import "../shared-utils/svelte/resizeObserver.js";
|
|
70
76
|
import "../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
|
|
@@ -119,12 +125,6 @@ import "./utils/getImageInfo.js";
|
|
|
119
125
|
import "./Components/Tag/CustomTag.js";
|
|
120
126
|
import "classnames";
|
|
121
127
|
import "./Components/Common/TagPoint.js";
|
|
122
|
-
import "./utils/model/mediaPlane.js";
|
|
123
|
-
import "../shared-utils/three/Quadrangle.js";
|
|
124
|
-
import "../shared-utils/math/pointIsRectangle.js";
|
|
125
|
-
import "../shared-utils/three/loadVideoTexture.js";
|
|
126
|
-
import "../shared-utils/three/getPositionsByObjectFit.js";
|
|
127
|
-
import "../shared-utils/five/FiveDomEvents.js";
|
|
128
128
|
import "../CSS3DRenderPlugin/index.js";
|
|
129
129
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
130
130
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
@@ -20,20 +20,22 @@ declare class ImagePlane extends MediaPlane {
|
|
|
20
20
|
declare class VideoPlane extends MediaPlane {
|
|
21
21
|
readonly isVideoPlane = true;
|
|
22
22
|
name: string;
|
|
23
|
+
videoInstance: HTMLVideoElement;
|
|
23
24
|
private objectFit;
|
|
24
25
|
private buttonSrc;
|
|
26
|
+
private paused;
|
|
25
27
|
private videoCoverSrc?;
|
|
26
28
|
private domEvents?;
|
|
27
29
|
private disposers;
|
|
28
30
|
private domEventsListenerTemporaryList;
|
|
29
31
|
private cornerPoints;
|
|
30
|
-
private videoInstance?;
|
|
31
32
|
private videoMesh?;
|
|
32
33
|
private coverMesh?;
|
|
33
34
|
private buttonMesh?;
|
|
34
35
|
private videoTextureMap;
|
|
35
36
|
private ImageTextureMap;
|
|
36
37
|
constructor(videoSrc: string, cornerPoints: Vector3[], params?: {
|
|
38
|
+
videoInstance?: HTMLVideoElement;
|
|
37
39
|
playButton?: 'withText' | 'withoutText' | string;
|
|
38
40
|
videoCoverSrc?: string;
|
|
39
41
|
objectFit?: 'contain' | 'fill';
|