@realsee/dnalogel 2.18.4 → 2.19.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +3 -0
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +12 -2
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +3 -1
- package/dist/index.cjs.js +22 -22
- package/dist/index.js +5169 -5143
- package/dist/index.umd.js +24 -24
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +30 -30
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +22 -22
- package/docs/classes/PanoMeasurePluginModel.html +21 -21
- package/docs/classes/PanoMeasurePluginPoint.html +13 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
- package/docs/classes/PanoTagPluginController.html +55 -55
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +11 -11
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.Magnifier.html +16 -16
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +27 -18
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/Rotation.html +7 -7
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/EventMap.html +16 -16
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +13 -13
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +23 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +22 -10
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelElement.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/PlaneTagElement.html +4 -4
- package/docs/types/Point2DElement.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DElement.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagElement.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagIconSize.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -3
- package/libs/PanoTagPlugin/controller/TagComputer.js +9 -9
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +97 -93
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +17 -17
- package/libs/PanoTagPlugin/controller/index.js +127 -109
- package/libs/PanoTagPlugin/index.js +12 -10
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +3 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +12 -2
- package/libs/PanoTagPlugin/typings/tag/TagData.js +1 -1
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +3 -1
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +13 -5
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,72 +1,73 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var E = Object.defineProperty, F = Object.defineProperties;
|
|
2
|
+
var w = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var C = Object.getOwnPropertySymbols;
|
|
4
|
+
var U = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var v = (h, a, e) => a in h ? E(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, l = (h, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var f = (
|
|
15
|
-
var s = (
|
|
7
|
+
U.call(a, e) && v(h, e, a[e]);
|
|
8
|
+
if (C)
|
|
9
|
+
for (var e of C(a))
|
|
10
|
+
I.call(a, e) && v(h, e, a[e]);
|
|
11
|
+
return h;
|
|
12
|
+
}, u = (h, a) => F(h, w(a));
|
|
13
|
+
var g = (h, a, e) => (v(h, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
+
var f = (h, a, e) => new Promise((t, i) => {
|
|
15
|
+
var s = (r) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
17
|
+
n(e.next(r));
|
|
18
|
+
} catch (d) {
|
|
19
|
+
i(d);
|
|
20
20
|
}
|
|
21
|
-
}, o = (
|
|
21
|
+
}, o = (r) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
23
|
+
n(e.throw(r));
|
|
24
|
+
} catch (d) {
|
|
25
|
+
i(d);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
|
|
28
|
+
n((e = e.apply(h, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import "
|
|
35
|
-
import { isMediaModelTag as
|
|
36
|
-
import { waitFiveModelLoaded as
|
|
37
|
-
import { debounce as
|
|
38
|
-
import { throttle as
|
|
39
|
-
import { resizeObserver as
|
|
40
|
-
import
|
|
41
|
-
import { generateBlankAudio as
|
|
42
|
-
import { TagRender as
|
|
43
|
-
import { uuid as
|
|
30
|
+
import * as b from "three";
|
|
31
|
+
import { Subscribe as B } from "@realsee/five";
|
|
32
|
+
import { objectAssignDeepExports as c } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
|
+
import { arrayPositionToVector3 as A } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
34
|
+
import { addDebugPoints as R } from "../utils/addDebugPoints.js";
|
|
35
|
+
import { isMediaModelTag as y, isModelTag as O } from "../utils/tag/tagCheck.js";
|
|
36
|
+
import { waitFiveModelLoaded as _ } from "../utils/actionAfterFiveModelLoad.js";
|
|
37
|
+
import { debounce as D } from "../utils/debounce.js";
|
|
38
|
+
import { throttle as k } from "../utils/throttle.js";
|
|
39
|
+
import { resizeObserver as S } from "../utils/resizeObserver.js";
|
|
40
|
+
import L from "../utils/tag/format.js";
|
|
41
|
+
import { generateBlankAudio as G, AudioNamespace as V } from "../../shared-utils/audio.js";
|
|
42
|
+
import { TagRender as N } from "./TagRender.js";
|
|
43
|
+
import { uuid as z } from "../../shared-utils/uuid.js";
|
|
44
|
+
import "hammerjs";
|
|
45
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
46
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
47
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
48
|
+
import { tweenProgress as x } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
44
49
|
import "./TagComputer.js";
|
|
45
50
|
import "../utils/tagPosition.js";
|
|
46
51
|
import "../../shared-utils/three/centerPoint.js";
|
|
47
52
|
import "../utils/checkRange.js";
|
|
48
|
-
import "
|
|
49
|
-
import "
|
|
50
|
-
import "
|
|
53
|
+
import "../../shared-utils/isNil.js";
|
|
54
|
+
import "./TagUtil.js";
|
|
55
|
+
import "../tag.config.js";
|
|
56
|
+
import "../utils/planeNormal.js";
|
|
57
|
+
import "../utils/normalPositionToPositions.js";
|
|
58
|
+
import "./TagCache.js";
|
|
59
|
+
import "../../base/BasePlugin.js";
|
|
60
|
+
import "../../shared-utils/Subscribe.js";
|
|
61
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
51
62
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
52
63
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
53
64
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
54
65
|
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
55
66
|
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
56
|
-
import "../../shared-utils/Subscribe.js";
|
|
57
67
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
58
68
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
59
69
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
60
70
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
61
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
62
|
-
import "../../shared-utils/isNil.js";
|
|
63
|
-
import "./TagUtil.js";
|
|
64
|
-
import "../tag.config.js";
|
|
65
|
-
import "../utils/planeNormal.js";
|
|
66
|
-
import "../utils/normalPositionToPositions.js";
|
|
67
|
-
import "./TagCache.js";
|
|
68
|
-
import "../../base/BasePlugin.js";
|
|
69
|
-
import "../../shared-utils/isAbsoluteURL.js";
|
|
70
71
|
import "../../vendor/svelte/store/index.js";
|
|
71
72
|
import "../../vendor/svelte/internal/index.js";
|
|
72
73
|
import "../../shared-utils/device.js";
|
|
@@ -156,35 +157,36 @@ import "../../CSS3DRenderPlugin/Controller.js";
|
|
|
156
157
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
157
158
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
158
159
|
import "@realsee/five/gltf-loader";
|
|
159
|
-
|
|
160
|
-
|
|
160
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
161
|
+
const M = "Dnalogel-PanoTagPlugin", pi = (h) => `${M}--${h}`;
|
|
162
|
+
class ci extends N {
|
|
161
163
|
constructor(e, t) {
|
|
162
164
|
super(e);
|
|
163
165
|
/** state */
|
|
164
|
-
|
|
166
|
+
g(this, "state", { enabled: !0, visible: !0 });
|
|
165
167
|
/** 插件参数 */
|
|
166
|
-
|
|
168
|
+
g(this, "params");
|
|
167
169
|
/** debug */
|
|
168
|
-
|
|
170
|
+
g(this, "debug");
|
|
169
171
|
/** 更改 tag 模型 */
|
|
170
|
-
|
|
171
|
-
e.data =
|
|
172
|
+
g(this, "changeTagModel", (e, t) => f(this, null, function* () {
|
|
173
|
+
e.data = c({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
172
174
|
}));
|
|
173
|
-
|
|
175
|
+
g(this, "handleFiveInitAnimationEnded", () => {
|
|
174
176
|
const e = this.five.getCurrentState().mode;
|
|
175
177
|
this.tags.forEach((t) => {
|
|
176
|
-
|
|
178
|
+
y(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
|
|
177
179
|
}), this.updateRenderAllTags();
|
|
178
180
|
});
|
|
179
181
|
/** 楼层切换时,需要更新标签可见性 */
|
|
180
|
-
|
|
182
|
+
g(this, "handleFiveModelShownFloorChange", () => {
|
|
181
183
|
this.tags.forEach((e) => {
|
|
182
184
|
var i, s;
|
|
183
185
|
const t = this.getTagConfig(e).visibleConfig;
|
|
184
186
|
typeof t == "object" && ((i = t.visibleFiveMode) != null && i.includes("Floorplan") || (s = t.visibleFiveMode) != null && s.includes("Mapview")) && (e.state.visible = this.getVisibleByFiveMode(e));
|
|
185
187
|
}), this.updateRenderAllTags();
|
|
186
188
|
});
|
|
187
|
-
this.params = l({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config,
|
|
189
|
+
this.params = l({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, G(1, { namespace: V.PlayAudio });
|
|
188
190
|
try {
|
|
189
191
|
const i = window;
|
|
190
192
|
Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
|
|
@@ -197,16 +199,16 @@ class ai extends k {
|
|
|
197
199
|
load(e, t) {
|
|
198
200
|
return f(this, null, function* () {
|
|
199
201
|
var s, o;
|
|
200
|
-
this.clearTags(), console.info(
|
|
202
|
+
this.clearTags(), console.info(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = c({}, this.config, {
|
|
201
203
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
202
204
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
203
205
|
});
|
|
204
206
|
const i = yield this.addTag(e.tagList, t);
|
|
205
207
|
if (this.debug)
|
|
206
208
|
try {
|
|
207
|
-
|
|
208
|
-
} catch (
|
|
209
|
-
console.error(
|
|
209
|
+
R(this.five, this.tags);
|
|
210
|
+
} catch (n) {
|
|
211
|
+
console.error(n);
|
|
210
212
|
}
|
|
211
213
|
return i;
|
|
212
214
|
});
|
|
@@ -217,17 +219,17 @@ class ai extends k {
|
|
|
217
219
|
addTag(e, t) {
|
|
218
220
|
return f(this, null, function* () {
|
|
219
221
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
220
|
-
var
|
|
221
|
-
const
|
|
222
|
-
return
|
|
223
|
-
id: (
|
|
224
|
-
data:
|
|
222
|
+
var d;
|
|
223
|
+
const n = this.getTagConfig(o);
|
|
224
|
+
return u(l({}, o), {
|
|
225
|
+
id: (d = o.id) != null ? d : z(),
|
|
226
|
+
data: c({}, n.initialData, o.data),
|
|
225
227
|
state: l({
|
|
226
228
|
visible: void 0,
|
|
227
229
|
unfolded: !this.can("fold", o)
|
|
228
|
-
},
|
|
229
|
-
hooks: new
|
|
230
|
-
mergedConfig:
|
|
230
|
+
}, n.initialState),
|
|
231
|
+
hooks: new B(),
|
|
232
|
+
mergedConfig: n,
|
|
231
233
|
unfold: () => this.changeUnfoldedById(o.id, !0),
|
|
232
234
|
fold: () => this.changeUnfoldedById(o.id, !1),
|
|
233
235
|
enable: () => this.changeEnabledById(o.id, !0),
|
|
@@ -235,9 +237,9 @@ class ai extends k {
|
|
|
235
237
|
destroy: () => this.destroyTagById(o.id)
|
|
236
238
|
});
|
|
237
239
|
}).filter((o) => o.position);
|
|
238
|
-
return s.forEach(
|
|
239
|
-
var o,
|
|
240
|
-
this.store.eventListenerDisposer && ((
|
|
240
|
+
return s.forEach(L), this.tags.push(...s), _(this.five).then(() => f(this, null, function* () {
|
|
241
|
+
var o, n, r;
|
|
242
|
+
this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), yield this.addMediaModelTag(s);
|
|
241
243
|
}));
|
|
242
244
|
});
|
|
243
245
|
}
|
|
@@ -245,19 +247,19 @@ class ai extends k {
|
|
|
245
247
|
* @description: 改变配置
|
|
246
248
|
*/
|
|
247
249
|
changeConfig(e, t = !0) {
|
|
248
|
-
t ? this.config =
|
|
250
|
+
t ? this.config = c({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
249
251
|
}
|
|
250
252
|
/**
|
|
251
253
|
* @description: 改变全局配置
|
|
252
254
|
*/
|
|
253
255
|
changeGlobalConfig(e, t = !0) {
|
|
254
|
-
t ? this.config.globalConfig =
|
|
256
|
+
t ? this.config.globalConfig = c({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
255
257
|
}
|
|
256
258
|
/**
|
|
257
259
|
* @description: 改变类型配置
|
|
258
260
|
*/
|
|
259
261
|
changeContentTypeConfig(e, t, i = !0) {
|
|
260
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
262
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = c({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
|
|
261
263
|
}
|
|
262
264
|
show(e) {
|
|
263
265
|
return f(this, null, function* () {
|
|
@@ -297,22 +299,22 @@ class ai extends k {
|
|
|
297
299
|
* @description: 销毁
|
|
298
300
|
*/
|
|
299
301
|
dispose() {
|
|
300
|
-
var e, t, i, s, o,
|
|
301
|
-
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((
|
|
302
|
-
var
|
|
303
|
-
return (
|
|
304
|
-
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((
|
|
302
|
+
var e, t, i, s, o, n;
|
|
303
|
+
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((r) => {
|
|
304
|
+
var d;
|
|
305
|
+
return (d = r.tag3DContentSvelte) == null ? void 0 : d.svelteApp.$destroy();
|
|
306
|
+
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (n = (o = this.store).resizeObserverDisposer) == null || n.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.imagePlaneGroup.remove(...this.imagePlaneGroup.children), this.clearCache(), this.five.needsRender = !0, this.store.disposed = !0, this.hooks.emit("dispose");
|
|
305
307
|
}
|
|
306
308
|
changeUnfoldedById(e, t) {
|
|
307
|
-
var
|
|
309
|
+
var n;
|
|
308
310
|
const i = this.getTagById(e);
|
|
309
311
|
if (!i)
|
|
310
312
|
return;
|
|
311
313
|
const s = this.can("fold", i), o = this.can("unfold", i);
|
|
312
314
|
if (s && o) {
|
|
313
315
|
i.state.unfolded = t;
|
|
314
|
-
const
|
|
315
|
-
(
|
|
316
|
+
const r = this.filterPointTag;
|
|
317
|
+
(n = this.TagContainerSvelte) == null || n.$set({ tags: r });
|
|
316
318
|
} else
|
|
317
319
|
console.warn(`tag ${e} cannot be ${t ? "unfolded" : "folded"}`);
|
|
318
320
|
}
|
|
@@ -325,14 +327,14 @@ class ai extends k {
|
|
|
325
327
|
*/
|
|
326
328
|
changeTagNormalById(e, t) {
|
|
327
329
|
const i = this.getTagById(e);
|
|
328
|
-
i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal =
|
|
330
|
+
i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = A(t));
|
|
329
331
|
}
|
|
330
332
|
/**
|
|
331
333
|
* @description: 改变data
|
|
332
334
|
*/
|
|
333
335
|
changeDataById(e, t, i = !0) {
|
|
334
336
|
const s = this.getTagById(e);
|
|
335
|
-
s && (i ? s.data =
|
|
337
|
+
s && (i ? s.data = c({}, s.data, t) : s.data = l(l({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
|
|
336
338
|
}
|
|
337
339
|
/**
|
|
338
340
|
* @description: 改变tag的stickType
|
|
@@ -345,7 +347,7 @@ class ai extends k {
|
|
|
345
347
|
*/
|
|
346
348
|
changeTagById(e, t, i = !0) {
|
|
347
349
|
const s = this.getTagById(e);
|
|
348
|
-
t && (i ?
|
|
350
|
+
t && (i ? c(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = A(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag());
|
|
349
351
|
}
|
|
350
352
|
/**
|
|
351
353
|
* @description: 销毁tag
|
|
@@ -392,9 +394,9 @@ class ai extends k {
|
|
|
392
394
|
* @description: 添加 cameraUpdate, panoArrived 等事件监听
|
|
393
395
|
*/
|
|
394
396
|
addEventListener() {
|
|
395
|
-
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this),
|
|
396
|
-
return
|
|
397
|
-
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",
|
|
397
|
+
const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), d = this.loadVideoFirstFrame.bind(this), p = this.clickhandler.bind(this), m = this.five.currentMode;
|
|
398
|
+
return m && this.handleFiveModeChange(m), 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", n), e.on("panoArrived", r), e.on("panoArrived", d), t.on("click", p), () => {
|
|
399
|
+
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", n), e.off("panoArrived", r), e.off("panoArrived", d), t.off("click", p), this.store.eventListenerDisposer = void 0;
|
|
398
400
|
};
|
|
399
401
|
}
|
|
400
402
|
addResizeListener() {
|
|
@@ -412,17 +414,17 @@ class ai extends k {
|
|
|
412
414
|
this.state.enabled && (this.show(), this.updateRenderAllTags());
|
|
413
415
|
}, i = () => {
|
|
414
416
|
this.state.enabled && this.hide();
|
|
415
|
-
}, { observe: s, unobserve: o } =
|
|
416
|
-
|
|
417
|
+
}, { observe: s, unobserve: o } = S(
|
|
418
|
+
k(() => {
|
|
417
419
|
this.store.resizeObserverDisposer && i();
|
|
418
420
|
}, 500),
|
|
419
421
|
e
|
|
420
|
-
), { observe:
|
|
421
|
-
|
|
422
|
+
), { observe: n, unobserve: r } = S(
|
|
423
|
+
D(() => t(), 400),
|
|
422
424
|
e
|
|
423
425
|
);
|
|
424
|
-
return s(),
|
|
425
|
-
o(),
|
|
426
|
+
return s(), n(), () => {
|
|
427
|
+
o(), r();
|
|
426
428
|
};
|
|
427
429
|
}
|
|
428
430
|
/**
|
|
@@ -430,13 +432,13 @@ class ai extends k {
|
|
|
430
432
|
*/
|
|
431
433
|
handleFiveModeChange(e) {
|
|
432
434
|
this.setModelMedialVisible(), this.tags.forEach((t) => {
|
|
433
|
-
|
|
435
|
+
y(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
|
|
434
436
|
}), this.updateRenderAllTags();
|
|
435
437
|
}
|
|
436
438
|
handleFiveWantsMoveToPano() {
|
|
437
439
|
this.tags.forEach((e) => {
|
|
438
440
|
const t = this.getTagConfig(e);
|
|
439
|
-
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState =
|
|
441
|
+
typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = u(l({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = u(l({}, e.temporaryState), { visible: !!t.visibleConfig.alwaysShowWhenMovePano }));
|
|
440
442
|
}), this.updateTagContainerVisible();
|
|
441
443
|
}
|
|
442
444
|
/**
|
|
@@ -466,7 +468,7 @@ class ai extends k {
|
|
|
466
468
|
}), this.updateRenderAllTags());
|
|
467
469
|
}
|
|
468
470
|
handleFiveCameraUpdateDebounce() {
|
|
469
|
-
return
|
|
471
|
+
return D(() => {
|
|
470
472
|
this.setUnfoldedByCamera(), this.updateRenderAllTags();
|
|
471
473
|
}, 100);
|
|
472
474
|
}
|
|
@@ -475,8 +477,24 @@ class ai extends k {
|
|
|
475
477
|
}
|
|
476
478
|
handleFivePanoArrived() {
|
|
477
479
|
return f(this, null, function* () {
|
|
478
|
-
|
|
479
|
-
|
|
480
|
+
var e, t, i;
|
|
481
|
+
this.setModelMedialVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((s) => {
|
|
482
|
+
s.temporaryState = u(l({}, s.temporaryState), { visible: !0 });
|
|
483
|
+
}), (i = (t = (e = this.config) == null ? void 0 : e.globalConfig) == null ? void 0 : t.modelConfig) != null && i.autoLookAtEnabled && this.tags.filter(O).filter((s) => {
|
|
484
|
+
var o, n;
|
|
485
|
+
return (n = (o = s.config) == null ? void 0 : o.modelConfig) == null ? void 0 : n.autoLookAtEnabled;
|
|
486
|
+
}).forEach((s) => {
|
|
487
|
+
var T;
|
|
488
|
+
const o = new b.Mesh(new b.BoxGeometry(), new b.MeshBasicMaterial()), n = (T = s.model) == null ? void 0 : T.object;
|
|
489
|
+
if (!n)
|
|
490
|
+
return;
|
|
491
|
+
o.position.copy(n.position), o.quaternion.copy(n.quaternion);
|
|
492
|
+
const r = this.five.camera.position;
|
|
493
|
+
o.lookAt(r.clone().setY(o.position.y));
|
|
494
|
+
const d = n.quaternion.clone(), p = o.quaternion.clone(), m = x();
|
|
495
|
+
m.onUpdate(({ progress: P }) => {
|
|
496
|
+
n.quaternion.copy(d.clone().slerp(p, P));
|
|
497
|
+
}), m.play();
|
|
480
498
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
481
499
|
});
|
|
482
500
|
}
|
|
@@ -491,12 +509,12 @@ class ai extends k {
|
|
|
491
509
|
});
|
|
492
510
|
}
|
|
493
511
|
changeTagMode(e, t) {
|
|
494
|
-
var i, s, o,
|
|
495
|
-
((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((
|
|
512
|
+
var i, s, o, n, r, d;
|
|
513
|
+
((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (d = this.store.css3DRenderDisposer.get(e.id)) == null || d.forEach((p) => p == null ? void 0 : p()), e.tag3DContentSvelte = void 0);
|
|
496
514
|
}
|
|
497
515
|
}
|
|
498
516
|
export {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
517
|
+
ci as PanoTagPluginController,
|
|
518
|
+
ci as default,
|
|
519
|
+
pi as pluginFlag
|
|
502
520
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import t from "./controller/index.js";
|
|
2
|
-
import { pluginFlag as
|
|
3
|
-
import { ContentType as
|
|
4
|
-
import { DimensionType as
|
|
2
|
+
import { pluginFlag as Ar } from "./controller/index.js";
|
|
3
|
+
import { ContentType as Er } from "./typings/tag/TagData.js";
|
|
4
|
+
import { DimensionType as Hr } from "./typings/tag/Utils.js";
|
|
5
|
+
import "three";
|
|
5
6
|
import "@realsee/five";
|
|
6
7
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
7
8
|
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
8
|
-
import "three";
|
|
9
9
|
import "./utils/addDebugPoints.js";
|
|
10
10
|
import "./utils/tag/tagCheck.js";
|
|
11
11
|
import "./utils/actionAfterFiveModelLoad.js";
|
|
@@ -131,12 +131,14 @@ import "../CSS3DRenderPlugin/Controller.js";
|
|
|
131
131
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
132
132
|
import "../shared-utils/three/GLTFLoader.js";
|
|
133
133
|
import "@realsee/five/gltf-loader";
|
|
134
|
-
|
|
134
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
135
|
+
import "../shared-utils/animationFrame/index.js";
|
|
136
|
+
const qr = (o, r) => new t(o, r);
|
|
135
137
|
export {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
Er as ContentType,
|
|
139
|
+
Hr as DimensionType,
|
|
140
|
+
qr as PanoTagPlugin,
|
|
139
141
|
t as PanoTagPluginController,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
qr as default,
|
|
143
|
+
Ar as pluginFlag
|
|
142
144
|
};
|
|
@@ -124,6 +124,9 @@ export interface TagConfig<C extends TagContentType = TagContentType, S extends
|
|
|
124
124
|
};
|
|
125
125
|
initialData?: PartialDeep<ContentTypeMap[C]>;
|
|
126
126
|
tag3DConfig?: Create3DDomContainerParamsType['config'];
|
|
127
|
+
modelConfig?: {
|
|
128
|
+
autoLookAtEnabled?: boolean;
|
|
129
|
+
};
|
|
127
130
|
/** 当图片为一张时可以通过Mesh渲染 */
|
|
128
131
|
renderType?: 'Mesh' | 'Dom';
|
|
129
132
|
clickable?: false;
|
|
@@ -35,6 +35,8 @@ export declare enum ContentType {
|
|
|
35
35
|
MediaPlane = "MediaPlane",
|
|
36
36
|
/** 带有多媒体的模型 */
|
|
37
37
|
MediaModel = "MediaModel",
|
|
38
|
+
/** 模型 */
|
|
39
|
+
Model = "Model",
|
|
38
40
|
/** 其他/自定义标签 */
|
|
39
41
|
Custom = "Custom",
|
|
40
42
|
/** Unknown */
|
|
@@ -162,13 +164,21 @@ interface ContentTypeMapInterface {
|
|
|
162
164
|
type: 'iframe' | 'window';
|
|
163
165
|
};
|
|
164
166
|
};
|
|
167
|
+
Model: {
|
|
168
|
+
modelUrl: string;
|
|
169
|
+
matrix?: number[];
|
|
170
|
+
action?: {
|
|
171
|
+
url?: string;
|
|
172
|
+
type: 'iframe' | 'window' | 'custom';
|
|
173
|
+
};
|
|
174
|
+
};
|
|
165
175
|
Custom: Object;
|
|
166
176
|
Unknown: Object;
|
|
167
177
|
}
|
|
168
|
-
type
|
|
178
|
+
type ContentTypeMapInterfaceWithExtraData = {
|
|
169
179
|
[key in keyof ContentTypeMapInterface]: ContentTypeMapInterface[key] & {
|
|
170
180
|
extraData?: Object;
|
|
171
181
|
};
|
|
172
182
|
};
|
|
173
|
-
export type ContentTypeMap = Pick<
|
|
183
|
+
export type ContentTypeMap = Pick<ContentTypeMapInterfaceWithExtraData, TagContentType>;
|
|
174
184
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var a = /* @__PURE__ */ ((i) => (i.Audio = "Audio", i.Text = "Text", i.ImageText = "ImageText", i.Image = "Image", i.Video = "Video", i.Link = "Link", i.Sticker = "Sticker", i.VRLink = "VRLink", i.PanoLink = "PanoLink", i.Marketing = "Marketing", i.MediaPlane = "MediaPlane", i.MediaModel = "MediaModel", i.Custom = "Custom", i.Unknown = "Unknown", i))(a || {});
|
|
1
|
+
var a = /* @__PURE__ */ ((i) => (i.Audio = "Audio", i.Text = "Text", i.ImageText = "ImageText", i.Image = "Image", i.Video = "Video", i.Link = "Link", i.Sticker = "Sticker", i.VRLink = "VRLink", i.PanoLink = "PanoLink", i.Marketing = "Marketing", i.MediaPlane = "MediaPlane", i.MediaModel = "MediaModel", i.Model = "Model", i.Custom = "Custom", i.Unknown = "Unknown", i))(a || {});
|
|
2
2
|
export {
|
|
3
3
|
a as ContentType
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PlaneTagElement, Tag } from '../../typings';
|
|
1
|
+
import type { PlaneTagElement, Tag, TagElement } from '../../typings';
|
|
2
2
|
export declare function isPointTag(tag: Tag<any, any>): boolean;
|
|
3
3
|
export declare function isPlaneTag(tag: Tag<any, any>): tag is PlaneTagElement;
|
|
4
4
|
export declare function isPoint2DTag(tag: Tag<any, any>): boolean;
|
|
@@ -6,4 +6,6 @@ export declare function isPoint3DTag(tag: Tag<any, any>): boolean;
|
|
|
6
6
|
export declare function is2DTag(tag: Tag<any, any>): boolean;
|
|
7
7
|
export declare function is3DTag(tag: Tag<any, any>): tag is Tag<any, '3DPoint'> | Tag<any, 'Plane'>;
|
|
8
8
|
export declare function isMediaModelTag(tag: Tag<any, any>): tag is Tag<'MediaModel', 'Model'>;
|
|
9
|
+
export declare function isModelTag(tag: Tag<any, any>): tag is Tag<'Model', 'Model'>;
|
|
10
|
+
export declare function isStickModelTag(tag: Tag<any, any>): tag is TagElement<'Model', 'Model'> | TagElement<'MediaModel', 'Model'>;
|
|
9
11
|
export declare function isMediaPlaneTag(tag: Tag<any, any>): tag is Tag<'MediaModel', 'Model'>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
function
|
|
1
|
+
function e(n) {
|
|
2
2
|
return n.stickType === "2DPoint" || n.stickType === "3DPoint";
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function i(n) {
|
|
5
5
|
return n.stickType === "Plane";
|
|
6
6
|
}
|
|
7
7
|
function t(n) {
|
|
@@ -20,15 +20,23 @@ function s(n) {
|
|
|
20
20
|
return n.stickType === "Model" && n.contentType === "MediaModel";
|
|
21
21
|
}
|
|
22
22
|
function r(n) {
|
|
23
|
+
return n.stickType === "Model" && n.contentType === "Model";
|
|
24
|
+
}
|
|
25
|
+
function u(n) {
|
|
26
|
+
return n.stickType === "Model";
|
|
27
|
+
}
|
|
28
|
+
function p(n) {
|
|
23
29
|
return n.stickType === "Plane" && n.contentType === "MediaPlane";
|
|
24
30
|
}
|
|
25
31
|
export {
|
|
26
32
|
c as is2DTag,
|
|
27
33
|
T as is3DTag,
|
|
28
34
|
s as isMediaModelTag,
|
|
29
|
-
|
|
30
|
-
|
|
35
|
+
p as isMediaPlaneTag,
|
|
36
|
+
r as isModelTag,
|
|
37
|
+
i as isPlaneTag,
|
|
31
38
|
t as isPoint2DTag,
|
|
32
39
|
o as isPoint3DTag,
|
|
33
|
-
|
|
40
|
+
e as isPointTag,
|
|
41
|
+
u as isStickModelTag
|
|
34
42
|
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.info(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv2.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv2.19.0-0",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.
|
|
10
|
+
"version": "2.19.0-0",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|