@realsee/dnalogel 2.20.0-dev.9 → 2.20.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/GuideLinePlugin/Controller.d.ts +3 -3
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +1 -1
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +16 -0
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +7 -0
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +2 -1
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +3 -1
- package/dist/index.cjs.js +26 -26
- package/dist/index.js +1279 -1236
- package/dist/index.umd.js +20 -20
- package/dist/shared-utils/three/PointDomHelper.d.ts +2 -2
- package/dist/shared-utils/three/PointHelper.d.ts +2 -1
- package/dist/typings/typings.d.ts +9 -0
- 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 +79 -31
- 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 +46 -46
- 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 +19 -19
- 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/PointType.html +6 -6
- 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 +14 -14
- 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 +12 -12
- 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 +8 -8
- 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 +4 -4
- 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/DeprecatedMediaPlaneProperty.html +4 -4
- package/docs/types/DeprecatedTagProperty.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/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/PartialObjectDeep.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagInstance.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 +5 -5
- 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/TagId.html +4 -4
- package/docs/types/TagInstance.html +5 -5
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TagRendererMap.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/GuideLinePlugin/Controller.d.ts +3 -3
- package/libs/GuideLinePlugin/Controller.js +2 -2
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +108 -76
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +16 -0
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +7 -0
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +19 -17
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +77 -77
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +2 -1
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +56 -56
- package/libs/PanoTagPlugin/Components/TagItem.js +99 -99
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagComputer.js +83 -77
- package/libs/PanoTagPlugin/controller/TagRender.js +6 -6
- package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
- package/libs/PanoTagPlugin/controller/index.js +45 -44
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -1
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +3 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/Components/RoomHighlight/Room.js +54 -54
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +8 -8
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +30 -28
- package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointDomHelper.d.ts +2 -2
- package/libs/shared-utils/three/PointHelper.d.ts +2 -1
- package/libs/typings/typings.d.ts +9 -0
- package/package.json +2 -2
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var M = Object.defineProperty, U = Object.defineProperties;
|
|
2
|
-
var
|
|
2
|
+
var D = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var R = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var g = (d, l, e) => l in d ? M(d, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[l] = e, x = (d, l) => {
|
|
6
6
|
for (var e in l || (l = {}))
|
|
7
|
-
|
|
7
|
+
R.call(l, e) && g(d, e, l[e]);
|
|
8
8
|
if (P)
|
|
9
9
|
for (var e of P(l))
|
|
10
|
-
|
|
10
|
+
B.call(l, e) && g(d, e, l[e]);
|
|
11
11
|
return d;
|
|
12
|
-
}, I = (d, l) => U(d,
|
|
13
|
-
var
|
|
14
|
-
import * as
|
|
12
|
+
}, I = (d, l) => U(d, D(l));
|
|
13
|
+
var T = (d, l, e) => (g(d, typeof l != "symbol" ? l + "" : l, e), e);
|
|
14
|
+
import * as C from "three";
|
|
15
15
|
import { is3DTag as j, isMediaModelTag as y } from "../utils/tag/tagCheck.js";
|
|
16
|
-
import { tagPosition as
|
|
16
|
+
import { tagPosition as V, getTagPosition as k } from "../utils/tagPosition.js";
|
|
17
17
|
import { checkRange as h } from "../utils/checkRange.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "@realsee/five";
|
|
@@ -58,17 +58,17 @@ import "../../shared-utils/threex/domevents/index.js";
|
|
|
58
58
|
class Ue extends S {
|
|
59
59
|
constructor(e) {
|
|
60
60
|
super(e);
|
|
61
|
-
|
|
61
|
+
T(this, "raycaster", new C.Raycaster());
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* @description: 获取是否可见
|
|
65
65
|
*/
|
|
66
66
|
getVisibleByPanoIndex(e, t) {
|
|
67
|
-
const
|
|
67
|
+
const n = this.getCache({ panoIndex: t, id: e.id }), s = t != null ? t : this.five.getCurrentState().panoIndex;
|
|
68
68
|
if (e.stickType === "Model")
|
|
69
69
|
return !0;
|
|
70
|
-
if (
|
|
71
|
-
return
|
|
70
|
+
if (n.visible !== void 0)
|
|
71
|
+
return n.visible;
|
|
72
72
|
{
|
|
73
73
|
const i = (() => {
|
|
74
74
|
var c, u, v;
|
|
@@ -79,16 +79,16 @@ class Ue extends S {
|
|
|
79
79
|
return { value: !1, reason: "config.keep is hidden" };
|
|
80
80
|
if (o.keep === "visible")
|
|
81
81
|
return { value: !0, reason: "config.keep is visible" };
|
|
82
|
-
if (o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" &&
|
|
83
|
-
if (Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(
|
|
82
|
+
if (o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && s !== void 0) {
|
|
83
|
+
if (Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(s))
|
|
84
84
|
return {
|
|
85
85
|
value: !1,
|
|
86
|
-
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${
|
|
86
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${s}, visiblePanoIndex: ${o.visiblePanoIndex}`
|
|
87
87
|
};
|
|
88
|
-
if (o.visiblePanoIndex === "current" &&
|
|
88
|
+
if (o.visiblePanoIndex === "current" && s !== ((u = e.fiveState) == null ? void 0 : u.panoIndex))
|
|
89
89
|
return {
|
|
90
90
|
value: !1,
|
|
91
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${
|
|
91
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(v = e.fiveState) == null ? void 0 : v.panoIndex}`
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
if (o.visibleDistance !== void 0 && o.visibleDistance !== "unLimited" && h(f, o.visibleDistance) === !1)
|
|
@@ -97,12 +97,12 @@ class Ue extends S {
|
|
|
97
97
|
reason: `distance is not in visibleDistance. distance: ${f}, visibleDistance: ${o.visibleDistance}`
|
|
98
98
|
};
|
|
99
99
|
if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
|
|
100
|
-
if (
|
|
100
|
+
if (s === void 0)
|
|
101
101
|
return {
|
|
102
102
|
value: !1,
|
|
103
|
-
reason: `intersectRaycaster check failed: fivePanoIndex is ${
|
|
103
|
+
reason: `intersectRaycaster check failed: fivePanoIndex is ${s}`
|
|
104
104
|
};
|
|
105
|
-
const r = this.getRaycasterFromPanoIndex(e,
|
|
105
|
+
const r = this.getRaycasterFromPanoIndex(e, s);
|
|
106
106
|
if (!r)
|
|
107
107
|
return { value: !1, reason: `intersectRaycaster check failed: raycaster is ${r}` };
|
|
108
108
|
const a = this.getTagEnableByIntersect(e, r);
|
|
@@ -119,19 +119,19 @@ class Ue extends S {
|
|
|
119
119
|
reason: "all check passed"
|
|
120
120
|
};
|
|
121
121
|
})();
|
|
122
|
-
return
|
|
122
|
+
return n.visible = i.value, n.__debug_visible_reason__ = i, n.visible;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
getVisibleByFiveMode(e, t) {
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
128
|
-
if (typeof
|
|
129
|
-
const i =
|
|
130
|
-
return i ? i != null && i.includes(
|
|
131
|
-
} else if (typeof
|
|
126
|
+
const n = t != null ? t : this.five.getCurrentState().mode, s = this.getTagConfig(e).visibleConfig;
|
|
127
|
+
if (s) {
|
|
128
|
+
if (typeof s == "object") {
|
|
129
|
+
const i = s == null ? void 0 : s.visibleFiveMode;
|
|
130
|
+
return i ? i != null && i.includes(n) ? s.followModelVisibility === !0 && (n === "Floorplan" || n === "Mapview") ? this.getVisibleByFloorIndex(e) : !0 : !1 : n === "Panorama";
|
|
131
|
+
} else if (typeof s == "function")
|
|
132
132
|
return t === "Panorama";
|
|
133
133
|
} else
|
|
134
|
-
return
|
|
134
|
+
return n === "Panorama";
|
|
135
135
|
}
|
|
136
136
|
/**
|
|
137
137
|
* @description 获取标签当前状态
|
|
@@ -142,21 +142,21 @@ class Ue extends S {
|
|
|
142
142
|
return (t = this.state.visible && e.state.visible) != null ? t : !0;
|
|
143
143
|
}
|
|
144
144
|
getVisible(e) {
|
|
145
|
-
const t = this.five.getCurrentState(),
|
|
146
|
-
return
|
|
145
|
+
const t = this.five.getCurrentState(), n = this.getVisibleByFiveMode(e), s = t.mode === "Panorama" ? this.getVisibleByPanoIndex(e, t.panoIndex) : !0;
|
|
146
|
+
return n && s;
|
|
147
147
|
}
|
|
148
148
|
/** 获取当前点位上模型中的多媒体是否应该展示 */
|
|
149
149
|
getModelMedialVisibleByPanoIndex(e) {
|
|
150
150
|
if (!this.getCurrentVisibleState(e))
|
|
151
151
|
return !1;
|
|
152
|
-
const t = this.five.getCurrentState().panoIndex,
|
|
153
|
-
if (
|
|
154
|
-
return
|
|
155
|
-
const
|
|
156
|
-
if (!
|
|
152
|
+
const t = this.five.getCurrentState().panoIndex, n = this.getCache({ panoIndex: t, id: e.id });
|
|
153
|
+
if (n.modelMedialVisible !== void 0)
|
|
154
|
+
return n.modelMedialVisible;
|
|
155
|
+
const s = this.getRaycasterFromPanoIndex(e, t);
|
|
156
|
+
if (!s)
|
|
157
157
|
return !1;
|
|
158
|
-
const i = this.getTagEnableByIntersect(e,
|
|
159
|
-
return
|
|
158
|
+
const i = this.getTagEnableByIntersect(e, s);
|
|
159
|
+
return n.modelMedialVisible = i.value, n.__debug_visible_reason__ = i, i.value !== !1;
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
162
|
* @description: 获取是否展开
|
|
@@ -164,9 +164,9 @@ class Ue extends S {
|
|
|
164
164
|
getUnfoldedByPanoIndex(e, t) {
|
|
165
165
|
if (!this.getVisibleByPanoIndex(e))
|
|
166
166
|
return;
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
169
|
-
return
|
|
167
|
+
const s = this.getCache({ panoIndex: t, id: e.id });
|
|
168
|
+
if (s.unfolded !== void 0)
|
|
169
|
+
return s.unfolded;
|
|
170
170
|
{
|
|
171
171
|
const i = this.getTagConfig(e).unfoldedConfig;
|
|
172
172
|
if (!i)
|
|
@@ -182,9 +182,9 @@ class Ue extends S {
|
|
|
182
182
|
if (i.unfoldDistance && h(c, i.unfoldDistance) === !1)
|
|
183
183
|
return !1;
|
|
184
184
|
})();
|
|
185
|
-
|
|
185
|
+
s.unfolded = o;
|
|
186
186
|
const f = this.getUnfoldedByCamera(e);
|
|
187
|
-
return f !== void 0 ? f :
|
|
187
|
+
return f !== void 0 ? f : s.unfolded;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
@@ -193,10 +193,10 @@ class Ue extends S {
|
|
|
193
193
|
getUnfoldedByCamera(e) {
|
|
194
194
|
return this.getVisible(e) ? (() => {
|
|
195
195
|
var o;
|
|
196
|
-
const
|
|
196
|
+
const s = this.getDistance(e), i = this.getTagConfig(e).unfoldedConfig;
|
|
197
197
|
if (i) {
|
|
198
198
|
if (typeof i == "function")
|
|
199
|
-
return i(this.five, { tag: e, distance:
|
|
199
|
+
return i(this.five, { tag: e, distance: s });
|
|
200
200
|
if (i.keep === "folded")
|
|
201
201
|
return !1;
|
|
202
202
|
if (i.keep === "unfolded")
|
|
@@ -230,9 +230,15 @@ class Ue extends S {
|
|
|
230
230
|
})() : void 0;
|
|
231
231
|
}
|
|
232
232
|
sort(e) {
|
|
233
|
-
return e.sort((t,
|
|
234
|
-
const
|
|
235
|
-
return
|
|
233
|
+
return e.sort((t, n) => {
|
|
234
|
+
const s = this.getDistance(t), i = this.getDistance(n);
|
|
235
|
+
return s === void 0 || i === void 0 ? 0 : i - s;
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
setTagZIndex(e) {
|
|
239
|
+
return e.forEach((t) => {
|
|
240
|
+
const n = this.getDistance(t);
|
|
241
|
+
t.zIndex = Math.round((n != null ? n : 0) * 100);
|
|
236
242
|
});
|
|
237
243
|
}
|
|
238
244
|
/**
|
|
@@ -241,17 +247,17 @@ class Ue extends S {
|
|
|
241
247
|
setPointTagPosition() {
|
|
242
248
|
const e = this.filterPointTag;
|
|
243
249
|
e.length !== 0 && e.forEach((t) => {
|
|
244
|
-
var
|
|
245
|
-
if (!((
|
|
250
|
+
var s;
|
|
251
|
+
if (!((s = t.state) != null && s.visible)) {
|
|
246
252
|
t.screenPosition = null;
|
|
247
253
|
return;
|
|
248
254
|
}
|
|
249
|
-
const
|
|
250
|
-
if (!
|
|
255
|
+
const n = this.getTagProject(t);
|
|
256
|
+
if (!n) {
|
|
251
257
|
t.screenPosition = null;
|
|
252
258
|
return;
|
|
253
259
|
}
|
|
254
|
-
t.screenPosition = { leftPercent: (
|
|
260
|
+
t.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 };
|
|
255
261
|
});
|
|
256
262
|
}
|
|
257
263
|
setVisible() {
|
|
@@ -269,23 +275,23 @@ class Ue extends S {
|
|
|
269
275
|
setModelMedialVisible() {
|
|
270
276
|
const e = this.five.getCurrentState().mode;
|
|
271
277
|
this.tags.forEach((t) => {
|
|
272
|
-
var
|
|
278
|
+
var s;
|
|
273
279
|
if (!y(t))
|
|
274
280
|
return;
|
|
275
|
-
if (!((
|
|
281
|
+
if (!((s = t.model) != null && s.object)) {
|
|
276
282
|
t.mediaVisible = !1;
|
|
277
283
|
return;
|
|
278
284
|
}
|
|
279
|
-
const
|
|
280
|
-
t.mediaVisible =
|
|
285
|
+
const n = e === "Panorama" ? this.getModelMedialVisibleByPanoIndex(t) : !0;
|
|
286
|
+
t.mediaVisible = n;
|
|
281
287
|
});
|
|
282
288
|
}
|
|
283
289
|
setUnfoldedByPanoIndex() {
|
|
284
290
|
this.tags.forEach((e) => {
|
|
285
291
|
const t = this.getUnfoldedByPanoIndex(e);
|
|
286
292
|
if (e.state && (t !== void 0 && (e.state.unfolded = t), t && !e.state.visible)) {
|
|
287
|
-
const
|
|
288
|
-
typeof
|
|
293
|
+
const n = this.getTagConfig(e);
|
|
294
|
+
typeof n.unfoldedConfig == "object" && n.unfoldedConfig.autoFoldWhenHide !== !1 && (e.state.unfolded = !1);
|
|
289
295
|
}
|
|
290
296
|
});
|
|
291
297
|
}
|
|
@@ -295,17 +301,17 @@ class Ue extends S {
|
|
|
295
301
|
getTagProject(e) {
|
|
296
302
|
if (!this.getVisible(e))
|
|
297
303
|
return;
|
|
298
|
-
const
|
|
299
|
-
if (!
|
|
304
|
+
const n = V(e.position);
|
|
305
|
+
if (!n)
|
|
300
306
|
return;
|
|
301
|
-
const { x:
|
|
307
|
+
const { x: s, y: i, z: o } = n.project(this.five.camera);
|
|
302
308
|
if (!(o > 1))
|
|
303
|
-
return { x:
|
|
309
|
+
return { x: s, y: i, z: o };
|
|
304
310
|
}
|
|
305
311
|
/** 通过射线检测标签可用性 */
|
|
306
312
|
getTagEnableByIntersect(e, t) {
|
|
307
313
|
var u, v, r;
|
|
308
|
-
const
|
|
314
|
+
const n = (u = this.getTagConfig(e).visibleConfig) != null ? u : {}, s = this.getDistance(e), [i] = this.five.model.intersectRaycaster(t), o = (() => {
|
|
309
315
|
if (!y(e))
|
|
310
316
|
return;
|
|
311
317
|
const a = this.tags.filter(y).map((b) => {
|
|
@@ -315,34 +321,34 @@ class Ue extends S {
|
|
|
315
321
|
return t.intersectObjects(a, !0)[0];
|
|
316
322
|
})(), f = (() => {
|
|
317
323
|
var a;
|
|
318
|
-
return typeof
|
|
324
|
+
return typeof n == "object" && typeof n.intersectRaycaster == "object" && (a = n.intersectRaycaster.distanceAccuracy) != null ? a : 0.01;
|
|
319
325
|
})(), c = Math.min((v = i == null ? void 0 : i.distance) != null ? v : 1 / 0, (r = o == null ? void 0 : o.distance) != null ? r : 1 / 0);
|
|
320
|
-
return c + f <
|
|
326
|
+
return c + f < s ? {
|
|
321
327
|
value: !1,
|
|
322
|
-
reason: `intersectRaycaster check failed: distance is ${
|
|
328
|
+
reason: `intersectRaycaster check failed: distance is ${s}, intersection.distance is ${i == null ? void 0 : i.distance}, intersection.point is ${i == null ? void 0 : i.point.toArray()},
|
|
323
329
|
customModelIntersection.point is ${o == null ? void 0 : o.point.toArray()}, minIntersectionDistance is ${c}`
|
|
324
330
|
} : { value: !0, reason: "" };
|
|
325
331
|
}
|
|
326
332
|
/** 获取点位看向标签的射线 */
|
|
327
333
|
getRaycasterFromPanoIndex(e, t) {
|
|
328
334
|
var o;
|
|
329
|
-
const
|
|
330
|
-
if (
|
|
331
|
-
throw new Error(`getVisible(): observerPosition is ${
|
|
332
|
-
const
|
|
333
|
-
if (!
|
|
335
|
+
const n = (o = this.five.work.observers[t]) == null ? void 0 : o.position;
|
|
336
|
+
if (n === void 0)
|
|
337
|
+
throw new Error(`getVisible(): observerPosition is ${n}`);
|
|
338
|
+
const s = V(e.position);
|
|
339
|
+
if (!s)
|
|
334
340
|
return;
|
|
335
|
-
const i =
|
|
336
|
-
return this.raycaster.set(
|
|
341
|
+
const i = s.sub(n).normalize();
|
|
342
|
+
return this.raycaster.set(n, i), this.raycaster;
|
|
337
343
|
}
|
|
338
344
|
/** 检测是否匹配当前楼层 */
|
|
339
345
|
getVisibleByFloorIndex(e) {
|
|
340
346
|
var i, o, f, c, u, v, r;
|
|
341
347
|
let t = 0;
|
|
342
|
-
const
|
|
343
|
-
|
|
344
|
-
const
|
|
345
|
-
return
|
|
348
|
+
const n = (i = e.fiveState) == null ? void 0 : i.panoIndex;
|
|
349
|
+
n !== void 0 ? t = (o = this.five.work.observers[n]) == null ? void 0 : o.floorIndex : t = E(this.five.work.observers, (r = (v = (c = (f = e.model) == null ? void 0 : f.object) == null ? void 0 : c.position) != null ? v : (u = e.mediaPlane) == null ? void 0 : u.position) != null ? r : k(e));
|
|
350
|
+
const s = this.five.model.shownFloor;
|
|
351
|
+
return s === null || s === t;
|
|
346
352
|
}
|
|
347
353
|
}
|
|
348
354
|
export {
|
|
@@ -23,8 +23,8 @@ import O from "../Components/TagContainer.js";
|
|
|
23
23
|
import A from "../Components/Tag/index.js";
|
|
24
24
|
import { arrayPositionToVector3 as y } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
25
25
|
import { centerPoint as x } from "../../shared-utils/three/centerPoint.js";
|
|
26
|
-
import { isMediaModelTag as P, isStickModelTag as
|
|
27
|
-
import { CSS3DRenderPlugin as
|
|
26
|
+
import { isMediaModelTag as P, isStickModelTag as I } from "../utils/tag/tagCheck.js";
|
|
27
|
+
import { CSS3DRenderPlugin as G } from "../../CSS3DRenderPlugin/index.js";
|
|
28
28
|
import { loadGLTF as V } from "../../shared-utils/three/GLTFLoader.js";
|
|
29
29
|
import { VideoPlane as M, ImagePlane as j } from "../utils/model/mediaPlane.js";
|
|
30
30
|
import "../utils/tagPosition.js";
|
|
@@ -265,7 +265,7 @@ class ei extends w {
|
|
|
265
265
|
} else {
|
|
266
266
|
if (P(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
|
|
267
267
|
return;
|
|
268
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin =
|
|
268
|
+
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = G(this.five)), e.stickType === "3DPoint" && !e.normal)
|
|
269
269
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
270
270
|
const r = this.getPositions(e);
|
|
271
271
|
if (!r)
|
|
@@ -358,7 +358,7 @@ class ei extends w {
|
|
|
358
358
|
/** 添加模型标签 */
|
|
359
359
|
addMediaModelTag(t) {
|
|
360
360
|
return C(this, null, function* () {
|
|
361
|
-
const e = t.filter(
|
|
361
|
+
const e = t.filter(I).map((o) => this.loadModel(o));
|
|
362
362
|
yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
|
|
363
363
|
});
|
|
364
364
|
}
|
|
@@ -367,8 +367,8 @@ class ei extends w {
|
|
|
367
367
|
*/
|
|
368
368
|
updateRenderPointTag() {
|
|
369
369
|
var e;
|
|
370
|
-
const t = this.
|
|
371
|
-
if (this.setPointTagPosition(), this.TagContainerSvelte)
|
|
370
|
+
const t = this.filterPointTag;
|
|
371
|
+
if (this.setTagZIndex(t), this.setPointTagPosition(), this.TagContainerSvelte)
|
|
372
372
|
this.TagContainerSvelte.$set({ tags: t, state: this.state, temporaryState: this.temporaryState });
|
|
373
373
|
else {
|
|
374
374
|
const o = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
|
|
@@ -131,7 +131,7 @@ class Pe extends b {
|
|
|
131
131
|
updateTagConfig(e) {
|
|
132
132
|
e != null && e.force && this.clearCache(), this.tags.forEach((i) => {
|
|
133
133
|
const t = this.getTagConfig(i);
|
|
134
|
-
i.config = t, i.data = T({},
|
|
134
|
+
i.config = t, i.data = T({}, t.initialData, i.data);
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
can(e, i) {
|
|
@@ -2,32 +2,32 @@ var E = Object.defineProperty, F = Object.defineProperties;
|
|
|
2
2
|
var w = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var C = Object.getOwnPropertySymbols;
|
|
4
4
|
var U = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var b = (d, a, e) => a in d ? E(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, f = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
U.call(a, e) &&
|
|
7
|
+
U.call(a, e) && b(d, e, a[e]);
|
|
8
8
|
if (C)
|
|
9
9
|
for (var e of C(a))
|
|
10
|
-
I.call(a, e) &&
|
|
11
|
-
return
|
|
12
|
-
}, u = (
|
|
13
|
-
var
|
|
14
|
-
var p = (
|
|
10
|
+
I.call(a, e) && b(d, e, a[e]);
|
|
11
|
+
return d;
|
|
12
|
+
}, u = (d, a) => F(d, w(a));
|
|
13
|
+
var m = (d, a, e) => (b(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
|
+
var p = (d, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (r) => {
|
|
16
16
|
try {
|
|
17
17
|
n(e.next(r));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (h) {
|
|
19
|
+
i(h);
|
|
20
20
|
}
|
|
21
21
|
}, o = (r) => {
|
|
22
22
|
try {
|
|
23
23
|
n(e.throw(r));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (h) {
|
|
25
|
+
i(h);
|
|
26
26
|
}
|
|
27
27
|
}, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
|
|
28
|
-
n((e = e.apply(
|
|
28
|
+
n((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
30
|
+
import * as T from "three";
|
|
31
31
|
import { Subscribe as B } from "@realsee/five";
|
|
32
32
|
import { objectAssignDeepExports as c } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
33
|
import { arrayPositionToVector3 as A } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
@@ -38,8 +38,8 @@ import { debounce as D } from "../utils/debounce.js";
|
|
|
38
38
|
import { throttle as _ } from "../utils/throttle.js";
|
|
39
39
|
import { resizeObserver as S } from "../utils/resizeObserver.js";
|
|
40
40
|
import L from "../utils/tag/format.js";
|
|
41
|
-
import { generateBlankAudio as G, AudioNamespace as
|
|
42
|
-
import { TagRender as
|
|
41
|
+
import { generateBlankAudio as G, AudioNamespace as N } from "../../shared-utils/audio.js";
|
|
42
|
+
import { TagRender as V } from "./TagRender.js";
|
|
43
43
|
import { uuid as z } from "../../shared-utils/uuid.js";
|
|
44
44
|
import "hammerjs";
|
|
45
45
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -158,35 +158,35 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
|
158
158
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
159
159
|
import "@realsee/five/gltf-loader";
|
|
160
160
|
import "../../shared-utils/animationFrame/index.js";
|
|
161
|
-
const M = "Dnalogel-PanoTagPlugin", pi = (
|
|
162
|
-
class ci extends
|
|
161
|
+
const M = "Dnalogel-PanoTagPlugin", pi = (d) => `${M}--${d}`;
|
|
162
|
+
class ci extends V {
|
|
163
163
|
constructor(e, t) {
|
|
164
164
|
super(e);
|
|
165
165
|
/** state */
|
|
166
|
-
|
|
166
|
+
m(this, "state", { enabled: !0, visible: !0 });
|
|
167
167
|
/** 插件参数 */
|
|
168
|
-
|
|
168
|
+
m(this, "params");
|
|
169
169
|
/** debug */
|
|
170
|
-
|
|
170
|
+
m(this, "debug");
|
|
171
171
|
/** 更改 tag 模型 */
|
|
172
|
-
|
|
172
|
+
m(this, "changeTagModel", (e, t) => p(this, null, function* () {
|
|
173
173
|
e.data = c({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
174
174
|
}));
|
|
175
|
-
|
|
175
|
+
m(this, "handleFiveInitAnimationEnded", () => {
|
|
176
176
|
const e = this.five.getCurrentState().mode;
|
|
177
177
|
this.tags.forEach((t) => {
|
|
178
178
|
y(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
|
|
179
179
|
}), this.updateRenderAllTags();
|
|
180
180
|
});
|
|
181
181
|
/** 楼层切换时,需要更新标签可见性 */
|
|
182
|
-
|
|
182
|
+
m(this, "handleFiveModelShownFloorChange", () => {
|
|
183
183
|
this.tags.forEach((e) => {
|
|
184
184
|
var i, s;
|
|
185
185
|
const t = this.getTagConfig(e).visibleConfig;
|
|
186
186
|
typeof t == "object" && ((i = t.visibleFiveMode) != null && i.includes("Floorplan") || (s = t.visibleFiveMode) != null && s.includes("Mapview")) && (e.state.visible = this.getVisibleByFiveMode(e));
|
|
187
187
|
}), this.updateRenderAllTags();
|
|
188
188
|
});
|
|
189
|
-
this.params = c({}, { debug: !1, config: this.config }, f({}, t)), this.debug = this.params.debug, this.config = this.params.config, G(1, { namespace:
|
|
189
|
+
this.params = c({}, { debug: !1, config: this.config }, f({}, t)), this.debug = this.params.debug, this.config = this.params.config, G(1, { namespace: N.PlayAudio });
|
|
190
190
|
try {
|
|
191
191
|
const i = window;
|
|
192
192
|
Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
|
|
@@ -219,12 +219,12 @@ class ci extends N {
|
|
|
219
219
|
addTag(e, t) {
|
|
220
220
|
return p(this, null, function* () {
|
|
221
221
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
222
|
-
var
|
|
223
|
-
const n = this.getTagConfig(o);
|
|
222
|
+
var l, g;
|
|
223
|
+
const n = this.getTagConfig(o), r = JSON.parse(JSON.stringify(o.data));
|
|
224
224
|
return u(f({}, o), {
|
|
225
|
-
enabled: (
|
|
226
|
-
id: (
|
|
227
|
-
data: c(
|
|
225
|
+
enabled: (l = o.enabled) != null ? l : !0,
|
|
226
|
+
id: (g = o.id) != null ? g : z(),
|
|
227
|
+
data: c(o.data, n.initialData, r),
|
|
228
228
|
state: f({
|
|
229
229
|
visible: void 0,
|
|
230
230
|
unfolded: !this.can("fold", o)
|
|
@@ -236,7 +236,8 @@ class ci extends N {
|
|
|
236
236
|
fold: () => this.changeUnfoldedById(o.id, !1),
|
|
237
237
|
enable: () => this.changeEnabledById(o.id, !0),
|
|
238
238
|
disable: () => this.changeEnabledById(o.id, !1),
|
|
239
|
-
destroy: () => this.destroyTagById(o.id)
|
|
239
|
+
destroy: () => this.destroyTagById(o.id),
|
|
240
|
+
changeData: (v) => this.changeDataById(o.id, v)
|
|
240
241
|
});
|
|
241
242
|
}).filter((o) => o.position);
|
|
242
243
|
return s.forEach(L), this.tags.push(...s), k(this.five).then(() => p(this, null, function* () {
|
|
@@ -303,8 +304,8 @@ class ci extends N {
|
|
|
303
304
|
dispose() {
|
|
304
305
|
var e, t, i, s, o, n;
|
|
305
306
|
this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((r) => {
|
|
306
|
-
var
|
|
307
|
-
return (
|
|
307
|
+
var h;
|
|
308
|
+
return (h = r.tag3DContentSvelte) == null ? void 0 : h.svelteApp.$destroy();
|
|
308
309
|
}), 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");
|
|
309
310
|
}
|
|
310
311
|
changeUnfoldedById(e, t) {
|
|
@@ -337,7 +338,7 @@ class ci extends N {
|
|
|
337
338
|
changeDataById(e, t, i = !0) {
|
|
338
339
|
const s = this.getTagById(e);
|
|
339
340
|
let o = !1;
|
|
340
|
-
s && (s.data && (o = !0), i ? s.data = c(
|
|
341
|
+
s && (s.data && (o = !0), i ? s.data = c(s.data, t) : s.data = f(f({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags(), o && s.hooks.emit("dataChanged", s.data));
|
|
341
342
|
}
|
|
342
343
|
/**
|
|
343
344
|
* @description: 改变tag的stickType
|
|
@@ -398,9 +399,9 @@ class ci extends N {
|
|
|
398
399
|
* @description: 添加 cameraUpdate, panoArrived 等事件监听
|
|
399
400
|
*/
|
|
400
401
|
addEventListener() {
|
|
401
|
-
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),
|
|
402
|
-
return
|
|
403
|
-
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",
|
|
402
|
+
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), h = this.loadVideoFirstFrame.bind(this), l = this.clickhandler.bind(this), g = this.five.currentMode;
|
|
403
|
+
return g && this.handleFiveModeChange(g), 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", h), t.on("click", l), () => {
|
|
404
|
+
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", h), t.off("click", l), this.store.eventListenerDisposer = void 0;
|
|
404
405
|
};
|
|
405
406
|
}
|
|
406
407
|
addResizeListener() {
|
|
@@ -488,17 +489,17 @@ class ci extends N {
|
|
|
488
489
|
var o, n;
|
|
489
490
|
return (n = (o = s.config) == null ? void 0 : o.modelConfig) == null ? void 0 : n.autoLookAtEnabled;
|
|
490
491
|
}).forEach((s) => {
|
|
491
|
-
var
|
|
492
|
-
const o = new
|
|
492
|
+
var v;
|
|
493
|
+
const o = new T.Mesh(new T.BoxGeometry(), new T.MeshBasicMaterial()), n = (v = s.model) == null ? void 0 : v.object;
|
|
493
494
|
if (!n)
|
|
494
495
|
return;
|
|
495
496
|
o.position.copy(n.position), o.quaternion.copy(n.quaternion);
|
|
496
497
|
const r = this.five.camera.position;
|
|
497
498
|
o.lookAt(r.clone().setY(o.position.y));
|
|
498
|
-
const
|
|
499
|
-
|
|
500
|
-
n.quaternion.copy(
|
|
501
|
-
}),
|
|
499
|
+
const h = n.quaternion.clone(), l = o.quaternion.clone(), g = x();
|
|
500
|
+
g.onUpdate(({ progress: P }) => {
|
|
501
|
+
n.quaternion.copy(h.clone().slerp(l, P));
|
|
502
|
+
}), g.play();
|
|
502
503
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
503
504
|
});
|
|
504
505
|
}
|
|
@@ -513,8 +514,8 @@ class ci extends N {
|
|
|
513
514
|
});
|
|
514
515
|
}
|
|
515
516
|
changeTagMode(e, t) {
|
|
516
|
-
var i, s, o, n, r,
|
|
517
|
-
((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 } }, (
|
|
517
|
+
var i, s, o, n, r, h;
|
|
518
|
+
((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 } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((l) => l == null ? void 0 : l()), e.tag3DContentSvelte = void 0);
|
|
518
519
|
}
|
|
519
520
|
}
|
|
520
521
|
export {
|
|
@@ -37,7 +37,7 @@ export type Tag<C extends TagContentType = TagContentType, S extends StickType =
|
|
|
37
37
|
/** 「展开/收起」 「可见/不可见」 的策略配置 */
|
|
38
38
|
config?: TagConfig<C>;
|
|
39
39
|
/** 打标签时的 five state */
|
|
40
|
-
fiveState?: FiveState
|
|
40
|
+
fiveState?: Partial<FiveState>;
|
|
41
41
|
/** 样式 */
|
|
42
42
|
style?: TagStyle;
|
|
43
43
|
} & (S extends '3DPoint' ? {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Tag } from './Tag';
|
|
2
2
|
import type TagContentSvelte from '../../Components/Tag/index.svelte';
|
|
3
3
|
import type { TagContentType } from './TagData';
|
|
4
|
-
import type { StickType, TagGLTFObject } from './Utils';
|
|
4
|
+
import type { PartialObjectDeep, StickType, TagGLTFObject } from './Utils';
|
|
5
5
|
import type { Create3DDomContainerReturnType } from '../../../CSS3DRenderPlugin';
|
|
6
6
|
import type { Vector3 } from 'three';
|
|
7
7
|
import type { ImagePlane, VideoPlane } from '../../utils/model/mediaPlane';
|
|
@@ -15,6 +15,7 @@ export type TagInstance<C extends TagContentType = TagContentType, S extends Sti
|
|
|
15
15
|
leftPercent: number;
|
|
16
16
|
topPercent: number;
|
|
17
17
|
} | null;
|
|
18
|
+
zIndex?: number;
|
|
18
19
|
temporaryState: {
|
|
19
20
|
visible: boolean;
|
|
20
21
|
};
|
|
@@ -47,5 +48,6 @@ export type TagInstance<C extends TagContentType = TagContentType, S extends Sti
|
|
|
47
48
|
enable: () => void;
|
|
48
49
|
disable: () => void;
|
|
49
50
|
destroy: () => void;
|
|
51
|
+
changeData: (data: PartialObjectDeep<TagInstance<C>['data']>) => void;
|
|
50
52
|
};
|
|
51
53
|
export {};
|