@realsee/dnalogel 3.0.0-11 → 3.0.0-13
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/CSS3DRenderPlugin/Controller.d.ts +3 -2
- package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +0 -4
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +5 -7
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -0
- package/dist/PanoTagPlugin/controller/TagCache.d.ts +3 -3
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +6 -12
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +12 -6
- package/dist/PanoTagPlugin/controller/index.d.ts +2 -6
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +3 -2
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +67 -20
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +7 -2
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +8 -3
- package/dist/PanoTagPlugin/utils/index.d.ts +0 -2
- package/dist/PanoTagPlugin/utils/planeNormal.d.ts +1 -1
- package/dist/PanoTagPlugin/utils/tag/adaptConfig.d.ts +2 -0
- package/dist/index.cjs.js +62 -62
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6367 -6332
- package/dist/index.umd.js +48 -48
- package/dist/shared-utils/five/FiveDomEvents.d.ts +23 -12
- package/dist/shared-utils/five/adapt.d.ts +9 -0
- package/dist/shared-utils/five/fiveModelLoad.d.ts +9 -0
- package/dist/shared-utils/index.d.ts +1 -1
- package/dist/shared-utils/three/getNormal.d.ts +2 -0
- package/dist/shared-utils/typescript/entries.d.ts +2 -0
- package/dist/shared-utils/url/getUrl.d.ts +4 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +31 -30
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +32 -31
- package/docs/classes/CSS3DRender.html +31 -30
- package/docs/classes/CruisePluginController.html +26 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +20 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +35 -34
- package/docs/classes/Magnifier.html +20 -19
- package/docs/classes/ModelRoomLabelController.html +11 -10
- package/docs/classes/Object3DHelperController.html +25 -24
- package/docs/classes/PaintBrush.html +15 -14
- package/docs/classes/PanoMeasurePluginLine.html +27 -26
- package/docs/classes/PanoMeasurePluginModel.html +27 -26
- package/docs/classes/PanoMeasurePluginPoint.html +11 -10
- package/docs/classes/PanoMeasurePluginPolyline.html +27 -26
- package/docs/classes/PanoTagPluginController.html +54 -108
- package/docs/classes/Util.BetterTween.html +9 -8
- package/docs/classes/Util.Interval.html +12 -11
- package/docs/classes/Util.LineSegments.html +8 -7
- package/docs/classes/Util.Magnifier.html +20 -19
- package/docs/classes/Util.Object3D.html +8 -7
- package/docs/classes/Util.PointDomHelper.html +11 -10
- package/docs/classes/Util.PointHelper.html +11 -10
- package/docs/classes/Util.PointSelectorHelper.html +16 -15
- package/docs/classes/Util.Rectangle.html +13 -12
- package/docs/enums/CameraMovementEffect.html +7 -6
- package/docs/enums/ContentType.html +20 -19
- package/docs/enums/DIRECTION.html +9 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -8
- package/docs/enums/DimensionType.html +7 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -8
- package/docs/enums/PaintBrushTypeEnum.html +8 -7
- package/docs/enums/PointType.html +7 -6
- package/docs/enums/Rotation.html +8 -7
- package/docs/functions/AreaMakerPlugin.html +5 -4
- package/docs/functions/CSS3DRenderPlugin.html +5 -4
- package/docs/functions/CameraMovementPlugin.html +5 -4
- package/docs/functions/CruisePlugin.html +5 -4
- package/docs/functions/CurrentPanoImagePlugin.html +5 -4
- package/docs/functions/GuideLinePlugin.html +5 -4
- package/docs/functions/ItemLabelPlugin.html +5 -4
- package/docs/functions/MapviewFloorplanPlugin.html +5 -4
- package/docs/functions/ModelChassisCompassPlugin.html +5 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
- package/docs/functions/ModelFloorplanPlugin.html +5 -4
- package/docs/functions/ModelItemLabelPlugin.html +5 -4
- package/docs/functions/ModelRoomLabelPlugin.html +5 -4
- package/docs/functions/ModelTVVideoPlugin.html +5 -4
- package/docs/functions/ModelViewPlugin.html +5 -4
- package/docs/functions/Object3DHelperPlugin.html +5 -4
- package/docs/functions/PanoCompassPlugin.html +5 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
- package/docs/functions/PanoDoorLabelPlugin.html +5 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
- package/docs/functions/PanoMeasurePlugin.html +5 -4
- package/docs/functions/PanoRulerPlugin.html +5 -4
- package/docs/functions/PanoRulerProPlugin.html +5 -4
- package/docs/functions/PanoSpatialTagPlugin.html +5 -4
- package/docs/functions/PanoTagPlugin.html +5 -4
- package/docs/functions/PanoVideoPlugin.html +5 -4
- package/docs/functions/PipelinePlugin.html +5 -4
- package/docs/functions/TopviewFloorplanPlugin.html +5 -4
- package/docs/functions/Util.absoluteUrl.html +5 -4
- package/docs/functions/Util.checkFiveModelLoaded.html +5 -4
- package/docs/functions/Util.equal.html +5 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -4
- package/docs/functions/Util.getCoordsFromElement.html +5 -4
- package/docs/functions/Util.getFrameTime.html +5 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -4
- package/docs/functions/Util.isAbsoluteURL.html +5 -4
- package/docs/functions/Util.isModelLike.html +5 -4
- package/docs/functions/Util.isNil.html +5 -4
- package/docs/functions/Util.isPanoramaLike.html +5 -4
- package/docs/functions/Util.nextFrame.html +5 -4
- package/docs/functions/Util.notNil.html +5 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -4
- package/docs/functions/Util.tweenProgress.html +5 -4
- package/docs/functions/Util.uuid.html +5 -4
- package/docs/functions/pluginFlag.html +5 -4
- package/docs/index.html +5 -4
- package/docs/interfaces/AddTagConfig.html +6 -5
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +6 -5
- package/docs/interfaces/AreaMakerPluginType.Config.html +6 -5
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +15 -14
- package/docs/interfaces/AreaMakerPluginType.Params.html +7 -6
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +9 -8
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +8 -7
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +6 -5
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +6 -5
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +6 -5
- package/docs/interfaces/AreaMakerPluginType.State.html +8 -7
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +8 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +12 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +20 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +12 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +14 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +14 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +9 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -5
- package/docs/interfaces/CruisePluginTypes.PluginState.html +11 -10
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +11 -10
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +12 -11
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +7 -6
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +6 -5
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +8 -7
- package/docs/interfaces/EventMap.html +15 -14
- package/docs/interfaces/FloorplanBounding.html +8 -7
- package/docs/interfaces/FloorplanData.html +10 -9
- package/docs/interfaces/FloorplanEntrance.html +11 -10
- package/docs/interfaces/FloorplanExtraObject.html +10 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -7
- package/docs/interfaces/FloorplanFloorData.html +9 -8
- package/docs/interfaces/FloorplanImagePosition.html +7 -6
- package/docs/interfaces/FloorplanObserver.html +9 -8
- package/docs/interfaces/FloorplanOutlineItem.html +9 -8
- package/docs/interfaces/FloorplanPosition.html +7 -6
- package/docs/interfaces/FloorplanRoomItem.html +13 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -6
- package/docs/interfaces/FloorplanServerBounding.html +8 -7
- package/docs/interfaces/FloorplanServerComputedData.html +10 -9
- package/docs/interfaces/FloorplanServerData.html +7 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -7
- package/docs/interfaces/FloorplanServerEntrance.html +11 -10
- package/docs/interfaces/FloorplanServerFloorData.html +9 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -6
- package/docs/interfaces/FloorplanServerObserver.html +9 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -8
- package/docs/interfaces/FloorplanServerPosition.html +7 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +8 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +10 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +6 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +13 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +8 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +18 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +7 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +18 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +5 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -5
- package/docs/interfaces/GuideLinePluginType.PluginState.html +8 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +11 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -8
- package/docs/interfaces/HelperOffset.html +8 -7
- package/docs/interfaces/ImagePlaneGroup.html +6 -5
- package/docs/interfaces/ItemLabelPluginData.html +6 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -8
- package/docs/interfaces/MinMax.html +7 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -5
- package/docs/interfaces/ModelViewPluginExportType.html +11 -10
- package/docs/interfaces/Object3DHelperState.html +8 -7
- package/docs/interfaces/ObjectHelperControllers.html +9 -8
- package/docs/interfaces/PaintBrushAction.html +12 -11
- package/docs/interfaces/PaintBrushConfigs.html +12 -11
- package/docs/interfaces/PaintBrushState.html +10 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -4
- package/docs/interfaces/PanoMeasureParameterType.html +16 -15
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -6
- package/docs/interfaces/PanoRulerProPluginState.html +8 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -9
- package/docs/interfaces/Point.html +8 -7
- package/docs/interfaces/Room.html +9 -8
- package/docs/interfaces/RoomInfo.html +7 -6
- package/docs/interfaces/RoomLabel.html +14 -13
- package/docs/interfaces/RoomRules.html +5 -4
- package/docs/interfaces/Rooms.html +5 -4
- package/docs/interfaces/Scissor.html +9 -8
- package/docs/interfaces/State.html +8 -7
- package/docs/interfaces/TagCacheInterface.html +12 -11
- package/docs/interfaces/TagConfig.html +45 -27
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -5
- package/docs/interfaces/TagIconUrl.html +12 -11
- package/docs/interfaces/TagObjectGroup.html +6 -5
- package/docs/interfaces/TagStyle.html +6 -5
- package/docs/interfaces/Tags.html +2153 -10
- package/docs/interfaces/TemporaryState.html +6 -5
- package/docs/interfaces/Util.MagnifierParameter.html +11 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -7
- package/docs/interfaces/Util.PointIntersection.html +8 -7
- package/docs/modules/AreaMakerPluginType.html +5 -4
- package/docs/modules/CruisePluginTypes.html +5 -4
- package/docs/modules/CurrentPanoImagePluginType.html +5 -4
- package/docs/modules/GuideLineItem.html +5 -4
- package/docs/modules/GuideLineModeItem.html +5 -4
- package/docs/modules/GuideLinePluginType.html +5 -4
- package/docs/modules/PanoVideoPluginType.html +5 -4
- package/docs/modules/Util.html +5 -4
- package/docs/modules.html +6 -4
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +5 -4
- package/docs/types/AreaMakerPluginType.PluginData.html +5 -4
- package/docs/types/AreaMakerPluginType.ServerData.html +5 -4
- package/docs/types/ArrayPosition.html +5 -4
- package/docs/types/AudioAppearance.html +5 -4
- package/docs/types/AudioTagTypeConfigKey.html +5 -4
- package/docs/types/CSS3DRenderExportType.html +5 -4
- package/docs/types/CSS3DRenderPluginExportType.html +5 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -4
- package/docs/types/ClassFunctionParameters.html +5 -4
- package/docs/types/Color.html +5 -4
- package/docs/types/ContentTypeConfigKey.html +6 -5
- package/docs/types/ContentTypeConfigKeySplit.html +6 -5
- package/docs/types/ContentTypeMap.html +5 -4
- package/docs/types/Create3DDomContainerReturnType.html +5 -4
- package/docs/types/Create3DElementReturnType.html +5 -4
- package/docs/types/CruisePluginExportType.html +5 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +5 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +5 -4
- package/docs/types/CurrentPanoImagePluginExportType.html +5 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +5 -4
- package/docs/types/DeprecatedTagProperty.html +5 -4
- package/docs/types/Direction-1.html +5 -4
- package/docs/types/Direction4.html +5 -4
- package/docs/types/ElementRenderer.html +5 -4
- package/docs/types/FloorplanRuleLabels.html +5 -4
- package/docs/types/FloorplanServerRuleLabels.html +5 -4
- package/docs/types/GuideLinePluginExportType.html +5 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +5 -4
- package/docs/types/GuideLinePluginType.PathItem.html +5 -4
- package/docs/types/GuideLinePluginType.PluginData.html +5 -4
- package/docs/types/HelperEventMap.html +5 -4
- package/docs/types/LoadTagConfig.html +5 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -4
- package/docs/types/MediaData.html +5 -4
- package/docs/types/MediaStore.html +5 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -4
- package/docs/types/ModelId.html +279 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -4
- package/docs/types/MoveArgs.html +5 -4
- package/docs/types/MoveOpts.html +5 -4
- package/docs/types/Object3DHelperEventMap.html +5 -4
- package/docs/types/ObjectFit.html +5 -4
- package/docs/types/PaintBrushEventMap.html +5 -4
- package/docs/types/PanoCompassPluginData.html +5 -4
- package/docs/types/PanoCompassPluginExportType.html +5 -4
- package/docs/types/PanoCompassPluginParameterType.html +5 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -4
- package/docs/types/PanoIndex.html +5 -4
- package/docs/types/PanoMeasurePluginEvent.html +5 -4
- package/docs/types/PanoMeasureReturnType.html +5 -4
- package/docs/types/PanoSpatialTagPluginId.html +5 -4
- package/docs/types/PanoTagPluginExportInterface.html +5 -4
- package/docs/types/PanoTagPluginParamsInterface.html +5 -4
- package/docs/types/PanoVideoPluginParameterType.html +5 -4
- package/docs/types/PanoVideoPluginReturnType.html +5 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -5
- package/docs/types/PipelinePluginParameterType.html +5 -4
- package/docs/types/PipelinePluginReturnType.html +5 -4
- package/docs/types/PlaneTag.html +5 -4
- package/docs/types/Point2DTag.html +5 -4
- package/docs/types/Point3DTag.html +5 -4
- package/docs/types/PointTag.html +5 -4
- package/docs/types/PointTagInstance.html +5 -4
- package/docs/types/Position.html +5 -4
- package/docs/types/RotateArgs.html +5 -4
- package/docs/types/RotateOpts.html +5 -4
- package/docs/types/RuleLabelsKey.html +5 -4
- package/docs/types/RuleLabelsValue.html +5 -4
- package/docs/types/StickType.html +5 -4
- package/docs/types/Tag.html +7 -6
- package/docs/types/Tag2D.html +5 -4
- package/docs/types/Tag3D.html +5 -4
- package/docs/types/TagConfigByKey.html +5 -4
- package/docs/types/TagContentType.html +5 -4
- package/docs/types/TagDimensionType.html +5 -4
- package/docs/types/TagElement.html +5 -4
- package/docs/types/TagEvents.html +5 -4
- package/docs/types/TagGLTFObject.html +5 -4
- package/docs/types/TagHooks.html +5 -4
- package/docs/types/TagId.html +5 -4
- package/docs/types/TagInstance.html +8 -5
- package/docs/types/TagPointType.html +5 -4
- package/docs/types/TagRendererMap.html +5 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -4
- package/docs/types/WorkCode.html +5 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -4
- package/docs/variables/PLUGIN.html +5 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -4
- package/docs/variables/ROOM_TYPE_MAP.html +5 -4
- package/docs/variables/defaultGlobalConfig.html +5 -4
- package/docs/variables/itemLabelPluginServerParams.html +5 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -4
- package/libs/AreaMakerPlugin/Controller.js +5 -3
- package/libs/AreaMakerPlugin/index.js +5 -3
- package/libs/AreaMakerPlugin/utils/Item.js +9 -7
- package/libs/CSS3DRenderPlugin/Controller.d.ts +3 -2
- package/libs/CSS3DRenderPlugin/Controller.js +9 -6
- package/libs/CSS3DRenderPlugin/index.js +8 -6
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +0 -4
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +23 -22
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +5 -7
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +43 -53
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +70 -66
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +4 -3
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +11 -10
- package/libs/CruisePlugin/Controller.js +111 -105
- package/libs/CruisePlugin/index.js +13 -9
- package/libs/CurrentPanoImagePlugin/Controller.js +27 -22
- package/libs/CurrentPanoImagePlugin/index.js +7 -4
- package/libs/GuideLinePlugin/Controller.js +29 -25
- package/libs/GuideLinePlugin/GuideLineItem.js +10 -6
- package/libs/GuideLinePlugin/GuideLineModeItem.js +10 -6
- package/libs/GuideLinePlugin/index.js +15 -11
- package/libs/ModelTVVideoPlugin/Plugin.js +6 -4
- package/libs/ModelTVVideoPlugin/index.js +5 -3
- package/libs/Object3DHelperPlugin/Controller.js +5 -3
- package/libs/Object3DHelperPlugin/index.js +8 -6
- package/libs/PanoCompassPlugin/Controller.js +5 -3
- package/libs/PanoCompassPlugin/index.js +6 -4
- package/libs/PanoDoorLabelPlugin/BaseController.js +9 -7
- package/libs/PanoDoorLabelPlugin/Controller.js +5 -3
- package/libs/PanoDoorLabelPlugin/index.js +6 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +5 -3
- package/libs/PanoMeasurePlugin/Components/Controller1.js +55 -53
- package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +4 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +5 -3
- package/libs/PanoMeasurePlugin/Model/area.js +4 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +25 -23
- package/libs/PanoMeasurePlugin/index.js +16 -14
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +14 -12
- package/libs/PanoSpatialTagPlugin/Plugin.js +6 -4
- package/libs/PanoSpatialTagPlugin/index.js +3 -1
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +206 -205
- package/libs/PanoTagPlugin/Components/TagContainer.js +12 -11
- package/libs/PanoTagPlugin/Components/TagItem.js +129 -128
- package/libs/PanoTagPlugin/controller/TagCache.d.ts +3 -3
- package/libs/PanoTagPlugin/controller/TagCache.js +17 -15
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +6 -12
- package/libs/PanoTagPlugin/controller/TagComputer.js +173 -201
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +139 -116
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +12 -6
- package/libs/PanoTagPlugin/controller/TagUtil.js +182 -154
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -6
- package/libs/PanoTagPlugin/controller/index.js +148 -155
- package/libs/PanoTagPlugin/index.js +21 -16
- package/libs/PanoTagPlugin/tag.config.js +11 -3
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +3 -2
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +67 -20
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +7 -2
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +8 -3
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -1
- package/libs/PanoTagPlugin/utils/index.d.ts +0 -2
- package/libs/PanoTagPlugin/utils/index.js +23 -31
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +97 -99
- package/libs/PanoTagPlugin/utils/planeNormal.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/tag/adaptConfig.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/tag/adaptConfig.js +7 -0
- package/libs/PanoVideoPlugin/Controller.js +5 -3
- package/libs/PanoVideoPlugin/VideoMeshController.js +4 -2
- package/libs/PanoVideoPlugin/index.js +8 -6
- package/libs/PipelinePlugin/Controller.js +5 -3
- package/libs/PipelinePlugin/index.js +6 -4
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +4 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +14 -12
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +2 -0
- package/libs/base/BasePlugin.js +2 -2
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +5 -3
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -3
- package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +5 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +6 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +33 -31
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -4
- package/libs/floorplan/utils/correctFiveState.js +25 -25
- package/libs/index.d.ts +1 -0
- package/libs/index.js +125 -120
- package/libs/shared-utils/five/FiveDomEvents.d.ts +23 -12
- package/libs/shared-utils/five/FiveDomEvents.js +96 -73
- package/libs/shared-utils/five/adapt.d.ts +9 -0
- package/libs/shared-utils/five/adapt.js +16 -0
- package/libs/shared-utils/five/fiveModelLoad.d.ts +9 -0
- package/libs/shared-utils/five/fiveModelLoad.js +29 -0
- package/libs/shared-utils/five/mode.js +5 -5
- package/libs/shared-utils/index.d.ts +1 -1
- package/libs/shared-utils/index.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/getNormal.d.ts +2 -0
- package/libs/shared-utils/three/getNormal.js +10 -0
- package/libs/shared-utils/typescript/entries.d.ts +2 -0
- package/libs/shared-utils/typescript/entries.js +6 -0
- package/libs/shared-utils/url/getUrl.d.ts +4 -0
- package/libs/shared-utils/url/getUrl.js +7 -0
- package/package.json +1 -1
- package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +0 -4
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +0 -4
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +0 -16
- /package/dist/shared-utils/{absoluteUrl.d.ts → url/absoluteUrl.d.ts} +0 -0
- /package/libs/shared-utils/{absoluteUrl.d.ts → url/absoluteUrl.d.ts} +0 -0
- /package/libs/shared-utils/{absoluteUrl.js → url/absoluteUrl.js} +0 -0
|
@@ -6,14 +6,25 @@
|
|
|
6
6
|
* 3. 基于第二点,废弃了之前使用浏览器原生事件监听点击的方式,改为使用 wantsTapGesture 的方式
|
|
7
7
|
* 4. 重构之后只会在 wantsTapGesture 事件触发的时候做射线检测
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
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,20 +40,20 @@ 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;
|
|
37
49
|
private boundObject;
|
|
38
|
-
private extraObjects;
|
|
39
50
|
constructor(five: Five);
|
|
40
51
|
/**
|
|
41
52
|
* @description: added 时自动绑定事件,removed时自动解绑事件,也就是说只有物体在场景中的时候才会触发事件
|
|
42
53
|
* @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
|
|
43
54
|
* @todo: added 和 removed 还是不太智能
|
|
44
55
|
*/
|
|
45
|
-
addAutoBindEventListener(
|
|
56
|
+
addAutoBindEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback: EventMap[T], config?: EventHandlerConfig): () => void;
|
|
46
57
|
/**
|
|
47
58
|
* @description: add event listener
|
|
48
59
|
* @param params.object: object
|
|
@@ -50,12 +61,12 @@ export declare class FiveDomEvents {
|
|
|
50
61
|
* @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
|
|
51
62
|
* @return {void}
|
|
52
63
|
*/
|
|
53
|
-
addEventListener(object: Object3DWithEvent, event:
|
|
64
|
+
addEventListener<T extends EventName>(object: Object3DWithEvent, event: T, callback: EventMap[T], config?: EventHandlerConfig): void;
|
|
54
65
|
removeEventListener(object: Object3DWithEvent, event: EventName, callback: (e: CallbackEvent) => any, ...args: any[]): void;
|
|
55
66
|
dispose(): void;
|
|
56
|
-
private
|
|
67
|
+
private handleWantsGesture;
|
|
68
|
+
private onDomEvent;
|
|
57
69
|
private objectIsBound;
|
|
58
70
|
private notify;
|
|
59
|
-
private updateFiveMeshes;
|
|
60
71
|
}
|
|
61
72
|
export {};
|
|
@@ -1,95 +1,117 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var f = (s, e, t) => e in s ? O(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, p = (s, e) => {
|
|
1
|
+
var L = Object.defineProperty;
|
|
2
|
+
var p = Object.getOwnPropertySymbols;
|
|
3
|
+
var H = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var E = (u, e, t) => e in u ? L(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t, b = (u, e) => {
|
|
6
5
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
}
|
|
13
|
-
var
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
class B {
|
|
6
|
+
H.call(e, t) && E(u, t, e[t]);
|
|
7
|
+
if (p)
|
|
8
|
+
for (var t of p(e))
|
|
9
|
+
g.call(e, t) && E(u, t, e[t]);
|
|
10
|
+
return u;
|
|
11
|
+
};
|
|
12
|
+
var h = (u, e, t) => (E(u, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
import { getObjectVisible as $ } from "../three/getObjectVisible.js";
|
|
14
|
+
class I {
|
|
17
15
|
constructor(e) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const
|
|
16
|
+
h(this, "five");
|
|
17
|
+
h(this, "boundObject", {});
|
|
18
|
+
h(this, "handleWantsGesture", (e, t) => {
|
|
19
|
+
if (t.length !== 1)
|
|
20
|
+
return;
|
|
21
|
+
const n = t[0];
|
|
22
|
+
if (n) {
|
|
23
|
+
if (e === "mouseMove")
|
|
24
|
+
return this.onDomEvent("hover", n.raycaster);
|
|
25
|
+
if (e === "tap")
|
|
26
|
+
return this.onDomEvent("click", n.raycaster);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
h(this, "onDomEvent", (e, t) => {
|
|
30
|
+
var i;
|
|
31
|
+
const n = this.boundObject[e];
|
|
24
32
|
if (!n || (n == null ? void 0 : n.length) === 0)
|
|
25
33
|
return;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
34
|
+
const d = (() => {
|
|
35
|
+
var f;
|
|
36
|
+
const r = t.intersectObjects(n, !0);
|
|
37
|
+
if (r.length === 0)
|
|
38
|
+
return;
|
|
39
|
+
const s = this.five.model.intersectRaycaster(t);
|
|
40
|
+
if (!(s.length > 0 && r.length > 0 && s[0].distance < r[0].distance))
|
|
41
|
+
return (f = r[0]) == null ? void 0 : f.object;
|
|
42
|
+
})();
|
|
43
|
+
if (!d || !this.objectIsBound(d)) {
|
|
44
|
+
for (const r of (i = this.boundObject.hover) != null ? i : [])
|
|
45
|
+
r._hovered && this.notify("unHover", r);
|
|
29
46
|
return;
|
|
30
|
-
|
|
47
|
+
}
|
|
48
|
+
if (this.notify(e, d))
|
|
31
49
|
return !1;
|
|
32
50
|
});
|
|
33
|
-
|
|
51
|
+
h(this, "objectIsBound", (e) => {
|
|
34
52
|
let t = e._domEvent, n = e.parent;
|
|
35
53
|
for (; typeof t == "undefined" && n; )
|
|
36
54
|
t = n._domEvent, n = n.parent;
|
|
37
55
|
return !!t;
|
|
38
56
|
});
|
|
39
57
|
// eslint-disable-next-line max-params
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
58
|
+
h(this, "notify", (e, t, n, d) => {
|
|
59
|
+
var f;
|
|
60
|
+
let o = !1, i = [];
|
|
61
|
+
const r = [];
|
|
62
|
+
let s = t;
|
|
63
|
+
for (r.push(s); s.parent; )
|
|
64
|
+
s = s.parent, r.push(s);
|
|
65
|
+
for (const v of r) {
|
|
66
|
+
if (o)
|
|
48
67
|
break;
|
|
49
|
-
const
|
|
50
|
-
if (!
|
|
68
|
+
const m = v._domEvent;
|
|
69
|
+
if (!m)
|
|
51
70
|
continue;
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
-
for (const [
|
|
55
|
-
if (
|
|
71
|
+
const _ = m[`${e}Handler`];
|
|
72
|
+
if (_)
|
|
73
|
+
for (const [O, l] of _) {
|
|
74
|
+
if (l != null && l.checkVisible && !$(v))
|
|
56
75
|
continue;
|
|
57
|
-
|
|
76
|
+
if (e === "hover") {
|
|
77
|
+
if (v._hovered)
|
|
78
|
+
continue;
|
|
79
|
+
v._hovered = !0;
|
|
80
|
+
for (const a of (f = this.boundObject.hover) != null ? f : [])
|
|
81
|
+
a !== v && a._hovered && this.notify("unHover", a);
|
|
82
|
+
}
|
|
83
|
+
if (e === "unHover") {
|
|
84
|
+
if (!v._hovered)
|
|
85
|
+
continue;
|
|
86
|
+
v._hovered = !1;
|
|
87
|
+
}
|
|
88
|
+
const c = O({
|
|
58
89
|
type: e,
|
|
59
|
-
target:
|
|
90
|
+
target: v,
|
|
60
91
|
origDomEvent: n,
|
|
61
|
-
intersect:
|
|
92
|
+
intersect: d,
|
|
62
93
|
stopPropagation: () => {
|
|
63
|
-
|
|
94
|
+
o = !0;
|
|
64
95
|
}
|
|
65
96
|
});
|
|
66
|
-
|
|
97
|
+
i.push(c != null ? c : !0);
|
|
67
98
|
}
|
|
68
99
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
r(this, "updateFiveMeshes", () => {
|
|
72
|
-
var e;
|
|
73
|
-
this.extraObjects = [], (e = this.five.model) == null || e.traverse((t) => {
|
|
74
|
-
t instanceof $ && this.extraObjects.push(t);
|
|
75
|
-
});
|
|
100
|
+
if (e === "click")
|
|
101
|
+
return i.some((v) => v === !0);
|
|
76
102
|
});
|
|
77
|
-
this.five = e,
|
|
103
|
+
this.five = e, e.on("wantsGesture", this.handleWantsGesture);
|
|
78
104
|
}
|
|
79
105
|
/**
|
|
80
106
|
* @description: added 时自动绑定事件,removed时自动解绑事件,也就是说只有物体在场景中的时候才会触发事件
|
|
81
107
|
* @note: 注意:目前需要触发物体的 added 事件和 removed 事件才会生效
|
|
82
108
|
* @todo: added 和 removed 还是不太智能
|
|
83
109
|
*/
|
|
84
|
-
addAutoBindEventListener(
|
|
85
|
-
const t = e
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
this.removeEventListener(...e);
|
|
90
|
-
}), t.addEventListener("dispose", () => {
|
|
91
|
-
this.removeEventListener(...e);
|
|
92
|
-
});
|
|
110
|
+
addAutoBindEventListener(e, t, n, d) {
|
|
111
|
+
const o = () => this.addEventListener(e, t, n, d), i = () => this.removeEventListener(e, t, n, d);
|
|
112
|
+
return e.addEventListener("added", o), e.addEventListener("removed", i), e.addEventListener("dispose", i), () => {
|
|
113
|
+
e.removeEventListener("added", o), e.removeEventListener("removed", i), e.removeEventListener("dispose", i);
|
|
114
|
+
};
|
|
93
115
|
}
|
|
94
116
|
/**
|
|
95
117
|
* @description: add event listener
|
|
@@ -98,24 +120,25 @@ class B {
|
|
|
98
120
|
* @param params.callback: 返回 false 可以不阻止 five 的 tap 事件; default: true
|
|
99
121
|
* @return {void}
|
|
100
122
|
*/
|
|
101
|
-
addEventListener(e, t, n,
|
|
102
|
-
var
|
|
103
|
-
e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), e._domEvent[`${t}Handler`].push([n, b(
|
|
123
|
+
addEventListener(e, t, n, d) {
|
|
124
|
+
var o;
|
|
125
|
+
e._domEvent || (e._domEvent = {}), e._domEvent[`${t}Handler`] || (e._domEvent[`${t}Handler`] = []), this.boundObject[t] || (this.boundObject[t] = []), e._domEvent[`${t}Handler`].push([n, b({ checkVisible: !0 }, d)]), (o = this.boundObject[t]) == null || o.push(e);
|
|
104
126
|
}
|
|
105
|
-
removeEventListener(e, t, n, ...
|
|
106
|
-
var
|
|
127
|
+
removeEventListener(e, t, n, ...d) {
|
|
128
|
+
var i, r;
|
|
107
129
|
if (!e._domEvent || !e._domEvent[`${t}Handler`])
|
|
108
130
|
return;
|
|
109
|
-
const
|
|
110
|
-
if (
|
|
111
|
-
const
|
|
112
|
-
|
|
131
|
+
const o = e._domEvent[`${t}Handler`].findIndex((s) => s[0] === n);
|
|
132
|
+
if (o !== -1 && (e._domEvent[`${t}Handler`].splice(o, 1), e._domEvent[`${t}Handler`].length === 0 && delete e._domEvent[`${t}Handler`], e._domEvent && Object.keys(e._domEvent).length === 0 && delete e._domEvent, !e._domEvent)) {
|
|
133
|
+
const s = (i = this.boundObject[t]) == null ? void 0 : i.findIndex((f) => f === e);
|
|
134
|
+
s !== -1 && ((r = this.boundObject[t]) == null || r.splice(s, 1));
|
|
113
135
|
}
|
|
114
136
|
}
|
|
115
137
|
dispose() {
|
|
116
|
-
|
|
138
|
+
var e;
|
|
139
|
+
(e = this.five) == null || e.off("wantsGesture", this.handleWantsGesture), this.boundObject = {};
|
|
117
140
|
}
|
|
118
141
|
}
|
|
119
142
|
export {
|
|
120
|
-
|
|
143
|
+
I as FiveDomEvents
|
|
121
144
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 一些函数,来适配 Five@5.x 和 Five@6.x 的差异
|
|
3
|
+
*/
|
|
4
|
+
import type { Five } from '@realsee/five';
|
|
5
|
+
export declare function adaptPanoId(five: Five, func: (params?: {
|
|
6
|
+
panoIndex: number;
|
|
7
|
+
panoId: string;
|
|
8
|
+
derivedId: number;
|
|
9
|
+
}, ...args: any[]) => any): (panoIdOrPanoIndex: string | number, ...args: any[]) => void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function k(t, p) {
|
|
2
|
+
return function(n, ...s) {
|
|
3
|
+
var e, a;
|
|
4
|
+
if (typeof n == "number") {
|
|
5
|
+
const o = n, d = t.work.observers[n], c = (e = d == null ? void 0 : d.panoId) != null ? e : `${t.work.workCode}[${o}]`, i = d == null ? void 0 : d.derivedId;
|
|
6
|
+
p({ panoIndex: o, panoId: c, derivedId: i }, ...s);
|
|
7
|
+
} else if (typeof n == "string") {
|
|
8
|
+
const o = n, d = t.work.observers.find((f) => f.panoId === o), c = (a = d == null ? void 0 : d.index) != null ? a : d == null ? void 0 : d.panoIndex, i = d == null ? void 0 : d.derivedId;
|
|
9
|
+
p({ panoIndex: c, panoId: o, derivedId: i }, ...s);
|
|
10
|
+
} else
|
|
11
|
+
console.error(`adaptPano error: panoIdOrPanoIndex is ${n}`);
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
k as adaptPanoId
|
|
16
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
/**
|
|
3
|
+
* @description: 等待 five model 加载完成
|
|
4
|
+
*/
|
|
5
|
+
export declare function waitFiveModelLoaded(five: Five): Promise<void>;
|
|
6
|
+
/**
|
|
7
|
+
* @note five 6.0 修复了 多次 load work 时,`five.model.loaded` 不会变为 `false` 的问题,不再需要 `five.model.name === five.work?.model.file` 的判断了
|
|
8
|
+
*/
|
|
9
|
+
export declare function fiveModelIsLoaded(five: Five): boolean;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var l = (d, o, n) => new Promise((r, t) => {
|
|
2
|
+
var c = (e) => {
|
|
3
|
+
try {
|
|
4
|
+
a(n.next(e));
|
|
5
|
+
} catch (i) {
|
|
6
|
+
t(i);
|
|
7
|
+
}
|
|
8
|
+
}, u = (e) => {
|
|
9
|
+
try {
|
|
10
|
+
a(n.throw(e));
|
|
11
|
+
} catch (i) {
|
|
12
|
+
t(i);
|
|
13
|
+
}
|
|
14
|
+
}, a = (e) => e.done ? r(e.value) : Promise.resolve(e.value).then(c, u);
|
|
15
|
+
a((n = n.apply(d, o)).next());
|
|
16
|
+
});
|
|
17
|
+
function s(d) {
|
|
18
|
+
return l(this, null, function* () {
|
|
19
|
+
return new Promise((o) => {
|
|
20
|
+
f(d) ? o() : d.once("modelLoaded", () => o());
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function f(d) {
|
|
25
|
+
return d.model.loaded;
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
s as waitFiveModelLoaded
|
|
29
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
function n(
|
|
2
|
-
return
|
|
1
|
+
function n(e) {
|
|
2
|
+
return e.toLowerCase().includes("panorama");
|
|
3
3
|
}
|
|
4
|
-
function
|
|
5
|
-
return !n(
|
|
4
|
+
function o(e) {
|
|
5
|
+
return !n(e);
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
o as isModelLike,
|
|
9
9
|
n as isPanoramaLike
|
|
10
10
|
};
|
|
@@ -12,7 +12,7 @@ import { Object3D as s } from "./three/core/Object3D.js";
|
|
|
12
12
|
import { LineSegments as g } from "./three/objects/LineSegments.js";
|
|
13
13
|
import { isNil as c, notNil as d } from "./isNil.js";
|
|
14
14
|
import { uuid as u } from "./uuid.js";
|
|
15
|
-
import { absoluteUrl as F, isAbsoluteURL as P } from "./absoluteUrl.js";
|
|
15
|
+
import { absoluteUrl as F, isAbsoluteURL as P } from "./url/absoluteUrl.js";
|
|
16
16
|
import { getFrameTime as b, nextFrame as v, requestAnimationFrameInterval as L } from "./animationFrame/index.js";
|
|
17
17
|
import { equal as M } from "./equal.js";
|
|
18
18
|
import { isModelLike as R, isPanoramaLike as S } from "./five/mode.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.0.0-
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.0.0-13",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Vector3 as u } from "three";
|
|
2
|
+
function p(o, r) {
|
|
3
|
+
if (o.length < 3)
|
|
4
|
+
return console.error("points.length < 3"), new u(0, 0, 0);
|
|
5
|
+
const [n, t, c] = o, l = n.clone().sub(t), s = n.clone().sub(c), e = l.cross(s).normalize();
|
|
6
|
+
return typeof r == "number" ? e.multiplyScalar(r) : e;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
p as getNormal
|
|
10
|
+
};
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "3.0.0-
|
|
10
|
+
"version": "3.0.0-13",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
function n(e, o) {
|
|
2
|
-
d(e) ? o() : e.once("modelLoaded", () => o());
|
|
3
|
-
}
|
|
4
|
-
function l(e) {
|
|
5
|
-
return new Promise((o) => {
|
|
6
|
-
d(e) ? o() : e.once("modelLoaded", () => o());
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
function d(e) {
|
|
10
|
-
return e.model.name === e.work.model.file && e.model.loaded;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
n as actionAfterFiveModelLoad,
|
|
14
|
-
d as fiveModelLoaded,
|
|
15
|
-
l as waitFiveModelLoaded
|
|
16
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|