@realsee/dnalogel 3.0.0-10 → 3.0.0-12
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/index.cjs.js +23 -23
- package/dist/index.js +76 -47
- package/dist/index.umd.js +24 -24
- package/dist/shared-utils/five/FiveDomEvents.d.ts +22 -9
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +30 -30
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +31 -31
- 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 +34 -34
- 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 +26 -26
- package/docs/classes/PanoMeasurePluginModel.html +26 -26
- package/docs/classes/PanoMeasurePluginPoint.html +10 -10
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +44 -44
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.LineSegments.html +7 -7
- package/docs/classes/Util.Magnifier.html +19 -19
- package/docs/classes/Util.Object3D.html +7 -7
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.PointSelectorHelper.html +15 -15
- 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/AreaMakerPlugin.html +4 -4
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/CurrentPanoImagePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/PanoVideoPlugin.html +4 -4
- package/docs/functions/PipelinePlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.absoluteUrl.html +4 -4
- package/docs/functions/Util.checkFiveModelLoaded.html +4 -4
- package/docs/functions/Util.equal.html +4 -4
- 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/AreaMakerPluginType.AnimeOptions.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.Config.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +14 -14
- package/docs/interfaces/AreaMakerPluginType.Params.html +6 -6
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +8 -8
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +7 -7
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.State.html +7 -7
- 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 +5 -5
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -10
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +11 -11
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +6 -6
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +5 -5
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -7
- 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 +5 -5
- 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 +15 -15
- 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 +13 -13
- 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/interfaces/Util.PointIntersection.html +7 -7
- package/docs/modules/AreaMakerPluginType.html +4 -4
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/CurrentPanoImagePluginType.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/AreaMakerPluginType.AreaMakerItemEventMap.html +4 -4
- package/docs/types/AreaMakerPluginType.PluginData.html +4 -4
- package/docs/types/AreaMakerPluginType.ServerData.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/CurrentPanoImagePluginExportType.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/ModelId.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/PipelinePluginParameterType.html +4 -4
- package/docs/types/PipelinePluginReturnType.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 +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagConfigByKey.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 +4 -4
- 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/defaultGlobalConfig.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/controller/TagComputer.js +16 -14
- package/libs/PanoTagPlugin/controller/TagRender.js +48 -48
- package/libs/PanoTagPlugin/controller/index.js +33 -34
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.d.ts +22 -9
- package/libs/shared-utils/five/FiveDomEvents.js +93 -65
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
1
|
+
var E = Object.defineProperty, $ = Object.defineProperties;
|
|
2
2
|
var L = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var k = Object.getOwnPropertySymbols;
|
|
4
4
|
var _ = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var M = (p, e, i) => e in p ?
|
|
5
|
+
var M = (p, e, i) => e in p ? E(p, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : p[e] = i, y = (p, e) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
7
|
_.call(e, i) && M(p, i, e[i]);
|
|
8
8
|
if (k)
|
|
9
9
|
for (var i of k(e))
|
|
10
10
|
z.call(e, i) && M(p, i, e[i]);
|
|
11
11
|
return p;
|
|
12
|
-
}, D = (p, e) =>
|
|
12
|
+
}, D = (p, e) => $(p, L(e));
|
|
13
13
|
import * as j from "three";
|
|
14
14
|
import { is3DTag as O, isMediaModelTag as R } from "../utils/tag/tagCheck.js";
|
|
15
15
|
import { getTagCenterPosition as I, getTagPosition as Z } from "../utils/tagPosition.js";
|
|
16
|
-
import { checkRange as
|
|
16
|
+
import { checkRange as h } from "../utils/checkRange.js";
|
|
17
17
|
import { isPanoramaLike as b, isModelLike as H } from "../../shared-utils/five/mode.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "@realsee/five";
|
|
@@ -114,7 +114,7 @@ class Ge extends q {
|
|
|
114
114
|
}
|
|
115
115
|
if (b(n) && s.visibleDistance !== void 0 && (o.push("visibleDistance"), s.visibleDistance !== "unLimited")) {
|
|
116
116
|
const a = this.getDistance(e);
|
|
117
|
-
if (
|
|
117
|
+
if (h(a, s.visibleDistance) === !1)
|
|
118
118
|
return {
|
|
119
119
|
value: !1,
|
|
120
120
|
checkedList: o,
|
|
@@ -124,7 +124,7 @@ class Ge extends q {
|
|
|
124
124
|
if (b(n) && s.angleRange && O(e)) {
|
|
125
125
|
o.push("angleRange");
|
|
126
126
|
const a = this.getAngle(e);
|
|
127
|
-
if (
|
|
127
|
+
if (h(a, s.angleRange) === !1)
|
|
128
128
|
return { value: !1, checkedList: o, reason: `angle is not in angleRange. angle: ${a}, angleRange: ${s.angleRange}` };
|
|
129
129
|
}
|
|
130
130
|
if (s.intersectRaycaster !== !1 && (typeof s.intersectRaycaster != "object" || s.intersectRaycaster.enabled !== !1)) {
|
|
@@ -167,7 +167,7 @@ class Ge extends q {
|
|
|
167
167
|
return !1;
|
|
168
168
|
if (n.keep === "unfolded")
|
|
169
169
|
return !0;
|
|
170
|
-
if (n.unfoldDistance &&
|
|
170
|
+
if (n.unfoldDistance && h(this.getDistance(e), n.unfoldDistance) === !1)
|
|
171
171
|
return !1;
|
|
172
172
|
})();
|
|
173
173
|
t.unfolded = d;
|
|
@@ -193,7 +193,7 @@ class Ge extends q {
|
|
|
193
193
|
return;
|
|
194
194
|
if (t.autoUnfold.strategy === "ScreenPostion") {
|
|
195
195
|
const d = this.getTagProject(e);
|
|
196
|
-
if (d &&
|
|
196
|
+
if (d && h(d.x, t.autoUnfold.autoUnfoldProjectX) === !1)
|
|
197
197
|
return !1;
|
|
198
198
|
}
|
|
199
199
|
if (t.autoUnfold.strategy === "MinimumDistance") {
|
|
@@ -208,7 +208,7 @@ class Ge extends q {
|
|
|
208
208
|
return !(typeof f == "function" || f.keep || f.autoUnfold === !1 || ((u = f.autoUnfold) == null ? void 0 : u.enable) === !1 || ((a = f.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
|
|
209
209
|
}).map((r) => D(y({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: f }) => {
|
|
210
210
|
const u = f.autoUnfold.distance;
|
|
211
|
-
return !(u &&
|
|
211
|
+
return !(u && h(r, u) === !1);
|
|
212
212
|
}).sort((r, f) => r.distance - f.distance).findIndex((r) => r.id === e.id);
|
|
213
213
|
if (c === -1 || c <= ((n = t.autoUnfold.maxNumber) != null ? n : 1) - 1 === !1)
|
|
214
214
|
return !1;
|
|
@@ -218,7 +218,9 @@ class Ge extends q {
|
|
|
218
218
|
})() : void 0;
|
|
219
219
|
}
|
|
220
220
|
setTagZIndex(e) {
|
|
221
|
-
|
|
221
|
+
return e.forEach((i) => {
|
|
222
|
+
i.zIndex = this.calculateTagZIndex(i);
|
|
223
|
+
});
|
|
222
224
|
}
|
|
223
225
|
calculateTagZIndex(e) {
|
|
224
226
|
const i = this.getDistance(e);
|
|
@@ -281,15 +283,15 @@ class Ge extends q {
|
|
|
281
283
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
282
284
|
const d = X(
|
|
283
285
|
(() => {
|
|
284
|
-
var
|
|
285
|
-
const m = (
|
|
286
|
+
var g;
|
|
287
|
+
const m = (g = l.checkPoints) != null ? g : "center";
|
|
286
288
|
return m === "center" ? I(e) : m === "corner" ? Z(e) : Array.isArray(m) ? m : [];
|
|
287
289
|
})()
|
|
288
290
|
);
|
|
289
291
|
let o = 0, c = 0;
|
|
290
292
|
for (const m of d) {
|
|
291
|
-
const
|
|
292
|
-
T.set(n,
|
|
293
|
+
const g = new j.Vector3().subVectors(m, n).normalize();
|
|
294
|
+
T.set(n, g);
|
|
293
295
|
const F = n.distanceTo(m), [P] = this.five.model.intersectRaycaster(T), x = (() => {
|
|
294
296
|
if (!R(e))
|
|
295
297
|
return;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
1
|
+
var V = Object.defineProperty;
|
|
2
2
|
var j = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var y = (
|
|
5
|
-
for (var t in
|
|
6
|
-
|
|
3
|
+
var A = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var y = (d, p, t) => p in d ? V(d, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[p] = t, w = (d, p) => {
|
|
5
|
+
for (var t in p || (p = {}))
|
|
6
|
+
A.call(p, t) && y(d, t, p[t]);
|
|
7
7
|
if (j)
|
|
8
|
-
for (var t of j(
|
|
9
|
-
x.call(
|
|
10
|
-
return
|
|
8
|
+
for (var t of j(p))
|
|
9
|
+
x.call(p, t) && y(d, t, p[t]);
|
|
10
|
+
return d;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var M = (
|
|
12
|
+
var P = (d, p, t) => (y(d, typeof p != "symbol" ? p + "" : p, t), t);
|
|
13
|
+
var M = (d, p, t) => new Promise((e, o) => {
|
|
14
14
|
var i = (r) => {
|
|
15
15
|
try {
|
|
16
16
|
a(t.next(r));
|
|
@@ -24,7 +24,7 @@ var M = (c, d, t) => new Promise((e, o) => {
|
|
|
24
24
|
o(n);
|
|
25
25
|
}
|
|
26
26
|
}, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, s);
|
|
27
|
-
a((t = t.apply(
|
|
27
|
+
a((t = t.apply(d, p)).next());
|
|
28
28
|
});
|
|
29
29
|
import { TagComputer as O } from "./TagComputer.js";
|
|
30
30
|
import { Group as R, Quaternion as I, Vector3 as D, Matrix4 as g } from "three";
|
|
@@ -160,34 +160,34 @@ const B = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
|
|
|
160
160
|
class hi extends O {
|
|
161
161
|
constructor(t) {
|
|
162
162
|
super(t);
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
163
|
+
P(this, "group", new R());
|
|
164
|
+
P(this, "renderMap", /* @__PURE__ */ new Map());
|
|
165
|
+
P(this, "imagePlaneGroup", new R());
|
|
166
|
+
P(this, "gltfObjectGroup", new R());
|
|
167
167
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
168
|
-
|
|
168
|
+
P(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
169
169
|
/** 临时状态 */
|
|
170
|
-
|
|
170
|
+
P(this, "temporaryState", { visible: !0 });
|
|
171
171
|
/** 点标签 */
|
|
172
|
-
|
|
172
|
+
P(this, "TagContainerSvelte");
|
|
173
173
|
/** 加载外部模型 */
|
|
174
|
-
|
|
174
|
+
P(this, "loadModel", (t) => M(this, null, function* () {
|
|
175
175
|
var a;
|
|
176
176
|
const e = t.data.modelUrl;
|
|
177
177
|
if (!e)
|
|
178
178
|
return;
|
|
179
179
|
t.loading = !0;
|
|
180
180
|
const o = W(e).then((r) => {
|
|
181
|
-
var m,
|
|
181
|
+
var m, c;
|
|
182
182
|
const n = Object.assign(r.scene, {
|
|
183
183
|
customID: t.id,
|
|
184
184
|
isTagModel: !0,
|
|
185
185
|
removeEventListener: t.config.clickable === !1 ? () => {
|
|
186
|
-
} : this.addObjectClickHandler(t, r.scene, (
|
|
187
|
-
this.hooks.emit("click", { target: "TagModel", tag: t, event:
|
|
186
|
+
} : this.addObjectClickHandler(t, r.scene, (h) => {
|
|
187
|
+
this.hooks.emit("click", { target: "TagModel", tag: t, event: h });
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
|
-
return n.visible = this.getCurrentVisibleState(t), new g().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (
|
|
190
|
+
return n.visible = this.getCurrentVisibleState(t), new g().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (c = (m = t.config) == null ? void 0 : m.modelConfig) != null && c.autoLookAtEnabled && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
|
|
191
191
|
});
|
|
192
192
|
t.model = { promise: o };
|
|
193
193
|
const i = yield o;
|
|
@@ -238,30 +238,30 @@ class hi extends O {
|
|
|
238
238
|
var o, i;
|
|
239
239
|
return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Video";
|
|
240
240
|
}).forEach((e) => {
|
|
241
|
-
var m,
|
|
241
|
+
var m, c, h, u, b;
|
|
242
242
|
const o = e.data.mediaData[0];
|
|
243
243
|
if (!o)
|
|
244
244
|
return;
|
|
245
245
|
const { url: i } = o;
|
|
246
246
|
if (!i)
|
|
247
247
|
return;
|
|
248
|
-
e.mediaPlane && !((
|
|
248
|
+
e.mediaPlane && !((c = (m = e.state) == null ? void 0 : m.visible) == null || c) && e.mediaPlane instanceof k && e.mediaPlane.pause();
|
|
249
249
|
const s = e.position.map(C), a = this.getCurrentVisibleState(e), r = (() => !!(e.mediaPlane && !a))(), n = (() => !!(!e.mediaPlane && a))(), l = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
|
|
250
|
-
if ((r || l) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (
|
|
251
|
-
const
|
|
250
|
+
if ((r || l) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (h = e.mediaPlane) == null || h.dispose(), (u = e.mediaPlane) == null || u.removeFromParent(), e.mediaPlane = void 0), n || l) {
|
|
251
|
+
const f = new k(i, s, {
|
|
252
252
|
videoCoverSrc: o.videoCoverUrl,
|
|
253
253
|
playButton: e.data.playIcon,
|
|
254
|
-
paused: !((
|
|
254
|
+
paused: !((b = e.data.autoplayConfig) != null && b.autoplayVideo),
|
|
255
255
|
objectFit: e.data.objectFit,
|
|
256
256
|
videoTextureMap: B,
|
|
257
257
|
ImageTextureMap: N,
|
|
258
258
|
domEvents: this.domEvents
|
|
259
259
|
});
|
|
260
|
-
|
|
261
|
-
T.addEventListener("play", () => this.mediaStore.set({ currentMediaElement:
|
|
260
|
+
f.onVideoReady = (T) => {
|
|
261
|
+
T.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: f.videoInstance }));
|
|
262
262
|
};
|
|
263
263
|
const v = (T) => (this.five.on("renderFrame", T), () => this.five.off("renderFrame", T));
|
|
264
|
-
|
|
264
|
+
f.initialRenderHooks(v), e.mediaPlane = f, this.imagePlaneGroup.add(e.mediaPlane);
|
|
265
265
|
}
|
|
266
266
|
});
|
|
267
267
|
}
|
|
@@ -278,8 +278,8 @@ class hi extends O {
|
|
|
278
278
|
if (!o)
|
|
279
279
|
return;
|
|
280
280
|
const i = e.position.map(C), s = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !s))(), r = (() => !!(!e.mediaPlane && s))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
|
|
281
|
-
(a || n) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (l = e.mediaPlane) == null || l.dispose(), (m = e.mediaPlane) == null || m.removeFromParent(), e.mediaPlane = void 0), (r || n) && (e.mediaPlane = new E(o, i, { objectFit: e.data.objectFit }), e.config.clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (
|
|
282
|
-
this.hooks.emit("click", { tag: e, target: "TagContent", event:
|
|
281
|
+
(a || n) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (l = e.mediaPlane) == null || l.dispose(), (m = e.mediaPlane) == null || m.removeFromParent(), e.mediaPlane = void 0), (r || n) && (e.mediaPlane = new E(o, i, { objectFit: e.data.objectFit }), e.config.clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (c) => {
|
|
282
|
+
this.hooks.emit("click", { tag: e, target: "TagContent", event: c.origDomEvent });
|
|
283
283
|
}), this.imagePlaneGroup.add(e.mediaPlane));
|
|
284
284
|
});
|
|
285
285
|
}
|
|
@@ -310,14 +310,14 @@ class hi extends O {
|
|
|
310
310
|
const n = this.getTagConfig(e), l = w({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
|
|
311
311
|
if (this.getRenderType(e) === "BehindDom" || l.mode === "behind") {
|
|
312
312
|
l.mode = "behind", l.container = document.createElement("div");
|
|
313
|
-
const
|
|
314
|
-
l.container.style.backgroundColor =
|
|
315
|
-
var
|
|
313
|
+
const h = "black";
|
|
314
|
+
l.container.style.backgroundColor = h, l.container.style.border = `3px solid ${h}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
315
|
+
var u;
|
|
316
316
|
if (m.css3DObject.opacityMesh && n.clickable !== !1) {
|
|
317
|
-
const
|
|
318
|
-
this.hooks.emit("click", { event:
|
|
317
|
+
const b = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (f) => {
|
|
318
|
+
this.hooks.emit("click", { event: f, target: "TagContent", tag: e });
|
|
319
319
|
});
|
|
320
|
-
(
|
|
320
|
+
(u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(b);
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
323
|
}
|
|
@@ -325,7 +325,7 @@ class hi extends O {
|
|
|
325
325
|
if (!m)
|
|
326
326
|
return;
|
|
327
327
|
this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
|
|
328
|
-
const
|
|
328
|
+
const c = new F({
|
|
329
329
|
target: m.container,
|
|
330
330
|
props: {
|
|
331
331
|
tag: e,
|
|
@@ -337,13 +337,13 @@ class hi extends O {
|
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
339
|
e.tag3DContentSvelte = {
|
|
340
|
-
svelteApp:
|
|
340
|
+
svelteApp: c,
|
|
341
341
|
domContainer: m,
|
|
342
342
|
css3DInstance: m,
|
|
343
343
|
initialNormal: r,
|
|
344
344
|
currentNormal: r,
|
|
345
345
|
dispose: () => {
|
|
346
|
-
|
|
346
|
+
c.$destroy(), m.dispose();
|
|
347
347
|
}
|
|
348
348
|
}, S(e) && ((s = e.model) != null && s.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
|
|
349
349
|
}
|
|
@@ -376,18 +376,18 @@ class hi extends O {
|
|
|
376
376
|
* @param model 模型
|
|
377
377
|
*/
|
|
378
378
|
updateTagCss3DObjectMatrix(t, e) {
|
|
379
|
-
var
|
|
380
|
-
const o = (
|
|
379
|
+
var b, f, v;
|
|
380
|
+
const o = (f = (b = t.config.tag3DConfig) == null ? void 0 : b.ratio) != null ? f : 216e-5, i = (v = t.tag3DContentSvelte) == null ? void 0 : v.css3DInstance.css3DObject;
|
|
381
381
|
if (!i)
|
|
382
382
|
return;
|
|
383
383
|
const s = S(t) ? t.data.mediaPosition : t.position;
|
|
384
384
|
if (!s || s.length !== 4 || !Array.isArray(s[0]) || !Array.isArray(s[2]))
|
|
385
385
|
return;
|
|
386
386
|
e.updateWorldMatrix(!1, !1);
|
|
387
|
-
const a = e.matrixWorld, r = new D().fromArray(s[0]), n = new D().fromArray(s[2]), l = q(r, n).add(new D(0, 0, 5e-4)), m = new g().setPosition(l),
|
|
388
|
-
|
|
389
|
-
const
|
|
390
|
-
|
|
387
|
+
const a = e.matrixWorld, r = new D().fromArray(s[0]), n = new D().fromArray(s[2]), l = q(r, n).add(new D(0, 0, 5e-4)), m = new g().setPosition(l), c = new g().makeScale(o, o, o), h = new g().multiply(a).multiply(m).multiply(c);
|
|
388
|
+
h.decompose(i.position, i.quaternion, i.scale);
|
|
389
|
+
const u = i.opacityMesh;
|
|
390
|
+
u && h.decompose(u.position, u.quaternion, u.scale);
|
|
391
391
|
}
|
|
392
392
|
/** 添加模型标签 */
|
|
393
393
|
addMediaModelTag(t) {
|
|
@@ -2,15 +2,15 @@ var w = Object.defineProperty, E = Object.defineProperties;
|
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var C = Object.getOwnPropertySymbols;
|
|
4
4
|
var I = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var m = (d, a, e) => a in d ? w(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
I.call(a, e) &&
|
|
7
|
+
I.call(a, e) && m(d, e, a[e]);
|
|
8
8
|
if (C)
|
|
9
9
|
for (var e of C(a))
|
|
10
|
-
B.call(a, e) &&
|
|
10
|
+
B.call(a, e) && m(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
|
-
},
|
|
13
|
-
var l = (d, a, e) => (
|
|
12
|
+
}, u = (d, a) => E(d, U(a));
|
|
13
|
+
var l = (d, a, e) => (m(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
var p = (d, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (r) => {
|
|
16
16
|
try {
|
|
@@ -27,13 +27,13 @@ var p = (d, a, e) => new Promise((t, i) => {
|
|
|
27
27
|
}, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
|
|
28
28
|
n((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
30
|
+
import * as v from "three";
|
|
31
31
|
import { Subscribe as F } from "@realsee/five";
|
|
32
32
|
import { objectAssignDeepExports as f } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
|
-
import { addDebugPoints as
|
|
33
|
+
import { addDebugPoints as M } from "../utils/addDebugPoints.js";
|
|
34
34
|
import { arrayPositionToVector3 as A } from "../../shared-utils/positionToVector3.js";
|
|
35
|
-
import { isMediaModelTag as
|
|
36
|
-
import { debounce as
|
|
35
|
+
import { isMediaModelTag as R, isModelTag as _ } from "../utils/tag/tagCheck.js";
|
|
36
|
+
import { debounce as k } from "../utils/debounce.js";
|
|
37
37
|
import { throttle as O } from "../utils/throttle.js";
|
|
38
38
|
import { resizeObserver as D } from "../utils/resizeObserver.js";
|
|
39
39
|
import V from "../utils/tag/format.js";
|
|
@@ -200,7 +200,7 @@ class Di extends N {
|
|
|
200
200
|
l(this, "updateVisible", () => {
|
|
201
201
|
const e = this.five.getCurrentState().mode;
|
|
202
202
|
this.tags.forEach((t) => {
|
|
203
|
-
|
|
203
|
+
R(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
|
|
204
204
|
}), this.setVisible(), this.updateRenderAllTags();
|
|
205
205
|
});
|
|
206
206
|
l(this, "handleFiveWantsMoveToPano", (e) => {
|
|
@@ -240,24 +240,23 @@ class Di extends N {
|
|
|
240
240
|
this.updatePointTagPosition();
|
|
241
241
|
});
|
|
242
242
|
l(this, "handleFivePanoArrived", () => p(this, null, function* () {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
if (!n)
|
|
243
|
+
this.setVisible(), this.updatePointTagPosition(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
244
|
+
e.temporaryState = u(c({}, e.temporaryState), { visible: !0 });
|
|
245
|
+
}), this.tags.filter(_).filter((e) => {
|
|
246
|
+
var t, i;
|
|
247
|
+
return (i = (t = e.config) == null ? void 0 : t.modelConfig) == null ? void 0 : i.autoLookAtEnabled;
|
|
248
|
+
}).forEach((e) => {
|
|
249
|
+
var h;
|
|
250
|
+
const t = new v.Mesh(new v.BoxGeometry(), new v.MeshBasicMaterial()), i = (h = e.model) == null ? void 0 : h.object;
|
|
251
|
+
if (!i)
|
|
253
252
|
return;
|
|
254
|
-
|
|
255
|
-
const
|
|
256
|
-
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
}),
|
|
253
|
+
t.position.copy(i.position), t.quaternion.copy(i.quaternion);
|
|
254
|
+
const s = this.five.camera.position;
|
|
255
|
+
t.lookAt(s.clone().setY(t.position.y));
|
|
256
|
+
const o = i.quaternion.clone(), n = t.quaternion.clone(), r = $();
|
|
257
|
+
r.onUpdate(({ progress: g }) => {
|
|
258
|
+
i.quaternion.copy(o.clone().slerp(n, g));
|
|
259
|
+
}), r.play();
|
|
261
260
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
262
261
|
}));
|
|
263
262
|
/** 楼层切换时,需要更新标签可见性 */
|
|
@@ -287,7 +286,7 @@ class Di extends N {
|
|
|
287
286
|
const i = yield this.addTag(e.tagList, t);
|
|
288
287
|
if (this.debug)
|
|
289
288
|
try {
|
|
290
|
-
|
|
289
|
+
M(this.five, this.tags);
|
|
291
290
|
} catch (n) {
|
|
292
291
|
console.error(n);
|
|
293
292
|
}
|
|
@@ -300,12 +299,12 @@ class Di extends N {
|
|
|
300
299
|
addTag(e, t) {
|
|
301
300
|
return p(this, null, function* () {
|
|
302
301
|
const s = (Array.isArray(e) ? e : [e]).map((o) => {
|
|
303
|
-
var
|
|
302
|
+
var b, T, y;
|
|
304
303
|
const n = this.getTagConfig(o), r = JSON.parse(JSON.stringify(o.data)), h = o.config;
|
|
305
|
-
return o.config = n,
|
|
306
|
-
enabled: (
|
|
307
|
-
id: (
|
|
308
|
-
data: (
|
|
304
|
+
return o.config = n, u(c({}, o), {
|
|
305
|
+
enabled: (b = o.enabled) != null ? b : !0,
|
|
306
|
+
id: (T = o.id) != null ? T : z(),
|
|
307
|
+
data: (y = n.initialData) != null && y.important ? f(o.data, r, n.initialData) : f(o.data, n.initialData, r),
|
|
309
308
|
state: c({
|
|
310
309
|
visible: void 0,
|
|
311
310
|
unfolded: !this.can("fold", o)
|
|
@@ -511,7 +510,7 @@ class Di extends N {
|
|
|
511
510
|
}, 500),
|
|
512
511
|
e
|
|
513
512
|
), { observe: n, unobserve: r } = D(
|
|
514
|
-
|
|
513
|
+
k(() => t(), 400),
|
|
515
514
|
e
|
|
516
515
|
);
|
|
517
516
|
return s(), n(), () => {
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -8,12 +8,23 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { Five } from '@realsee/five';
|
|
10
10
|
import type * as THREE from 'three';
|
|
11
|
-
|
|
11
|
+
interface EventMap {
|
|
12
|
+
/**
|
|
13
|
+
* @description 点击事件
|
|
14
|
+
* @return {PreventFiveEvent} 返回 false 可以不阻止 five 的 tap 事件; default: true
|
|
15
|
+
*/
|
|
16
|
+
click: (event: CallbackEvent) => PreventFiveEvent | void;
|
|
17
|
+
/**
|
|
18
|
+
* @description 鼠标移入事件
|
|
19
|
+
*/
|
|
20
|
+
hover: (event: CallbackEvent) => void;
|
|
21
|
+
/**
|
|
22
|
+
* @description 鼠标移出事件
|
|
23
|
+
*/
|
|
24
|
+
unHover: (event: CallbackEvent) => void;
|
|
25
|
+
}
|
|
26
|
+
type EventName = keyof EventMap;
|
|
12
27
|
type PreventFiveEvent = boolean;
|
|
13
|
-
/**
|
|
14
|
-
* @return {PreventFiveEvent} 返回 false 可以不阻止 five 的 tap 事件; default: true
|
|
15
|
-
*/
|
|
16
|
-
type Callback = (event: CallbackEvent) => PreventFiveEvent | void;
|
|
17
28
|
interface EventHandlerConfig {
|
|
18
29
|
/**
|
|
19
30
|
* @default true
|
|
@@ -29,8 +40,9 @@ interface CallbackEvent {
|
|
|
29
40
|
}
|
|
30
41
|
type Object3DWithEvent = THREE.Object3D & {
|
|
31
42
|
_domEvent?: {
|
|
32
|
-
[key in `${EventName}Handler`]?: Array<[
|
|
43
|
+
[key in `${EventName}Handler`]?: Array<[EventMap[EventName], EventHandlerConfig]>;
|
|
33
44
|
};
|
|
45
|
+
_hovered?: boolean;
|
|
34
46
|
};
|
|
35
47
|
export declare class FiveDomEvents {
|
|
36
48
|
private five;
|
|
@@ -41,7 +53,7 @@ export declare class FiveDomEvents {
|
|
|
41
53
|
* @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
|
|
42
54
|
* @todo: added 和 removed 还是不太智能
|
|
43
55
|
*/
|
|
44
|
-
addAutoBindEventListener(
|
|
56
|
+
addAutoBindEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback: EventMap[T], config?: EventHandlerConfig): () => void;
|
|
45
57
|
/**
|
|
46
58
|
* @description: add event listener
|
|
47
59
|
* @param params.object: object
|
|
@@ -49,10 +61,11 @@ export declare class FiveDomEvents {
|
|
|
49
61
|
* @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
|
|
50
62
|
* @return {void}
|
|
51
63
|
*/
|
|
52
|
-
addEventListener(object: Object3DWithEvent, event:
|
|
64
|
+
addEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback: EventMap[T], config?: EventHandlerConfig): void;
|
|
53
65
|
removeEventListener(object: Object3DWithEvent, event: EventName, callback: (e: CallbackEvent) => any, ...args: any[]): void;
|
|
54
66
|
dispose(): void;
|
|
55
|
-
private
|
|
67
|
+
private handleWantsGesture;
|
|
68
|
+
private onDomEvent;
|
|
56
69
|
private objectIsBound;
|
|
57
70
|
private notify;
|
|
58
71
|
}
|