@realsee/dnalogel 2.16.2-alpha.0 → 2.17.0-aplha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/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 +6 -7
- 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 +1899 -1855
- 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 +173 -171
- package/libs/PanoTagPlugin/controller/TagRender.js +51 -44
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +21 -16
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/index.js +45 -41
- 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 +6 -7
- 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 +1 -1
- 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 +16 -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, d, e) => d in c ? w(c, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[d] = e;
|
|
3
|
+
var h = (c, d, e) => (E(c, typeof d != "symbol" ? d + "" : d, e), e);
|
|
4
|
+
var T = (c, d, e) => new Promise((t, i) => {
|
|
5
5
|
var o = (s) => {
|
|
6
6
|
try {
|
|
7
7
|
a(e.next(s));
|
|
@@ -15,14 +15,14 @@ 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, d)).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
28
|
import { isMediaModelTag as S } from "../utils/tag/tagCheck.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,16 +140,16 @@ 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
|
+
h(this, "group", new b());
|
|
147
|
+
h(this, "imagePlaneGroup", new b());
|
|
148
|
+
h(this, "gltfObjectGroup", new b());
|
|
149
|
+
h(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
150
|
+
h(this, "temporaryState", { visible: !0 });
|
|
151
|
+
h(this, "TagContainerSvelte");
|
|
152
|
+
h(this, "loadModel", (e) => T(this, null, function* () {
|
|
151
153
|
var s;
|
|
152
154
|
const t = e.data.modelUrl;
|
|
153
155
|
if (!t)
|
|
@@ -157,7 +159,7 @@ class Zt extends x {
|
|
|
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, u;
|
|
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
|
|
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 && t.mediaPlane.pause()), ((m = t.mediaPlane) == null ? void 0 : m.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: !((u = t.data.autoplayConfig) != null && u.autoplayVideo),
|
|
202
207
|
videoTextureMap: F,
|
|
203
208
|
ImageTextureMap: B
|
|
204
209
|
});
|
|
205
|
-
|
|
206
|
-
this.mediaStore.set({ currentMediaElement:
|
|
207
|
-
}
|
|
210
|
+
p.onVideoReady = (l) => {
|
|
211
|
+
l.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: p.videoInstance }));
|
|
212
|
+
}, p.initialDomEvents(this.domEvents);
|
|
213
|
+
const f = (l) => (this.five.on("renderFrame", l), () => this.five.off("renderFrame", l));
|
|
214
|
+
p.initialRenderHooks(f), t.mediaPlane = p;
|
|
208
215
|
}
|
|
209
216
|
this.imagePlaneGroup.add(t.mediaPlane);
|
|
210
217
|
});
|
|
@@ -215,7 +222,7 @@ 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;
|
|
@@ -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 p = "black";
|
|
244
|
+
r.container.style.backgroundColor = p, r.container.style.border = `3px solid ${p}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
245
|
+
var f;
|
|
239
246
|
if (m.css3DObject.opacityMesh) {
|
|
240
|
-
const
|
|
247
|
+
const l = this.addObjectClickHandler(t, m.css3DObject.opacityMesh, (g) => {
|
|
241
248
|
this.hooks.emit("click", { event: g, target: "TagContent", tag: t });
|
|
242
249
|
});
|
|
243
|
-
(
|
|
250
|
+
(f = this.store.css3DRenderDisposer.get(t.id)) == null || f.push(l);
|
|
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 u = 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: u,
|
|
263
270
|
domContainer: m,
|
|
264
271
|
css3DInstance: m,
|
|
265
272
|
initialNormal: a,
|
|
266
273
|
currentNormal: a,
|
|
267
274
|
dispose: () => {
|
|
268
|
-
|
|
275
|
+
u.$destroy(), m.dispose();
|
|
269
276
|
}
|
|
270
277
|
};
|
|
271
278
|
}
|
|
@@ -287,19 +294,19 @@ class Zt extends x {
|
|
|
287
294
|
});
|
|
288
295
|
}
|
|
289
296
|
updateTagCss3DObjectMatrix(e, t) {
|
|
290
|
-
var g, C,
|
|
291
|
-
const i = (
|
|
297
|
+
var g, C, y, M;
|
|
298
|
+
const i = (y = (C = (g = e.mergedConfig) == null ? void 0 : g.tag3DConfig) == null ? void 0 : C.ratio) != null ? y : 216e-5, o = (M = e.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
|
|
292
299
|
if (!o)
|
|
293
300
|
return;
|
|
294
301
|
const n = S(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
|
-
|
|
298
|
-
const
|
|
299
|
-
|
|
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)), u = new P().setPosition(m), p = new P().makeScale(i, i, i), f = new P().multiply(a).multiply(u).multiply(p);
|
|
304
|
+
f.decompose(o.position, o.quaternion, o.scale);
|
|
305
|
+
const l = o.opacityMesh;
|
|
306
|
+
l && f.decompose(l.position, l.quaternion, l.scale);
|
|
300
307
|
}
|
|
301
308
|
addMediaModelTag(e) {
|
|
302
|
-
return
|
|
309
|
+
return T(this, null, function* () {
|
|
303
310
|
const t = e.filter(S).map((i) => this.loadModel(i));
|
|
304
311
|
yield Promise.all(t), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
305
312
|
});
|
|
@@ -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
1
|
var T = Object.defineProperty;
|
|
2
|
-
var y = (
|
|
3
|
-
var l = (
|
|
2
|
+
var y = (m, u, e) => u in m ? T(m, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[u] = e;
|
|
3
|
+
var l = (m, u, e) => (y(m, typeof u != "symbol" ? u + "" : u, e), e);
|
|
4
4
|
import D from "object-assign-deep";
|
|
5
|
-
import * as
|
|
6
|
-
import { DefaultConfig as
|
|
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
|
|
19
|
-
import { VideoPlane as
|
|
18
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
19
|
+
import { VideoPlane as F } from "../utils/model/mediaPlane.js";
|
|
20
|
+
import { FiveDomEvents as L } 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 L(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 F && 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);
|
|
@@ -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";
|
|
@@ -87,7 +87,9 @@ import "../../shared-utils/math/pointIsRectangle.js";
|
|
|
87
87
|
import "../../shared-utils/three/loadVideoTexture.js";
|
|
88
88
|
import "../Assets/Icon.js";
|
|
89
89
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
90
|
+
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
90
91
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
92
|
+
import "../../shared-utils/five/getFloorIndex.js";
|
|
91
93
|
import "../Components/TagContainer.js";
|
|
92
94
|
import "../Components/TagItem.js";
|
|
93
95
|
import "../Components/Tag/index.js";
|
|
@@ -154,25 +156,26 @@ 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", ni = (d) => `${D}--${d}`;
|
|
160
|
+
class ri 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
|
+
const t = this.getTagConfig(e).visibleConfig;
|
|
178
|
+
typeof t == "object" && (t.visibleFiveMode.includes("Floorplan") || t.visibleFiveMode.includes("Mapview")) && (e.state.visible = this.getVisibleByFiveMode(e));
|
|
176
179
|
}), this.updateRenderAllTags();
|
|
177
180
|
});
|
|
178
181
|
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 +188,14 @@ class oi extends k {
|
|
|
185
188
|
load(e, t) {
|
|
186
189
|
return f(this, null, function* () {
|
|
187
190
|
var s, o;
|
|
188
|
-
this.clearTags(), console.info(D, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config =
|
|
191
|
+
this.clearTags(), console.info(D, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = p({}, this.config, {
|
|
189
192
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
190
193
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
191
194
|
});
|
|
192
195
|
const i = yield this.addTag(e.tagList, t);
|
|
193
196
|
if (this.debug)
|
|
194
197
|
try {
|
|
195
|
-
|
|
198
|
+
E(this.five, this.tags);
|
|
196
199
|
} catch (r) {
|
|
197
200
|
console.error(r);
|
|
198
201
|
}
|
|
@@ -204,11 +207,12 @@ class oi extends k {
|
|
|
204
207
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
205
208
|
const r = this.getTagConfig(o);
|
|
206
209
|
return m(l({}, o), {
|
|
210
|
+
data: p({}, r.initialData, o.data),
|
|
207
211
|
state: l({
|
|
208
212
|
visible: void 0,
|
|
209
213
|
unfolded: !this.can("fold", o)
|
|
210
214
|
}, r.initialState),
|
|
211
|
-
hooks: new
|
|
215
|
+
hooks: new w(),
|
|
212
216
|
mergedConfig: r,
|
|
213
217
|
unfold: () => this.changeUnfoldedById(o.id, !0),
|
|
214
218
|
fold: () => this.changeUnfoldedById(o.id, !1),
|
|
@@ -224,13 +228,13 @@ class oi extends k {
|
|
|
224
228
|
});
|
|
225
229
|
}
|
|
226
230
|
changeConfig(e, t = !0) {
|
|
227
|
-
t ? this.config =
|
|
231
|
+
t ? this.config = p({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
228
232
|
}
|
|
229
233
|
changeGlobalConfig(e, t = !0) {
|
|
230
|
-
t ? this.config.globalConfig =
|
|
234
|
+
t ? this.config.globalConfig = p({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
231
235
|
}
|
|
232
236
|
changeContentTypeConfig(e, t, i = !0) {
|
|
233
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
237
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = p({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.clearCache(), this.updateRenderAllTags();
|
|
234
238
|
}
|
|
235
239
|
show(e) {
|
|
236
240
|
return f(this, null, function* () {
|
|
@@ -292,18 +296,18 @@ class oi extends k {
|
|
|
292
296
|
}
|
|
293
297
|
changeTagNormalById(e, t) {
|
|
294
298
|
const i = this.getTagById(e);
|
|
295
|
-
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal =
|
|
299
|
+
!i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = T(t));
|
|
296
300
|
}
|
|
297
301
|
changeDataById(e, t, i = !0) {
|
|
298
302
|
const s = this.getTagById(e);
|
|
299
|
-
!s || (i ? s.data =
|
|
303
|
+
!s || (i ? s.data = p({}, s.data, t) : s.data = l(l({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
|
|
300
304
|
}
|
|
301
305
|
changeStickTypeById(e, t, i = !0) {
|
|
302
306
|
this.changeTagById(e, t, i);
|
|
303
307
|
}
|
|
304
308
|
changeTagById(e, t, i = !0) {
|
|
305
309
|
const s = this.getTagById(e);
|
|
306
|
-
!t || (i ?
|
|
310
|
+
!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
311
|
}
|
|
308
312
|
destroyTagById(e) {
|
|
309
313
|
(Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
@@ -341,8 +345,8 @@ class oi extends k {
|
|
|
341
345
|
}), this.five.needsRender = !0;
|
|
342
346
|
}
|
|
343
347
|
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
|
|
348
|
+
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;
|
|
349
|
+
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
350
|
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
351
|
};
|
|
348
352
|
}
|
|
@@ -376,7 +380,7 @@ class oi extends k {
|
|
|
376
380
|
}
|
|
377
381
|
handleFiveModeChange(e) {
|
|
378
382
|
this.setModelMedialVisible(), this.tags.forEach((t) => {
|
|
379
|
-
|
|
383
|
+
C(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
|
|
380
384
|
}), this.updateRenderAllTags();
|
|
381
385
|
}
|
|
382
386
|
handleFiveWantsMoveToPano() {
|
|
@@ -426,7 +430,7 @@ class oi extends k {
|
|
|
426
430
|
}
|
|
427
431
|
}
|
|
428
432
|
export {
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
433
|
+
ri as PanoTagPluginController,
|
|
434
|
+
ri as default,
|
|
435
|
+
ni as pluginFlag
|
|
432
436
|
};
|
|
@@ -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
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { State as FiveState } from '@realsee/five';
|
|
2
2
|
import type { TagConfig } from './TagConfig';
|
|
3
3
|
import { ContentTypeMap, ContentType, TagContentType } from './TagData';
|
|
4
|
-
import type {
|
|
4
|
+
import type { Position, TagId, StickType, TagStyle, ElementRenderer, PickTagContentTypeInContentTypeConfigKey, ContentTypeConfigKey } from './Utils';
|
|
5
|
+
import { DeprecatedTagProperty } from '../../Archive/deprecated';
|
|
5
6
|
export type { ContentTypeMap, TagContentType };
|
|
6
7
|
export { ContentType };
|
|
7
8
|
export interface Tags {
|
|
@@ -10,21 +11,19 @@ export interface Tags {
|
|
|
10
11
|
/** 全局配置 */
|
|
11
12
|
globalConfig?: TagConfig;
|
|
12
13
|
/** 按type配置 */
|
|
13
|
-
contentTypeConfig?:
|
|
14
|
+
contentTypeConfig?: {
|
|
15
|
+
[key in ContentTypeConfigKey]?: PickTagContentTypeInContentTypeConfigKey<key> extends TagContentType ? TagConfig<PickTagContentTypeInContentTypeConfigKey<key>> : unknown;
|
|
16
|
+
};
|
|
14
17
|
/** 标签列表配置 */
|
|
15
18
|
tagList: Tag[];
|
|
16
19
|
}
|
|
17
|
-
export declare type Tag<C extends TagContentType = TagContentType, S extends StickType = StickType> = {
|
|
20
|
+
export declare type Tag<C extends TagContentType = TagContentType, S extends StickType = StickType> = DeprecatedTagProperty & {
|
|
18
21
|
/** 开启/禁用 */
|
|
19
22
|
enabled?: boolean;
|
|
20
23
|
/** 唯一标识 */
|
|
21
24
|
id: TagId;
|
|
22
|
-
/** @deprecated 一个点的标签/4个点的标签,已废弃,使用 stickType 代替 */
|
|
23
|
-
pointType?: 'PlaneTag' | 'PointTag';
|
|
24
25
|
/** @type {StickType} 附着方式 */
|
|
25
26
|
stickType: S;
|
|
26
|
-
/** @deprecated 2维/3维类型,已废弃,使用 stickType 代替 */
|
|
27
|
-
dimensionType?: '2D' | '3D';
|
|
28
27
|
/** @type {TagContentType} 内容类型,根据内容类型展示对应UI */
|
|
29
28
|
contentType: C;
|
|
30
29
|
/** 点 */
|