@realsee/dnalogel 3.34.0 → 3.34.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/ModelMakerPlugin/Controller.d.ts +4 -1
- package/dist/ModelMakerPlugin/item/baseItem.d.ts +1 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.js +71 -55
- package/dist/index.umd.js +3 -3
- package/dist/shared-utils/tag.d.ts +7 -2
- 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 +21 -16
- 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 +3 -3
- 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.blink.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.reblink.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 +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 +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/interfaces/Util.ReBlinkAnimeOptions.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 +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.d.ts +4 -1
- package/libs/ModelMakerPlugin/Controller.js +63 -51
- package/libs/ModelMakerPlugin/item/baseItem.d.ts +1 -0
- package/libs/ModelMakerPlugin/item/baseItem.js +15 -15
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +7 -2
- package/libs/shared-utils/tag.js +49 -45
- package/package.json +1 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var r = (l, n, e) => (
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var I = Object.defineProperty;
|
|
2
|
+
var P = (l, n, e) => n in l ? I(l, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[n] = e;
|
|
3
|
+
var r = (l, n, e) => (P(l, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
|
+
var x = (l, n, e) => new Promise((i, d) => {
|
|
5
|
+
var t = (s) => {
|
|
6
6
|
try {
|
|
7
|
-
|
|
8
|
-
} catch (
|
|
9
|
-
|
|
7
|
+
o(e.next(s));
|
|
8
|
+
} catch (a) {
|
|
9
|
+
d(a);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, m = (s) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
14
|
-
} catch (
|
|
15
|
-
|
|
13
|
+
o(e.throw(s));
|
|
14
|
+
} catch (a) {
|
|
15
|
+
d(a);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
17
|
+
}, o = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(t, m);
|
|
18
|
+
o((e = e.apply(l, n)).next());
|
|
19
19
|
});
|
|
20
|
-
import { Controller as
|
|
20
|
+
import { Controller as D } from "../base/BasePluginWithData.js";
|
|
21
21
|
import * as h from "three";
|
|
22
|
-
import { ModelMakerBoxItem as
|
|
22
|
+
import { ModelMakerBoxItem as A } from "./item/boxItem.js";
|
|
23
23
|
import { PrismMesh as j } from "../Sculpt/Meshes/Prism.js";
|
|
24
|
-
import { anyPositionToVector3 as
|
|
25
|
-
import { PolygonWithEdgeMesh as
|
|
24
|
+
import { anyPositionToVector3 as T } from "../shared-utils/positionToVector3.js";
|
|
25
|
+
import { PolygonWithEdgeMesh as H } from "../Sculpt/Meshes/PolygonWithEdge.js";
|
|
26
26
|
import "hammerjs";
|
|
27
27
|
import "@realsee/five";
|
|
28
28
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
29
29
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
30
30
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
31
31
|
import "animejs";
|
|
32
|
-
import { notNil as
|
|
33
|
-
import { tagRendererMap as
|
|
34
|
-
import { ModelMakerPrismItem as
|
|
35
|
-
import { ModelMakerPolygonItem as
|
|
32
|
+
import { notNil as V } from "../shared-utils/isNil.js";
|
|
33
|
+
import { tagRendererMap as F } from "./utils/tagRenderer.js";
|
|
34
|
+
import { ModelMakerPrismItem as L } from "./item/prismItem.js";
|
|
35
|
+
import { ModelMakerPolygonItem as O } from "./item/polygonItem.js";
|
|
36
36
|
import { boxVertex as c } from "../shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
37
|
-
import { getFiveDomEvent as
|
|
37
|
+
import { getFiveDomEvent as z } from "./utils/getFiveDomEvent.js";
|
|
38
38
|
import "../base/BasePlugin.js";
|
|
39
39
|
import "../shared-utils/Subscribe.js";
|
|
40
40
|
import "../shared-utils/url/absoluteUrl.js";
|
|
@@ -75,8 +75,8 @@ import "../shared-utils/tag.js";
|
|
|
75
75
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
76
76
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
77
77
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
78
|
-
class Se extends
|
|
79
|
-
constructor(e) {
|
|
78
|
+
class Se extends D {
|
|
79
|
+
constructor(e, i) {
|
|
80
80
|
super(e);
|
|
81
81
|
r(this, "state");
|
|
82
82
|
r(this, "items", []);
|
|
@@ -85,6 +85,7 @@ class Se extends A {
|
|
|
85
85
|
r(this, "tagRendererMap", {});
|
|
86
86
|
r(this, "fiveDomEvents");
|
|
87
87
|
r(this, "zFightingOffset", 0);
|
|
88
|
+
r(this, "tagContainerZIndex");
|
|
88
89
|
r(this, "handleEnable", () => {
|
|
89
90
|
this.items.forEach((e) => e.enable());
|
|
90
91
|
});
|
|
@@ -93,73 +94,84 @@ class Se extends A {
|
|
|
93
94
|
});
|
|
94
95
|
r(this, "updateTagRenderer", () => {
|
|
95
96
|
this.items.forEach((e) => {
|
|
96
|
-
var
|
|
97
|
-
const
|
|
98
|
-
|
|
97
|
+
var d;
|
|
98
|
+
const i = (d = this.tagRendererMap[e.type]) != null ? d : F[e.type];
|
|
99
|
+
i && e.__renderer !== i && (e.__renderer = i, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = i(e.tag.container, e));
|
|
99
100
|
});
|
|
100
101
|
});
|
|
101
|
-
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents =
|
|
102
|
+
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents = z(e), this.tagContainerZIndex = 1, e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
|
|
102
103
|
}
|
|
103
104
|
load(e) {
|
|
104
|
-
return
|
|
105
|
-
var
|
|
106
|
-
this.clear(), this.data = e
|
|
105
|
+
return x(this, null, function* () {
|
|
106
|
+
var d;
|
|
107
|
+
this.clear(), this.data = e;
|
|
108
|
+
const i = this.tagContainerZIndex;
|
|
109
|
+
(d = e == null ? void 0 : e.list) == null || d.forEach((t) => {
|
|
107
110
|
var m;
|
|
108
111
|
if (t.type === "triangles") {
|
|
109
|
-
const o = new
|
|
112
|
+
const o = new H();
|
|
110
113
|
o.setPoints(t.object_data.points), o.setStyle({
|
|
111
114
|
color: t.object_data.color,
|
|
112
115
|
opacity: t.object_data.opacity,
|
|
113
116
|
lineColor: t.object_data.color,
|
|
114
117
|
occlusionVisibility: !1
|
|
115
118
|
}), this.fiveDomEvents.addEventListener(o, "hover", () => o.highlight()), this.fiveDomEvents.addEventListener(o, "unHover", () => o.unhighlight());
|
|
116
|
-
const
|
|
119
|
+
const s = new O({
|
|
117
120
|
five: this.five,
|
|
118
121
|
model: o,
|
|
119
122
|
group: this.group,
|
|
120
123
|
type: t.type,
|
|
121
|
-
rawData: t
|
|
124
|
+
rawData: t,
|
|
125
|
+
tagContainerZIndex: i
|
|
122
126
|
});
|
|
123
|
-
this.items.push(
|
|
127
|
+
this.items.push(s);
|
|
124
128
|
} else if (t.type === "prism") {
|
|
125
129
|
const o = new j();
|
|
126
130
|
this.zFightingOffset += 1e-4, o.setPoints({
|
|
127
|
-
points: t.object_data.points.map((
|
|
128
|
-
var
|
|
129
|
-
return [
|
|
131
|
+
points: t.object_data.points.map((a) => {
|
|
132
|
+
var b;
|
|
133
|
+
return [a[0], a[1] + ((b = t.object_data.fixedY) != null ? b : 0), a[2]];
|
|
130
134
|
}),
|
|
131
|
-
heightPoint:
|
|
135
|
+
heightPoint: T(t.object_data.points[0]).add(new h.Vector3().setY(t.object_data.height + ((m = t.object_data.fixedHeight) != null ? m : 0))).add(new h.Vector3().setY(this.zFightingOffset))
|
|
132
136
|
}), o.setStyle({
|
|
133
137
|
color: t.object_data.color,
|
|
134
138
|
opacity: t.object_data.opacity,
|
|
135
139
|
lineColor: t.object_data.color,
|
|
136
140
|
occlusionVisibility: !1
|
|
137
141
|
});
|
|
138
|
-
const
|
|
142
|
+
const s = new L({
|
|
139
143
|
five: this.five,
|
|
140
144
|
model: o,
|
|
141
145
|
group: this.group,
|
|
142
146
|
type: t.type,
|
|
143
|
-
rawData: t
|
|
147
|
+
rawData: t,
|
|
148
|
+
tagContainerZIndex: i
|
|
144
149
|
});
|
|
145
|
-
this.items.push(
|
|
150
|
+
this.items.push(s);
|
|
146
151
|
} else if (t.type === "box") {
|
|
147
|
-
const o = new j(), { start:
|
|
152
|
+
const o = new j(), { start: s, end: a, rotation: b = [0, 0, 0, 0], opacity: R, color: f } = t.object_data, g = new h.Vector3().fromArray(s), u = new h.Vector3().fromArray(a), k = new h.Euler().fromArray(b), y = new h.Quaternion().setFromEuler(k), _ = y.clone().inverse(), w = new h.Vector3().lerpVectors(g, u, 0.5), v = w.clone().negate(), E = g.clone().add(v).applyQuaternion(_), M = u.clone().add(v).applyQuaternion(_), p = new h.Box3(E.clone().max(M), E.clone().min(M));
|
|
148
153
|
o.setPoints({
|
|
149
|
-
points: [c(
|
|
150
|
-
heightPoint: c(
|
|
151
|
-
}), o.position.copy(
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
+
points: [c(p, 2), c(p, 3), c(p, 7), c(p, 6)],
|
|
155
|
+
heightPoint: c(p, 0)
|
|
156
|
+
}), o.position.copy(w), o.quaternion.copy(y), o.setStyle({ color: f, opacity: R, lineColor: f, occlusionVisibility: !1 });
|
|
157
|
+
const C = new A({
|
|
158
|
+
five: this.five,
|
|
159
|
+
model: o,
|
|
160
|
+
group: this.group,
|
|
161
|
+
type: t.type,
|
|
162
|
+
rawData: t,
|
|
163
|
+
tagContainerZIndex: i
|
|
164
|
+
});
|
|
165
|
+
this.items.push(C);
|
|
154
166
|
}
|
|
155
167
|
}), this.five.needsRender = !0, this.state.enabled ? this.handleEnable() : this.handleDisable(), this.state.visible ? this.handleShow() : this.handleHide(), this.updateTagRenderer(), this.hooks.emit("dataLoaded", e);
|
|
156
168
|
});
|
|
157
169
|
}
|
|
158
170
|
setState(e) {
|
|
159
|
-
|
|
171
|
+
V(e.enabled) && this.state.enabled !== e.enabled && (this.state.enabled = e.enabled, e.enabled ? this.handleEnable() : this.handleDisable(), this.hooks.emit(e.enabled ? "enable" : "disable", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" })), V(e.visible) && this.state.visible !== e.visible && (this.state.visible = e.visible, e.visible ? this.handleShow() : this.handleHide(), this.hooks.emit(e.visible ? "show" : "hide", { userAction: "我不知道捏" }), this.hooks.emit("stateChange", { state: this.state, userAction: "我不知道捏" }));
|
|
160
172
|
}
|
|
161
173
|
getItemById(e) {
|
|
162
|
-
return this.items.find((
|
|
174
|
+
return this.items.find((i) => i.rawData.id === e);
|
|
163
175
|
}
|
|
164
176
|
registerTagRenderer(e) {
|
|
165
177
|
this.tagRendererMap = e, this.updateTagRenderer();
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var t = (s, i, e) => (
|
|
4
|
-
import * as
|
|
5
|
-
import { addIfNotExists as
|
|
6
|
-
import { Subscribe as
|
|
7
|
-
import { tag as
|
|
8
|
-
import { boundingBox as
|
|
9
|
-
import { getFiveDomEvent as
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var m = (s, i, e) => i in s ? l(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e;
|
|
3
|
+
var t = (s, i, e) => (m(s, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
|
+
import * as a from "three";
|
|
5
|
+
import { addIfNotExists as v } from "../../shared-utils/three/addIfNotExists.js";
|
|
6
|
+
import { Subscribe as f } from "../../shared-utils/Subscribe.js";
|
|
7
|
+
import { tag as b } from "../../shared-utils/tag.js";
|
|
8
|
+
import { boundingBox as c } from "../../shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
9
|
+
import { getFiveDomEvent as u } from "../utils/getFiveDomEvent.js";
|
|
10
10
|
import "../../shared-utils/positionToVector3.js";
|
|
11
11
|
import "../../shared-utils/five/vector3ToScreen.js";
|
|
12
12
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
13
13
|
import "../../shared-utils/three/getObjectVisible.js";
|
|
14
14
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
15
|
-
class B extends
|
|
15
|
+
class B extends f {
|
|
16
16
|
constructor(e) {
|
|
17
|
-
var o, r, h;
|
|
17
|
+
var o, r, n, h;
|
|
18
18
|
super();
|
|
19
19
|
t(this, "type");
|
|
20
20
|
t(this, "tag");
|
|
@@ -24,9 +24,9 @@ class B extends v {
|
|
|
24
24
|
t(this, "group");
|
|
25
25
|
t(this, "enabled", !1);
|
|
26
26
|
t(this, "fiveDomEvents");
|
|
27
|
-
this.five = e.five, this.model = e.model, this.group = e.group, this.type = e.type, this.rawData = e.rawData, this.fiveDomEvents =
|
|
28
|
-
const
|
|
29
|
-
this.tag =
|
|
27
|
+
this.five = e.five, this.model = e.model, this.group = e.group, this.type = e.type, this.rawData = e.rawData, this.fiveDomEvents = u(this.five);
|
|
28
|
+
const d = (n = (r = (o = e.position) != null ? o : this.model.worldCenter) != null ? r : this.model.center) != null ? n : c(this.model).getCenter(new a.Vector3());
|
|
29
|
+
this.tag = b(this.five, d, { wrapperStyle: { zIndex: `${(h = e.tagContainerZIndex) != null ? h : ""}` } });
|
|
30
30
|
}
|
|
31
31
|
get container() {
|
|
32
32
|
return this.tag.container;
|
|
@@ -46,7 +46,7 @@ class B extends v {
|
|
|
46
46
|
enable() {
|
|
47
47
|
if (this.enabled)
|
|
48
48
|
return;
|
|
49
|
-
this.enabled = !0,
|
|
49
|
+
this.enabled = !0, v(this.group, this.model), this.five.needsRender = !0, this.tag.enable();
|
|
50
50
|
const e = this.onClick.bind(this);
|
|
51
51
|
this.fiveDomEvents.addEventListener(this.model, "click", e), this.emit("enable");
|
|
52
52
|
}
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv3.34.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv3.34.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",
|
|
@@ -8,7 +8,10 @@ export declare class LightTag {
|
|
|
8
8
|
private position;
|
|
9
9
|
private wrapper;
|
|
10
10
|
private disposer;
|
|
11
|
-
|
|
11
|
+
private wrapperStyle;
|
|
12
|
+
constructor(five: Five, position: AnyPosition, config?: {
|
|
13
|
+
wrapperStyle?: Partial<CSSStyleDeclaration>;
|
|
14
|
+
});
|
|
12
15
|
show(): void;
|
|
13
16
|
hide(params?: {
|
|
14
17
|
withAnimation?: boolean;
|
|
@@ -18,4 +21,6 @@ export declare class LightTag {
|
|
|
18
21
|
private onCameraUpdate;
|
|
19
22
|
private onFiveEveryReady;
|
|
20
23
|
}
|
|
21
|
-
export declare function tag(five: Five, position: AnyPosition
|
|
24
|
+
export declare function tag(five: Five, position: AnyPosition, config?: {
|
|
25
|
+
wrapperStyle?: Partial<CSSStyleDeclaration>;
|
|
26
|
+
}): LightTag;
|
package/libs/shared-utils/tag.js
CHANGED
|
@@ -1,72 +1,76 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = (o,
|
|
3
|
-
var
|
|
4
|
-
import { anyPositionToVector3 as
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var c = (o, e, t) => e in o ? l(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
|
+
var s = (o, e, t) => (c(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { anyPositionToVector3 as p } from "./positionToVector3.js";
|
|
5
5
|
import * as d from "three";
|
|
6
|
-
import { vector3ToScreen as
|
|
7
|
-
const
|
|
6
|
+
import { vector3ToScreen as y } from "./five/vector3ToScreen.js";
|
|
7
|
+
const h = "LightTagContainer_shgjakdhwakjdhsja";
|
|
8
8
|
class f {
|
|
9
|
-
constructor(t,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
constructor(e, t, n) {
|
|
10
|
+
s(this, "container");
|
|
11
|
+
s(this, "visible", !1);
|
|
12
|
+
s(this, "enabled", !1);
|
|
13
|
+
s(this, "five");
|
|
14
|
+
s(this, "position");
|
|
15
|
+
s(this, "wrapper");
|
|
16
|
+
s(this, "disposer");
|
|
17
|
+
s(this, "wrapperStyle", {});
|
|
18
|
+
s(this, "onCameraUpdate", () => {
|
|
18
19
|
if (this.visible === !1)
|
|
19
20
|
return;
|
|
20
|
-
const
|
|
21
|
-
|
|
21
|
+
const e = y(this.five.camera, this.position);
|
|
22
|
+
e ? (this.container.style.left = e.leftPercent + "%", this.container.style.top = e.topPercent + "%") : (this.container.style.left = "-100%", this.container.style.top = "-100%");
|
|
22
23
|
});
|
|
23
|
-
|
|
24
|
-
var
|
|
24
|
+
s(this, "onFiveEveryReady", () => {
|
|
25
|
+
var e;
|
|
25
26
|
if (this.visible && this.five.state.mode !== "Panorama") {
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
(
|
|
27
|
+
const t = new d.Raycaster();
|
|
28
|
+
t.set(this.five.camera.position, this.position.clone().sub(this.five.camera.position));
|
|
29
|
+
const n = (e = this.five.model.intersectRaycaster(t)) == null ? void 0 : e[0];
|
|
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");
|
|
30
31
|
}
|
|
31
32
|
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
var i;
|
|
34
|
+
this.five = e, this.position = p(t).clone(), this.container = (() => {
|
|
35
|
+
const a = document.createElement("div");
|
|
36
|
+
return a.style.width = "0", a.style.height = "0", a.style.position = "absolute", a;
|
|
37
|
+
})(), this.wrapperStyle = (i = n == null ? void 0 : n.wrapperStyle) != null ? i : {}, this.enable(), this.show();
|
|
36
38
|
}
|
|
37
39
|
show() {
|
|
38
|
-
this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.
|
|
40
|
+
this.visible = !0, this.container.style.opacity = "1", this.container.style.pointerEvents = "auto", this.container.style.transition = "opacity 0.2s linear", this.onCameraUpdate();
|
|
39
41
|
}
|
|
40
|
-
hide(
|
|
41
|
-
this.visible = !1,
|
|
42
|
+
hide(e) {
|
|
43
|
+
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";
|
|
42
44
|
}
|
|
43
45
|
enable() {
|
|
44
|
-
var
|
|
46
|
+
var n;
|
|
45
47
|
if (this.enabled)
|
|
46
48
|
return;
|
|
47
|
-
this.enabled = !0, this.wrapper = (
|
|
49
|
+
this.enabled = !0, this.wrapper = (n = document.getElementById(h)) != null ? n : (() => {
|
|
48
50
|
var a;
|
|
49
|
-
const
|
|
50
|
-
return
|
|
51
|
+
const i = document.createElement("div");
|
|
52
|
+
return i.id = h, i.style.position = "absolute", i.style.top = "0", i.style.left = "0", i.style.width = "100%", i.style.height = "100%", i.style.pointerEvents = "none", Object.keys(this.wrapperStyle).forEach((r) => {
|
|
53
|
+
i.style[r] = this.wrapperStyle[r];
|
|
54
|
+
}), (a = this.five.getElement()) == null || a.parentElement.appendChild(i), i;
|
|
51
55
|
})(), this.wrapper.appendChild(this.container);
|
|
52
|
-
let
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
this.onFiveEveryReady(),
|
|
56
|
+
let e = !1;
|
|
57
|
+
const t = () => {
|
|
58
|
+
e || (e = !0, this.five.ready().then(() => {
|
|
59
|
+
this.onFiveEveryReady(), e = !1;
|
|
56
60
|
}));
|
|
57
61
|
};
|
|
58
|
-
this.five.on("cameraUpdate",
|
|
59
|
-
this.five.off("cameraUpdate",
|
|
62
|
+
this.five.on("cameraUpdate", t), this.five.on("cameraUpdate", this.onCameraUpdate), this.disposer = () => {
|
|
63
|
+
this.five.off("cameraUpdate", t), this.five.off("cameraUpdate", this.onCameraUpdate);
|
|
60
64
|
};
|
|
61
65
|
}
|
|
62
66
|
disable() {
|
|
63
|
-
var
|
|
64
|
-
this.enabled && (this.enabled = !1, this.wrapper.removeChild(this.container), (
|
|
67
|
+
var e;
|
|
68
|
+
this.enabled && (this.enabled = !1, this.wrapper.removeChild(this.container), (e = this.disposer) == null || e.call(this));
|
|
65
69
|
}
|
|
66
70
|
}
|
|
67
|
-
function
|
|
68
|
-
return new f(o, t);
|
|
71
|
+
function w(o, e, t) {
|
|
72
|
+
return new f(o, e, t);
|
|
69
73
|
}
|
|
70
74
|
export {
|
|
71
|
-
|
|
75
|
+
w as tag
|
|
72
76
|
};
|