@realsee/dnalogel 3.27.10 → 3.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/controller/TagCache.d.ts +5 -1
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +7 -7
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +4 -4
- package/dist/PanoTagPlugin/controller/index.d.ts +19 -15
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +2 -2
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +12 -12
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +5 -5
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
- package/dist/PanoTagPlugin/utils/search.d.ts +1 -1
- package/dist/Sculpt/Objects/Base/index.d.ts +15 -3
- package/dist/index.cjs.js +5 -5
- package/dist/index.js +68 -36
- package/dist/index.umd.js +5 -5
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
- package/docs/classes/ModelMakerPluginType.ModelMakerController.html +3 -3
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/MoveController.html +3 -3
- package/docs/classes/Object3DHelperController.html +3 -3
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoMeasurePluginLine.html +3 -3
- package/docs/classes/PanoMeasurePluginModel.html +3 -3
- package/docs/classes/PanoMeasurePluginPoint.html +3 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
- package/docs/classes/PanoTagPluginController.html +104 -68
- package/docs/classes/Sculpt.html +3 -3
- package/docs/classes/Util.BetterTween.html +3 -3
- package/docs/classes/Util.Interval.html +3 -3
- package/docs/classes/Util.LineSegments.html +3 -3
- package/docs/classes/Util.Magnifier.html +3 -3
- package/docs/classes/Util.Object3D.html +3 -3
- package/docs/classes/Util.PointDomHelper.html +3 -3
- package/docs/classes/Util.PointHelper.html +3 -3
- package/docs/classes/Util.PointSelectorHelper.html +3 -3
- package/docs/classes/Util.Rectangle.html +3 -3
- package/docs/classes/WalkController.html +3 -3
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +3 -3
- package/docs/enums/DIRECTION.html +3 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/PaintBrushTypeEnum.html +3 -3
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +3 -3
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/CurrentPanoImagePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +3 -3
- 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/ModelMakerPlugin.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/MovePlugin.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/PipelinePlugin.html +3 -3
- package/docs/functions/SculptPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +3 -3
- package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
- package/docs/functions/Util.equal.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +3 -3
- package/docs/functions/Util.getCoordsFromElement.html +3 -3
- package/docs/functions/Util.getFrameTime.html +3 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
- package/docs/functions/Util.isAbsoluteURL.html +3 -3
- package/docs/functions/Util.isModelLike.html +3 -3
- package/docs/functions/Util.isNil.html +3 -3
- package/docs/functions/Util.isPanoramaLike.html +3 -3
- package/docs/functions/Util.nextFrame.html +3 -3
- package/docs/functions/Util.notNil.html +3 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
- package/docs/functions/Util.tweenProgress.html +3 -3
- package/docs/functions/Util.uuid.html +3 -3
- package/docs/functions/pluginFlag.html +3 -3
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.html +15 -15
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
- package/docs/interfaces/EventMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +3 -3
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +3 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +3 -3
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
- package/docs/interfaces/FloorplanServerEntrance.html +3 -3
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
- package/docs/interfaces/HelperOffset.html +3 -3
- package/docs/interfaces/ImagePlaneGroup.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +3 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/MinMax.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.State.html +3 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
- package/docs/interfaces/ModelViewPluginExportType.html +3 -3
- package/docs/interfaces/Object3DHelperState.html +3 -3
- package/docs/interfaces/ObjectHelperControllers.html +3 -3
- package/docs/interfaces/PaintBrushAction.html +3 -3
- package/docs/interfaces/PaintBrushConfigs.html +3 -3
- package/docs/interfaces/PaintBrushState.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
- package/docs/interfaces/PanoMeasureParameterType.html +3 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginState.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
- package/docs/interfaces/Point.html +3 -3
- package/docs/interfaces/Room.html +3 -3
- package/docs/interfaces/RoomInfo.html +3 -3
- package/docs/interfaces/RoomLabel.html +3 -3
- package/docs/interfaces/RoomRules.html +3 -3
- package/docs/interfaces/Rooms.html +3 -3
- package/docs/interfaces/Scissor.html +3 -3
- package/docs/interfaces/State.html +3 -3
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +22 -22
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
- package/docs/interfaces/TagIconUrl.html +3 -3
- package/docs/interfaces/TagObjectGroup.html +3 -3
- package/docs/interfaces/TagStyle.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/interfaces/TemporaryState.html +3 -3
- package/docs/interfaces/Util.MagnifierParameter.html +3 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
- package/docs/interfaces/Util.PointIntersection.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +3 -3
- package/docs/modules/CruisePluginTypes.html +3 -3
- package/docs/modules/CurrentPanoImagePluginType.html +3 -3
- package/docs/modules/GuideLineItem.html +3 -3
- package/docs/modules/GuideLineModeItem.html +3 -3
- package/docs/modules/GuideLinePluginType.html +3 -3
- package/docs/modules/ModelMakerPluginType.html +3 -3
- package/docs/modules/PanoVideoPluginType.html +3 -3
- package/docs/modules/SculptData.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- package/docs/types/AddObject3DHelperConfig.html +3 -3
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
- package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
- package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
- package/docs/types/ArrayPosition.html +3 -3
- package/docs/types/AudioAppearance.html +3 -3
- package/docs/types/CSS3DRenderExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
- package/docs/types/ClassFunctionParameters.html +3 -3
- package/docs/types/Color.html +3 -3
- package/docs/types/ContentTypeConfigKey.html +3 -3
- package/docs/types/ContentTypeConfigKeySplit.html +3 -3
- package/docs/types/ContentTypeMap.html +3 -3
- package/docs/types/Create3DDomContainerReturnType.html +3 -3
- package/docs/types/Create3DElementReturnType.html +3 -3
- package/docs/types/CruisePluginExportType.html +3 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
- package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
- package/docs/types/DeprecatedTagProperty.html +3 -3
- package/docs/types/Direction-1.html +3 -3
- package/docs/types/Direction4.html +3 -3
- package/docs/types/ElementRenderer.html +3 -3
- package/docs/types/FloorplanRuleLabels.html +3 -3
- package/docs/types/FloorplanServerRuleLabels.html +3 -3
- package/docs/types/GuideLinePluginExportType.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
- package/docs/types/GuideLinePluginType.PathItem.html +3 -3
- package/docs/types/GuideLinePluginType.PluginData.html +3 -3
- package/docs/types/HelperEventMap.html +3 -3
- package/docs/types/InternalHelperEventMap.html +3 -3
- package/docs/types/LoadTagConfig.html +3 -3
- package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/MediaData.html +6 -6
- package/docs/types/MediaStore.html +3 -3
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
- package/docs/types/ModelId.html +3 -3
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +3 -3
- package/docs/types/ModelMakerPluginType.ItemType.html +3 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
- package/docs/types/MoveArgs.html +3 -3
- package/docs/types/MoveOpts.html +3 -3
- package/docs/types/Object3DHelperEventMap.html +3 -3
- package/docs/types/ObjectFit.html +3 -3
- package/docs/types/PaintBrushEventMap.html +3 -3
- package/docs/types/PanoCompassPluginData.html +3 -3
- package/docs/types/PanoCompassPluginExportType.html +3 -3
- package/docs/types/PanoCompassPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
- package/docs/types/PanoIndex.html +3 -3
- package/docs/types/PanoMeasurePluginEvent.html +3 -3
- package/docs/types/PanoMeasureReturnType.html +3 -3
- package/docs/types/PanoSpatialTagPluginId.html +3 -3
- package/docs/types/PanoTagPluginExportInterface.html +3 -3
- package/docs/types/PanoTagPluginParamsInterface.html +3 -3
- package/docs/types/PanoVideoPluginParameterType.html +3 -3
- package/docs/types/PanoVideoPluginReturnType.html +3 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +6 -6
- package/docs/types/PipelinePluginParameterType.html +3 -3
- package/docs/types/PipelinePluginReturnType.html +3 -3
- package/docs/types/PlaneTag.html +3 -3
- package/docs/types/Point2DTag.html +3 -3
- package/docs/types/Point3DTag.html +3 -3
- package/docs/types/PointTag.html +3 -3
- package/docs/types/PointTagInstance.html +3 -3
- package/docs/types/Position.html +3 -3
- package/docs/types/PositionFrom.html +3 -3
- package/docs/types/RotateArgs.html +3 -3
- package/docs/types/RotateOpts.html +3 -3
- package/docs/types/RuleLabelsKey.html +3 -3
- package/docs/types/RuleLabelsValue.html +3 -3
- package/docs/types/ScaleCallback.html +3 -3
- package/docs/types/ScalePosition.html +3 -3
- package/docs/types/SculptData.BoxData.html +3 -3
- package/docs/types/SculptData.CircleData.html +3 -3
- package/docs/types/SculptData.CylinderData.html +3 -3
- package/docs/types/SculptData.PointData.html +3 -3
- package/docs/types/SculptData.PolygonData.html +3 -3
- package/docs/types/SculptData.PolylineData.html +3 -3
- package/docs/types/SculptData.PrismData.html +3 -3
- package/docs/types/SculptData.RectangleData.html +3 -3
- package/docs/types/StickType.html +3 -3
- package/docs/types/Tag.html +8 -8
- package/docs/types/Tag2D.html +3 -3
- package/docs/types/Tag3D.html +3 -3
- package/docs/types/TagConfigByKey.html +3 -3
- package/docs/types/TagContentType.html +3 -3
- package/docs/types/TagContentTypeMapping.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +3 -3
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +3 -3
- package/docs/types/TagId.html +3 -3
- package/docs/types/TagInstance.html +17 -4
- package/docs/types/TagPointType.html +3 -3
- package/docs/types/TagRendererMap.html +3 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/WorkCode.html +3 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
- package/docs/variables/PLUGIN.html +3 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
- package/docs/variables/ROOM_TYPE_MAP.html +3 -3
- package/docs/variables/defaultGlobalConfig.html +3 -3
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/PanoTagPlugin/controller/TagCache.d.ts +5 -1
- package/libs/PanoTagPlugin/controller/TagCache.js +23 -15
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +3 -3
- package/libs/PanoTagPlugin/controller/TagComputer.js +3 -3
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +7 -7
- package/libs/PanoTagPlugin/controller/TagRender.js +7 -7
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +4 -4
- package/libs/PanoTagPlugin/controller/TagUtil.js +4 -4
- package/libs/PanoTagPlugin/controller/index.d.ts +19 -15
- package/libs/PanoTagPlugin/controller/index.js +52 -40
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +2 -2
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +12 -12
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +5 -5
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +1 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/search.d.ts +1 -1
- package/libs/Sculpt/Objects/Base/index.d.ts +15 -3
- package/libs/Sculpt/Objects/Base/index.js +14 -2
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/five/getRaycasterByNdcPosition.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var B = Object.defineProperty, E = Object.defineProperties;
|
|
2
|
+
var V = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var A = Object.getOwnPropertySymbols;
|
|
4
|
-
var R = Object.prototype.hasOwnProperty,
|
|
5
|
-
var m = (d, a, e) => a in d ?
|
|
4
|
+
var R = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (d, a, e) => a in d ? B(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, g = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
7
|
R.call(a, e) && m(d, e, a[e]);
|
|
8
8
|
if (A)
|
|
9
9
|
for (var e of A(a))
|
|
10
|
-
|
|
10
|
+
k.call(a, e) && m(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
|
-
}, b = (d, a) =>
|
|
12
|
+
}, b = (d, a) => E(d, V(a));
|
|
13
13
|
var l = (d, a, e) => (m(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
var c = (d, a, e) => new Promise((t, i) => {
|
|
15
15
|
var s = (r) => {
|
|
@@ -28,13 +28,13 @@ var c = (d, a, e) => new Promise((t, i) => {
|
|
|
28
28
|
n((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as v from "three";
|
|
31
|
-
import { Subscribe as
|
|
31
|
+
import { Subscribe as O } from "@realsee/five";
|
|
32
32
|
import { objectAssignDeepExports as p } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
|
-
import { addDebugPoints as
|
|
34
|
-
import { arrayPositionToVector3 as
|
|
35
|
-
import { isMediaModelTag as
|
|
33
|
+
import { addDebugPoints as F } from "../utils/addDebugPoints.js";
|
|
34
|
+
import { arrayPositionToVector3 as P } from "../../shared-utils/positionToVector3.js";
|
|
35
|
+
import { isMediaModelTag as M, isModelTag as _ } from "../utils/tag/tagCheck.js";
|
|
36
36
|
import { debounce as L } from "../utils/debounce.js";
|
|
37
|
-
import { throttle as
|
|
37
|
+
import { throttle as D } from "../utils/throttle.js";
|
|
38
38
|
import N from "../utils/tag/format.js";
|
|
39
39
|
import { generateBlankAudio as G, AudioNamespace as z } from "../../shared-utils/audio.js";
|
|
40
40
|
import { resizeObserver as S } from "../../shared-utils/dom/resizeObserver.js";
|
|
@@ -172,8 +172,8 @@ import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
|
172
172
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
173
173
|
import "@realsee/five/gltf-loader";
|
|
174
174
|
import "../../shared-utils/animationFrame/index.js";
|
|
175
|
-
const w = "Dnalogel-PanoTagPlugin",
|
|
176
|
-
class
|
|
175
|
+
const w = "Dnalogel-PanoTagPlugin", ki = (d) => `${w}--${d}`;
|
|
176
|
+
class Oi extends W {
|
|
177
177
|
constructor(e, t) {
|
|
178
178
|
super(e);
|
|
179
179
|
/** state */
|
|
@@ -209,7 +209,7 @@ class Fi extends W {
|
|
|
209
209
|
l(this, "updateVisible", () => {
|
|
210
210
|
const e = this.five.getCurrentState().mode;
|
|
211
211
|
this.tags.forEach((t) => {
|
|
212
|
-
|
|
212
|
+
M(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
|
|
213
213
|
}), this.setVisible(), this.updateRenderAllTags();
|
|
214
214
|
});
|
|
215
215
|
l(this, "handleFiveWantsMoveToPano", (e) => {
|
|
@@ -220,14 +220,14 @@ class Fi extends W {
|
|
|
220
220
|
}), this.updateTagContainerVisible(), this.updateRenderImagePlane(), this.updateRenderVideoPlane();
|
|
221
221
|
});
|
|
222
222
|
/**
|
|
223
|
-
* @description
|
|
223
|
+
* @description 走点/切换模型后显示
|
|
224
224
|
*/
|
|
225
225
|
// private temporaryShow({ withAnimation }: { withAnimation?: boolean } = { withAnimation: false }) {
|
|
226
226
|
// this.temporaryState.visible = true
|
|
227
227
|
// this.updateTagContainerVisible()
|
|
228
228
|
// }
|
|
229
229
|
/**
|
|
230
|
-
* @description
|
|
230
|
+
* @description 走点/切换模型时临时隐藏
|
|
231
231
|
*/
|
|
232
232
|
// private temporaryHide({ withAnimation }: { withAnimation?: boolean } = { withAnimation: false }) {
|
|
233
233
|
// this.temporaryState.visible = false
|
|
@@ -281,7 +281,7 @@ class Fi extends W {
|
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
/**
|
|
284
|
-
* @description
|
|
284
|
+
* @description 加载数据
|
|
285
285
|
*/
|
|
286
286
|
load(e, t) {
|
|
287
287
|
return c(this, null, function* () {
|
|
@@ -293,7 +293,7 @@ class Fi extends W {
|
|
|
293
293
|
const i = yield this.addTag(e.tagList, t);
|
|
294
294
|
if (this.store.visibleWithAnimation = void 0, this.debug)
|
|
295
295
|
try {
|
|
296
|
-
|
|
296
|
+
F(this.five, this.tags);
|
|
297
297
|
} catch (n) {
|
|
298
298
|
console.error(n);
|
|
299
299
|
}
|
|
@@ -301,7 +301,7 @@ class Fi extends W {
|
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
303
|
/**
|
|
304
|
-
* @description
|
|
304
|
+
* @description 添加标签
|
|
305
305
|
*/
|
|
306
306
|
addTag(e, t) {
|
|
307
307
|
return c(this, null, function* () {
|
|
@@ -318,11 +318,11 @@ class Fi extends W {
|
|
|
318
318
|
visible: void 0,
|
|
319
319
|
unfolded: !this.can("fold", o)
|
|
320
320
|
}, f.initialState),
|
|
321
|
-
hooks: new
|
|
321
|
+
hooks: new O(),
|
|
322
322
|
originPosition: o.position,
|
|
323
323
|
position: (() => {
|
|
324
324
|
const u = this.getTransformedPostion(o.position);
|
|
325
|
-
return Array.isArray(u) ? u.map((
|
|
325
|
+
return Array.isArray(u) ? u.map((I) => I.toArray()) : u.toArray();
|
|
326
326
|
})(),
|
|
327
327
|
initialConfig: r,
|
|
328
328
|
computedConfig: h,
|
|
@@ -332,7 +332,8 @@ class Fi extends W {
|
|
|
332
332
|
enable: () => this.changeEnabledById(o.id, !0),
|
|
333
333
|
disable: () => this.changeEnabledById(o.id, !1),
|
|
334
334
|
destroy: () => this.destroyTagById(o.id),
|
|
335
|
-
changeData: (u) => this.changeDataById(o.id, u)
|
|
335
|
+
changeData: (u) => this.changeDataById(o.id, u),
|
|
336
|
+
changePosition: (u) => this.changePositionById(o.id, u)
|
|
336
337
|
});
|
|
337
338
|
});
|
|
338
339
|
return s.forEach(N), this.tags.push(...s), this.tagsLengthWillUpdate = !0, J(this.five).then(() => c(this, null, function* () {
|
|
@@ -342,19 +343,19 @@ class Fi extends W {
|
|
|
342
343
|
});
|
|
343
344
|
}
|
|
344
345
|
/**
|
|
345
|
-
* @description
|
|
346
|
+
* @description 改变配置
|
|
346
347
|
*/
|
|
347
348
|
changeConfig(e, t = !0) {
|
|
348
349
|
t ? this.config = p({}, this.config, e) : this.config = e, this.updateTagConfig(), this.setVisible(), this.updateRenderAllTags();
|
|
349
350
|
}
|
|
350
351
|
/**
|
|
351
|
-
* @description
|
|
352
|
+
* @description 改变全局配置
|
|
352
353
|
*/
|
|
353
354
|
changeGlobalConfig(e, t = !0) {
|
|
354
355
|
t ? this.config.globalConfig = p({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig(), this.setVisible(), this.updateRenderAllTags();
|
|
355
356
|
}
|
|
356
357
|
/**
|
|
357
|
-
* @description
|
|
358
|
+
* @description 改变类型配置
|
|
358
359
|
*/
|
|
359
360
|
changeContentTypeConfig(e, t, i = !0) {
|
|
360
361
|
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = p({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig(), this.setVisible(), this.updateRenderAllTags();
|
|
@@ -394,7 +395,7 @@ class Fi extends W {
|
|
|
394
395
|
this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
|
|
395
396
|
}
|
|
396
397
|
/**
|
|
397
|
-
* @description
|
|
398
|
+
* @description 销毁
|
|
398
399
|
*/
|
|
399
400
|
dispose() {
|
|
400
401
|
var e, t, i, s, o, n;
|
|
@@ -421,14 +422,25 @@ class Fi extends W {
|
|
|
421
422
|
i && (i.enabled = t, this.updateRenderAllTags());
|
|
422
423
|
}
|
|
423
424
|
/**
|
|
424
|
-
* @description
|
|
425
|
+
* @description 修改3D标签normal
|
|
425
426
|
*/
|
|
426
427
|
changeTagNormalById(e, t) {
|
|
427
428
|
const i = this.getTagById(e);
|
|
428
|
-
i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal =
|
|
429
|
+
i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = P(t));
|
|
429
430
|
}
|
|
430
431
|
/**
|
|
431
|
-
|
|
432
|
+
* @description 改变data
|
|
433
|
+
*/
|
|
434
|
+
changePositionById(e, t) {
|
|
435
|
+
const i = this.getTagById(e);
|
|
436
|
+
if (!i)
|
|
437
|
+
return;
|
|
438
|
+
i.originPosition = t, i.position = t, this.clearCacheById(e);
|
|
439
|
+
const s = this.getVisible(i);
|
|
440
|
+
i.state && (i.state.visible = s), i.stickType === "2DPoint" || i.stickType === "3DPoint" ? this.updatePointTagPosition() : this.updateRenderAllTags();
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* @description 改变data
|
|
432
444
|
*/
|
|
433
445
|
changeDataById(e, t, i = !0) {
|
|
434
446
|
const s = this.getTagById(e);
|
|
@@ -436,21 +448,21 @@ class Fi extends W {
|
|
|
436
448
|
s && (s.data && (o = !0), i ? s.data = p(s.data, t) : s.data = g(g({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags(), o && s.hooks.emit("dataChanged", s.data));
|
|
437
449
|
}
|
|
438
450
|
/**
|
|
439
|
-
* @description
|
|
451
|
+
* @description 改变tag的stickType
|
|
440
452
|
*/
|
|
441
453
|
changeStickTypeById(e, t, i = !0) {
|
|
442
454
|
this.changeTagById(e, t, i);
|
|
443
455
|
}
|
|
444
456
|
/**
|
|
445
|
-
* @description
|
|
457
|
+
* @description 改变tag任意属性
|
|
446
458
|
*/
|
|
447
459
|
changeTagById(e, t, i = !0) {
|
|
448
460
|
const s = this.getTagById(e);
|
|
449
461
|
let o = !1;
|
|
450
|
-
t && (this.tagsLengthWillUpdate = !0, t.data && (o = !0), i ? p(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal =
|
|
462
|
+
t && (this.tagsLengthWillUpdate = !0, t.data && (o = !0), i ? p(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = P(t.normal)), this.clearCacheById(e), this.setVisible(), this.updateRenderAllTags(), this.clearUnusedPanelTag(), o && s.hooks.emit("dataChanged", s.data));
|
|
451
463
|
}
|
|
452
464
|
/**
|
|
453
|
-
* @description
|
|
465
|
+
* @description 销毁tag
|
|
454
466
|
*/
|
|
455
467
|
destroyTagById(e) {
|
|
456
468
|
(Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
@@ -459,7 +471,7 @@ class Fi extends W {
|
|
|
459
471
|
}), this.tagsLengthWillUpdate = !0, this.updateRenderAllTags(), this.updateDomView();
|
|
460
472
|
}
|
|
461
473
|
/**
|
|
462
|
-
* @description
|
|
474
|
+
* @description 设置 visible 和 unfolded
|
|
463
475
|
*/
|
|
464
476
|
setVisibleAndUnfolded() {
|
|
465
477
|
return c(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
|
|
@@ -490,12 +502,12 @@ class Fi extends W {
|
|
|
490
502
|
}), this.five.needsRender = !0;
|
|
491
503
|
}
|
|
492
504
|
/**
|
|
493
|
-
* @description
|
|
505
|
+
* @description 添加 cameraUpdate, panoArrived 等事件监听
|
|
494
506
|
*/
|
|
495
507
|
addEventListener() {
|
|
496
508
|
const { five: e, hooks: t } = this;
|
|
497
509
|
let i = !1;
|
|
498
|
-
const s =
|
|
510
|
+
const s = D(() => {
|
|
499
511
|
i || (i = !0, e.ready().then(() => {
|
|
500
512
|
this.onFiveEveryReady(), i = !1;
|
|
501
513
|
}));
|
|
@@ -520,7 +532,7 @@ class Fi extends W {
|
|
|
520
532
|
}, i = () => {
|
|
521
533
|
this.state.enabled && this.hide();
|
|
522
534
|
}, { observe: s, unobserve: o } = S(
|
|
523
|
-
|
|
535
|
+
D(() => {
|
|
524
536
|
this.store.resizeObserverDisposer && i();
|
|
525
537
|
}, 500),
|
|
526
538
|
e
|
|
@@ -554,7 +566,7 @@ class Fi extends W {
|
|
|
554
566
|
}
|
|
555
567
|
}
|
|
556
568
|
export {
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
569
|
+
Oi as PanoTagPluginController,
|
|
570
|
+
Oi as default,
|
|
571
|
+
ki as pluginFlag
|
|
560
572
|
};
|
|
@@ -22,13 +22,13 @@ export type Tag<C extends TagContentType = TagContentType, S extends StickType =
|
|
|
22
22
|
/** 唯一标识 */
|
|
23
23
|
id?: TagId;
|
|
24
24
|
/**
|
|
25
|
-
* @description
|
|
25
|
+
* @description 附着方式
|
|
26
26
|
* @type {StickType}
|
|
27
27
|
* @default '2DPoint'
|
|
28
28
|
*/
|
|
29
29
|
stickType?: S;
|
|
30
30
|
/**
|
|
31
|
-
* @description
|
|
31
|
+
* @description 内容类型,根据内容类型展示对应UI
|
|
32
32
|
* @type {TagContentType}
|
|
33
33
|
*/
|
|
34
34
|
contentType: LiteralUnion<C, string>;
|
|
@@ -8,7 +8,7 @@ import type { Vector3 } from 'three';
|
|
|
8
8
|
type TagVisibleMode = Mode | Mode[] | 'PanoramaLike' | 'ModelLike' | 'all';
|
|
9
9
|
export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
10
10
|
/**
|
|
11
|
-
* @description
|
|
11
|
+
* @description 显示/隐藏相关配置
|
|
12
12
|
*/
|
|
13
13
|
visibleConfig?: {
|
|
14
14
|
/**
|
|
@@ -101,12 +101,12 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
101
101
|
*/
|
|
102
102
|
distanceAccuracy?: number;
|
|
103
103
|
/**
|
|
104
|
-
* @description
|
|
104
|
+
* @description 碰撞检测的点
|
|
105
105
|
* @default 'center'
|
|
106
106
|
*/
|
|
107
107
|
checkPoints?: 'center' | 'corner' | Vector3[];
|
|
108
108
|
/**
|
|
109
|
-
* @description
|
|
109
|
+
* @description 碰撞检测策略,多少点通过检测则认为碰撞通过
|
|
110
110
|
* @default 1
|
|
111
111
|
*/
|
|
112
112
|
needPassed?: number;
|
|
@@ -119,11 +119,11 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
119
119
|
angleRange?: MinMax;
|
|
120
120
|
} | ConfigFunction;
|
|
121
121
|
/**
|
|
122
|
-
* @description
|
|
122
|
+
* @description 展开/收起相关配置
|
|
123
123
|
*/
|
|
124
124
|
unfoldedConfig?: {
|
|
125
125
|
/**
|
|
126
|
-
* @description
|
|
126
|
+
* @description 保持展开/收起,设置后unfoldedConfig下所有其他配置都不生效
|
|
127
127
|
* @default null
|
|
128
128
|
*/
|
|
129
129
|
keep?: 'unfolded' | 'folded' | null;
|
|
@@ -165,12 +165,12 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
165
165
|
/** 自动展开:最近标签自动展开 */
|
|
166
166
|
strategy?: 'MinimumDistance';
|
|
167
167
|
/**
|
|
168
|
-
* @description
|
|
168
|
+
* @description 展开的最大数量
|
|
169
169
|
* @default 1
|
|
170
170
|
*/
|
|
171
171
|
maxNumber?: number;
|
|
172
172
|
/**
|
|
173
|
-
* @description
|
|
173
|
+
* @description 展开的最大距离
|
|
174
174
|
* @default 无限制
|
|
175
175
|
*/
|
|
176
176
|
distance?: MinMax;
|
|
@@ -188,12 +188,12 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
188
188
|
unfolded?: boolean;
|
|
189
189
|
};
|
|
190
190
|
/**
|
|
191
|
-
* @description
|
|
191
|
+
* @description 标签的默认数据,会将 tag.data 深度合并进来
|
|
192
192
|
* @code `tag.data = ObjectAssignDeep(initialData, tag.data)`
|
|
193
193
|
*/
|
|
194
194
|
initialData?: PartialObjectDeep<ContentTypeMap[C]> & {
|
|
195
195
|
/**
|
|
196
|
-
* @description
|
|
196
|
+
* @description 类似 css 的 !important,会覆盖掉 tag.data 中对应的数据
|
|
197
197
|
* @code
|
|
198
198
|
* ```typescript
|
|
199
199
|
* if (initialData.important) {
|
|
@@ -206,19 +206,19 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
206
206
|
important?: boolean;
|
|
207
207
|
};
|
|
208
208
|
/**
|
|
209
|
-
* @description
|
|
209
|
+
* @description 内部使用 css3DRenderer 渲染的标签可以使用此配置来设置 css3DRenderer 相关参数
|
|
210
210
|
*/
|
|
211
211
|
tag3DConfig?: Create3DDomContainerParamsType['config'];
|
|
212
212
|
modelConfig?: {
|
|
213
213
|
autoLookAtEnabled?: boolean;
|
|
214
214
|
};
|
|
215
215
|
/**
|
|
216
|
-
* @description
|
|
216
|
+
* @description 当图片为一张时可以选择通过Mesh渲染
|
|
217
217
|
* @default 'Dom'
|
|
218
218
|
*/
|
|
219
219
|
renderType?: 'Mesh' | 'Dom';
|
|
220
220
|
/**
|
|
221
|
-
* @description
|
|
221
|
+
* @description 是否可以点击
|
|
222
222
|
* @default true
|
|
223
223
|
*/
|
|
224
224
|
clickable?: boolean;
|
|
@@ -4,7 +4,7 @@ export type MediaData = {
|
|
|
4
4
|
type: 'Image';
|
|
5
5
|
url: string;
|
|
6
6
|
/**
|
|
7
|
-
* @description
|
|
7
|
+
* @description 缩略图
|
|
8
8
|
*/
|
|
9
9
|
thumbnail?: string;
|
|
10
10
|
} | {
|
|
@@ -16,7 +16,7 @@ export type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
|
16
16
|
type Object = Record<string | number | symbol, any>;
|
|
17
17
|
export type TagContentType = keyof typeof ContentType;
|
|
18
18
|
/**
|
|
19
|
-
* @description
|
|
19
|
+
* @description 标签数据
|
|
20
20
|
*/
|
|
21
21
|
export interface ContentTypeMapInterface {
|
|
22
22
|
/** 文字标签 */
|
|
@@ -27,12 +27,12 @@ export interface ContentTypeMapInterface {
|
|
|
27
27
|
title?: string;
|
|
28
28
|
description?: string;
|
|
29
29
|
/**
|
|
30
|
-
* @description
|
|
30
|
+
* @description description 最大行数, null不限制
|
|
31
31
|
* @default: null
|
|
32
32
|
*/
|
|
33
33
|
descriptionMaxRows?: number | null;
|
|
34
34
|
/**
|
|
35
|
-
* @description
|
|
35
|
+
* @description title 最大行数, null不限制
|
|
36
36
|
* @default: null
|
|
37
37
|
*/
|
|
38
38
|
titleMaxRows?: number | null;
|
|
@@ -52,7 +52,7 @@ export interface ContentTypeMapInterface {
|
|
|
52
52
|
/** @deprecated: 'text' replace by title */
|
|
53
53
|
text?: string;
|
|
54
54
|
title?: string;
|
|
55
|
-
/** @description
|
|
55
|
+
/** @description 'line' 是旧的那种有一条线的,默认为'line', 'plane' 是新的那种圆形的 */
|
|
56
56
|
appearance?: 'line' | 'plane';
|
|
57
57
|
theme?: 'dark' | 'light';
|
|
58
58
|
audioUrl: string;
|
|
@@ -57,5 +57,6 @@ export type TagInstance<C extends TagContentType = TagContentType, S extends Sti
|
|
|
57
57
|
disable: () => void;
|
|
58
58
|
destroy: () => void;
|
|
59
59
|
changeData: (data: PartialObjectDeep<TagInstance<C>['data']>) => void;
|
|
60
|
+
changePosition: (position: TagInstance<C>['position']) => void;
|
|
60
61
|
};
|
|
61
62
|
export {};
|
|
@@ -69,7 +69,7 @@ export type ContentTypeConfigKeySplit = [StickType | 'Any', TagContentType | 'An
|
|
|
69
69
|
type FiveModeType = `[${Exclude<Mode, 'DepthPanorama'> | 'PanoramaLike' | 'ModelLike'}]`;
|
|
70
70
|
export type ContentTypeConfigKey = FiveModeType | `${FiveModeType}-${_ContentTypeConfigKey}` | _ContentTypeConfigKey;
|
|
71
71
|
/**
|
|
72
|
-
* @description
|
|
72
|
+
* @description 从 ContentTypeConfigKey 中提取 ContentTypeConfigKey 对应的 TagContentType 是啥
|
|
73
73
|
*/
|
|
74
74
|
export type PickTagContentTypeInContentTypeConfigKey<T> = T extends FiveModeType ? any : T extends `${FiveModeType}-${infer P extends _ContentTypeConfigKey}` ? PickTagContentTypeInContentTypeConfigKey<P> : T extends `${any}-${infer C}` ? C : T extends TagContentType ? T : any;
|
|
75
75
|
export type TagConfigByKey<T> = PickTagContentTypeInContentTypeConfigKey<T> extends TagContentType ? TagConfig<PickTagContentTypeInContentTypeConfigKey<T>> : TagConfig<any>;
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function binarySearchFirstBig(getValueByIndex: (index: number) => number, indexRange: [number, number], target: number): number;
|
|
8
8
|
/**
|
|
9
|
-
* @description
|
|
9
|
+
* @description 查找第一个小于前一个数字的值
|
|
10
10
|
*/
|
|
11
11
|
export declare function searchFirstValueSmallThanLastValue(getValueByIndex: (index: number) => number, indexRange: [number, number]): number;
|
|
@@ -37,17 +37,17 @@ Config extends BaseObjectConfig = BaseObjectConfig> extends IObject3D {
|
|
|
37
37
|
readonly isSculptObject = true;
|
|
38
38
|
draggable: boolean;
|
|
39
39
|
/**
|
|
40
|
-
* @description
|
|
40
|
+
* @description 是否被选中
|
|
41
41
|
*/
|
|
42
42
|
selected: boolean;
|
|
43
43
|
/**
|
|
44
|
-
* @description
|
|
44
|
+
* @description 配置
|
|
45
45
|
*/
|
|
46
46
|
config: Config;
|
|
47
47
|
editor: BaseEditor;
|
|
48
48
|
abstract type: string;
|
|
49
49
|
/**
|
|
50
|
-
* @description
|
|
50
|
+
* @description 物体导出数据
|
|
51
51
|
*/
|
|
52
52
|
abstract get data(): ExportData;
|
|
53
53
|
protected get baseData(): {
|
|
@@ -58,9 +58,21 @@ Config extends BaseObjectConfig = BaseObjectConfig> extends IObject3D {
|
|
|
58
58
|
constructor(data?: Partial<ImportData>, config?: Partial<Config>);
|
|
59
59
|
on: <T extends keyof FiveDomEventMap>(event: T, callback: FiveDomEventMap[T], config?: EventHandlerConfig) => void;
|
|
60
60
|
off: (event?: keyof FiveDomEventMap, callback?: (e: import("../../../shared-utils/five/FiveDomEvents").FiveDomEvent) => any, ...args: any[]) => void;
|
|
61
|
+
/**
|
|
62
|
+
* @description 停止创建当前物体,等同于`esc`
|
|
63
|
+
*/
|
|
61
64
|
stopCreating(): void;
|
|
65
|
+
/**
|
|
66
|
+
* @description 从场景中删除当前物体
|
|
67
|
+
*/
|
|
62
68
|
delete(): void;
|
|
69
|
+
/**
|
|
70
|
+
* @description 高亮当前物体
|
|
71
|
+
*/
|
|
63
72
|
highlight(): void;
|
|
73
|
+
/**
|
|
74
|
+
* @description 取消高亮当前物体
|
|
75
|
+
*/
|
|
64
76
|
unhighlight(): void;
|
|
65
77
|
protected applyObjectMatrixWorld<P extends THREE.Vector3 | THREE.Vector3[]>(point: P): P;
|
|
66
78
|
protected applyObjectQuaternion<P extends THREE.Vector3 | THREE.Vector3[]>(point: P): P;
|
|
@@ -21,11 +21,11 @@ class x extends m {
|
|
|
21
21
|
r(this, "isSculptObject", !0);
|
|
22
22
|
r(this, "draggable");
|
|
23
23
|
/**
|
|
24
|
-
* @description
|
|
24
|
+
* @description 是否被选中
|
|
25
25
|
*/
|
|
26
26
|
r(this, "selected");
|
|
27
27
|
/**
|
|
28
|
-
* @description
|
|
28
|
+
* @description 配置
|
|
29
29
|
*/
|
|
30
30
|
r(this, "config");
|
|
31
31
|
r(this, "editor");
|
|
@@ -53,15 +53,27 @@ class x extends m {
|
|
|
53
53
|
get pointSelector() {
|
|
54
54
|
return o.modules.pointSelector;
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* @description 停止创建当前物体,等同于`esc`
|
|
58
|
+
*/
|
|
56
59
|
stopCreating() {
|
|
57
60
|
o.modules.pointSelector.disable();
|
|
58
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* @description 从场景中删除当前物体
|
|
64
|
+
*/
|
|
59
65
|
delete() {
|
|
60
66
|
var e;
|
|
61
67
|
this.removeFromParent(), (e = this.editor) == null || e.disable();
|
|
62
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* @description 高亮当前物体
|
|
71
|
+
*/
|
|
63
72
|
highlight() {
|
|
64
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* @description 取消高亮当前物体
|
|
76
|
+
*/
|
|
65
77
|
unhighlight() {
|
|
66
78
|
}
|
|
67
79
|
applyObjectMatrixWorld(e) {
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as n from "three";
|
|
2
2
|
function m(o, r) {
|
|
3
3
|
const { x: a, y: s } = r, e = a * 2 - 1, c = s * 2 - 1, t = new n.Raycaster();
|
|
4
|
-
return t.setFromCamera({ x: e, y: c }, o.camera), t.params.Points.threshold = 0.
|
|
4
|
+
return t.setFromCamera({ x: e, y: c }, o.camera), t.params.Points.threshold = 0.02, t;
|
|
5
5
|
}
|
|
6
6
|
export {
|
|
7
7
|
m as getRaycasterByNdcPosition
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.28.1",
|
|
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",
|