@realsee/dnalogel 2.6.7-dev.1 → 2.6.7-dev.10
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/README.md +0 -20
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +4 -3
- package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +4 -4
- package/dist/index.cjs.js +55 -52
- package/dist/index.js +6717 -5996
- package/dist/index.umd.js +45 -42
- package/dist/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -0
- package/dist/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +2 -0
- 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 +197 -51
- 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 +18 -18
- 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 +5 -5
- 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 +5 -5
- package/docs/index.html +4 -12
- 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/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 +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 +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/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/TagCache.html +12 -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 +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/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/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/TagPointType.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/VERSION.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/CruisePlugin/Controller.js +26 -26
- package/libs/GuideLinePlugin/Controller.js +43 -43
- package/libs/PanoTagPlugin/Components/Common/Media.js +235 -313
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +128 -118
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +89 -72
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +86 -72
- package/libs/PanoTagPlugin/Components/Tag/index.js +84 -66
- package/libs/PanoTagPlugin/Components/TagContainer.js +98 -80
- package/libs/PanoTagPlugin/Components/TagItem.js +69 -51
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +4 -3
- package/libs/PanoTagPlugin/controller/TagComputer.js +70 -65
- package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/index.js +160 -136
- package/libs/PanoTagPlugin/index.js +41 -24
- package/libs/PanoTagPlugin/tag.config.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +4 -4
- package/libs/index.js +130 -113
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +38 -38
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +1 -0
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +26 -23
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.d.ts +2 -0
- package/libs/shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js +28 -22
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +12 -12
- package/libs/vendor/simply-reactive/main.js +3 -0
- package/libs/vendor/simply-reactive/src/simply-reactive.js +44 -0
- package/libs/vendor/simply-reactive/src/utils/object.js +12 -0
- package/libs/vendor/simply-reactive/src/utils/subscription.js +28 -0
- package/libs/vendor/simply-reactive/src/utils/watcher.js +17 -0
- package/libs/vendor/svelte/internal/index.js +267 -274
- package/libs/vendor/svelte-carousel/src/actions/hoverable/event.js +18 -0
- package/libs/vendor/svelte-carousel/src/actions/hoverable/hoverable.js +19 -0
- package/libs/vendor/svelte-carousel/src/actions/hoverable/index.js +1 -0
- package/libs/vendor/svelte-carousel/src/actions/swipeable/event.js +26 -0
- package/libs/vendor/svelte-carousel/src/actions/swipeable/index.js +1 -0
- package/libs/vendor/svelte-carousel/src/actions/swipeable/swipeable.js +51 -0
- package/libs/vendor/svelte-carousel/src/actions/tappable/event.js +18 -0
- package/libs/vendor/svelte-carousel/src/actions/tappable/index.js +1 -0
- package/libs/vendor/svelte-carousel/src/actions/tappable/tappable.js +36 -0
- package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +41 -0
- package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +522 -0
- package/libs/vendor/svelte-carousel/src/components/Carousel/createCarousel.js +255 -0
- package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +42 -0
- package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +104 -0
- package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +40 -0
- package/libs/vendor/svelte-carousel/src/direction.js +5 -0
- package/libs/vendor/svelte-carousel/src/main.js +1 -0
- package/libs/vendor/svelte-carousel/src/units.js +7 -0
- package/libs/vendor/svelte-carousel/src/utils/ProgressManager.js +52 -0
- package/libs/vendor/svelte-carousel/src/utils/clones.js +59 -0
- package/libs/vendor/svelte-carousel/src/utils/event.js +12 -0
- package/libs/vendor/svelte-carousel/src/utils/interval.js +4 -0
- package/libs/vendor/svelte-carousel/src/utils/lazy.js +45 -0
- package/libs/vendor/svelte-carousel/src/utils/math.js +11 -0
- package/libs/vendor/svelte-carousel/src/utils/object.js +13 -0
- package/libs/vendor/svelte-carousel/src/utils/page.js +154 -0
- package/package.json +5 -2
- package/dist/PanoTagPlugin/utils/tag/index.d.ts +0 -2
- package/libs/PanoTagPlugin/utils/tag/index.d.ts +0 -2
- package/libs/PanoTagPlugin/utils/tag/index.js +0 -11
- package/libs/vendor/swiper/components-shared/get-changed-params.js +0 -29
- package/libs/vendor/swiper/components-shared/get-params.js +0 -23
- package/libs/vendor/swiper/components-shared/mount-swiper.js +0 -14
- package/libs/vendor/swiper/components-shared/params-list.js +0 -120
- package/libs/vendor/swiper/components-shared/update-swiper.js +0 -36
- package/libs/vendor/swiper/components-shared/utils.js +0 -32
- package/libs/vendor/swiper/svelte/swiper-slide.js +0 -181
- package/libs/vendor/swiper/svelte/swiper-svelte.js +0 -2
- package/libs/vendor/swiper/svelte/swiper.js +0 -253
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var B = Object.defineProperty, V = Object.defineProperties;
|
|
2
|
+
var j = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var T = (g, d, e) => d in g ?
|
|
4
|
+
var U = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var T = (g, d, e) => d in g ? B(g, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[d] = e, C = (g, d) => {
|
|
6
6
|
for (var e in d || (d = {}))
|
|
7
|
-
|
|
7
|
+
U.call(d, e) && T(g, e, d[e]);
|
|
8
8
|
if (P)
|
|
9
9
|
for (var e of P(d))
|
|
10
|
-
|
|
10
|
+
R.call(d, e) && T(g, e, d[e]);
|
|
11
11
|
return g;
|
|
12
|
-
}, I = (g, d) =>
|
|
13
|
-
var
|
|
12
|
+
}, I = (g, d) => V(g, j(d));
|
|
13
|
+
var m = (g, d, e) => (T(g, typeof d != "symbol" ? d + "" : d, e), e);
|
|
14
14
|
import x from "object-assign-deep";
|
|
15
15
|
import * as k from "three";
|
|
16
|
-
import { DefaultConfig as
|
|
17
|
-
import { isMediaModelTag as
|
|
18
|
-
import { anyPositionToVector3 as
|
|
19
|
-
import { planeNormal as
|
|
16
|
+
import { DefaultConfig as w } from "../tag.config.js";
|
|
17
|
+
import { isMediaModelTag as b, is3DTag as $ } from "../utils/tag/tagCheck.js";
|
|
18
|
+
import { anyPositionToVector3 as A } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
19
|
+
import { planeNormal as E } from "../utils/planeNormal.js";
|
|
20
20
|
import { getTagPosition as D, tagPosition as M } from "../utils/tagPosition.js";
|
|
21
|
-
import { checkRange as
|
|
21
|
+
import { checkRange as y } from "../utils/checkRange.js";
|
|
22
22
|
import { TagCacheController as F } from "./TagCacheController.js";
|
|
23
23
|
import "hammerjs";
|
|
24
24
|
import "@realsee/five";
|
|
@@ -44,9 +44,9 @@ import "../../shared-utils/animationFrame/index.js";
|
|
|
44
44
|
class ve extends F {
|
|
45
45
|
constructor(e) {
|
|
46
46
|
super(e);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
m(this, "tags", []);
|
|
48
|
+
m(this, "config", w);
|
|
49
|
+
m(this, "raycaster", new k.Raycaster());
|
|
50
50
|
}
|
|
51
51
|
get isPanorama() {
|
|
52
52
|
return this.five.currentMode === "Panorama";
|
|
@@ -65,13 +65,13 @@ class ve extends F {
|
|
|
65
65
|
getVisibleByPanoIndex(e, t) {
|
|
66
66
|
var n;
|
|
67
67
|
const i = this.getCache({ panoIndex: t, id: e.id }), o = (n = this.five.panoIndex) != null ? n : t;
|
|
68
|
-
if (
|
|
68
|
+
if (b(e))
|
|
69
69
|
return !0;
|
|
70
70
|
if (i.visible !== void 0)
|
|
71
71
|
return i.visible;
|
|
72
72
|
{
|
|
73
|
-
const
|
|
74
|
-
var c, u,
|
|
73
|
+
const f = (() => {
|
|
74
|
+
var c, u, a;
|
|
75
75
|
const s = (c = this.getTagConfig(e).visibleConfig) != null ? c : {}, l = this.getDistance(e);
|
|
76
76
|
if (typeof s == "function")
|
|
77
77
|
return { value: s(this.five, { tag: e, distance: l }), reason: "config function result" };
|
|
@@ -88,10 +88,10 @@ class ve extends F {
|
|
|
88
88
|
if (s.visiblePanoIndex === "current" && o !== ((u = e.fiveState) == null ? void 0 : u.panoIndex))
|
|
89
89
|
return {
|
|
90
90
|
value: !1,
|
|
91
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${o}, tag.panoIndex: ${(
|
|
91
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${o}, tag.panoIndex: ${(a = e.fiveState) == null ? void 0 : a.panoIndex}`
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
if (s.visibleDistance !== void 0 && s.visibleDistance !== "unLimited" &&
|
|
94
|
+
if (s.visibleDistance !== void 0 && s.visibleDistance !== "unLimited" && y(l, s.visibleDistance) === !1)
|
|
95
95
|
return {
|
|
96
96
|
value: !1,
|
|
97
97
|
reason: `distance is not in visibleDistance. distance: ${l}, visibleDistance: ${s.visibleDistance}`
|
|
@@ -108,7 +108,7 @@ class ve extends F {
|
|
|
108
108
|
}
|
|
109
109
|
if (s.angleRange && $(e)) {
|
|
110
110
|
const r = this.getAngle(e);
|
|
111
|
-
if (
|
|
111
|
+
if (y(r, s.angleRange) === !1)
|
|
112
112
|
return { value: !1, reason: `angle is not in angleRange. angle: ${r}, angleRange: ${s.angleRange}` };
|
|
113
113
|
}
|
|
114
114
|
return {
|
|
@@ -116,10 +116,10 @@ class ve extends F {
|
|
|
116
116
|
reason: "all check passed"
|
|
117
117
|
};
|
|
118
118
|
})();
|
|
119
|
-
return i.visible =
|
|
119
|
+
return i.visible = f.value, i.__debug_visible_reason__ = f, i.visible;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
getVisibleByFiveMode(e, t) {
|
|
123
123
|
var n;
|
|
124
124
|
const i = (n = this.getTagConfig(e).visibleConfig) != null ? n : {};
|
|
125
125
|
if (typeof i == "function")
|
|
@@ -127,6 +127,18 @@ class ve extends F {
|
|
|
127
127
|
const o = i == null ? void 0 : i.visibleFiveMode;
|
|
128
128
|
return o ? o.includes(t) : t === "Panorama";
|
|
129
129
|
}
|
|
130
|
+
getVisibleByFloorIndex(e) {
|
|
131
|
+
var f;
|
|
132
|
+
const t = e.fiveState;
|
|
133
|
+
if (!t)
|
|
134
|
+
return !0;
|
|
135
|
+
const i = t.panoIndex, o = (f = this.five.work.observers[i]) == null ? void 0 : f.floorIndex, n = this.five.model.shownFloor;
|
|
136
|
+
return n === null || n === o;
|
|
137
|
+
}
|
|
138
|
+
getVisible(e) {
|
|
139
|
+
const t = this.five.getCurrentState(), i = this.getVisibleByFiveMode(e, t.mode), o = b(e) ? this.getVisibleByFloorIndex(e) : !0, n = t.mode === "Panorama" ? this.getVisibleByPanoIndex(e, t.panoIndex) : !0;
|
|
140
|
+
return i && n && o;
|
|
141
|
+
}
|
|
130
142
|
getModelMedialVisibleByPanoIndex(e) {
|
|
131
143
|
const t = this.five.getCurrentState().panoIndex, i = this.getCache({ panoIndex: t, id: e.id });
|
|
132
144
|
if (i.modelMedialVisible !== void 0)
|
|
@@ -144,7 +156,7 @@ class ve extends F {
|
|
|
144
156
|
const n = this.getTagConfig(e).unfoldedConfig;
|
|
145
157
|
if (!n)
|
|
146
158
|
return;
|
|
147
|
-
const
|
|
159
|
+
const f = (() => {
|
|
148
160
|
const l = this.getDistance(e);
|
|
149
161
|
if (typeof n == "function")
|
|
150
162
|
return n(this.five, { tag: e, distance: l });
|
|
@@ -152,17 +164,17 @@ class ve extends F {
|
|
|
152
164
|
return !1;
|
|
153
165
|
if (n.keep === "unfolded")
|
|
154
166
|
return !0;
|
|
155
|
-
if (n.unfoldDistance &&
|
|
167
|
+
if (n.unfoldDistance && y(l, n.unfoldDistance) === !1)
|
|
156
168
|
return !1;
|
|
157
169
|
})();
|
|
158
|
-
o.unfolded =
|
|
170
|
+
o.unfolded = f;
|
|
159
171
|
const s = this.getUnfoldedByCamera(e);
|
|
160
172
|
return s !== void 0 ? s : o.unfolded;
|
|
161
173
|
}
|
|
162
174
|
}
|
|
163
175
|
getUnfoldedByCamera(e) {
|
|
164
176
|
return this.getVisibleByPanoIndex(e) ? (() => {
|
|
165
|
-
var
|
|
177
|
+
var f;
|
|
166
178
|
const o = this.getDistance(e), n = this.getTagConfig(e).unfoldedConfig;
|
|
167
179
|
if (!!n) {
|
|
168
180
|
if (typeof n == "function")
|
|
@@ -175,24 +187,24 @@ class ve extends F {
|
|
|
175
187
|
return;
|
|
176
188
|
if (n.autoUnfold.strategy === "ScreenPostion") {
|
|
177
189
|
const s = this.getTagProject(e);
|
|
178
|
-
if (s &&
|
|
190
|
+
if (s && y(s.x, n.autoUnfold.autoUnfoldProjectX) === !1)
|
|
179
191
|
return !1;
|
|
180
192
|
}
|
|
181
193
|
if (n.autoUnfold.strategy === "MinimumDistance") {
|
|
182
|
-
const c = this.filterPointTag().filter((
|
|
183
|
-
const r = this.getTagProject(
|
|
194
|
+
const c = this.filterPointTag().filter((a) => this.getVisibleByPanoIndex(a)).filter((a) => {
|
|
195
|
+
const r = this.getTagProject(a);
|
|
184
196
|
if (!r)
|
|
185
197
|
return !1;
|
|
186
198
|
const { x: p, y: v, z: h } = r;
|
|
187
199
|
return !(Math.abs(h) > 1 || Math.abs(p) > 1 || Math.abs(v) > 1);
|
|
188
|
-
}).map((
|
|
200
|
+
}).map((a) => ({ tag: a, id: a.id, tagConfig: this.getTagConfig(a).unfoldedConfig })).filter(({ tag: a, tagConfig: r }) => {
|
|
189
201
|
var p, v;
|
|
190
202
|
return !(typeof r != "object" || r.keep || r.autoUnfold === !1 || ((p = r.autoUnfold) == null ? void 0 : p.enable) === !1 || ((v = r.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance");
|
|
191
|
-
}).map((
|
|
203
|
+
}).map((a) => I(C({}, a), { distance: this.getDistance(a.tag) })).filter(({ distance: a, tagConfig: r }) => {
|
|
192
204
|
var p, v;
|
|
193
|
-
return !(
|
|
194
|
-
}).sort((
|
|
195
|
-
if (c === -1 || c <= ((
|
|
205
|
+
return !(a === void 0 || typeof r != "object" || r.autoUnfold === !1 || ((p = r.autoUnfold) == null ? void 0 : p.enable) === !1 || ((v = r.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance" || r.autoUnfold.distance && y(a, r.autoUnfold.distance) === !1);
|
|
206
|
+
}).sort((a, r) => a.distance - r.distance).findIndex((a) => a.id === e.id);
|
|
207
|
+
if (c === -1 || c <= ((f = n.autoUnfold.maxNumber) != null ? f : 1) - 1 === !1)
|
|
196
208
|
return !1;
|
|
197
209
|
}
|
|
198
210
|
return !0;
|
|
@@ -200,7 +212,7 @@ class ve extends F {
|
|
|
200
212
|
})() : void 0;
|
|
201
213
|
}
|
|
202
214
|
getDistance(e, t) {
|
|
203
|
-
var n,
|
|
215
|
+
var n, f, s;
|
|
204
216
|
const i = (n = this.five.panoIndex) != null ? n : t;
|
|
205
217
|
if (i === void 0)
|
|
206
218
|
throw new Error(`getDistance(): fivePanoIndex is ${i}`);
|
|
@@ -208,7 +220,7 @@ class ve extends F {
|
|
|
208
220
|
if (o.distance !== void 0)
|
|
209
221
|
return o.distance;
|
|
210
222
|
{
|
|
211
|
-
const l = (s = (
|
|
223
|
+
const l = (s = (f = this.five.work) == null ? void 0 : f.observers[i]) == null ? void 0 : s.position;
|
|
212
224
|
if (l === void 0)
|
|
213
225
|
throw new Error(`getDistance(): observerPosition is ${l}`);
|
|
214
226
|
const c = D(e), u = l.distanceTo(c);
|
|
@@ -216,7 +228,7 @@ class ve extends F {
|
|
|
216
228
|
}
|
|
217
229
|
}
|
|
218
230
|
getAngle(e, t) {
|
|
219
|
-
var n,
|
|
231
|
+
var n, f, s;
|
|
220
232
|
const i = (n = this.five.panoIndex) != null ? n : t;
|
|
221
233
|
if (i === void 0)
|
|
222
234
|
throw new Error(`getDistance(): fivePanoIndex is ${i}`);
|
|
@@ -224,14 +236,14 @@ class ve extends F {
|
|
|
224
236
|
if (o.angle !== void 0)
|
|
225
237
|
return o.angle;
|
|
226
238
|
{
|
|
227
|
-
const l = (s = (
|
|
239
|
+
const l = (s = (f = this.five.work) == null ? void 0 : f.observers[i]) == null ? void 0 : s.position;
|
|
228
240
|
if (l === void 0)
|
|
229
241
|
throw new Error(`getAngleRange(): observerPosition is ${l}`);
|
|
230
|
-
const c = (() => e.stickType === "3DPoint" ?
|
|
242
|
+
const c = (() => e.stickType === "3DPoint" ? A(e.normal) : E(e.position))();
|
|
231
243
|
if (!c)
|
|
232
244
|
return;
|
|
233
|
-
const u = new k.Vector3().copy(l).sub(M(e.position)),
|
|
234
|
-
return o.angle =
|
|
245
|
+
const u = new k.Vector3().copy(l).sub(M(e.position)), a = c.angleTo(u) * 180 / Math.PI;
|
|
246
|
+
return o.angle = a, o.angle;
|
|
235
247
|
}
|
|
236
248
|
}
|
|
237
249
|
getTagConfig(e) {
|
|
@@ -239,8 +251,8 @@ class ve extends F {
|
|
|
239
251
|
if (!e)
|
|
240
252
|
return (o = this.config.globalConfig) != null ? o : {};
|
|
241
253
|
const t = {};
|
|
242
|
-
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((
|
|
243
|
-
const s =
|
|
254
|
+
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((f) => {
|
|
255
|
+
const s = f;
|
|
244
256
|
if (t[s])
|
|
245
257
|
return;
|
|
246
258
|
const l = s.split("-");
|
|
@@ -253,10 +265,10 @@ class ve extends F {
|
|
|
253
265
|
(e.stickType === c || c === "Any") && (e.contentType === u || u === "Any") && (t[s] = this.config.contentTypeConfig[s]);
|
|
254
266
|
}
|
|
255
267
|
if (l.length === 3) {
|
|
256
|
-
const [c = "Any", u,
|
|
268
|
+
const [c = "Any", u, a] = l;
|
|
257
269
|
if (u === "Audio" && e.contentType === "Audio") {
|
|
258
270
|
const r = e;
|
|
259
|
-
(r.stickType === c || c === "Any") && r.data.appearance ===
|
|
271
|
+
(r.stickType === c || c === "Any") && r.data.appearance === a && (t[s] = this.config.contentTypeConfig[s]);
|
|
260
272
|
}
|
|
261
273
|
}
|
|
262
274
|
});
|
|
@@ -311,7 +323,7 @@ class ve extends F {
|
|
|
311
323
|
}
|
|
312
324
|
setModelMedialVisibleByPanoIndex() {
|
|
313
325
|
this.tags.forEach((e) => {
|
|
314
|
-
if (!
|
|
326
|
+
if (!b(e))
|
|
315
327
|
return;
|
|
316
328
|
const t = this.getModelMedialVisibleByPanoIndex(e);
|
|
317
329
|
e.mediaVisible = t;
|
|
@@ -329,9 +341,9 @@ class ve extends F {
|
|
|
329
341
|
getTagProject(e) {
|
|
330
342
|
if (!this.getVisibleByPanoIndex(e))
|
|
331
343
|
return;
|
|
332
|
-
const i = M(e.position), { x: o, y: n, z:
|
|
333
|
-
if (!(
|
|
334
|
-
return { x: o, y: n, z:
|
|
344
|
+
const i = M(e.position), { x: o, y: n, z: f } = i.project(this.five.camera);
|
|
345
|
+
if (!(f > 1))
|
|
346
|
+
return { x: o, y: n, z: f };
|
|
335
347
|
}
|
|
336
348
|
filterPointTag() {
|
|
337
349
|
return this.tags.filter((e) => e.stickType === "2DPoint" || e.stickType === "3DPoint");
|
|
@@ -358,11 +370,11 @@ class ve extends F {
|
|
|
358
370
|
});
|
|
359
371
|
}
|
|
360
372
|
getTagEnableByIntersect(e, t) {
|
|
361
|
-
var c, u,
|
|
362
|
-
const i = (c = this.getTagConfig(e).visibleConfig) != null ? c : {}, o = this.getDistance(e), [n] = this.five.model.intersectRaycaster(t),
|
|
363
|
-
if (!
|
|
373
|
+
var c, u, a;
|
|
374
|
+
const i = (c = this.getTagConfig(e).visibleConfig) != null ? c : {}, o = this.getDistance(e), [n] = this.five.model.intersectRaycaster(t), f = (() => {
|
|
375
|
+
if (!b(e))
|
|
364
376
|
return;
|
|
365
|
-
const r = this.tags.filter(
|
|
377
|
+
const r = this.tags.filter(b).map((v) => {
|
|
366
378
|
var h;
|
|
367
379
|
return (h = v.model) == null ? void 0 : h.object;
|
|
368
380
|
}).filter(S);
|
|
@@ -371,9 +383,10 @@ class ve extends F {
|
|
|
371
383
|
var r;
|
|
372
384
|
return typeof i == "object" && typeof i.intersectRaycaster == "object" && (r = i.intersectRaycaster.distanceAccuracy) != null ? r : 0.01;
|
|
373
385
|
})();
|
|
374
|
-
return Math.min((u = n == null ? void 0 : n.distance) != null ? u : 1 / 0, (
|
|
386
|
+
return Math.min((u = n == null ? void 0 : n.distance) != null ? u : 1 / 0, (a = f == null ? void 0 : f.distance) != null ? a : 1 / 0) + s < o ? {
|
|
375
387
|
value: !1,
|
|
376
|
-
reason: `intersectRaycaster check failed: distance is ${o}, intersection.point is ${n.point.toArray()},
|
|
388
|
+
reason: `intersectRaycaster check failed: distance is ${o}, intersection.point is ${n.point.toArray()},
|
|
389
|
+
customModelIntersection.point is ${f == null ? void 0 : f.point.toArray()} distanceError is ${s}`
|
|
377
390
|
} : { value: !0, reason: "" };
|
|
378
391
|
}
|
|
379
392
|
getRaycasterFromPanoIndex(e, t) {
|
|
@@ -384,14 +397,6 @@ class ve extends F {
|
|
|
384
397
|
const o = D(e).sub(i).normalize();
|
|
385
398
|
return this.raycaster.set(i, o), this.raycaster;
|
|
386
399
|
}
|
|
387
|
-
checkFloorIndex(e) {
|
|
388
|
-
var a;
|
|
389
|
-
const t = e.fiveState;
|
|
390
|
-
if (!t)
|
|
391
|
-
return !0;
|
|
392
|
-
const i = t.panoIndex, o = (a = this.five.work.observers[i]) == null ? void 0 : a.floorIndex, n = this.five.model.shownFloor;
|
|
393
|
-
return n === null || n === o;
|
|
394
|
-
}
|
|
395
400
|
}
|
|
396
401
|
export {
|
|
397
402
|
ve as TagComputer
|
|
@@ -109,6 +109,7 @@ declare class PanoTagPluginController extends TagComputer {
|
|
|
109
109
|
* @param scale css3DObject 原始缩放比例
|
|
110
110
|
*/
|
|
111
111
|
updateTagCss3DObjectMatrix<S extends 'Model' | 'Plane' = 'Model'>(tag: TagElement<any, S>, model: Object3D): void;
|
|
112
|
+
private updateTagCss3DObjectVisible;
|
|
112
113
|
/**
|
|
113
114
|
* @description: 设置 visible 和 unfolded
|
|
114
115
|
*/
|