@realsee/dnalogel 2.16.1 → 2.17.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/Archive/deprecated.d.ts +22 -0
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -1
- package/dist/PanoTagPlugin/controller/index.d.ts +2 -2
- package/dist/PanoTagPlugin/typings/controller.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +7 -8
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +6 -1
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +25 -25
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +4 -0
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +15 -25
- package/dist/index.cjs.js +42 -42
- package/dist/index.js +1967 -1918
- package/dist/index.umd.js +42 -42
- package/dist/shared-utils/five/FiveDomEvents.d.ts +6 -0
- package/dist/shared-utils/five/getFloorIndex.d.ts +10 -0
- package/dist/shared-utils/three/FragmentTransparencyMaterial.d.ts +17 -0
- package/dist/shared-utils/three/loadVideoTexture.d.ts +6 -1
- package/dist/typings/utils.type.d.ts +2 -0
- package/docs/assets/search.js +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 +81 -369
- 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 +6 -5
- package/docs/functions/CameraMovementPlugin.html +6 -5
- package/docs/functions/CruisePlugin.html +6 -5
- package/docs/functions/GuideLinePlugin.html +6 -5
- package/docs/functions/ItemLabelPlugin.html +6 -5
- package/docs/functions/MapviewFloorplanPlugin.html +6 -5
- package/docs/functions/ModelChassisCompassPlugin.html +6 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
- package/docs/functions/ModelFloorplanPlugin.html +6 -5
- package/docs/functions/ModelItemLabelPlugin.html +6 -5
- package/docs/functions/ModelRoomLabelPlugin.html +6 -5
- package/docs/functions/ModelTVVideoPlugin.html +6 -5
- package/docs/functions/ModelViewPlugin.html +6 -5
- package/docs/functions/Object3DHelperPlugin.html +6 -5
- package/docs/functions/PanoCompassPlugin.html +6 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
- package/docs/functions/PanoDoorLabelPlugin.html +6 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
- package/docs/functions/PanoMeasurePlugin.html +6 -5
- package/docs/functions/PanoRulerPlugin.html +6 -5
- package/docs/functions/PanoRulerProPlugin.html +6 -5
- package/docs/functions/PanoSpatialTagPlugin.html +6 -5
- package/docs/functions/PanoTagPlugin.html +6 -5
- package/docs/functions/PanoVideoPlugin.html +6 -5
- package/docs/functions/TopviewFloorplanPlugin.html +6 -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 -5
- package/docs/index.html +5 -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 +19 -19
- 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 +6 -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 +6 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -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 +6 -5
- package/docs/interfaces/Rooms.html +6 -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 +19 -12
- 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 +214 -13
- 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 +6 -4
- package/docs/types/ArrayPosition.html +6 -5
- package/docs/types/AudioAppearance.html +6 -5
- package/docs/types/AudioTagTypeConfigKey.html +6 -5
- package/docs/types/CSS3DRenderExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginExportType.html +6 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
- package/docs/types/ClassFunctionParameters.html +6 -5
- package/docs/types/Color.html +6 -5
- package/docs/types/ContentTypeConfigKey.html +6 -5
- package/docs/types/ContentTypeConfigKeySplit.html +6 -5
- package/docs/types/ContentTypeMap.html +7 -6
- package/docs/types/Create3DDomContainerReturnType.html +6 -5
- package/docs/types/Create3DElementReturnType.html +6 -5
- package/docs/types/CruisePluginExportType.html +6 -5
- package/docs/types/Direction-1.html +6 -5
- package/docs/types/Direction4.html +6 -5
- package/docs/types/ElementRenderer.html +6 -5
- package/docs/types/FloorplanRuleLabels.html +6 -5
- package/docs/types/FloorplanServerRuleLabels.html +6 -5
- package/docs/types/GuideLinePluginExportType.html +6 -5
- package/docs/types/HelperEventMap.html +6 -5
- package/docs/types/LoadTagConfig.html +6 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/MediaData.html +6 -5
- package/docs/types/MediaStore.html +6 -5
- package/docs/types/ModelElement.html +6 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
- package/docs/types/MoveArgs.html +6 -5
- package/docs/types/MoveOpts.html +6 -5
- package/docs/types/Object3DHelperEventMap.html +6 -5
- package/docs/types/ObjectFit.html +6 -5
- package/docs/types/PaintBrushEventMap.html +6 -5
- package/docs/types/PanoCompassPluginData.html +6 -5
- package/docs/types/PanoCompassPluginExportType.html +6 -5
- package/docs/types/PanoCompassPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
- package/docs/types/PanoIndex.html +6 -5
- package/docs/types/PanoMeasurePluginEvent.html +6 -5
- package/docs/types/PanoMeasureReturnType.html +6 -5
- package/docs/types/PanoSpatialTagPluginId.html +6 -5
- package/docs/types/PanoTagPluginExportInterface.html +6 -5
- package/docs/types/PanoTagPluginParamsInterface.html +6 -5
- package/docs/types/PanoVideoPluginParameterType.html +6 -5
- package/docs/types/PanoVideoPluginReturnType.html +6 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +275 -0
- package/docs/types/PlaneTag.html +6 -5
- package/docs/types/PlaneTagElement.html +6 -5
- package/docs/types/Point2DElement.html +6 -5
- package/docs/types/Point2DTag.html +6 -5
- package/docs/types/Point3DElement.html +6 -5
- package/docs/types/Point3DTag.html +6 -5
- package/docs/types/PointTag.html +6 -5
- package/docs/types/PointTagElement.html +6 -5
- package/docs/types/Position.html +6 -5
- package/docs/types/RotateArgs.html +6 -5
- package/docs/types/RotateOpts.html +6 -5
- package/docs/types/RuleLabelsKey.html +6 -5
- package/docs/types/RuleLabelsValue.html +6 -5
- package/docs/types/StickType.html +6 -5
- package/docs/types/Tag.html +7 -6
- package/docs/types/Tag2D.html +6 -5
- package/docs/types/Tag3D.html +6 -5
- package/docs/types/TagContentType.html +6 -5
- package/docs/types/TagDimensionType.html +6 -5
- package/docs/types/TagElement.html +6 -5
- package/docs/types/TagEvents.html +6 -5
- package/docs/types/TagGLTFObject.html +6 -5
- package/docs/types/TagHooks.html +6 -5
- package/docs/types/TagIconSize.html +6 -5
- package/docs/types/TagId.html +6 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
- package/docs/types/WorkCode.html +6 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
- package/docs/variables/PLUGIN.html +6 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
- package/docs/variables/ROOM_TYPE_MAP.html +6 -5
- package/docs/variables/itemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
- package/libs/PanoTagPlugin/Archive/deprecated.d.ts +15 -0
- package/libs/PanoTagPlugin/Components/Common/Media.js +14 -10
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
- package/libs/PanoTagPlugin/controller/TagComputer.js +141 -139
- package/libs/PanoTagPlugin/controller/TagRender.js +59 -52
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +24 -19
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/index.js +49 -42
- package/libs/PanoTagPlugin/index.js +12 -10
- package/libs/PanoTagPlugin/tag.config.js +7 -0
- package/libs/PanoTagPlugin/typings/controller.d.ts +1 -1
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +7 -8
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +6 -1
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +25 -25
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +4 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +15 -25
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +130 -158
- package/libs/base/BasePlugin.js +3 -3
- package/libs/index.js +104 -102
- package/libs/shared-utils/five/FiveDomEvents.d.ts +6 -0
- package/libs/shared-utils/five/FiveDomEvents.js +48 -38
- package/libs/shared-utils/five/getFloorIndex.d.ts +10 -0
- package/libs/shared-utils/five/getFloorIndex.js +18 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/FragmentTransparencyMaterial.d.ts +17 -0
- package/libs/shared-utils/three/FragmentTransparencyMaterial.js +36 -0
- package/libs/shared-utils/three/loadVideoTexture.d.ts +6 -1
- package/libs/shared-utils/three/loadVideoTexture.js +8 -10
- package/libs/typings/utils.type.d.ts +2 -0
- package/libs/typings/utils.type.js +1 -0
- package/package.json +2 -2
- package/libs/PanoTagPlugin/Archive/index.d.ts +0 -1
- package/libs/PanoTagPlugin/Archive/index.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var w = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
2
|
+
var E = (c, l, e) => l in c ? w(c, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[l] = e;
|
|
3
|
+
var u = (c, l, e) => (E(c, typeof l != "symbol" ? l + "" : l, e), e);
|
|
4
|
+
var T = (c, l, e) => new Promise((t, i) => {
|
|
5
5
|
var o = (s) => {
|
|
6
6
|
try {
|
|
7
7
|
a(e.next(s));
|
|
@@ -15,19 +15,19 @@ var P = (d, p, e) => new Promise((t, i) => {
|
|
|
15
15
|
i(r);
|
|
16
16
|
}
|
|
17
17
|
}, a = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(o, n);
|
|
18
|
-
a((e = e.apply(
|
|
18
|
+
a((e = e.apply(c, l)).next());
|
|
19
19
|
});
|
|
20
|
-
import { TagComputer as
|
|
21
|
-
import { Group as b, Quaternion as
|
|
22
|
-
import
|
|
20
|
+
import { TagComputer as O } from "./TagComputer.js";
|
|
21
|
+
import { Group as b, Quaternion as k, Vector3 as D, Matrix4 as P } from "three";
|
|
22
|
+
import x from "../Components/TagContainer.js";
|
|
23
23
|
import G from "../Components/Tag/index.js";
|
|
24
24
|
import { arrayPositionToVector3 as v } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
25
|
-
import { centerPoint as
|
|
25
|
+
import { centerPoint as I } from "../../shared-utils/three/centerPoint.js";
|
|
26
26
|
import "@realsee/five/gltf-loader";
|
|
27
27
|
import { VideoPlane as R, ImagePlane as j } from "../utils/model/mediaPlane.js";
|
|
28
|
-
import { isMediaModelTag as
|
|
29
|
-
import { CSS3DRenderPlugin as
|
|
30
|
-
import { loadGLTF as
|
|
28
|
+
import { isMediaModelTag as C } from "../utils/tag/tagCheck.js";
|
|
29
|
+
import { CSS3DRenderPlugin as V } from "../../CSS3DRenderPlugin/index.js";
|
|
30
|
+
import { loadGLTF as A } from "../../shared-utils/three/GLTFLoader.js";
|
|
31
31
|
import "@realsee/five";
|
|
32
32
|
import "../utils/tagPosition.js";
|
|
33
33
|
import "../../shared-utils/three/loadTexture.js";
|
|
@@ -67,12 +67,14 @@ import "../utils/normalPositionToPositions.js";
|
|
|
67
67
|
import "./TagCache.js";
|
|
68
68
|
import "../../base/BasePlugin.js";
|
|
69
69
|
import "../../vendor/svelte/store/index.js";
|
|
70
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
71
|
+
import "../../shared-utils/five/getFloorIndex.js";
|
|
70
72
|
import "../../shared-utils/three/Quadrangle.js";
|
|
71
73
|
import "../../shared-utils/math/pointIsRectangle.js";
|
|
72
74
|
import "../../shared-utils/three/loadVideoTexture.js";
|
|
73
75
|
import "../Assets/Icon.js";
|
|
74
76
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
75
|
-
import "../../shared-utils/
|
|
77
|
+
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
76
78
|
import "../Components/TagItem.js";
|
|
77
79
|
import "../utils/noTypecheck.js";
|
|
78
80
|
import "../Components/Common/TagPoint.js";
|
|
@@ -138,26 +140,26 @@ import "../Components/Tag/CustomTag.js";
|
|
|
138
140
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
139
141
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
140
142
|
const F = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
|
|
141
|
-
class
|
|
143
|
+
class ei extends O {
|
|
142
144
|
constructor(e) {
|
|
143
145
|
super(e);
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
146
|
+
u(this, "group", new b());
|
|
147
|
+
u(this, "imagePlaneGroup", new b());
|
|
148
|
+
u(this, "gltfObjectGroup", new b());
|
|
149
|
+
u(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
150
|
+
u(this, "temporaryState", { visible: !0 });
|
|
151
|
+
u(this, "TagContainerSvelte");
|
|
152
|
+
u(this, "loadModel", (e) => T(this, null, function* () {
|
|
151
153
|
var s;
|
|
152
154
|
const t = e.data.modelUrl;
|
|
153
155
|
if (!t)
|
|
154
156
|
return;
|
|
155
|
-
const i =
|
|
157
|
+
const i = A(t).then((r) => Object.assign(r.scene, { customID: e.id, isTagModel: !0 }));
|
|
156
158
|
e.model = { promise: i };
|
|
157
159
|
const o = yield i;
|
|
158
160
|
if (((s = e.model) == null ? void 0 : s.promise) !== i || (e.model.object = o, !this.tags.includes(e)))
|
|
159
161
|
return;
|
|
160
|
-
o.visible = this.getCurrentVisibleState(e), new
|
|
162
|
+
o.visible = this.getCurrentVisibleState(e), new P().fromArray(e.matrix).decompose(o.position, o.quaternion, o.scale), o.updateWorldMatrix(!0, !0), o.visible = this.getVisibleByFiveMode(e);
|
|
161
163
|
const a = this.gltfObjectGroup.children.find((r) => r.customID === e.id);
|
|
162
164
|
if (a && this.gltfObjectGroup.remove(a), this.getRenderType(e) === "Mesh") {
|
|
163
165
|
if (!e.mediaPlane) {
|
|
@@ -185,26 +187,31 @@ class Zt extends x {
|
|
|
185
187
|
}
|
|
186
188
|
updateRenderImagePlane() {
|
|
187
189
|
this.sort(this.filterImagePlane).forEach((t) => {
|
|
188
|
-
var s, r, m;
|
|
190
|
+
var s, r, m, f, g;
|
|
189
191
|
const i = t.data.mediaData[0];
|
|
190
192
|
if (!i)
|
|
191
193
|
return;
|
|
192
|
-
const
|
|
193
|
-
if (!o || (t.mediaPlane && (t.mediaPlane.visible = (r = (s = t.state) == null ? void 0 : s.visible) != null ? r : !0, t.mediaPlane instanceof R &&
|
|
194
|
+
const { url: o, type: n } = i;
|
|
195
|
+
if (!o || (t.mediaPlane && (t.mediaPlane.visible = (r = (s = t.state) == null ? void 0 : s.visible) != null ? r : !0, t.mediaPlane.visible || t.mediaPlane instanceof R && ((m = t.data.autoplayConfig) != null && m.autoplayVideo || t.mediaPlane.pause())), ((f = t.mediaPlane) == null ? void 0 : f.src) === o))
|
|
194
196
|
return;
|
|
195
197
|
const a = t.position.map(v);
|
|
196
198
|
if (t.mediaPlane && t.mediaPlane.removeFromParent(), n === "Image")
|
|
197
|
-
t.mediaPlane = new j(o, a)
|
|
199
|
+
t.mediaPlane = new j(o, a), this.domEvents.addAutoBindEventListener(t.mediaPlane, "click", (p) => {
|
|
200
|
+
this.hooks.emit("click", { tag: t, target: "TagContent", event: p.origDomEvent });
|
|
201
|
+
});
|
|
198
202
|
else if (n === "Video") {
|
|
199
|
-
const
|
|
203
|
+
const p = new R(o, a, {
|
|
200
204
|
videoCoverSrc: i.videoCoverUrl,
|
|
201
205
|
playButton: t.data.playIcon,
|
|
206
|
+
paused: !((g = t.data.autoplayConfig) != null && g.autoplayVideo),
|
|
202
207
|
videoTextureMap: F,
|
|
203
208
|
ImageTextureMap: B
|
|
204
209
|
});
|
|
205
|
-
|
|
206
|
-
this.mediaStore.set({ currentMediaElement:
|
|
207
|
-
}
|
|
210
|
+
p.onVideoReady = (d) => {
|
|
211
|
+
d.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: p.videoInstance }));
|
|
212
|
+
}, p.initialDomEvents(this.domEvents);
|
|
213
|
+
const h = (d) => (this.five.on("renderFrame", d), () => this.five.off("renderFrame", d));
|
|
214
|
+
p.initialRenderHooks(h), t.mediaPlane = p;
|
|
208
215
|
}
|
|
209
216
|
this.imagePlaneGroup.add(t.mediaPlane);
|
|
210
217
|
});
|
|
@@ -215,14 +222,14 @@ class Zt extends x {
|
|
|
215
222
|
if (t.tag3DContentSvelte) {
|
|
216
223
|
const { svelteApp: n, css3DInstance: a, initialNormal: s, currentNormal: r } = t.tag3DContentSvelte;
|
|
217
224
|
if (n.$set({ tag: t, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(r)) {
|
|
218
|
-
const m = new
|
|
225
|
+
const m = new k().setFromUnitVectors(s, r);
|
|
219
226
|
a.css3DObject.setRotationFromQuaternion(m);
|
|
220
227
|
}
|
|
221
228
|
return;
|
|
222
229
|
} else {
|
|
223
230
|
if (((i = t.state) == null ? void 0 : i.visible) === !1)
|
|
224
231
|
return;
|
|
225
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin =
|
|
232
|
+
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = V(this.five)), t.stickType === "3DPoint" && !t.normal)
|
|
226
233
|
return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
|
|
227
234
|
const n = this.getPositions(t);
|
|
228
235
|
if (!n)
|
|
@@ -233,14 +240,14 @@ class Zt extends x {
|
|
|
233
240
|
const r = (o = this.getTagConfig(t).tag3DConfig) != null ? o : {};
|
|
234
241
|
if (this.getRenderType(t) === "BehindDom") {
|
|
235
242
|
r.mode = "behind", r.container = document.createElement("div");
|
|
236
|
-
const
|
|
237
|
-
r.container.style.backgroundColor =
|
|
238
|
-
var
|
|
243
|
+
const g = "black";
|
|
244
|
+
r.container.style.backgroundColor = g, r.container.style.border = `3px solid ${g}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
245
|
+
var p;
|
|
239
246
|
if (m.css3DObject.opacityMesh) {
|
|
240
|
-
const h = this.addObjectClickHandler(t, m.css3DObject.opacityMesh, (
|
|
241
|
-
this.hooks.emit("click", { event:
|
|
247
|
+
const h = this.addObjectClickHandler(t, m.css3DObject.opacityMesh, (d) => {
|
|
248
|
+
this.hooks.emit("click", { event: d, target: "TagContent", tag: t });
|
|
242
249
|
});
|
|
243
|
-
(
|
|
250
|
+
(p = this.store.css3DRenderDisposer.get(t.id)) == null || p.push(h);
|
|
244
251
|
}
|
|
245
252
|
});
|
|
246
253
|
}
|
|
@@ -248,7 +255,7 @@ class Zt extends x {
|
|
|
248
255
|
if (!m)
|
|
249
256
|
return;
|
|
250
257
|
this.store.css3DRenderDisposer.set(t.id, [m.dispose]);
|
|
251
|
-
const
|
|
258
|
+
const f = new G({
|
|
252
259
|
target: m.container,
|
|
253
260
|
props: {
|
|
254
261
|
tag: t,
|
|
@@ -259,13 +266,13 @@ class Zt extends x {
|
|
|
259
266
|
}
|
|
260
267
|
});
|
|
261
268
|
t.tag3DContentSvelte = {
|
|
262
|
-
svelteApp:
|
|
269
|
+
svelteApp: f,
|
|
263
270
|
domContainer: m,
|
|
264
271
|
css3DInstance: m,
|
|
265
272
|
initialNormal: a,
|
|
266
273
|
currentNormal: a,
|
|
267
274
|
dispose: () => {
|
|
268
|
-
|
|
275
|
+
f.$destroy(), m.dispose();
|
|
269
276
|
}
|
|
270
277
|
};
|
|
271
278
|
}
|
|
@@ -273,7 +280,7 @@ class Zt extends x {
|
|
|
273
280
|
}
|
|
274
281
|
updateRenderModelTag() {
|
|
275
282
|
const e = (i) => !this.enabledModelTagSet.has(i.customID);
|
|
276
|
-
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(
|
|
283
|
+
this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(C).forEach((i) => {
|
|
277
284
|
var o;
|
|
278
285
|
(o = i.model) == null || o.promise.then((n) => {
|
|
279
286
|
n.visible = this.getCurrentVisibleState(i);
|
|
@@ -287,20 +294,20 @@ class Zt extends x {
|
|
|
287
294
|
});
|
|
288
295
|
}
|
|
289
296
|
updateTagCss3DObjectMatrix(e, t) {
|
|
290
|
-
var
|
|
291
|
-
const i = (
|
|
297
|
+
var d, S, y, M;
|
|
298
|
+
const i = (y = (S = (d = e.mergedConfig) == null ? void 0 : d.tag3DConfig) == null ? void 0 : S.ratio) != null ? y : 216e-5, o = (M = e.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
|
|
292
299
|
if (!o)
|
|
293
300
|
return;
|
|
294
|
-
const n =
|
|
301
|
+
const n = C(e) ? e.data.mediaPosition : e.position;
|
|
295
302
|
t.updateWorldMatrix(!1, !1);
|
|
296
|
-
const a = t.matrixWorld, s = new D().fromArray(n[0]), r = new D().fromArray(n[2]), m =
|
|
297
|
-
|
|
303
|
+
const a = t.matrixWorld, s = new D().fromArray(n[0]), r = new D().fromArray(n[2]), m = I(s, r).add(new D(0, 0, 5e-4)), f = new P().setPosition(m), g = new P().makeScale(i, i, i), p = new P().multiply(a).multiply(f).multiply(g);
|
|
304
|
+
p.decompose(o.position, o.quaternion, o.scale);
|
|
298
305
|
const h = o.opacityMesh;
|
|
299
|
-
h &&
|
|
306
|
+
h && p.decompose(h.position, h.quaternion, h.scale);
|
|
300
307
|
}
|
|
301
308
|
addMediaModelTag(e) {
|
|
302
|
-
return
|
|
303
|
-
const t = e.filter(
|
|
309
|
+
return T(this, null, function* () {
|
|
310
|
+
const t = e.filter(C).map((i) => this.loadModel(i));
|
|
304
311
|
yield Promise.all(t), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
305
312
|
});
|
|
306
313
|
}
|
|
@@ -313,7 +320,7 @@ class Zt extends x {
|
|
|
313
320
|
const i = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
|
|
314
321
|
if (!i)
|
|
315
322
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
316
|
-
this.TagContainerSvelte = new
|
|
323
|
+
this.TagContainerSvelte = new x({
|
|
317
324
|
target: i,
|
|
318
325
|
props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
|
|
319
326
|
});
|
|
@@ -351,5 +358,5 @@ class Zt extends x {
|
|
|
351
358
|
}
|
|
352
359
|
}
|
|
353
360
|
export {
|
|
354
|
-
|
|
361
|
+
ei as TagRender
|
|
355
362
|
};
|
|
@@ -4,6 +4,7 @@ import type { Tag, Tags, Point2DElement, Point3DElement, PlaneTagElement, PointT
|
|
|
4
4
|
import { TagCache } from './TagCache';
|
|
5
5
|
import { CSS3DRenderPluginExportType } from '../../CSS3DRenderPlugin';
|
|
6
6
|
import { Five } from '@realsee/five';
|
|
7
|
+
import { FiveDomEvents } from '../../shared-utils/five/FiveDomEvents';
|
|
7
8
|
export declare abstract class TagUtil extends TagCache {
|
|
8
9
|
tags: TagElement[];
|
|
9
10
|
config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
|
|
@@ -21,7 +22,7 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
21
22
|
disposed: boolean;
|
|
22
23
|
};
|
|
23
24
|
protected get isPanorama(): boolean;
|
|
24
|
-
|
|
25
|
+
protected domEvents: FiveDomEvents;
|
|
25
26
|
private mouseInfo?;
|
|
26
27
|
protected constructor(five: Five);
|
|
27
28
|
getTagById<C extends TagContentType = any, S extends StickType = any>(id: TagId): TagElement<C, S> | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var l = (
|
|
4
|
-
import
|
|
5
|
-
import * as
|
|
6
|
-
import { DefaultConfig as
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
|
+
var D = (m, u, e) => u in m ? y(m, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[u] = e;
|
|
3
|
+
var l = (m, u, e) => (D(m, typeof u != "symbol" ? u + "" : u, e), e);
|
|
4
|
+
import T from "object-assign-deep";
|
|
5
|
+
import * as P from "three";
|
|
6
|
+
import { DefaultConfig as C } from "../tag.config.js";
|
|
7
7
|
import { anyPositionToVector3 as w, arrayPositionToVector3 as h } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
8
8
|
import { planeNormal as g } from "../utils/planeNormal.js";
|
|
9
9
|
import { tagPosition as E, getTagPosition as k } from "../utils/tagPosition.js";
|
|
@@ -15,8 +15,9 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
|
15
15
|
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
|
-
import
|
|
18
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
19
19
|
import { VideoPlane as S } from "../utils/model/mediaPlane.js";
|
|
20
|
+
import { FiveDomEvents as F } from "../../shared-utils/five/FiveDomEvents.js";
|
|
20
21
|
import "@realsee/five/gltf-loader";
|
|
21
22
|
import "../../shared-utils/three/loadTexture.js";
|
|
22
23
|
import "hammerjs";
|
|
@@ -49,12 +50,12 @@ import "../../shared-utils/math/pointIsRectangle.js";
|
|
|
49
50
|
import "../../shared-utils/three/loadVideoTexture.js";
|
|
50
51
|
import "../Assets/Icon.js";
|
|
51
52
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
52
|
-
import "../../shared-utils/
|
|
53
|
-
class
|
|
53
|
+
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
54
|
+
class xe extends b {
|
|
54
55
|
constructor(e) {
|
|
55
56
|
super(e);
|
|
56
57
|
l(this, "tags", []);
|
|
57
|
-
l(this, "config",
|
|
58
|
+
l(this, "config", C);
|
|
58
59
|
l(this, "mediaStore", I({
|
|
59
60
|
currentMediaElement: null
|
|
60
61
|
}));
|
|
@@ -65,17 +66,21 @@ class Ae extends b {
|
|
|
65
66
|
resizeObserverDisposerAdding: !1,
|
|
66
67
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
67
68
|
});
|
|
68
|
-
l(this, "domEvents");
|
|
69
|
+
l(this, "domEvents", new F(this.five));
|
|
69
70
|
l(this, "mouseInfo");
|
|
70
71
|
l(this, "preventWhenMouseDown", () => {
|
|
71
72
|
var e;
|
|
72
73
|
if ((e = this.mouseInfo) != null && e.isDown)
|
|
73
74
|
return !1;
|
|
74
75
|
});
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: i }) => {
|
|
77
|
+
this.tags.forEach((o) => {
|
|
78
|
+
var t;
|
|
79
|
+
if (o.mediaPlane instanceof S && i !== o.mediaPlane.videoInstance) {
|
|
80
|
+
if (!((t = o.mediaPlane.videoInstance) != null && t.src) || i === o.mediaPlane.videoInstance)
|
|
81
|
+
return;
|
|
82
|
+
o.mediaPlane.pause();
|
|
83
|
+
}
|
|
79
84
|
});
|
|
80
85
|
}), this.store.disposers.push(() => {
|
|
81
86
|
this.five.off("wantsMoveToPano", this.preventWhenMouseDown), this.five.off("wantsTapGesture", this.preventWhenMouseDown);
|
|
@@ -121,7 +126,7 @@ class Ae extends b {
|
|
|
121
126
|
}
|
|
122
127
|
}
|
|
123
128
|
});
|
|
124
|
-
const o =
|
|
129
|
+
const o = T({}, this.config.globalConfig, ...Object.values(i), e.config);
|
|
125
130
|
return typeof o.unfoldedConfig == "object" && (o.unfoldedConfig.disableFold && (o.unfoldedConfig = { keep: "unfolded" }), o.unfoldedConfig.disableUnfold && (o.unfoldedConfig = { keep: "folded" }), o.unfoldedConfig.keep && (o.unfoldedConfig = { keep: o.unfoldedConfig.keep })), typeof o.visibleConfig == "object" && o.visibleConfig.keep && (o.visibleConfig = { keep: o.visibleConfig.keep, visibleFiveMode: (d = o.visibleConfig) == null ? void 0 : d.visibleFiveMode }), o;
|
|
126
131
|
}
|
|
127
132
|
loadVideoFirstFrame() {
|
|
@@ -130,7 +135,7 @@ class Ae extends b {
|
|
|
130
135
|
updateTagConfig(e) {
|
|
131
136
|
e != null && e.force && this.clearCache(), this.tags.forEach((i) => {
|
|
132
137
|
const o = this.getTagConfig(i);
|
|
133
|
-
i.mergedConfig = o;
|
|
138
|
+
i.mergedConfig = o, i.data = T({}, i.data, o.initialState);
|
|
134
139
|
});
|
|
135
140
|
}
|
|
136
141
|
can(e, i) {
|
|
@@ -187,7 +192,7 @@ class Ae extends b {
|
|
|
187
192
|
const n = E(e.position);
|
|
188
193
|
if (!n)
|
|
189
194
|
return;
|
|
190
|
-
const c = new
|
|
195
|
+
const c = new P.Vector3().copy(f).sub(n), p = s.angleTo(c) * 180 / Math.PI;
|
|
191
196
|
return t.angle = p, t.angle;
|
|
192
197
|
}
|
|
193
198
|
}
|
|
@@ -308,5 +313,5 @@ class Ae extends b {
|
|
|
308
313
|
}
|
|
309
314
|
}
|
|
310
315
|
export {
|
|
311
|
-
|
|
316
|
+
xe as TagUtil
|
|
312
317
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Tag, PartialDeep, TagId, Tags, TagElement, State, AddTagConfig, LoadTagConfig, ContentTypeConfigKey, TagConfig } from '../typings';
|
|
2
|
-
import type { TagContentType } from '..';
|
|
2
|
+
import type { PickTagContentTypeInContentTypeConfigKey, TagContentType } from '..';
|
|
3
3
|
import type { ArrayPosition } from '../typings';
|
|
4
4
|
import { Five } from '@realsee/five';
|
|
5
5
|
import { TagRender } from './TagRender';
|
|
@@ -37,7 +37,7 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
37
37
|
/**
|
|
38
38
|
* @description: 改变类型配置
|
|
39
39
|
*/
|
|
40
|
-
changeContentTypeConfig(key: ContentTypeConfigKey, contentTypeConfig: TagConfig, merge?: boolean): void;
|
|
40
|
+
changeContentTypeConfig<T extends ContentTypeConfigKey>(key: ContentTypeConfigKey, contentTypeConfig: PickTagContentTypeInContentTypeConfigKey<T> extends TagContentType ? TagConfig<PickTagContentTypeInContentTypeConfigKey<T>> : unknown, merge?: boolean): void;
|
|
41
41
|
show(params?: {
|
|
42
42
|
userAction?: boolean;
|
|
43
43
|
withAnimation?: boolean;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var S = Object.defineProperty,
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var S = Object.defineProperty, F = Object.defineProperties;
|
|
2
|
+
var P = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var b = Object.getOwnPropertySymbols;
|
|
4
|
+
var M = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var u = (d, a, e) => a in d ? S(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, l = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
7
|
+
M.call(a, e) && u(d, e, a[e]);
|
|
8
|
+
if (b)
|
|
9
|
+
for (var e of b(a))
|
|
10
|
+
U.call(a, e) && u(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
|
-
}, m = (d, a) =>
|
|
13
|
-
var
|
|
12
|
+
}, m = (d, a) => F(d, P(a));
|
|
13
|
+
var c = (d, a, e) => (u(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
var f = (d, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (n) => {
|
|
16
16
|
try {
|
|
@@ -27,15 +27,15 @@ var f = (d, a, e) => new Promise((t, i) => {
|
|
|
27
27
|
}, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
|
|
28
28
|
r((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import { Subscribe as
|
|
31
|
-
import
|
|
32
|
-
import { arrayPositionToVector3 as
|
|
33
|
-
import { addDebugPoints as
|
|
30
|
+
import { Subscribe as w } from "@realsee/five";
|
|
31
|
+
import p from "object-assign-deep";
|
|
32
|
+
import { arrayPositionToVector3 as T } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
33
|
+
import { addDebugPoints as E } from "../utils/addDebugPoints.js";
|
|
34
34
|
import "three";
|
|
35
35
|
import "@realsee/five/gltf-loader";
|
|
36
36
|
import "../../shared-utils/three/loadTexture.js";
|
|
37
37
|
import "../../shared-utils/threex/domevents/index.js";
|
|
38
|
-
import { isMediaModelTag as
|
|
38
|
+
import { isMediaModelTag as C } from "../utils/tag/tagCheck.js";
|
|
39
39
|
import { waitFiveModelLoaded as I } from "../utils/actionAfterFiveModelLoad.js";
|
|
40
40
|
import { debounce as A } from "../utils/debounce.js";
|
|
41
41
|
import { throttle as B } from "../utils/throttle.js";
|
|
@@ -43,6 +43,7 @@ import { resizeObserver as y } from "../utils/resizeObserver.js";
|
|
|
43
43
|
import R from "../utils/tag/format.js";
|
|
44
44
|
import { generateBlankAudio as O, AudioNamespace as _ } from "../../shared-utils/audio.js";
|
|
45
45
|
import { TagRender as k } from "./TagRender.js";
|
|
46
|
+
import { uuid as L } from "../../shared-utils/uuid.js";
|
|
46
47
|
import "hammerjs";
|
|
47
48
|
import "@tweenjs/tween.js";
|
|
48
49
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
@@ -87,7 +88,9 @@ import "../../shared-utils/math/pointIsRectangle.js";
|
|
|
87
88
|
import "../../shared-utils/three/loadVideoTexture.js";
|
|
88
89
|
import "../Assets/Icon.js";
|
|
89
90
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
91
|
+
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
90
92
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
93
|
+
import "../../shared-utils/five/getFloorIndex.js";
|
|
91
94
|
import "../Components/TagContainer.js";
|
|
92
95
|
import "../Components/TagItem.js";
|
|
93
96
|
import "../Components/Tag/index.js";
|
|
@@ -96,7 +99,6 @@ import "../Components/Tag/TextTag/TextTag.js";
|
|
|
96
99
|
import "../Components/Common/Line/Straight.js";
|
|
97
100
|
import "../../vendor/svelte/transition/index.js";
|
|
98
101
|
import "../../vendor/svelte/easing/index.js";
|
|
99
|
-
import "../../shared-utils/uuid.js";
|
|
100
102
|
import "../Components/Common/Shadow.js";
|
|
101
103
|
import "../Components/Common/Text/FlyMText.js";
|
|
102
104
|
import "../Components/Common/Text/FlyText.js";
|
|
@@ -154,25 +156,27 @@ import "../Components/Common/TagPoint.js";
|
|
|
154
156
|
import "../../CSS3DRenderPlugin/index.js";
|
|
155
157
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
156
158
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
157
|
-
const D = "Dnalogel-PanoTagPlugin",
|
|
158
|
-
class
|
|
159
|
+
const D = "Dnalogel-PanoTagPlugin", ri = (d) => `${D}--${d}`;
|
|
160
|
+
class ai extends k {
|
|
159
161
|
constructor(e, t) {
|
|
160
162
|
super(e);
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
e.data =
|
|
163
|
+
c(this, "state", { enabled: !0, visible: !0 });
|
|
164
|
+
c(this, "params");
|
|
165
|
+
c(this, "debug");
|
|
166
|
+
c(this, "changeTagModel", (e, t) => f(this, null, function* () {
|
|
167
|
+
e.data = p({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
166
168
|
}));
|
|
167
|
-
|
|
169
|
+
c(this, "handleFiveInitAnimationEnded", () => {
|
|
168
170
|
const e = this.five.getCurrentState().mode;
|
|
169
171
|
this.tags.forEach((t) => {
|
|
170
|
-
|
|
172
|
+
C(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
|
|
171
173
|
}), this.updateRenderAllTags();
|
|
172
174
|
});
|
|
173
|
-
|
|
175
|
+
c(this, "handleFiveModelShownFloorChange", () => {
|
|
174
176
|
this.tags.forEach((e) => {
|
|
175
|
-
|
|
177
|
+
var i, s;
|
|
178
|
+
const t = this.getTagConfig(e).visibleConfig;
|
|
179
|
+
typeof t == "object" && (((i = t.visibleFiveMode) == null ? void 0 : i.includes("Floorplan")) || ((s = t.visibleFiveMode) == null ? void 0 : s.includes("Mapview"))) && (e.state.visible = this.getVisibleByFiveMode(e));
|
|
176
180
|
}), this.updateRenderAllTags();
|
|
177
181
|
});
|
|
178
182
|
this.params = l({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, O(1, { namespace: _.PlayAudio });
|
|
@@ -185,14 +189,14 @@ class oi extends k {
|
|
|
185
189
|
load(e, t) {
|
|
186
190
|
return f(this, null, function* () {
|
|
187
191
|
var s, o;
|
|
188
|
-
this.clearTags(), console.info(D, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config =
|
|
192
|
+
this.clearTags(), console.info(D, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = p({}, this.config, {
|
|
189
193
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
190
194
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
191
195
|
});
|
|
192
196
|
const i = yield this.addTag(e.tagList, t);
|
|
193
197
|
if (this.debug)
|
|
194
198
|
try {
|
|
195
|
-
|
|
199
|
+
E(this.five, this.tags);
|
|
196
200
|
} catch (r) {
|
|
197
201
|
console.error(r);
|
|
198
202
|
}
|
|
@@ -202,13 +206,16 @@ class oi extends k {
|
|
|
202
206
|
addTag(e, t) {
|
|
203
207
|
return f(this, null, function* () {
|
|
204
208
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
209
|
+
var h;
|
|
205
210
|
const r = this.getTagConfig(o);
|
|
206
211
|
return m(l({}, o), {
|
|
212
|
+
id: (h = o.id) != null ? h : L(),
|
|
213
|
+
data: p({}, r.initialData, o.data),
|
|
207
214
|
state: l({
|
|
208
215
|
visible: void 0,
|
|
209
216
|
unfolded: !this.can("fold", o)
|
|
210
217
|
}, r.initialState),
|
|
211
|
-
hooks: new
|
|
218
|
+
hooks: new w(),
|
|
212
219
|
mergedConfig: r,
|
|
213
220
|
unfold: () => this.changeUnfoldedById(o.id, !0),
|
|
214
221
|
fold: () => this.changeUnfoldedById(o.id, !1),
|
|
@@ -224,13 +231,13 @@ class oi extends k {
|
|
|
224
231
|
});
|
|
225
232
|
}
|
|
226
233
|
changeConfig(e, t = !0) {
|
|
227
|
-
t ? this.config =
|
|
234
|
+
t ? this.config = p({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
228
235
|
}
|
|
229
236
|
changeGlobalConfig(e, t = !0) {
|
|
230
|
-
t ? this.config.globalConfig =
|
|
237
|
+
t ? this.config.globalConfig = p({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
231
238
|
}
|
|
232
239
|
changeContentTypeConfig(e, t, i = !0) {
|
|
233
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
240
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = p({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
234
241
|
}
|
|
235
242
|
show(e) {
|
|
236
243
|
return f(this, null, function* () {
|
|
@@ -292,18 +299,18 @@ class oi extends k {
|
|
|
292
299
|
}
|
|
293
300
|
changeTagNormalById(e, t) {
|
|
294
301
|
const i = this.getTagById(e);
|
|
295
|
-
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal =
|
|
302
|
+
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = T(t));
|
|
296
303
|
}
|
|
297
304
|
changeDataById(e, t, i = !0) {
|
|
298
305
|
const s = this.getTagById(e);
|
|
299
|
-
!s || (i ? s.data =
|
|
306
|
+
!s || (i ? s.data = p({}, s.data, t) : s.data = l(l({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
|
|
300
307
|
}
|
|
301
308
|
changeStickTypeById(e, t, i = !0) {
|
|
302
309
|
this.changeTagById(e, t, i);
|
|
303
310
|
}
|
|
304
311
|
changeTagById(e, t, i = !0) {
|
|
305
312
|
const s = this.getTagById(e);
|
|
306
|
-
!t || (i ?
|
|
313
|
+
!t || (i ? p(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = T(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag());
|
|
307
314
|
}
|
|
308
315
|
destroyTagById(e) {
|
|
309
316
|
(Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
@@ -341,8 +348,8 @@ class oi extends k {
|
|
|
341
348
|
}), this.five.needsRender = !0;
|
|
342
349
|
}
|
|
343
350
|
addEventListener() {
|
|
344
|
-
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), h = this.loadVideoFirstFrame.bind(this), g = this.clickhandler.bind(this),
|
|
345
|
-
return
|
|
351
|
+
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), h = this.loadVideoFirstFrame.bind(this), g = this.clickhandler.bind(this), v = this.five.currentMode;
|
|
352
|
+
return v && this.handleFiveModeChange(v), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived", h), t.on("click", g), () => {
|
|
346
353
|
e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived", h), t.off("click", g), this.store.eventListenerDisposer = void 0;
|
|
347
354
|
};
|
|
348
355
|
}
|
|
@@ -376,7 +383,7 @@ class oi extends k {
|
|
|
376
383
|
}
|
|
377
384
|
handleFiveModeChange(e) {
|
|
378
385
|
this.setModelMedialVisible(), this.tags.forEach((t) => {
|
|
379
|
-
|
|
386
|
+
C(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
|
|
380
387
|
}), this.updateRenderAllTags();
|
|
381
388
|
}
|
|
382
389
|
handleFiveWantsMoveToPano() {
|
|
@@ -426,7 +433,7 @@ class oi extends k {
|
|
|
426
433
|
}
|
|
427
434
|
}
|
|
428
435
|
export {
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
436
|
+
ai as PanoTagPluginController,
|
|
437
|
+
ai as default,
|
|
438
|
+
ri as pluginFlag
|
|
432
439
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./controller/index.js";
|
|
2
|
-
import { default as
|
|
3
|
-
import { ContentType as
|
|
4
|
-
import { DimensionType as
|
|
2
|
+
import { default as vr, pluginFlag as zr } from "./controller/index.js";
|
|
3
|
+
import { ContentType as Br } from "./typings/tag/TagData.js";
|
|
4
|
+
import { DimensionType as Gr } from "./typings/tag/Utils.js";
|
|
5
5
|
import "@realsee/five";
|
|
6
6
|
import "object-assign-deep";
|
|
7
7
|
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
@@ -62,7 +62,9 @@ import "../shared-utils/math/pointIsRectangle.js";
|
|
|
62
62
|
import "../shared-utils/three/loadVideoTexture.js";
|
|
63
63
|
import "./Assets/Icon.js";
|
|
64
64
|
import "../shared-utils/three/getPositionsByObjectFit.js";
|
|
65
|
+
import "../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
65
66
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
67
|
+
import "../shared-utils/five/getFloorIndex.js";
|
|
66
68
|
import "./Components/TagContainer.js";
|
|
67
69
|
import "./Components/TagItem.js";
|
|
68
70
|
import "./Components/Tag/index.js";
|
|
@@ -129,12 +131,12 @@ import "./Components/Common/TagPoint.js";
|
|
|
129
131
|
import "../CSS3DRenderPlugin/index.js";
|
|
130
132
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
131
133
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
132
|
-
const
|
|
134
|
+
const jr = (o, r) => new t(o, r);
|
|
133
135
|
export {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
Br as ContentType,
|
|
137
|
+
Gr as DimensionType,
|
|
138
|
+
jr as PanoTagPlugin,
|
|
139
|
+
vr as PanoTagPluginController,
|
|
140
|
+
jr as default,
|
|
141
|
+
zr as pluginFlag
|
|
140
142
|
};
|