@realsee/dnalogel 3.36.12 → 3.37.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/CHANGELOG.md +3 -0
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -5
- package/dist/index.cjs.js +52 -52
- package/dist/index.js +3788 -3780
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/animationFrame/index.d.ts +1 -0
- 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/ModelMakerPluginInstance.html +4 -4
- 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 +18 -18
- package/docs/classes/Sculpt.html +3 -3
- package/docs/classes/Util.BetterTween.html +4 -3
- package/docs/classes/Util.Interval.html +4 -3
- package/docs/classes/Util.LineSegments.html +4 -3
- package/docs/classes/Util.Magnifier.html +4 -3
- package/docs/classes/Util.Object3D.html +4 -3
- package/docs/classes/Util.PointDomHelper.html +4 -3
- package/docs/classes/Util.PointHelper.html +4 -3
- package/docs/classes/Util.PointSelectorHelper.html +4 -3
- package/docs/classes/Util.Rectangle.html +4 -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 +4 -3
- package/docs/functions/Util.awaitNextFrame.html +336 -0
- package/docs/functions/Util.blink.html +5 -4
- package/docs/functions/Util.checkFiveModelLoaded.html +4 -3
- package/docs/functions/Util.equal.html +4 -3
- package/docs/functions/Util.getCoordsFromClient.html +4 -3
- package/docs/functions/Util.getCoordsFromElement.html +4 -3
- package/docs/functions/Util.getFrameTime.html +5 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -3
- package/docs/functions/Util.isAbsoluteURL.html +4 -3
- package/docs/functions/Util.isModelLike.html +4 -3
- package/docs/functions/Util.isNil.html +4 -3
- package/docs/functions/Util.isPanoramaLike.html +4 -3
- package/docs/functions/Util.nextFrame.html +4 -3
- package/docs/functions/Util.notNil.html +4 -3
- package/docs/functions/Util.reblink.html +5 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -4
- package/docs/functions/Util.tweenProgress.html +4 -3
- package/docs/functions/Util.uuid.html +4 -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 +3 -3
- 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 +3 -3
- 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.BlinkAnimeOptions.html +7 -6
- package/docs/interfaces/Util.MagnifierParameter.html +4 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -3
- package/docs/interfaces/Util.PointIntersection.html +4 -3
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +8 -7
- 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 +5 -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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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/ModelMakerPlugin/Controller.js +7 -7
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -5
- package/libs/PanoTagPlugin/controller/TagRender.js +210 -210
- package/libs/PanoTagPlugin/controller/index.js +64 -64
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/animationFrame/index.d.ts +1 -0
- package/libs/shared-utils/animationFrame/index.js +37 -13
- package/libs/shared-utils/index.js +11 -10
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/blink.js +16 -16
- package/package.json +1 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
var k = Object.defineProperty,
|
|
2
|
-
var
|
|
1
|
+
var k = Object.defineProperty, F = Object.defineProperties;
|
|
2
|
+
var E = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
|
-
var M = Object.prototype.hasOwnProperty,
|
|
5
|
-
var
|
|
4
|
+
var M = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var y = (d, a, e) => a in d ? k(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
M.call(a, e) &&
|
|
7
|
+
M.call(a, e) && y(d, e, a[e]);
|
|
8
8
|
if (P)
|
|
9
9
|
for (var e of P(a))
|
|
10
|
-
|
|
10
|
+
O.call(a, e) && y(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
|
-
},
|
|
13
|
-
var f = (d, a, e) => (
|
|
12
|
+
}, T = (d, a) => F(d, E(a));
|
|
13
|
+
var f = (d, a, e) => (y(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
var g = (d, a, e) => new Promise((t, i) => {
|
|
15
|
-
var s = (
|
|
15
|
+
var s = (r) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
n(e.next(r));
|
|
18
18
|
} catch (h) {
|
|
19
19
|
i(h);
|
|
20
20
|
}
|
|
21
|
-
}, o = (
|
|
21
|
+
}, o = (r) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
n(e.throw(r));
|
|
24
24
|
} catch (h) {
|
|
25
25
|
i(h);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
|
|
28
|
+
n((e = e.apply(d, a)).next());
|
|
29
29
|
});
|
|
30
|
-
import * as
|
|
31
|
-
import { Subscribe as
|
|
30
|
+
import * as C from "three";
|
|
31
|
+
import { Subscribe as _ } from "@realsee/five";
|
|
32
32
|
import { objectAssignDeepExports as m } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
|
-
import { addDebugPoints as
|
|
33
|
+
import { addDebugPoints as R } from "../utils/addDebugPoints.js";
|
|
34
34
|
import { arrayPositionToVector3 as w } from "../../shared-utils/positionToVector3.js";
|
|
35
35
|
import { isMediaModelTag as L, isModelTag as G } from "../utils/tag/tagCheck.js";
|
|
36
36
|
import { debounce as N } from "../utils/debounce.js";
|
|
@@ -173,7 +173,7 @@ import "../Components/Common/TagPoint.js";
|
|
|
173
173
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
174
174
|
import "@realsee/five/gltf-loader";
|
|
175
175
|
import "../../shared-utils/animationFrame/index.js";
|
|
176
|
-
const
|
|
176
|
+
const B = "Dnalogel-PanoTagPlugin", Gi = (d) => `${B}--${d}`;
|
|
177
177
|
class Ni extends j {
|
|
178
178
|
constructor(e, t) {
|
|
179
179
|
super(e);
|
|
@@ -197,7 +197,7 @@ class Ni extends j {
|
|
|
197
197
|
return { reason: `tag ${e} not found` };
|
|
198
198
|
if (!t.enabled)
|
|
199
199
|
return { reason: `tag ${e} enabled is: ${t.enabled}` };
|
|
200
|
-
const i =
|
|
200
|
+
const i = T(c({}, this.computeTagVisible(t)), {
|
|
201
201
|
tagInstance: t
|
|
202
202
|
});
|
|
203
203
|
return t.state.visible ? { reason: "应该是能看见才对", info: i } : t.stickType === "Model" || t.stickType === "Plane" ? { reason: "maybe blocked by the five model", info: i } : i.value === !0 ? { reason: "插件bug,请联系维护人员", info: i } : { reason: (s = i.reason.type) != null ? s : i.reason, info: i };
|
|
@@ -249,22 +249,22 @@ class Ni extends j {
|
|
|
249
249
|
});
|
|
250
250
|
f(this, "handleFivePanoArrived", () => g(this, null, function* () {
|
|
251
251
|
this.setVisible(), this.setPointTagPosition(), this.updateDomView(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
|
|
252
|
-
e.temporaryState =
|
|
252
|
+
e.temporaryState = T(c({}, e.temporaryState), { visible: !0 });
|
|
253
253
|
}), this.tags.filter(G).filter((e) => {
|
|
254
254
|
var t;
|
|
255
255
|
return (t = this.getTagConfig(e).modelConfig) == null ? void 0 : t.autoLookAtEnabled;
|
|
256
256
|
}).forEach((e) => {
|
|
257
257
|
var h;
|
|
258
|
-
const t = new
|
|
258
|
+
const t = new C.Mesh(new C.BoxGeometry(), new C.MeshBasicMaterial()), i = (h = e.model) == null ? void 0 : h.object;
|
|
259
259
|
if (!i)
|
|
260
260
|
return;
|
|
261
261
|
t.position.copy(i.position), t.quaternion.copy(i.quaternion);
|
|
262
262
|
const s = this.five.camera.position;
|
|
263
263
|
t.lookAt(s.clone().setY(t.position.y));
|
|
264
|
-
const o = i.quaternion.clone(),
|
|
265
|
-
|
|
266
|
-
i.quaternion.copy(o.clone().slerp(
|
|
267
|
-
}),
|
|
264
|
+
const o = i.quaternion.clone(), n = t.quaternion.clone(), r = Z();
|
|
265
|
+
r.onUpdate(({ progress: l }) => {
|
|
266
|
+
i.quaternion.copy(o.clone().slerp(n, l));
|
|
267
|
+
}), r.play();
|
|
268
268
|
}), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
|
|
269
269
|
}));
|
|
270
270
|
/** 楼层切换时,需要更新标签可见性 */
|
|
@@ -272,7 +272,7 @@ class Ni extends j {
|
|
|
272
272
|
this.setVisible(), this.updateRenderAllTags();
|
|
273
273
|
});
|
|
274
274
|
f(this, "onFiveEveryReady", () => {
|
|
275
|
-
this.setUnfoldedByCamera(), q(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 })
|
|
275
|
+
this.setUnfoldedByCamera(), q(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 });
|
|
276
276
|
});
|
|
277
277
|
this.params = m({}, { debug: !1, config: this.config }, c({}, t)), this.debug = this.params.debug, this.config = this.params.config, W(1, { namespace: $.PlayAudio });
|
|
278
278
|
try {
|
|
@@ -285,10 +285,10 @@ class Ni extends j {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
appendTo(e) {
|
|
288
|
-
var i, s, o,
|
|
288
|
+
var i, s, o, n;
|
|
289
289
|
this.container = e, (i = this.css3DRenderPlugin) == null || i.appendToFrontFiveContainer(this.container);
|
|
290
290
|
const t = (o = (s = this.TagContainerSvelte) == null ? void 0 : s.$$) == null ? void 0 : o.root;
|
|
291
|
-
t && t !== this.container && ((
|
|
291
|
+
t && t !== this.container && ((n = this.TagContainerSvelte) == null || n.$destroy(), this.TagContainerSvelte = void 0, this.updateDomView());
|
|
292
292
|
}
|
|
293
293
|
/**
|
|
294
294
|
* @description 加载数据
|
|
@@ -296,16 +296,16 @@ class Ni extends j {
|
|
|
296
296
|
load(e, t) {
|
|
297
297
|
return g(this, null, function* () {
|
|
298
298
|
var s, o;
|
|
299
|
-
this.clearTags(), console.debug(
|
|
299
|
+
this.clearTags(), console.debug(B, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = m({}, this.config, {
|
|
300
300
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
301
301
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
302
302
|
}), this.store.visibleWithAnimation = !0;
|
|
303
303
|
const i = yield this.addTag(e.tagList, t);
|
|
304
304
|
if (this.store.visibleWithAnimation = void 0, this.debug)
|
|
305
305
|
try {
|
|
306
|
-
|
|
307
|
-
} catch (
|
|
308
|
-
console.error(
|
|
306
|
+
R(this.five, this.tags);
|
|
307
|
+
} catch (n) {
|
|
308
|
+
console.error(n);
|
|
309
309
|
}
|
|
310
310
|
return i;
|
|
311
311
|
});
|
|
@@ -316,28 +316,28 @@ class Ni extends j {
|
|
|
316
316
|
addTag(e, t) {
|
|
317
317
|
return g(this, null, function* () {
|
|
318
318
|
const s = (Array.isArray(e) ? e : [e]).filter((o) => o.position).map((o) => {
|
|
319
|
-
var b, v,
|
|
319
|
+
var b, v, D, A;
|
|
320
320
|
o.stickType = z(o);
|
|
321
|
-
const
|
|
322
|
-
o.initialConfig =
|
|
321
|
+
const n = JSON.parse(JSON.stringify(o.data)), r = (b = o.initialConfig) != null ? b : o.config ? JSON.parse(JSON.stringify(o.config)) : {};
|
|
322
|
+
o.initialConfig = r;
|
|
323
323
|
const h = this.calculateTagConfig(o), l = this.getTagConfig(o);
|
|
324
324
|
o.config = l;
|
|
325
|
-
const p =
|
|
325
|
+
const p = T(c({}, o), {
|
|
326
326
|
enabled: (v = o.enabled) != null ? v : !0,
|
|
327
|
-
id: (
|
|
328
|
-
data: (
|
|
327
|
+
id: (D = o.id) != null ? D : J(),
|
|
328
|
+
data: (A = l.initialData) != null && A.important ? m(o.data, n, l.initialData) : m(o.data, l.initialData, n),
|
|
329
329
|
state: c({
|
|
330
330
|
visible: void 0,
|
|
331
331
|
unfolded: !this.can("fold", o)
|
|
332
332
|
}, l.initialState),
|
|
333
|
-
hooks: new
|
|
333
|
+
hooks: new _(),
|
|
334
334
|
originPosition: o.position,
|
|
335
335
|
position: (() => {
|
|
336
336
|
const u = this.getTransformedPostion(o.position);
|
|
337
|
-
return Array.isArray(u) ? u.map((
|
|
337
|
+
return Array.isArray(u) ? u.map((V) => V.toArray()) : u.toArray();
|
|
338
338
|
})(),
|
|
339
339
|
matrix: o.matrix ? this.getTransformedMatrix(o.matrix) : o.matrix,
|
|
340
|
-
initialConfig:
|
|
340
|
+
initialConfig: r,
|
|
341
341
|
computedConfig: h,
|
|
342
342
|
config: l,
|
|
343
343
|
unfold: () => this.changeUnfoldedById(p.id, !0),
|
|
@@ -352,8 +352,8 @@ class Ni extends j {
|
|
|
352
352
|
return p;
|
|
353
353
|
});
|
|
354
354
|
return s.forEach(x), this.tags.push(...s), this.tagsLengthWillUpdate = !0, H(this.five).then(() => g(this, null, function* () {
|
|
355
|
-
var o,
|
|
356
|
-
this.store.eventListenerDisposer && ((
|
|
355
|
+
var o, n, r;
|
|
356
|
+
this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(s), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }), this.updateRenderAllTags();
|
|
357
357
|
}));
|
|
358
358
|
});
|
|
359
359
|
}
|
|
@@ -413,11 +413,11 @@ class Ni extends j {
|
|
|
413
413
|
* @description 销毁
|
|
414
414
|
*/
|
|
415
415
|
dispose() {
|
|
416
|
-
var e, t, i, s, o,
|
|
417
|
-
this.tagsLengthWillUpdate = !0, this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((
|
|
416
|
+
var e, t, i, s, o, n;
|
|
417
|
+
this.tagsLengthWillUpdate = !0, this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((r) => {
|
|
418
418
|
var h;
|
|
419
|
-
return (h =
|
|
420
|
-
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((
|
|
419
|
+
return (h = r.tag3DContentSvelte) == null ? void 0 : h.svelteApp.$destroy();
|
|
420
|
+
}), this.tags = [], (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (n = (o = this.store).resizeObserverDisposer) == null || n.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.imagePlaneGroup.remove(...this.imagePlaneGroup.children), this.clearCache(), this.five.needsRender = !0, this.store.disposed = !0, this.hooks.emit("dispose");
|
|
421
421
|
}
|
|
422
422
|
/**
|
|
423
423
|
* @description 闪烁标签
|
|
@@ -430,23 +430,23 @@ class Ni extends j {
|
|
|
430
430
|
const i = this.getTagById(e);
|
|
431
431
|
if (!i)
|
|
432
432
|
return;
|
|
433
|
-
const s = (l = i.enabled) != null ? l : !0, o = (p = i.state) == null ? void 0 : p.visible,
|
|
434
|
-
|
|
435
|
-
const
|
|
436
|
-
var v
|
|
433
|
+
const s = (l = i.enabled) != null ? l : !0, o = (p = i.state) == null ? void 0 : p.visible, n = s && o;
|
|
434
|
+
n === !1 && (i.state.visible = !0, i.enabled = !0, this.setPointTagPosition(), this.updateTag(i), this.updateDomView(), yield X(0), i.dom && (i.dom.style.visibility = "hidden"), i.contentDom && (i.contentDom.style.visibility = "hidden"));
|
|
435
|
+
const r = (() => {
|
|
436
|
+
var v;
|
|
437
437
|
const b = [];
|
|
438
|
-
return b.push(
|
|
438
|
+
return b.push(i.dom), i.stickType !== "2DPoint" && b.push(i.contentDom), b.push((v = i.model) == null ? void 0 : v.object), b.push(i.mediaPlane), b.filter(Boolean);
|
|
439
439
|
})();
|
|
440
|
-
if (!
|
|
440
|
+
if (!r.length)
|
|
441
441
|
return;
|
|
442
|
-
yield (
|
|
442
|
+
yield (n ? Q : Y)(r, c({
|
|
443
443
|
begin: () => {
|
|
444
|
-
|
|
444
|
+
n === !1 && (i.dom && (i.dom.style.visibility = ""), i.contentDom && (i.contentDom.style.visibility = ""));
|
|
445
445
|
},
|
|
446
446
|
updateRender: () => {
|
|
447
447
|
this.five.needsRender = !0;
|
|
448
448
|
}
|
|
449
|
-
}, t)), s === !1 && (i.enabled = !1, this.
|
|
449
|
+
}, t)), s === !1 && (i.enabled = !1), o === !1 && this.setVisible(i), this.updateTag(i), this.updateDomView(), n === !1 && (i.dom && (i.dom.style.visibility = ""), i.contentDom && (i.contentDom.style.visibility = ""));
|
|
450
450
|
});
|
|
451
451
|
}
|
|
452
452
|
/**
|
|
@@ -455,15 +455,15 @@ class Ni extends j {
|
|
|
455
455
|
* @param {boolean} unfolded
|
|
456
456
|
*/
|
|
457
457
|
changeUnfoldedById(e, t) {
|
|
458
|
-
var
|
|
458
|
+
var n;
|
|
459
459
|
const i = this.getTagById(e);
|
|
460
460
|
if (!i)
|
|
461
461
|
return;
|
|
462
462
|
const s = this.can("fold", i), o = this.can("unfold", i);
|
|
463
463
|
if (s && o) {
|
|
464
464
|
i.state.unfolded = t;
|
|
465
|
-
const
|
|
466
|
-
(
|
|
465
|
+
const r = this.filterPointTag;
|
|
466
|
+
(n = this.TagContainerSvelte) == null || n.$set({ tags: r });
|
|
467
467
|
} else
|
|
468
468
|
console.warn(`tag ${e} cannot be ${t ? "unfolded" : "folded"}`);
|
|
469
469
|
}
|
|
@@ -594,12 +594,12 @@ class Ni extends j {
|
|
|
594
594
|
this.store.resizeObserverDisposer && i();
|
|
595
595
|
}, 500),
|
|
596
596
|
e
|
|
597
|
-
), { observe:
|
|
597
|
+
), { observe: n, unobserve: r } = U(
|
|
598
598
|
N(() => t(), 400),
|
|
599
599
|
e
|
|
600
600
|
);
|
|
601
|
-
return s(),
|
|
602
|
-
o(),
|
|
601
|
+
return s(), n(), () => {
|
|
602
|
+
o(), r();
|
|
603
603
|
};
|
|
604
604
|
}
|
|
605
605
|
setUnfoldedByCamera() {
|
|
@@ -619,8 +619,8 @@ class Ni extends j {
|
|
|
619
619
|
});
|
|
620
620
|
}
|
|
621
621
|
changeTagMode(e, t) {
|
|
622
|
-
var i, s, o,
|
|
623
|
-
((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((
|
|
622
|
+
var i, s, o, n, r, h;
|
|
623
|
+
((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((l) => l == null ? void 0 : l()), e.tag3DContentSvelte = void 0);
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
626
|
export {
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const _requestAnimationFrame: ((callback: FrameRequestCallback) => number) & typeof requestAnimationFrame;
|
|
2
2
|
export default _requestAnimationFrame;
|
|
3
3
|
export declare function nextFrame(fn: (time: number) => void, delay?: number): void;
|
|
4
|
+
export declare function awaitNextFrame(): Promise<void>;
|
|
4
5
|
/**
|
|
5
6
|
* 在每个 AnimationFrame 中调用传入的函数
|
|
6
7
|
* @param callback 每次 AnimationFrame 中调用的函数
|
|
@@ -1,28 +1,52 @@
|
|
|
1
|
+
var w = (e, t, i) => new Promise((a, r) => {
|
|
2
|
+
var u = (o) => {
|
|
3
|
+
try {
|
|
4
|
+
n(i.next(o));
|
|
5
|
+
} catch (c) {
|
|
6
|
+
r(c);
|
|
7
|
+
}
|
|
8
|
+
}, s = (o) => {
|
|
9
|
+
try {
|
|
10
|
+
n(i.throw(o));
|
|
11
|
+
} catch (c) {
|
|
12
|
+
r(c);
|
|
13
|
+
}
|
|
14
|
+
}, n = (o) => o.done ? a(o.value) : Promise.resolve(o.value).then(u, s);
|
|
15
|
+
n((i = i.apply(e, t)).next());
|
|
16
|
+
});
|
|
1
17
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
2
|
-
const
|
|
18
|
+
const m = window.requestAnimationFrame || ((e) => setTimeout(e, 16)), F = window.cancelAnimationFrame || clearTimeout;
|
|
3
19
|
function T(e, t = 0) {
|
|
4
|
-
t <= 0 ?
|
|
20
|
+
t <= 0 ? m(e) : m(() => T(e, t - 1));
|
|
5
21
|
}
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
22
|
+
function A() {
|
|
23
|
+
return w(this, null, function* () {
|
|
24
|
+
return new Promise((e) => {
|
|
25
|
+
m(() => e());
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function l(e, t = 60) {
|
|
30
|
+
let i = -1, a = 0, r = -1;
|
|
31
|
+
const u = 1e3 / t;
|
|
32
|
+
function s(n) {
|
|
33
|
+
r === -1 && (r = n), i = m(s), !(n - a < u) && (a = n, e == null || e(n - r));
|
|
11
34
|
}
|
|
12
|
-
return
|
|
13
|
-
|
|
35
|
+
return i = m(s), function() {
|
|
36
|
+
F(i);
|
|
14
37
|
};
|
|
15
38
|
}
|
|
16
|
-
function
|
|
39
|
+
function p() {
|
|
17
40
|
const e = Date.now();
|
|
18
41
|
return new Promise((t) => {
|
|
19
|
-
|
|
42
|
+
m(() => {
|
|
20
43
|
t(Date.now() - e);
|
|
21
44
|
});
|
|
22
45
|
});
|
|
23
46
|
}
|
|
24
47
|
export {
|
|
25
|
-
|
|
48
|
+
A as awaitNextFrame,
|
|
49
|
+
p as getFrameTime,
|
|
26
50
|
T as nextFrame,
|
|
27
|
-
|
|
51
|
+
l as requestAnimationFrameInterval
|
|
28
52
|
};
|
|
@@ -11,14 +11,14 @@ import { PointSelectorHelper as a } from "./three/PointSelectorHelper.js";
|
|
|
11
11
|
import { Object3D as s } from "./three/core/Object3D.js";
|
|
12
12
|
import { LineSegments as g } from "./three/objects/LineSegments.js";
|
|
13
13
|
import { blink as c, reblink as d } from "./three/blink.js";
|
|
14
|
-
import { isNil as
|
|
14
|
+
import { isNil as F, notNil as u } from "./isNil.js";
|
|
15
15
|
import { uuid as b } from "./uuid.js";
|
|
16
16
|
import { absoluteUrl as P, isAbsoluteURL as v } from "./url/absoluteUrl.js";
|
|
17
|
-
import {
|
|
17
|
+
import { awaitNextFrame as k, getFrameTime as L, nextFrame as x, requestAnimationFrameInterval as M } from "./animationFrame/index.js";
|
|
18
18
|
import { equal as R } from "./equal.js";
|
|
19
19
|
import { isModelLike as S, isPanoramaLike as _ } from "./five/mode.js";
|
|
20
|
-
import { BetterTween as j, tweenProgress as
|
|
21
|
-
const
|
|
20
|
+
import { BetterTween as j, tweenProgress as w } from "./animationFrame/BetterTween.js";
|
|
21
|
+
const W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22
22
|
__proto__: null,
|
|
23
23
|
BetterTween: j,
|
|
24
24
|
Interval: o,
|
|
@@ -30,25 +30,26 @@ const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
30
30
|
PointSelectorHelper: a,
|
|
31
31
|
Rectangle: r,
|
|
32
32
|
absoluteUrl: P,
|
|
33
|
+
awaitNextFrame: k,
|
|
33
34
|
blink: c,
|
|
34
35
|
checkFiveModelLoaded: e,
|
|
35
36
|
equal: R,
|
|
36
37
|
getCoordsFromClient: m,
|
|
37
38
|
getCoordsFromElement: i,
|
|
38
|
-
getFrameTime:
|
|
39
|
+
getFrameTime: L,
|
|
39
40
|
getIntersectFromRelativePosition: p,
|
|
40
41
|
getRaycasterFromFivePointer: n,
|
|
41
42
|
isAbsoluteURL: v,
|
|
42
43
|
isModelLike: S,
|
|
43
|
-
isNil:
|
|
44
|
+
isNil: F,
|
|
44
45
|
isPanoramaLike: _,
|
|
45
|
-
nextFrame:
|
|
46
|
-
notNil:
|
|
46
|
+
nextFrame: x,
|
|
47
|
+
notNil: u,
|
|
47
48
|
reblink: d,
|
|
48
49
|
requestAnimationFrameInterval: M,
|
|
49
|
-
tweenProgress:
|
|
50
|
+
tweenProgress: w,
|
|
50
51
|
uuid: b
|
|
51
52
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
+
W as index
|
|
54
55
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.37.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",
|
|
@@ -12,24 +12,24 @@ var S = (e, a, t) => a in e ? R(e, a, { enumerable: !0, configurable: !0, writab
|
|
|
12
12
|
var E = (e, a, t) => new Promise((r, s) => {
|
|
13
13
|
var l = (y) => {
|
|
14
14
|
try {
|
|
15
|
-
|
|
15
|
+
v(t.next(y));
|
|
16
16
|
} catch (i) {
|
|
17
17
|
s(i);
|
|
18
18
|
}
|
|
19
19
|
}, c = (y) => {
|
|
20
20
|
try {
|
|
21
|
-
|
|
21
|
+
v(t.throw(y));
|
|
22
22
|
} catch (i) {
|
|
23
23
|
s(i);
|
|
24
24
|
}
|
|
25
|
-
},
|
|
26
|
-
|
|
25
|
+
}, v = (y) => y.done ? r(y.value) : Promise.resolve(y.value).then(l, c);
|
|
26
|
+
v((t = t.apply(e, a)).next());
|
|
27
27
|
});
|
|
28
28
|
import D from "animejs";
|
|
29
|
-
import { toArray as
|
|
29
|
+
import { toArray as p } from "../util.js";
|
|
30
30
|
const f = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map();
|
|
31
31
|
function b(e) {
|
|
32
|
-
|
|
32
|
+
p(e).forEach((t) => {
|
|
33
33
|
var r, s;
|
|
34
34
|
f.has(t) || (t instanceof HTMLElement ? f.set(t, {
|
|
35
35
|
opacity: t.style.opacity === "" ? void 0 : t.style.opacity,
|
|
@@ -45,16 +45,16 @@ function b(e) {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
function k(e) {
|
|
48
|
-
|
|
48
|
+
p(e).forEach((t) => {
|
|
49
49
|
const r = f.get(t);
|
|
50
|
-
r && (t instanceof HTMLElement && (t.style.opacity = r.opacity === void 0 ? "" : r.opacity, t.style.display = r.visible.display, t.style.visibility = r.visible.visibility
|
|
50
|
+
r && (t instanceof HTMLElement && (t.style.opacity = r.opacity === void 0 ? "" : r.opacity, t.style.display = r.visible.display, t.style.visibility = r.visible.visibility), t.isObject3D && (t.visible = r.visible, t.material && (t.material.opacity = r.opacity, t.material.transparent = r.transparent)), f.delete(t));
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
function o(e, a) {
|
|
54
54
|
return E(this, null, function* () {
|
|
55
|
-
var
|
|
56
|
-
const t = (
|
|
57
|
-
let r =
|
|
55
|
+
var v, y;
|
|
56
|
+
const t = (v = a == null ? void 0 : a.traverseTHREEObject) != null ? v : !0;
|
|
57
|
+
let r = p(e);
|
|
58
58
|
const s = [];
|
|
59
59
|
r.forEach((i) => {
|
|
60
60
|
i instanceof HTMLElement ? s.push(i) : i.isObject3D && (t ? (s.push(i), i.traverse((u) => {
|
|
@@ -72,11 +72,11 @@ function o(e, a) {
|
|
|
72
72
|
var u;
|
|
73
73
|
i.animatables.forEach((L) => {
|
|
74
74
|
var M;
|
|
75
|
-
const
|
|
76
|
-
if (!f.has(
|
|
75
|
+
const d = L.target;
|
|
76
|
+
if (!f.has(d))
|
|
77
77
|
return;
|
|
78
|
-
const h = Number((M = f.get(
|
|
79
|
-
|
|
78
|
+
const h = Number((M = f.get(d).opacity) != null ? M : 1) * (100 - i.progress) / 100;
|
|
79
|
+
d instanceof HTMLElement ? d.style.opacity = String(h) : d.material && (d.material.opacity = h, d.material.transparent = !0);
|
|
80
80
|
}), (u = a == null ? void 0 : a.updateRender) == null || u.call(a);
|
|
81
81
|
}
|
|
82
82
|
}, a)), c = T.get(e);
|
|
@@ -94,7 +94,7 @@ function C(e, a) {
|
|
|
94
94
|
if (!f.has(l))
|
|
95
95
|
return;
|
|
96
96
|
const c = f.get(l), y = ((u = (i = c == null ? void 0 : c.opacity) != null ? i : a == null ? void 0 : a.maxOpacity) != null ? u : 1) * (t.progress / 100);
|
|
97
|
-
l instanceof HTMLElement ? (l.style.opacity = String(y), l.style.visibility = "visible") : l.isObject3D && (
|
|
97
|
+
l instanceof HTMLElement ? (l.style.opacity = String(y), l.style.visibility = "visible") : l.isObject3D && (p(e).includes(l) && (l.visible = !0), l.material && (l.material.opacity = y, l.material.transparent = !0));
|
|
98
98
|
}), (r = a == null ? void 0 : a.updateRender) == null || r.call(a);
|
|
99
99
|
}
|
|
100
100
|
}, a));
|