@realsee/dnalogel 2.6.2-dev.0 → 2.6.3-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +3 -3
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/controller.d.ts +4 -0
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +0 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.js +92 -63
- package/dist/index.umd.js +2 -2
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- 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 +43 -43
- 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 +52 -56
- 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/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -5
- package/docs/functions/CameraMovementPlugin.html +5 -5
- package/docs/functions/CruisePlugin.html +5 -5
- package/docs/functions/GuideLinePlugin.html +6 -6
- package/docs/functions/ItemLabelPlugin.html +5 -5
- package/docs/functions/MapviewFloorplanPlugin.html +5 -5
- package/docs/functions/ModelChassisCompassPlugin.html +5 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
- package/docs/functions/ModelFloorplanPlugin.html +5 -5
- package/docs/functions/ModelItemLabelPlugin.html +5 -5
- package/docs/functions/ModelRoomLabelPlugin.html +5 -5
- package/docs/functions/ModelTVVideoPlugin.html +5 -5
- package/docs/functions/ModelViewPlugin.html +5 -5
- package/docs/functions/Object3DHelperPlugin.html +5 -5
- package/docs/functions/PanoCompassPlugin.html +5 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
- package/docs/functions/PanoDoorLabelPlugin.html +5 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
- package/docs/functions/PanoMeasurePlugin.html +5 -5
- package/docs/functions/PanoRulerPlugin.html +5 -5
- package/docs/functions/PanoRulerProPlugin.html +5 -5
- package/docs/functions/PanoSpatialTagPlugin.html +5 -5
- package/docs/functions/PanoTagPlugin.html +5 -5
- package/docs/functions/TopviewFloorplanPlugin.html +5 -5
- 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 +6 -6
- package/docs/index.html +5 -5
- 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/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/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 +6 -6
- package/docs/interfaces/PanoMeasureParameterType.html +12 -12
- 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 +6 -6
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -6
- 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/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 +6 -6
- package/docs/interfaces/Rooms.html +6 -6
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCache.html +26 -12
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- 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/Util.html +5 -5
- package/docs/modules.html +6 -6
- package/docs/types/ArrayPosition.html +6 -6
- package/docs/types/AudioAppearance.html +6 -6
- package/docs/types/AudioTagTypeConfigKey.html +6 -6
- package/docs/types/CSS3DRenderExportType.html +6 -6
- package/docs/types/CSS3DRenderPluginExportType.html +6 -6
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -6
- package/docs/types/Color.html +6 -6
- package/docs/types/ContentTypeConfigKey.html +6 -6
- package/docs/types/ContentTypeConfigKeySplit.html +6 -6
- package/docs/types/ContentTypeMap.html +6 -6
- package/docs/types/Create3DDomContainerReturnType.html +6 -6
- package/docs/types/Create3DElementReturnType.html +6 -6
- package/docs/types/CruisePluginExportType.html +6 -6
- package/docs/types/Direction-1.html +6 -6
- package/docs/types/Direction4.html +6 -6
- package/docs/types/FloorplanRuleLabels.html +6 -6
- package/docs/types/FloorplanServerRuleLabels.html +6 -6
- package/docs/types/GuideLinePluginExportType.html +6 -6
- package/docs/types/HelperEventMap.html +6 -6
- package/docs/types/LoadTagConfig.html +6 -6
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -6
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -6
- package/docs/types/MediaData.html +6 -6
- package/docs/types/MediaStore.html +6 -6
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -6
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -6
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -6
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -6
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -6
- package/docs/types/MoveArgs.html +6 -6
- package/docs/types/MoveOpts.html +6 -6
- package/docs/types/Object3DHelperEventMap.html +6 -6
- package/docs/types/ObjectFit.html +6 -6
- package/docs/types/PaintBrushEventMap.html +6 -6
- package/docs/types/PanoCompassPluginData.html +6 -6
- package/docs/types/PanoCompassPluginExportType.html +6 -6
- package/docs/types/PanoCompassPluginParameterType.html +6 -6
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -6
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -6
- package/docs/types/PanoIndex.html +6 -6
- package/docs/types/PanoMeasurePluginEvent.html +6 -6
- package/docs/types/PanoMeasureReturnType.html +6 -6
- package/docs/types/PanoSpatialTagPluginId.html +6 -6
- package/docs/types/PanoTagPluginExportInterface.html +6 -6
- package/docs/types/PanoTagPluginParamsInterface.html +6 -6
- package/docs/types/PlaneTag.html +6 -6
- package/docs/types/PlaneTagElement.html +6 -6
- package/docs/types/Point2DElement.html +6 -6
- package/docs/types/Point2DTag.html +6 -6
- package/docs/types/Point3DElement.html +6 -6
- package/docs/types/Point3DTag.html +6 -6
- package/docs/types/PointTag.html +6 -6
- package/docs/types/PointTagElement.html +6 -6
- package/docs/types/Position.html +6 -6
- package/docs/types/RotateArgs.html +6 -6
- package/docs/types/RotateOpts.html +6 -6
- package/docs/types/RuleLabelsKey.html +6 -6
- package/docs/types/RuleLabelsValue.html +6 -6
- package/docs/types/StickType.html +6 -6
- package/docs/types/Tag.html +6 -6
- package/docs/types/Tag2D.html +6 -6
- package/docs/types/Tag3D.html +6 -6
- package/docs/types/TagContentType.html +6 -6
- package/docs/types/TagDimensionType.html +6 -6
- package/docs/types/TagElement.html +6 -6
- package/docs/types/TagEvents.html +6 -6
- package/docs/types/TagHooks.html +6 -6
- package/docs/types/TagIconSize.html +6 -6
- package/docs/types/TagId.html +6 -6
- package/docs/types/TagPointType.html +6 -6
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -6
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -6
- package/docs/types/WorkCode.html +6 -6
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -6
- package/docs/variables/PLUGIN.html +6 -6
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -6
- package/docs/variables/ROOM_TYPE_MAP.html +6 -6
- package/docs/variables/VERSION.html +6 -6
- package/docs/variables/itemLabelPluginServerParams.html +6 -6
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -6
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -6
- package/libs/CruisePlugin/Controller.js +124 -124
- package/libs/GuideLinePlugin/Controller.js +51 -51
- package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +3 -3
- package/libs/PanoTagPlugin/controller/TagCacheController.js +6 -6
- package/libs/PanoTagPlugin/controller/TagComputer.js +159 -130
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -1
- package/libs/PanoTagPlugin/typings/controller.d.ts +4 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +0 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10932,13 +10932,13 @@ class Ka extends Ht {
|
|
|
10932
10932
|
return (v = this.five.work.observers[g]) == null ? void 0 : v.standingPosition;
|
|
10933
10933
|
}).filter(_e), r = Cm(s, {
|
|
10934
10934
|
skipPanoIndexMesh: (c = (l = e.skipPanoIndexMesh) != null ? l : n == null ? void 0 : n.skipPanoIndexMesh) != null ? c : !0,
|
|
10935
|
-
unitWidth: (f = (d = e.unitWidth) != null ? d : n.unitWidth) != null ? f : 0.6,
|
|
10936
|
-
unitHeight: (h = (u = e.unitHeight) != null ? u : n.unitHeight) != null ? h : 0.4
|
|
10935
|
+
unitWidth: (f = (d = e.unitWidth) != null ? d : n == null ? void 0 : n.unitWidth) != null ? f : 0.6,
|
|
10936
|
+
unitHeight: (h = (u = e.unitHeight) != null ? u : n == null ? void 0 : n.unitHeight) != null ? h : 0.4
|
|
10937
10937
|
});
|
|
10938
10938
|
if (!r)
|
|
10939
10939
|
return;
|
|
10940
10940
|
const a = Em({
|
|
10941
|
-
textureUrl: (A = (p = e.arrowTextureUrl) != null ? p : n.arrowTextureUrl) != null ? A : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png"
|
|
10941
|
+
textureUrl: (A = (p = e.arrowTextureUrl) != null ? p : n == null ? void 0 : n.arrowTextureUrl) != null ? A : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png"
|
|
10942
10942
|
});
|
|
10943
10943
|
return r.forEach((g) => {
|
|
10944
10944
|
const v = new x.Mesh(g, a);
|
|
@@ -11243,34 +11243,34 @@ class tl extends Ht {
|
|
|
11243
11243
|
this.five.off("gesture", o), this.five.once("wantsChangeMode", n);
|
|
11244
11244
|
};
|
|
11245
11245
|
}
|
|
11246
|
-
getPlayPromise(
|
|
11247
|
-
return X(this,
|
|
11248
|
-
var
|
|
11249
|
-
const
|
|
11250
|
-
if (n.duration = (
|
|
11251
|
-
return new Promise((
|
|
11252
|
-
let
|
|
11246
|
+
getPlayPromise(o) {
|
|
11247
|
+
return X(this, arguments, function* (e, n = {}) {
|
|
11248
|
+
var r;
|
|
11249
|
+
const s = e.data;
|
|
11250
|
+
if (n.duration = (r = n.duration) != null ? r : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!s)
|
|
11251
|
+
return new Promise((a, l) => {
|
|
11252
|
+
let c = !1;
|
|
11253
11253
|
this.addInterruptListener(() => {
|
|
11254
|
-
if (!
|
|
11255
|
-
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }),
|
|
11254
|
+
if (!c)
|
|
11255
|
+
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), c = !0, l(new Error("play is interupted"));
|
|
11256
11256
|
});
|
|
11257
11257
|
try {
|
|
11258
|
-
if (
|
|
11258
|
+
if (c)
|
|
11259
11259
|
return;
|
|
11260
|
-
const
|
|
11261
|
-
|
|
11260
|
+
const d = () => {
|
|
11261
|
+
a(), c = !0;
|
|
11262
11262
|
};
|
|
11263
|
-
switch (
|
|
11263
|
+
switch (s.effect) {
|
|
11264
11264
|
case "Move":
|
|
11265
|
-
this.move(
|
|
11265
|
+
this.move(s, n).then(d);
|
|
11266
11266
|
break;
|
|
11267
11267
|
case "Rotate":
|
|
11268
|
-
this.rotate(
|
|
11268
|
+
this.rotate(s, n).then(d);
|
|
11269
11269
|
break;
|
|
11270
11270
|
default:
|
|
11271
|
-
this.rotate(
|
|
11271
|
+
this.rotate(s, n).then(d);
|
|
11272
11272
|
}
|
|
11273
|
-
} catch (
|
|
11273
|
+
} catch (d) {
|
|
11274
11274
|
}
|
|
11275
11275
|
});
|
|
11276
11276
|
});
|
|
@@ -11311,28 +11311,28 @@ class tl extends Ht {
|
|
|
11311
11311
|
yield this.updateCamera(e, n);
|
|
11312
11312
|
});
|
|
11313
11313
|
}
|
|
11314
|
-
updateCamera(
|
|
11315
|
-
return X(this,
|
|
11316
|
-
const { five:
|
|
11317
|
-
var
|
|
11318
|
-
const
|
|
11319
|
-
if ((
|
|
11320
|
-
return
|
|
11321
|
-
if (
|
|
11322
|
-
return
|
|
11323
|
-
})(),
|
|
11314
|
+
updateCamera(o) {
|
|
11315
|
+
return X(this, arguments, function* (e, n = {}) {
|
|
11316
|
+
const { five: s, privateState: r, state: a } = this, l = (() => {
|
|
11317
|
+
var h, p;
|
|
11318
|
+
const f = (h = a.config) == null ? void 0 : h.speedConfig, u = (p = e.rotateSpeed) != null ? p : f == null ? void 0 : f.rotateSpeed;
|
|
11319
|
+
if ((f == null ? void 0 : f.rotateSpeedUnit) === void 0)
|
|
11320
|
+
return u;
|
|
11321
|
+
if (u !== void 0)
|
|
11322
|
+
return f.rotateSpeedUnit === "rad/ms" ? u : u / 1e3;
|
|
11323
|
+
})(), c = (() => {
|
|
11324
11324
|
if (n.duration)
|
|
11325
11325
|
return n.duration;
|
|
11326
|
-
if (
|
|
11327
|
-
const
|
|
11328
|
-
return km(
|
|
11326
|
+
if (l) {
|
|
11327
|
+
const f = this.five.getCurrentState();
|
|
11328
|
+
return km(f, e) / l;
|
|
11329
11329
|
}
|
|
11330
11330
|
return 800;
|
|
11331
11331
|
})();
|
|
11332
|
-
|
|
11333
|
-
const
|
|
11334
|
-
return new Promise((
|
|
11335
|
-
xm(() =>
|
|
11332
|
+
r.currentPlayKeyframe && (r.currentPlayKeyframe.originDuration = c);
|
|
11333
|
+
const d = this.getSpeededDuration(c);
|
|
11334
|
+
return new Promise((f) => {
|
|
11335
|
+
xm(() => s.updateCamera(e, d)), setTimeout(() => f(), d);
|
|
11336
11336
|
});
|
|
11337
11337
|
});
|
|
11338
11338
|
}
|
|
@@ -16755,7 +16755,7 @@ class nA extends ui {
|
|
|
16755
16755
|
super(e);
|
|
16756
16756
|
m(this, "tagCacheByPanoIndex", {});
|
|
16757
16757
|
}
|
|
16758
|
-
|
|
16758
|
+
getCache({ panoIndex: e, id: n, key: o }) {
|
|
16759
16759
|
var c, d, f, u;
|
|
16760
16760
|
const { five: s } = this, r = (c = s.panoIndex) != null ? c : e;
|
|
16761
16761
|
if (r === void 0)
|
|
@@ -16797,45 +16797,74 @@ class iA extends nA {
|
|
|
16797
16797
|
}
|
|
16798
16798
|
getVisibleByPanoIndex(e, n) {
|
|
16799
16799
|
var r;
|
|
16800
|
-
const o = this.
|
|
16800
|
+
const o = this.getCache({ panoIndex: n, id: e.id }), s = (r = this.five.panoIndex) != null ? r : n;
|
|
16801
16801
|
if (o.visible !== void 0)
|
|
16802
16802
|
return o.visible;
|
|
16803
16803
|
{
|
|
16804
16804
|
const a = (() => {
|
|
16805
|
-
var d, f, u;
|
|
16805
|
+
var d, f, u, h;
|
|
16806
16806
|
const l = (d = this.getTagConfig(e).visibleConfig) != null ? d : {}, c = this.getDistance(e);
|
|
16807
16807
|
if (typeof l == "function")
|
|
16808
|
-
return l(this.five, { tag: e, distance: c });
|
|
16808
|
+
return { value: l(this.five, { tag: e, distance: c }), reason: "config function result" };
|
|
16809
16809
|
if (l.keep === "hidden")
|
|
16810
|
-
return !1;
|
|
16810
|
+
return { value: !1, reason: "config.keep is hidden" };
|
|
16811
16811
|
if (l.keep === "visible")
|
|
16812
|
-
return !0;
|
|
16813
|
-
if (l.visiblePanoIndex !== void 0 && l.visiblePanoIndex !== "all" && s !== void 0
|
|
16814
|
-
|
|
16812
|
+
return { value: !0, reason: "config.keep is visible" };
|
|
16813
|
+
if (l.visiblePanoIndex !== void 0 && l.visiblePanoIndex !== "all" && s !== void 0) {
|
|
16814
|
+
if (Array.isArray(l.visiblePanoIndex) && !l.visiblePanoIndex.includes(s))
|
|
16815
|
+
return {
|
|
16816
|
+
value: !1,
|
|
16817
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${s}, visiblePanoIndex: ${l.visiblePanoIndex}`
|
|
16818
|
+
};
|
|
16819
|
+
if (l.visiblePanoIndex === "current" && s !== ((f = e.fiveState) == null ? void 0 : f.panoIndex))
|
|
16820
|
+
return {
|
|
16821
|
+
value: !1,
|
|
16822
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(u = e.fiveState) == null ? void 0 : u.panoIndex}`
|
|
16823
|
+
};
|
|
16824
|
+
}
|
|
16825
|
+
if (l.visibleDistance !== void 0 && l.visibleDistance !== "unLimited" && sn(c, l.visibleDistance) === !1)
|
|
16826
|
+
return {
|
|
16827
|
+
value: !1,
|
|
16828
|
+
reason: `distance is not in visibleDistance. distance: ${c}, visibleDistance: ${l.visibleDistance}`
|
|
16829
|
+
};
|
|
16815
16830
|
if (l.intersectRaycaster !== !1 && (typeof l.intersectRaycaster != "object" || l.intersectRaycaster.enabled !== !1)) {
|
|
16816
16831
|
if (s === void 0)
|
|
16817
|
-
return
|
|
16818
|
-
|
|
16819
|
-
|
|
16820
|
-
|
|
16821
|
-
const p =
|
|
16822
|
-
|
|
16823
|
-
|
|
16824
|
-
|
|
16825
|
-
|
|
16832
|
+
return {
|
|
16833
|
+
value: !1,
|
|
16834
|
+
reason: `intersectRaycaster check failed: fivePanoIndex is ${s}`
|
|
16835
|
+
};
|
|
16836
|
+
const p = (h = this.five.work.observers[s]) == null ? void 0 : h.position;
|
|
16837
|
+
if (p === void 0)
|
|
16838
|
+
throw new Error(`getVisible(): observerPosition is ${p}`);
|
|
16839
|
+
const A = Vn(e.position).sub(p).normalize();
|
|
16840
|
+
this.raycaster.set(p, A);
|
|
16841
|
+
const [g] = this.five.model.intersectRaycaster(this.raycaster), v = (() => {
|
|
16842
|
+
var w;
|
|
16843
|
+
return typeof l.intersectRaycaster == "object" && (w = l.intersectRaycaster.distanceAccuracy) != null ? w : 0.01;
|
|
16826
16844
|
})();
|
|
16827
|
-
if (
|
|
16828
|
-
return
|
|
16845
|
+
if (g && g.distance + v < c)
|
|
16846
|
+
return {
|
|
16847
|
+
value: !1,
|
|
16848
|
+
reason: `intersectRaycaster check failed: distance is ${c}, intersection.distance is ${g.distance}, distanceError is ${v}`
|
|
16849
|
+
};
|
|
16850
|
+
}
|
|
16851
|
+
if (l.angleRange && tA(e)) {
|
|
16852
|
+
const p = this.getAngle(e);
|
|
16853
|
+
if (sn(p, l.angleRange) === !1)
|
|
16854
|
+
return { value: !1, reason: `angle is not in angleRange. angle: ${p}, angleRange: ${l.angleRange}` };
|
|
16829
16855
|
}
|
|
16830
|
-
return
|
|
16856
|
+
return {
|
|
16857
|
+
value: !0,
|
|
16858
|
+
reason: "all check passed"
|
|
16859
|
+
};
|
|
16831
16860
|
})();
|
|
16832
|
-
return o.visible = a, o.visible;
|
|
16861
|
+
return o.visible = a.value, o.__debug_visiblereason__ = a, o.visible;
|
|
16833
16862
|
}
|
|
16834
16863
|
}
|
|
16835
16864
|
getUnfoldedByPanoIndex(e, n) {
|
|
16836
16865
|
if (!this.getVisibleByPanoIndex(e))
|
|
16837
16866
|
return;
|
|
16838
|
-
const s = this.
|
|
16867
|
+
const s = this.getCache({ panoIndex: n, id: e.id });
|
|
16839
16868
|
if (s.unfolded !== void 0)
|
|
16840
16869
|
return s.unfolded;
|
|
16841
16870
|
{
|
|
@@ -16902,7 +16931,7 @@ class iA extends nA {
|
|
|
16902
16931
|
const o = (r = this.five.panoIndex) != null ? r : n;
|
|
16903
16932
|
if (o === void 0)
|
|
16904
16933
|
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
16905
|
-
const s = this.
|
|
16934
|
+
const s = this.getCache({ panoIndex: n, id: e.id });
|
|
16906
16935
|
if (s.distance !== void 0)
|
|
16907
16936
|
return s.distance;
|
|
16908
16937
|
{
|
|
@@ -16918,7 +16947,7 @@ class iA extends nA {
|
|
|
16918
16947
|
const o = (r = this.five.panoIndex) != null ? r : n;
|
|
16919
16948
|
if (o === void 0)
|
|
16920
16949
|
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
16921
|
-
const s = this.
|
|
16950
|
+
const s = this.getCache({ panoIndex: n, id: e.id });
|
|
16922
16951
|
if (s.angle !== void 0)
|
|
16923
16952
|
return s.angle;
|
|
16924
16953
|
{
|
|
@@ -16990,12 +17019,12 @@ class iA extends nA {
|
|
|
16990
17019
|
e.length !== 0 && e.forEach((n) => {
|
|
16991
17020
|
var s;
|
|
16992
17021
|
if (!((s = n.state) != null && s.visible)) {
|
|
16993
|
-
n.pointTagStyle =
|
|
17022
|
+
n.pointTagStyle = null;
|
|
16994
17023
|
return;
|
|
16995
17024
|
}
|
|
16996
17025
|
const o = this.getTagProject(n);
|
|
16997
17026
|
if (!o) {
|
|
16998
|
-
n.pointTagStyle =
|
|
17027
|
+
n.pointTagStyle = null;
|
|
16999
17028
|
return;
|
|
17000
17029
|
}
|
|
17001
17030
|
n.pointTagStyle = { leftPercent: (o.x + 1) / 2 * 100, topPercent: (-o.y + 1) / 2 * 100 };
|