@realsee/dnalogel 3.35.0-dev.0 → 3.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/ModelMakerPlugin/Controller.d.ts +1 -1
- package/dist/ModelMakerPlugin/item/baseItem.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/ViewController.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +2 -1
- package/dist/PanoMeasurePlugin/typings/data.d.ts +3 -0
- package/dist/PanoVideoPlugin/Controller.d.ts +3 -1
- package/dist/PanoVideoPlugin/typings.d.ts +2 -2
- package/dist/index.cjs.js +21 -21
- package/dist/index.js +111 -100
- package/dist/index.umd.js +23 -23
- package/dist/shared-utils/tag.d.ts +4 -4
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +44 -34
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +44 -34
- package/docs/classes/CSS3DRender.html +43 -33
- package/docs/classes/GuideLineItem.GuideLineItem.html +31 -21
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +55 -45
- package/docs/classes/{Magnifier.html → ModelMakerPluginInstance.html} +203 -111
- package/docs/classes/ModelRoomLabelController.html +23 -13
- package/docs/classes/MoveController.html +43 -33
- package/docs/classes/Object3DHelperController.html +39 -47
- package/docs/classes/PaintBrush.html +27 -17
- package/docs/classes/PanoMeasurePluginLine.html +56 -36
- package/docs/classes/PanoMeasurePluginModel.html +42 -32
- package/docs/classes/PanoMeasurePluginPoint.html +23 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +61 -34
- package/docs/classes/PanoTagPluginController.html +234 -126
- package/docs/classes/Sculpt.html +852 -0
- package/docs/classes/Util.BetterTween.html +27 -13
- package/docs/classes/Util.Interval.html +29 -15
- package/docs/classes/Util.LineSegments.html +25 -11
- package/docs/classes/Util.Magnifier.html +93 -60
- package/docs/classes/Util.Object3D.html +26 -12
- package/docs/classes/Util.PointDomHelper.html +28 -14
- package/docs/classes/Util.PointHelper.html +28 -14
- package/docs/classes/Util.PointSelectorHelper.html +34 -20
- package/docs/classes/Util.Rectangle.html +30 -16
- package/docs/classes/WalkController.html +39 -29
- package/docs/enums/CameraMovementEffect.html +19 -9
- package/docs/enums/ContentType.html +33 -23
- package/docs/enums/DIRECTION.html +21 -11
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +21 -11
- package/docs/enums/DimensionType.html +19 -9
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +20 -10
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +21 -11
- package/docs/enums/PaintBrushTypeEnum.html +20 -10
- package/docs/enums/PointType.html +19 -9
- package/docs/enums/Rotation.html +20 -10
- package/docs/functions/AreaMakerPlugin.html +17 -7
- package/docs/functions/CSS3DRenderPlugin.html +17 -7
- package/docs/functions/CameraMovementPlugin.html +17 -7
- package/docs/functions/CruisePlugin.html +17 -7
- package/docs/functions/CurrentPanoImagePlugin.html +17 -7
- package/docs/functions/GuideLinePlugin.html +17 -7
- package/docs/functions/ItemLabelPlugin.html +17 -7
- package/docs/functions/MapviewFloorplanPlugin.html +17 -7
- package/docs/functions/ModelChassisCompassPlugin.html +17 -7
- package/docs/functions/ModelEntryDoorGuidePlugin.html +17 -7
- package/docs/functions/ModelFloorplanPlugin.html +17 -7
- package/docs/functions/ModelItemLabelPlugin.html +17 -7
- package/docs/functions/ModelMakerPlugin.html +303 -0
- package/docs/functions/ModelRoomLabelPlugin.html +17 -7
- package/docs/functions/ModelTVVideoPlugin.html +17 -7
- package/docs/functions/ModelViewPlugin.html +17 -7
- package/docs/functions/MovePlugin.html +18 -8
- package/docs/functions/Object3DHelperPlugin.html +17 -7
- package/docs/functions/PanoCompassPlugin.html +17 -7
- package/docs/functions/PanoCursorRaycasterPlugin.html +17 -7
- package/docs/functions/PanoDoorLabelPlugin.html +17 -7
- package/docs/functions/PanoFloorplanRadarPlugin.html +17 -7
- package/docs/functions/PanoMeasurePlugin.html +17 -7
- package/docs/functions/PanoRulerPlugin.html +17 -7
- package/docs/functions/PanoRulerProPlugin.html +17 -7
- package/docs/functions/PanoSpatialTagPlugin.html +17 -7
- package/docs/functions/PanoTagPlugin.html +20 -8
- package/docs/functions/PanoVideoPlugin.html +17 -7
- package/docs/functions/PipelinePlugin.html +17 -7
- package/docs/functions/SculptPlugin.html +306 -0
- package/docs/functions/TopviewFloorplanPlugin.html +17 -7
- package/docs/functions/Util.absoluteUrl.html +22 -8
- package/docs/functions/Util.blink.html +351 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +22 -8
- package/docs/functions/Util.equal.html +22 -8
- package/docs/functions/Util.getCoordsFromClient.html +22 -8
- package/docs/functions/Util.getCoordsFromElement.html +22 -8
- package/docs/functions/Util.getFrameTime.html +22 -8
- package/docs/functions/Util.getIntersectFromRelativePosition.html +29 -10
- package/docs/functions/Util.getRaycasterFromFivePointer.html +22 -8
- package/docs/functions/Util.isAbsoluteURL.html +22 -8
- package/docs/functions/Util.isModelLike.html +22 -8
- package/docs/functions/Util.isNil.html +22 -8
- package/docs/functions/Util.isPanoramaLike.html +22 -8
- package/docs/functions/Util.nextFrame.html +22 -8
- package/docs/functions/Util.notNil.html +22 -8
- package/docs/functions/Util.reblink.html +349 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +22 -8
- package/docs/functions/Util.tweenProgress.html +22 -8
- package/docs/functions/Util.uuid.html +22 -8
- package/docs/functions/pluginFlag.html +17 -7
- package/docs/index.html +18 -7
- package/docs/interfaces/AddTagConfig.html +18 -8
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +17 -7
- package/docs/interfaces/AreaMakerPluginType.Config.html +17 -7
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +30 -20
- package/docs/interfaces/AreaMakerPluginType.Params.html +18 -8
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +20 -10
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +19 -9
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +17 -7
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +17 -7
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +17 -7
- package/docs/interfaces/AreaMakerPluginType.State.html +19 -9
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +23 -13
- package/docs/interfaces/CSS3DRenderPluginState.html +20 -10
- package/docs/interfaces/CameraMovementPluginExportType.html +19 -9
- package/docs/interfaces/ContentTypeMapInterface.html +773 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +21 -10
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +24 -13
- package/docs/interfaces/CruisePluginTypes.EventMap.html +33 -22
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +352 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +39 -23
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +30 -18
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +30 -18
- package/docs/interfaces/CruisePluginTypes.PluginData.html +41 -30
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +18 -7
- package/docs/interfaces/CruisePluginTypes.PluginState.html +25 -14
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +23 -13
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +24 -14
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +19 -9
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +18 -8
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +20 -10
- package/docs/interfaces/EventMap.html +27 -17
- package/docs/interfaces/FloorplanBounding.html +20 -10
- package/docs/interfaces/FloorplanData.html +22 -12
- package/docs/interfaces/FloorplanEntrance.html +23 -13
- package/docs/interfaces/FloorplanExtraObject.html +22 -12
- package/docs/interfaces/FloorplanExtraObject3D.html +20 -10
- package/docs/interfaces/FloorplanFloorData.html +21 -11
- package/docs/interfaces/FloorplanImagePosition.html +19 -9
- package/docs/interfaces/FloorplanObserver.html +21 -11
- package/docs/interfaces/FloorplanOutlineItem.html +21 -11
- package/docs/interfaces/FloorplanPosition.html +19 -9
- package/docs/interfaces/FloorplanRoomItem.html +26 -16
- package/docs/interfaces/FloorplanRoomLabelItem.html +19 -9
- package/docs/interfaces/FloorplanServerBounding.html +20 -10
- package/docs/interfaces/FloorplanServerComputedData.html +22 -12
- package/docs/interfaces/FloorplanServerData.html +19 -9
- package/docs/interfaces/FloorplanServerDoorItem.html +22 -12
- package/docs/interfaces/FloorplanServerDoorPosition.html +20 -10
- package/docs/interfaces/FloorplanServerEntrance.html +23 -13
- package/docs/interfaces/FloorplanServerFloorData.html +21 -11
- package/docs/interfaces/FloorplanServerImagePosition.html +19 -9
- package/docs/interfaces/FloorplanServerObserver.html +21 -11
- package/docs/interfaces/FloorplanServerOutlineItem.html +21 -11
- package/docs/interfaces/FloorplanServerPosition.html +19 -9
- package/docs/interfaces/FloorplanServerRoomItem.html +27 -17
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +19 -9
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +20 -10
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +21 -11
- package/docs/interfaces/GuideLinePluginType.EventMap.html +24 -14
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +19 -9
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +17 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +26 -16
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +17 -7
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +19 -9
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +32 -22
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +18 -8
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +33 -23
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +16 -6
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +17 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +19 -9
- package/docs/interfaces/GuideLinePluginType.Route.html +22 -12
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +20 -10
- package/docs/interfaces/HelperOffset.html +20 -10
- package/docs/interfaces/ImagePlaneGroup.html +18 -8
- package/docs/interfaces/ItemLabelPluginData.html +18 -8
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +23 -13
- package/docs/interfaces/ItemLabelPluginParametersType.html +21 -11
- package/docs/interfaces/MinMax.html +19 -9
- package/docs/interfaces/ModelChassisCompassPluginData.html +19 -9
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +20 -10
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +19 -9
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +20 -10
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +20 -10
- package/docs/interfaces/ModelItemLabelPluginData.html +18 -8
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +23 -13
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +19 -9
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +556 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +349 -0
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +391 -0
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +332 -0
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +401 -0
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +381 -0
- package/docs/interfaces/ModelMakerPluginType.State.html +364 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +18 -8
- package/docs/interfaces/ModelTVVideoPluginData.html +21 -11
- package/docs/interfaces/ModelTVVideoPluginExportType.html +20 -10
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +18 -8
- package/docs/interfaces/ModelViewPluginExportType.html +23 -13
- package/docs/interfaces/Object3DHelperState.html +20 -10
- package/docs/interfaces/ObjectHelperControllers.html +22 -12
- package/docs/interfaces/PaintBrushAction.html +24 -14
- package/docs/interfaces/PaintBrushConfigs.html +24 -14
- package/docs/interfaces/PaintBrushState.html +22 -12
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +22 -12
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +17 -7
- package/docs/interfaces/PanoMeasureParameterType.html +28 -18
- package/docs/interfaces/PanoMeasurePluginLineJson.html +20 -10
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +19 -9
- package/docs/interfaces/PanoMeasurePluginPointJson.html +19 -9
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +30 -10
- package/docs/interfaces/PanoRulerPluginExportType.html +22 -12
- package/docs/interfaces/PanoRulerPluginOptions.html +19 -9
- package/docs/interfaces/PanoRulerPluginParameterType.html +20 -10
- package/docs/interfaces/PanoRulerProPluginExportType.html +21 -11
- package/docs/interfaces/PanoRulerProPluginOptions.html +19 -9
- package/docs/interfaces/PanoRulerProPluginParameterType.html +19 -9
- package/docs/interfaces/PanoRulerProPluginState.html +20 -10
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +17 -7
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +17 -7
- package/docs/interfaces/PanoSpatialTagPluginData.html +23 -13
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +22 -12
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +25 -15
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +22 -12
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +25 -15
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +23 -13
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +22 -12
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +18 -8
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +20 -10
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +18 -8
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +78 -18
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +18 -8
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +20 -10
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +22 -12
- package/docs/interfaces/Point.html +20 -10
- package/docs/interfaces/Room.html +21 -11
- package/docs/interfaces/RoomInfo.html +19 -9
- package/docs/interfaces/RoomLabel.html +26 -16
- package/docs/interfaces/RoomRules.html +17 -7
- package/docs/interfaces/Rooms.html +17 -7
- package/docs/interfaces/Scissor.html +21 -11
- package/docs/interfaces/State.html +20 -10
- package/docs/interfaces/TagCacheInterface.html +24 -14
- package/docs/interfaces/TagConfig.html +65 -49
- package/docs/interfaces/TagGLTFObjectGroup.html +18 -8
- package/docs/interfaces/TagIconUrl.html +24 -14
- package/docs/interfaces/TagObjectGroup.html +18 -8
- package/docs/interfaces/TagStyle.html +18 -8
- package/docs/interfaces/Tags.html +61 -437
- package/docs/interfaces/TemporaryState.html +18 -8
- package/docs/interfaces/Util.BlinkAnimeOptions.html +380 -0
- package/docs/interfaces/Util.MagnifierParameter.html +43 -24
- package/docs/interfaces/Util.MouseGroupParameter.html +25 -11
- package/docs/interfaces/Util.PointIntersection.html +33 -12
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +387 -0
- package/docs/modules/AreaMakerPluginType.html +16 -6
- package/docs/modules/CruisePluginTypes.html +18 -6
- package/docs/modules/CurrentPanoImagePluginType.html +17 -7
- package/docs/modules/GuideLineItem.html +17 -7
- package/docs/modules/GuideLineModeItem.html +17 -7
- package/docs/modules/GuideLinePluginType.html +16 -6
- package/docs/modules/ModelMakerPluginType.html +339 -0
- package/docs/modules/PanoVideoPluginType.html +17 -7
- package/docs/modules/SculptData.html +318 -0
- package/docs/modules/Util.html +26 -8
- package/docs/modules.html +34 -11
- package/docs/types/AddObject3DHelperConfig.html +315 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +16 -6
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +16 -6
- package/docs/types/AreaMakerPluginType.PluginData.html +16 -6
- package/docs/types/AreaMakerPluginType.ServerData.html +16 -6
- package/docs/types/ArrayPosition.html +17 -7
- package/docs/types/AudioAppearance.html +17 -7
- package/docs/types/CSS3DRenderExportType.html +17 -7
- package/docs/types/CSS3DRenderPluginExportType.html +17 -7
- package/docs/types/CSS3DRenderPluginParameterType.html +17 -7
- package/docs/types/ClassFunctionParameters.html +17 -7
- package/docs/types/Color.html +17 -7
- package/docs/types/ContentTypeConfigKey.html +17 -7
- package/docs/types/ContentTypeConfigKeySplit.html +18 -8
- package/docs/types/ContentTypeMap.html +17 -7
- package/docs/types/Create3DDomContainerReturnType.html +17 -7
- package/docs/types/Create3DElementReturnType.html +17 -7
- package/docs/types/CruisePluginExportType.html +17 -7
- package/docs/types/CruisePluginTypes.CruiseData.html +17 -6
- package/docs/types/CruisePluginTypes.MoveEffect.html +17 -6
- package/docs/types/CurrentPanoImagePluginExportType.html +17 -7
- package/docs/types/DeprecatedMediaPlaneProperty.html +17 -7
- package/docs/types/DeprecatedTagProperty.html +17 -7
- package/docs/types/Direction-1.html +17 -7
- package/docs/types/Direction4.html +17 -7
- package/docs/types/ElementRenderer.html +17 -7
- package/docs/types/FloorplanRuleLabels.html +17 -7
- package/docs/types/FloorplanServerRuleLabels.html +17 -7
- package/docs/types/GuideLinePluginExportType.html +17 -7
- package/docs/types/GuideLinePluginType.GuideLineItem.html +18 -8
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +16 -6
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +16 -6
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +16 -6
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +16 -6
- package/docs/types/GuideLinePluginType.PathItem.html +16 -6
- package/docs/types/GuideLinePluginType.PluginData.html +16 -6
- package/docs/types/HelperEventMap.html +17 -7
- package/docs/types/InternalHelperEventMap.html +29 -11
- package/docs/types/LoadTagConfig.html +17 -7
- package/docs/types/MapviewFloorplanPluginParameterType.html +17 -7
- package/docs/types/MapviewFloorplanPluginReturnType.html +17 -7
- package/docs/types/MediaData.html +20 -10
- package/docs/types/MediaStore.html +17 -7
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +17 -7
- package/docs/types/ModelFloorplanPluginParameterType.html +17 -7
- package/docs/types/ModelFloorplanPluginReturnType.html +17 -7
- package/docs/types/ModelId.html +17 -7
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +329 -0
- package/docs/types/ModelMakerPluginType.ItemType.html +308 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +17 -7
- package/docs/types/ModelRoomLabelPluginReturnType.html +17 -7
- package/docs/types/MoveArgs.html +17 -7
- package/docs/types/MoveOpts.html +17 -7
- package/docs/types/Object3DHelperEventMap.html +17 -7
- package/docs/types/ObjectFit.html +17 -7
- package/docs/types/PaintBrushEventMap.html +17 -7
- package/docs/types/PanoCompassPluginData.html +17 -7
- package/docs/types/PanoCompassPluginExportType.html +17 -7
- package/docs/types/PanoCompassPluginParameterType.html +17 -7
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +17 -7
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +17 -7
- package/docs/types/PanoIndex.html +17 -7
- package/docs/types/PanoMeasurePluginEvent.html +17 -7
- package/docs/types/PanoMeasureReturnType.html +17 -7
- package/docs/types/PanoSpatialTagPluginId.html +17 -7
- package/docs/types/PanoTagPluginExportInterface.html +17 -7
- package/docs/types/PanoTagPluginParamsInterface.html +17 -7
- package/docs/types/PanoVideoPluginParameterType.html +17 -7
- package/docs/types/PanoVideoPluginReturnType.html +17 -7
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +22 -12
- package/docs/types/PipelinePluginParameterType.html +17 -7
- package/docs/types/PipelinePluginReturnType.html +17 -7
- package/docs/types/PlaneTag.html +17 -7
- package/docs/types/Point2DTag.html +17 -7
- package/docs/types/Point3DTag.html +17 -7
- package/docs/types/PointTag.html +17 -7
- package/docs/types/PointTagInstance.html +17 -7
- package/docs/types/Position.html +17 -7
- package/docs/types/{AudioTagTypeConfigKey.html → PositionFrom.html} +28 -10
- package/docs/types/RotateArgs.html +17 -7
- package/docs/types/RotateOpts.html +17 -7
- package/docs/types/RuleLabelsKey.html +17 -7
- package/docs/types/RuleLabelsValue.html +17 -7
- package/docs/types/ScaleCallback.html +314 -0
- package/docs/types/ScalePosition.html +303 -0
- package/docs/types/SculptData.BoxData.html +306 -0
- package/docs/types/SculptData.CircleData.html +306 -0
- package/docs/types/SculptData.CylinderData.html +306 -0
- package/docs/types/SculptData.PointData.html +306 -0
- package/docs/types/SculptData.PolygonData.html +306 -0
- package/docs/types/SculptData.PolylineData.html +306 -0
- package/docs/types/SculptData.PrismData.html +306 -0
- package/docs/types/SculptData.RectangleData.html +306 -0
- package/docs/types/StickType.html +17 -7
- package/docs/types/Tag.html +35 -13
- package/docs/types/Tag2D.html +17 -7
- package/docs/types/Tag3D.html +17 -7
- package/docs/types/TagConfigByKey.html +18 -8
- package/docs/types/TagContentType.html +17 -7
- package/docs/types/TagContentTypeMapping.html +17 -7
- package/docs/types/TagDimensionType.html +17 -7
- package/docs/types/TagElement.html +17 -7
- package/docs/types/TagEvents.html +38 -12
- package/docs/types/TagGLTFObject.html +17 -7
- package/docs/types/TagHooks.html +17 -7
- package/docs/types/TagId.html +17 -7
- package/docs/types/TagInstance.html +44 -8
- package/docs/types/TagPointType.html +17 -7
- package/docs/types/TagRendererMap.html +17 -7
- package/docs/types/TopviewFloorplanPluginParameterType.html +17 -7
- package/docs/types/TopviewFloorplanPluginReturnType.html +17 -7
- package/docs/types/WorkCode.html +17 -7
- package/docs/variables/FLOOR_TYPE_MAP.html +17 -7
- package/docs/variables/PLUGIN.html +17 -7
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +17 -7
- package/docs/variables/ROOM_TYPE_MAP.html +17 -7
- package/docs/variables/defaultGlobalConfig.html +17 -7
- package/docs/variables/itemLabelPluginServerParams.html +17 -7
- package/docs/variables/modelItemLabelPluginServerParams.html +17 -7
- package/docs/variables/modelRoomLabelPluginServerParams.html +17 -7
- package/libs/ModelMakerPlugin/Controller.d.ts +1 -1
- package/libs/ModelMakerPlugin/Controller.js +88 -86
- package/libs/ModelMakerPlugin/item/baseItem.d.ts +1 -1
- package/libs/ModelMakerPlugin/item/baseItem.js +23 -26
- package/libs/PanoMeasurePlugin/Controller/ViewController.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +49 -35
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Model/polyline.js +37 -35
- package/libs/PanoMeasurePlugin/typings/data.d.ts +3 -0
- package/libs/PanoRulerPlugin/Plugin.js +15 -15
- package/libs/PanoVideoPlugin/Controller.d.ts +3 -1
- package/libs/PanoVideoPlugin/Controller.js +41 -41
- package/libs/PanoVideoPlugin/typings.d.ts +2 -2
- package/libs/base/BasePlugin.js +3 -3
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +4 -4
- package/libs/shared-utils/tag.js +26 -30
- package/package.json +2 -2
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import type { Mode as FiveMode } from '@realsee/five';
|
|
1
2
|
export interface PolylineJson {
|
|
2
3
|
id: string;
|
|
3
4
|
lines: LineJson[];
|
|
4
5
|
/** 当前折线在哪个点位上可见,字段不存在时,不做限制 */
|
|
5
6
|
visiblePanoIndexes?: number[];
|
|
7
|
+
/** 当前折线在哪些 FiveMode 上可见,字段不存在时,不做限制 */
|
|
8
|
+
visibleFiveMode?: FiveMode[];
|
|
6
9
|
}
|
|
7
10
|
export interface LineJson {
|
|
8
11
|
id: string;
|
|
@@ -70,10 +70,7 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
|
|
|
70
70
|
`, o = document.createElement("div");
|
|
71
71
|
return o.setAttribute("class", "PanoRulerPlugin-rule"), o.setAttribute("data-name", r), o.setAttribute("style", "display: none"), o.innerHTML = c, o;
|
|
72
72
|
}, h = document.createElement("div");
|
|
73
|
-
h.setAttribute(
|
|
74
|
-
"style",
|
|
75
|
-
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
76
|
-
);
|
|
73
|
+
h.setAttribute("style", "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;");
|
|
77
74
|
const S = document.createElement("div");
|
|
78
75
|
S.innerHTML = ce, h.appendChild(S);
|
|
79
76
|
const l = {}, u = (r, a) => {
|
|
@@ -129,9 +126,7 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
|
|
|
129
126
|
const o = r || n.roomInfo, i = a || n.roomRules;
|
|
130
127
|
if (!o || !i)
|
|
131
128
|
throw new Error("标尺数据依赖不齐全!");
|
|
132
|
-
return e.loaded = !1, e.options = B(B({}, e.options), c || {}), t.model.loaded ? u(o, i) : yield new Promise(
|
|
133
|
-
(y) => t.once("modelLoaded", () => y(u(o, i)))
|
|
134
|
-
);
|
|
129
|
+
return e.loaded = !1, e.options = B(B({}, e.options), c || {}), t.model.loaded ? u(o, i) : yield new Promise((y) => t.once("modelLoaded", () => y(u(o, i))));
|
|
135
130
|
});
|
|
136
131
|
n.roomInfo && n.roomRules && x(n.roomInfo, n.roomRules);
|
|
137
132
|
const v = (r, a, c, o) => {
|
|
@@ -218,24 +213,29 @@ const ue = (t, n) => Math.sqrt(Math.pow(t.z - n.z, 2) + Math.pow(t.x - n.x, 2)),
|
|
|
218
213
|
continue;
|
|
219
214
|
}
|
|
220
215
|
const K = w.distanceTo(_);
|
|
221
|
-
if (_.clone().sub(
|
|
216
|
+
if (_.clone().sub(
|
|
217
|
+
_.clone().sub(w).divide(new L(2, 2, 2))
|
|
218
|
+
).distanceTo(y) / K > 8) {
|
|
222
219
|
g.style.display = "none";
|
|
223
220
|
continue;
|
|
224
221
|
}
|
|
225
222
|
const O = w.clone().project(c), R = (O.x + 1) / 2 * m, F = (-O.y + 1) / 2 * d, V = _.clone().project(c), N = (V.x + 1) / 2 * m, D = (-V.y + 1) / 2 * d, E = Math.sqrt(Math.pow(N - R, 2) + Math.pow(D - F, 2));
|
|
226
223
|
let H = E, z = 50;
|
|
227
|
-
const M = v(
|
|
228
|
-
x: ~~
|
|
229
|
-
|
|
230
|
-
|
|
224
|
+
const M = v(
|
|
225
|
+
{ x: ~~R, y: ~~F },
|
|
226
|
+
{
|
|
227
|
+
x: ~~N,
|
|
228
|
+
y: ~~D
|
|
229
|
+
},
|
|
230
|
+
m,
|
|
231
|
+
d
|
|
232
|
+
);
|
|
231
233
|
if (M && M.length === 1 && (f === w ? (H = Math.sqrt(Math.pow(M[0].x - R, 2) + Math.pow(M[0].y - F, 2)), z = H / E * 50) : f === _ && (H = Math.sqrt(Math.pow(M[0].x - N, 2) + Math.pow(M[0].y - D, 2)), z = 100 - H / E * 50)), M && M.length === 2) {
|
|
232
234
|
const G = {
|
|
233
235
|
x: (M[0].x + M[1].x) / 2,
|
|
234
236
|
y: (M[0].y + M[1].y) / 2
|
|
235
237
|
};
|
|
236
|
-
z = Math.sqrt(
|
|
237
|
-
Math.pow(G.x - R, 2) + Math.pow(G.y - F, 2)
|
|
238
|
-
) / E * 100;
|
|
238
|
+
z = Math.sqrt(Math.pow(G.x - R, 2) + Math.pow(G.y - F, 2)) / E * 100;
|
|
239
239
|
}
|
|
240
240
|
const te = (Math.PI / 2 - Math.atan2(N - R, F - D)) / Math.PI * 180, W = T.querySelector(".PanoRulerPlugin-rule-label"), U = W.children[0].clientWidth;
|
|
241
241
|
U >= E || U / 2 >= z / 100 * E || U / 2 >= (1 - z / 100) * E ? T.style.display = "none" : (T.style.display = "block", T.style.width = E + "px", T.style.left = R + "px", T.style.top = F + "px", T.style.transform = `rotate(${-te}deg)`, W.style.left = `${z}%`);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
2
|
import type { LoadParams, PluginEventMap, PluginState, PluginData, VideoItem } from './typings';
|
|
3
|
+
import { VideoMeshController } from './VideoMeshController';
|
|
3
4
|
import * as BasePlugin from '../base/BasePlugin';
|
|
4
5
|
export declare class PanoVideoPluginController extends BasePlugin.Controller<PluginState, PluginEventMap> {
|
|
5
6
|
/** 插件 State */
|
|
@@ -8,8 +9,9 @@ export declare class PanoVideoPluginController extends BasePlugin.Controller<Plu
|
|
|
8
9
|
};
|
|
9
10
|
/** 插件是否已被销毁 */
|
|
10
11
|
get disposed(): boolean;
|
|
12
|
+
controllerMap: Map<string, VideoMeshController>;
|
|
13
|
+
data?: PluginData;
|
|
11
14
|
private enabled;
|
|
12
|
-
private controllerMap;
|
|
13
15
|
private _disposed;
|
|
14
16
|
constructor(five: Five);
|
|
15
17
|
/** 加载点位视频数据,加载数据并不代表会加载点位视频。 */
|
|
@@ -2,15 +2,15 @@ var f = Object.defineProperty, m = Object.defineProperties;
|
|
|
2
2
|
var b = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var p = Object.getOwnPropertySymbols;
|
|
4
4
|
var M = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var l = (o, t,
|
|
6
|
-
for (var
|
|
7
|
-
M.call(t,
|
|
5
|
+
var l = (o, t, e) => t in o ? f(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, a = (o, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
M.call(t, e) && l(o, e, t[e]);
|
|
8
8
|
if (p)
|
|
9
|
-
for (var
|
|
10
|
-
W.call(t,
|
|
9
|
+
for (var e of p(t))
|
|
10
|
+
W.call(t, e) && l(o, e, t[e]);
|
|
11
11
|
return o;
|
|
12
12
|
}, d = (o, t) => m(o, b(t));
|
|
13
|
-
var s = (o, t,
|
|
13
|
+
var s = (o, t, e) => (l(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
14
|
import { VideoMeshController as c } from "./VideoMeshController.js";
|
|
15
15
|
import { Controller as _ } from "../base/BasePlugin.js";
|
|
16
16
|
import "./utils/shader.js";
|
|
@@ -39,12 +39,12 @@ import "../shared-utils/animationFrame/index.js";
|
|
|
39
39
|
import "./utils/index.js";
|
|
40
40
|
import "../shared-utils/url/absoluteUrl.js";
|
|
41
41
|
class T extends _ {
|
|
42
|
-
constructor(
|
|
43
|
-
super(
|
|
44
|
-
s(this, "enabled", !0);
|
|
42
|
+
constructor(e) {
|
|
43
|
+
super(e);
|
|
45
44
|
s(this, "controllerMap", /* @__PURE__ */ new Map());
|
|
45
|
+
s(this, "data");
|
|
46
|
+
s(this, "enabled", !0);
|
|
46
47
|
s(this, "_disposed", !1);
|
|
47
|
-
this.five = r;
|
|
48
48
|
}
|
|
49
49
|
/** 插件 State */
|
|
50
50
|
get state() {
|
|
@@ -57,11 +57,11 @@ class T extends _ {
|
|
|
57
57
|
return this._disposed;
|
|
58
58
|
}
|
|
59
59
|
/** 加载点位视频数据,加载数据并不代表会加载点位视频。 */
|
|
60
|
-
load(
|
|
60
|
+
load(e, r) {
|
|
61
61
|
var i;
|
|
62
62
|
if (this.disposed)
|
|
63
63
|
return this.logWarning("插件已被销毁");
|
|
64
|
-
typeof ((i =
|
|
64
|
+
typeof ((i = r == null ? void 0 : r.initialState) == null ? void 0 : i.enabled) != "undefined" && r.initialState.enabled !== this.enabled && (r.initialState.enabled ? this.enable() : this.disable()), e.list.forEach((n) => {
|
|
65
65
|
const u = n.pano_index, g = n.render_id;
|
|
66
66
|
n.video_list.forEach((h) => {
|
|
67
67
|
this.controllerMap.set(
|
|
@@ -73,41 +73,41 @@ class T extends _ {
|
|
|
73
73
|
}))
|
|
74
74
|
);
|
|
75
75
|
});
|
|
76
|
-
});
|
|
76
|
+
}), this.data = e, this.hooks.emit("dataLoaded", e);
|
|
77
77
|
}
|
|
78
78
|
/** 开启插件功能。 */
|
|
79
|
-
enable(
|
|
79
|
+
enable(e) {
|
|
80
80
|
var i;
|
|
81
81
|
if (this.disposed)
|
|
82
82
|
return this.logWarning("插件已被销毁");
|
|
83
83
|
if (this.enabled)
|
|
84
84
|
return;
|
|
85
85
|
this.enabled = !0, Array.from(this.controllerMap.values()).forEach((n) => n.enable());
|
|
86
|
-
const
|
|
87
|
-
this.hooks.emit("enable", { userAction:
|
|
86
|
+
const r = (i = e == null ? void 0 : e.userAction) != null ? i : !0;
|
|
87
|
+
this.hooks.emit("enable", { userAction: r });
|
|
88
88
|
}
|
|
89
89
|
/** 禁用插件功能。 */
|
|
90
|
-
disable(
|
|
90
|
+
disable(e) {
|
|
91
91
|
var i;
|
|
92
92
|
if (this.disposed)
|
|
93
93
|
return this.logWarning("插件已被销毁");
|
|
94
94
|
if (!this.enabled)
|
|
95
95
|
return;
|
|
96
96
|
this.enabled = !1, Array.from(this.controllerMap.values()).forEach((n) => n.disable());
|
|
97
|
-
const
|
|
98
|
-
this.hooks.emit("disable", { userAction:
|
|
97
|
+
const r = (i = e == null ? void 0 : e.userAction) != null ? i : !0;
|
|
98
|
+
this.hooks.emit("disable", { userAction: r });
|
|
99
99
|
}
|
|
100
100
|
/** 看向某个视频。
|
|
101
101
|
* - 会自动切换到全景模式。
|
|
102
102
|
* - 如果遇到不能自动播放的问题,需要放到用户交互事件中调用。
|
|
103
103
|
*/
|
|
104
|
-
lookAtVideoItemByRenderID(
|
|
104
|
+
lookAtVideoItemByRenderID(e) {
|
|
105
105
|
if (this.disposed)
|
|
106
106
|
return this.logWarning("插件已被销毁");
|
|
107
|
-
const
|
|
108
|
-
if (!
|
|
109
|
-
return this.logWarning(`ID 为 ${
|
|
110
|
-
|
|
107
|
+
const r = this.controllerMap.get(e);
|
|
108
|
+
if (!r)
|
|
109
|
+
return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
|
|
110
|
+
r.lookAtVideo();
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
113
|
* 取消静音。
|
|
@@ -125,26 +125,26 @@ class T extends _ {
|
|
|
125
125
|
* }}
|
|
126
126
|
* ```
|
|
127
127
|
*/
|
|
128
|
-
unmuteByRenderID(
|
|
128
|
+
unmuteByRenderID(e) {
|
|
129
129
|
if (this.disposed)
|
|
130
130
|
return this.logWarning("插件已被销毁");
|
|
131
|
-
const
|
|
132
|
-
if (!
|
|
133
|
-
return this.logWarning(`ID 为 ${
|
|
134
|
-
|
|
131
|
+
const r = this.controllerMap.get(e);
|
|
132
|
+
if (!r)
|
|
133
|
+
return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
|
|
134
|
+
r.unmute();
|
|
135
135
|
}
|
|
136
136
|
/** 为一个点位添加视频(可以是多条)。 */
|
|
137
|
-
add(
|
|
137
|
+
add(e, r) {
|
|
138
138
|
if (this.disposed)
|
|
139
139
|
return this.logWarning("插件已被销毁");
|
|
140
|
-
|
|
140
|
+
r.forEach((i) => {
|
|
141
141
|
if (this.controllerMap.get(i.render_id))
|
|
142
142
|
return this.logWarning(`ID 为 ${i.render_id} 的点位视频已存在`);
|
|
143
143
|
const n = i.render_id;
|
|
144
144
|
this.controllerMap.set(
|
|
145
145
|
i.render_id,
|
|
146
146
|
new c(this.five, d(a({}, i), {
|
|
147
|
-
panoIndex:
|
|
147
|
+
panoIndex: e,
|
|
148
148
|
renderID: n,
|
|
149
149
|
initialState: { enabled: this.enabled }
|
|
150
150
|
}))
|
|
@@ -152,30 +152,30 @@ class T extends _ {
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
/** 根据 VideoItem render_id 删除某个视频。 */
|
|
155
|
-
removeByRenderID(
|
|
155
|
+
removeByRenderID(e) {
|
|
156
156
|
if (this.disposed)
|
|
157
157
|
return this.logWarning("插件已被销毁");
|
|
158
|
-
const
|
|
159
|
-
if (!
|
|
160
|
-
return this.logWarning(`ID 为 ${
|
|
161
|
-
|
|
158
|
+
const r = this.controllerMap.get(e);
|
|
159
|
+
if (!r)
|
|
160
|
+
return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
|
|
161
|
+
r.dispose(), this.controllerMap.delete(e);
|
|
162
162
|
}
|
|
163
163
|
/** 清空现有数据 */
|
|
164
164
|
clear() {
|
|
165
165
|
if (this.disposed)
|
|
166
166
|
return this.logWarning("插件已被销毁");
|
|
167
|
-
Array.from(this.controllerMap.values()).forEach((
|
|
167
|
+
Array.from(this.controllerMap.values()).forEach((e) => e.dispose()), this.controllerMap.clear();
|
|
168
168
|
}
|
|
169
169
|
/** 销毁插件 */
|
|
170
170
|
dispose() {
|
|
171
171
|
if (this.disposed)
|
|
172
172
|
return this.logWarning("插件已被销毁");
|
|
173
|
-
this._disposed = !0, Array.from(this.controllerMap.values()).forEach((
|
|
173
|
+
this._disposed = !0, Array.from(this.controllerMap.values()).forEach((e) => e.dispose()), this.controllerMap.clear();
|
|
174
174
|
}
|
|
175
175
|
/** 控制台打印警告 */
|
|
176
176
|
// TODO: 全局函数 curry 化
|
|
177
|
-
logWarning(
|
|
178
|
-
console.warn("⛔ ==> [PanoVideoPluginController]:",
|
|
177
|
+
logWarning(e) {
|
|
178
|
+
console.warn("⛔ ==> [PanoVideoPluginController]:", e);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type * as BasePlugin from '../base/
|
|
1
|
+
import type * as BasePlugin from '../base/BasePluginWithData';
|
|
2
2
|
/** 单个视频元素 */
|
|
3
3
|
export interface VideoItem {
|
|
4
4
|
/** client render ID
|
|
@@ -52,7 +52,7 @@ export interface PluginState {
|
|
|
52
52
|
export interface PluginData {
|
|
53
53
|
list: PanoVideoItem[];
|
|
54
54
|
}
|
|
55
|
-
export interface PluginEventMap extends BasePlugin.EventMap<PluginState> {
|
|
55
|
+
export interface PluginEventMap extends BasePlugin.EventMap<PluginState, PluginData> {
|
|
56
56
|
/** 点位视频模型开启 */
|
|
57
57
|
enable: (params: {
|
|
58
58
|
userAction: boolean;
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -10,12 +10,12 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
|
10
10
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
11
11
|
import "animejs";
|
|
12
12
|
import { absoluteUrl as l } from "../shared-utils/url/absoluteUrl.js";
|
|
13
|
-
let
|
|
13
|
+
let C = class {
|
|
14
14
|
constructor(t, r) {
|
|
15
15
|
/**
|
|
16
16
|
* @realsee/dnalogel 版本号
|
|
17
17
|
*/
|
|
18
|
-
i(this, "VERSION", "3.35.0
|
|
18
|
+
i(this, "VERSION", "3.35.0");
|
|
19
19
|
i(this, "five");
|
|
20
20
|
/**
|
|
21
21
|
* @description: 插件事件钩子
|
|
@@ -38,5 +38,5 @@ let v = class {
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
C as Controller
|
|
42
42
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.35.0
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.35.0",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
|
@@ -4,13 +4,13 @@ export declare class LightTag {
|
|
|
4
4
|
container: HTMLDivElement;
|
|
5
5
|
visible: boolean;
|
|
6
6
|
enabled: boolean;
|
|
7
|
+
wrapper: HTMLElement;
|
|
7
8
|
private five;
|
|
8
9
|
private position;
|
|
9
|
-
private wrapper;
|
|
10
10
|
private disposer;
|
|
11
|
-
private
|
|
11
|
+
private config;
|
|
12
12
|
constructor(five: Five, position: AnyPosition, config?: {
|
|
13
|
-
|
|
13
|
+
wrapper?: HTMLElement;
|
|
14
14
|
});
|
|
15
15
|
show(): void;
|
|
16
16
|
hide(params?: {
|
|
@@ -22,5 +22,5 @@ export declare class LightTag {
|
|
|
22
22
|
private onFiveEveryReady;
|
|
23
23
|
}
|
|
24
24
|
export declare function tag(five: Five, position: AnyPosition, config?: {
|
|
25
|
-
|
|
25
|
+
wrapper?: HTMLElement;
|
|
26
26
|
}): LightTag;
|
package/libs/shared-utils/tag.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
var l = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { anyPositionToVector3 as
|
|
2
|
+
var p = (s, e, t) => e in s ? l(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
|
|
3
|
+
var i = (s, e, t) => (p(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { anyPositionToVector3 as f } from "./positionToVector3.js";
|
|
5
5
|
import * as d from "three";
|
|
6
6
|
import { vector3ToScreen as y } from "./five/vector3ToScreen.js";
|
|
7
|
-
const
|
|
8
|
-
class
|
|
7
|
+
const c = "LightTagContainer_shgjakdhwakjdhsja";
|
|
8
|
+
class v {
|
|
9
9
|
constructor(e, t, n) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
i(this, "container");
|
|
11
|
+
i(this, "visible", !1);
|
|
12
|
+
i(this, "enabled", !1);
|
|
13
|
+
i(this, "wrapper");
|
|
14
|
+
i(this, "five");
|
|
15
|
+
i(this, "position");
|
|
16
|
+
i(this, "disposer");
|
|
17
|
+
i(this, "config");
|
|
18
|
+
i(this, "onCameraUpdate", () => {
|
|
19
19
|
if (this.visible === !1)
|
|
20
20
|
return;
|
|
21
21
|
const e = y(this.five.camera, this.position);
|
|
22
22
|
e ? (this.container.style.left = e.leftPercent + "%", this.container.style.top = e.topPercent + "%") : (this.container.style.left = "-100%", this.container.style.top = "-100%");
|
|
23
23
|
});
|
|
24
|
-
|
|
24
|
+
i(this, "onFiveEveryReady", () => {
|
|
25
25
|
var e;
|
|
26
26
|
if (this.visible && this.five.state.mode !== "Panorama") {
|
|
27
27
|
const t = new d.Raycaster();
|
|
@@ -30,11 +30,10 @@ class f {
|
|
|
30
30
|
(n == null ? void 0 : n.distance) > this.position.distanceTo(this.five.camera.position) ? (this.container.style.opacity = "1", this.container.style.pointerEvents = "auto") : (this.container.style.opacity = "0", this.container.style.pointerEvents = "none");
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
})(), this.wrapperStyle = (i = n == null ? void 0 : n.wrapperStyle) != null ? i : {}, this.enable(), this.show();
|
|
33
|
+
this.five = e, this.position = f(t).clone(), this.container = (() => {
|
|
34
|
+
const o = document.createElement("div");
|
|
35
|
+
return o.style.width = "0", o.style.height = "0", o.style.position = "absolute", o;
|
|
36
|
+
})(), this.config = n, this.enable(), this.show();
|
|
38
37
|
}
|
|
39
38
|
show() {
|
|
40
39
|
this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.style.transition = "opacity 0.2s linear", this.onCameraUpdate();
|
|
@@ -43,16 +42,13 @@ class f {
|
|
|
43
42
|
this.visible = !1, e != null && e.withAnimation ? this.container.style.transition = "opacity 0.2s linear" : this.container.style.transition = "", this.container.style.opacity = "0", this.container.style.pointerEvents = "none";
|
|
44
43
|
}
|
|
45
44
|
enable() {
|
|
46
|
-
var n;
|
|
45
|
+
var n, o, r, h;
|
|
47
46
|
if (this.enabled)
|
|
48
47
|
return;
|
|
49
|
-
this.enabled = !0, this.wrapper = (n = document.getElementById(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
i.style[r] = this.wrapperStyle[r];
|
|
54
|
-
}), (a = this.five.getElement()) == null || a.parentElement.appendChild(i), i;
|
|
55
|
-
})(), this.wrapper.appendChild(this.container);
|
|
48
|
+
this.enabled = !0, this.wrapper || (this.wrapper = (o = (n = this.config.wrapper) != null ? n : document.getElementById(c)) != null ? o : (() => {
|
|
49
|
+
const a = document.createElement("div");
|
|
50
|
+
return a.id = c, a.style.position = "absolute", a.style.top = "0", a.style.left = "0", a.style.width = "100%", a.style.height = "100%", a.style.pointerEvents = "none", a;
|
|
51
|
+
})(), (r = this.five.getElement()) != null && r.parentElement.contains(this.wrapper) || (h = this.five.getElement()) == null || h.parentElement.appendChild(this.wrapper)), this.wrapper.appendChild(this.container);
|
|
56
52
|
let e = !1;
|
|
57
53
|
const t = () => {
|
|
58
54
|
e || (e = !0, this.five.ready().then(() => {
|
|
@@ -68,8 +64,8 @@ class f {
|
|
|
68
64
|
this.enabled && (this.enabled = !1, this.wrapper.removeChild(this.container), (e = this.disposer) == null || e.call(this));
|
|
69
65
|
}
|
|
70
66
|
}
|
|
71
|
-
function w(
|
|
72
|
-
return new
|
|
67
|
+
function w(s, e, t) {
|
|
68
|
+
return new v(s, e, t);
|
|
73
69
|
}
|
|
74
70
|
export {
|
|
75
71
|
w as tag
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@realsee/dnalogel",
|
|
3
|
-
"version": "3.35.0
|
|
3
|
+
"version": "3.35.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./libs/index.js",
|
|
6
6
|
"types": "./libs/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"build:dist": "NODE_ENV=production BUILD_MODULE=dist vite build -m production",
|
|
25
25
|
"build:components": "NODE_ENV=production BUILD_MODULE=components vite build -m production",
|
|
26
26
|
"docs": "typedoc --options ./typedoc.json",
|
|
27
|
-
"prepublishOnly": "run-p build",
|
|
27
|
+
"prepublishOnly": "run-p build docs",
|
|
28
28
|
"postpublish": "cnpm sync @realsee/dnalogel"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|