@realsee/dnalogel 3.34.4 → 3.34.5
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 +1 -1
- package/dist/ModelMakerPlugin/item/baseItem.d.ts +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.js +87 -91
- package/dist/index.umd.js +3 -3
- package/dist/shared-utils/tag.d.ts +4 -4
- 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 +13 -13
- 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 +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- 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 +1 -1
- package/libs/ModelMakerPlugin/Controller.js +86 -83
- package/libs/ModelMakerPlugin/item/baseItem.d.ts +1 -1
- package/libs/ModelMakerPlugin/item/baseItem.js +23 -26
- package/libs/PanoRulerPlugin/Plugin.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 +4 -4
- package/libs/shared-utils/tag.js +26 -30
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视空间交互插件合集 - v3.34.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视空间交互插件合集 - v3.34.5</title><meta name="description" content="Documentation for 如视空间交互插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/custom.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视空间交互插件合集 - v3.34.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视空间交互插件合集 - v3.34.5</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-content">
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<div class="tsd-theme-toggle">
|
|
39
39
|
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
|
|
40
40
|
<div class="site-menu">
|
|
41
|
-
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视空间交互插件合集 -<wbr/> v3.34.
|
|
41
|
+
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视空间交互插件合集 -<wbr/> v3.34.5</span></a>
|
|
42
42
|
<ul class="tsd-small-nested-navigation">
|
|
43
43
|
<li><a href="../modules.html#CruisePluginController"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-8388608"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)"></path></g></svg><span>Cruise<wbr/>Plugin<wbr/>Controller</span></a></li>
|
|
44
44
|
<li><a href="../modules.html#Magnifier"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>Magnifier</span></a></li>
|
|
@@ -10,7 +10,7 @@ export declare class Controller extends BasePlugin.Controller<PluginType.State,
|
|
|
10
10
|
private tagRendererMap;
|
|
11
11
|
private fiveDomEvents;
|
|
12
12
|
private zFightingOffset;
|
|
13
|
-
private
|
|
13
|
+
private tagWrapper;
|
|
14
14
|
constructor(five: Five, config?: {
|
|
15
15
|
tagContainerZIndex?: number;
|
|
16
16
|
});
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var P = Object.defineProperty;
|
|
2
|
+
var W = (p, n, e) => n in p ? P(p, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[n] = e;
|
|
3
|
+
var s = (p, n, e) => (W(p, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
|
+
var R = (p, n, e) => new Promise((o, t) => {
|
|
5
|
+
var l = (r) => {
|
|
6
6
|
try {
|
|
7
|
-
|
|
7
|
+
a(e.next(r));
|
|
8
8
|
} catch (d) {
|
|
9
|
-
|
|
9
|
+
t(d);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, i = (r) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
13
|
+
a(e.throw(r));
|
|
14
14
|
} catch (d) {
|
|
15
|
-
|
|
15
|
+
t(d);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
17
|
+
}, a = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(l, i);
|
|
18
|
+
a((e = e.apply(p, n)).next());
|
|
19
19
|
});
|
|
20
|
-
import { Controller as
|
|
21
|
-
import * as
|
|
22
|
-
import { ModelMakerBoxItem as
|
|
23
|
-
import { PrismMesh as
|
|
24
|
-
import { anyPositionToVector3 as
|
|
25
|
-
import { PolygonWithEdgeMesh as
|
|
20
|
+
import { Controller as C } from "../base/BasePluginWithData.js";
|
|
21
|
+
import * as h from "three";
|
|
22
|
+
import { ModelMakerBoxItem as D } from "./item/boxItem.js";
|
|
23
|
+
import { PrismMesh as x } from "../Sculpt/Meshes/Prism.js";
|
|
24
|
+
import { anyPositionToVector3 as I } from "../shared-utils/positionToVector3.js";
|
|
25
|
+
import { PolygonWithEdgeMesh as A } 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
|
|
36
|
-
import { boxVertex as
|
|
37
|
-
import { getFiveDomEvent as
|
|
32
|
+
import { notNil as j } from "../shared-utils/isNil.js";
|
|
33
|
+
import { tagRendererMap as T } from "./utils/tagRenderer.js";
|
|
34
|
+
import { ModelMakerPrismItem as H } from "./item/prismItem.js";
|
|
35
|
+
import { ModelMakerPolygonItem as F } from "./item/polygonItem.js";
|
|
36
|
+
import { boxVertex as f } from "../shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
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,102 +75,105 @@ 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
|
|
79
|
-
constructor(e,
|
|
78
|
+
class Ge extends C {
|
|
79
|
+
constructor(e, o) {
|
|
80
80
|
super(e);
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
81
|
+
s(this, "state");
|
|
82
|
+
s(this, "items", []);
|
|
83
|
+
s(this, "data");
|
|
84
|
+
s(this, "group", new h.Group());
|
|
85
|
+
s(this, "tagRendererMap", {});
|
|
86
|
+
s(this, "fiveDomEvents");
|
|
87
|
+
s(this, "zFightingOffset", 0);
|
|
88
|
+
s(this, "tagWrapper");
|
|
89
|
+
s(this, "handleEnable", () => {
|
|
90
|
+
var e, o;
|
|
91
|
+
this.five.scene.add(this.group), (o = (e = this.five.getElement()) == null ? void 0 : e.parentElement) == null || o.appendChild(this.tagWrapper), this.five.needsRender = !0;
|
|
91
92
|
});
|
|
92
|
-
|
|
93
|
-
this.
|
|
93
|
+
s(this, "handleDisable", () => {
|
|
94
|
+
this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0;
|
|
94
95
|
});
|
|
95
|
-
|
|
96
|
+
s(this, "updateTagRenderer", () => {
|
|
96
97
|
this.items.forEach((e) => {
|
|
97
|
-
var
|
|
98
|
-
const
|
|
99
|
-
|
|
98
|
+
var t;
|
|
99
|
+
const o = (t = this.tagRendererMap[e.type]) != null ? t : T[e.type];
|
|
100
|
+
o && e.__renderer !== o && (e.__renderer = o, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = o(e.tag.container, e));
|
|
100
101
|
});
|
|
101
102
|
});
|
|
102
|
-
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents =
|
|
103
|
+
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents = z(e), this.tagWrapper = (() => {
|
|
104
|
+
var l;
|
|
105
|
+
const t = document.createElement("div");
|
|
106
|
+
return t.style.position = "absolute", t.style.top = "0", t.style.left = "0", t.style.width = "100%", t.style.height = "100%", t.style.pointerEvents = "none", t.style.zIndex = `${(l = o == null ? void 0 : o.tagContainerZIndex) != null ? l : ""}`, t;
|
|
107
|
+
})(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
|
|
103
108
|
}
|
|
104
109
|
load(e) {
|
|
105
|
-
return
|
|
106
|
-
var
|
|
107
|
-
this.clear(), this.data = e
|
|
108
|
-
|
|
109
|
-
(h = e == null ? void 0 : e.list) == null || h.forEach((t) => {
|
|
110
|
-
var f;
|
|
110
|
+
return R(this, null, function* () {
|
|
111
|
+
var o;
|
|
112
|
+
this.clear(), this.data = e, (o = e == null ? void 0 : e.list) == null || o.forEach((t) => {
|
|
113
|
+
var l;
|
|
111
114
|
if (t.type === "triangles") {
|
|
112
|
-
const
|
|
113
|
-
|
|
115
|
+
const i = new A();
|
|
116
|
+
i.setPoints(t.object_data.points), i.setStyle({
|
|
114
117
|
color: t.object_data.color,
|
|
115
118
|
opacity: t.object_data.opacity,
|
|
116
119
|
lineColor: t.object_data.color,
|
|
117
120
|
occlusionVisibility: !1
|
|
118
|
-
}), this.fiveDomEvents.addEventListener(
|
|
119
|
-
const
|
|
121
|
+
}), this.fiveDomEvents.addEventListener(i, "hover", () => i.highlight()), this.fiveDomEvents.addEventListener(i, "unHover", () => i.unhighlight());
|
|
122
|
+
const a = new F({
|
|
120
123
|
five: this.five,
|
|
121
|
-
|
|
124
|
+
tagWrapper: this.tagWrapper,
|
|
125
|
+
model: i,
|
|
122
126
|
group: this.group,
|
|
123
127
|
type: t.type,
|
|
124
|
-
rawData: t
|
|
125
|
-
tagContainerZIndex: i
|
|
128
|
+
rawData: t
|
|
126
129
|
});
|
|
127
|
-
this.items.push(
|
|
130
|
+
this.items.push(a);
|
|
128
131
|
} else if (t.type === "prism") {
|
|
129
|
-
const
|
|
132
|
+
const i = new x();
|
|
130
133
|
this.zFightingOffset += 1e-4;
|
|
131
|
-
const
|
|
132
|
-
var
|
|
133
|
-
return [
|
|
134
|
-
}),
|
|
135
|
-
|
|
134
|
+
const a = t.object_data.points.map((m) => {
|
|
135
|
+
var c;
|
|
136
|
+
return [m[0], m[1] + ((c = t.object_data.fixedY) != null ? c : 0), m[2]];
|
|
137
|
+
}), r = t.object_data.height + ((l = t.object_data.fixedHeight) != null ? l : 0) + this.zFightingOffset, d = I(a[0]).add(new h.Vector3().setY(r));
|
|
138
|
+
i.setPoints({ points: a, heightPoint: d }), i.setStyle({
|
|
136
139
|
color: t.object_data.color,
|
|
137
140
|
opacity: t.object_data.opacity,
|
|
138
141
|
lineColor: t.object_data.color,
|
|
139
142
|
occlusionVisibility: !1
|
|
140
143
|
});
|
|
141
|
-
const
|
|
144
|
+
const u = new H({
|
|
142
145
|
five: this.five,
|
|
143
|
-
|
|
146
|
+
tagWrapper: this.tagWrapper,
|
|
147
|
+
model: i,
|
|
144
148
|
group: this.group,
|
|
145
149
|
type: t.type,
|
|
146
|
-
rawData: t
|
|
147
|
-
tagContainerZIndex: i
|
|
150
|
+
rawData: t
|
|
148
151
|
});
|
|
149
|
-
this.items.push(
|
|
152
|
+
this.items.push(u);
|
|
150
153
|
} else if (t.type === "box") {
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
points: [b
|
|
154
|
-
heightPoint: b
|
|
155
|
-
}),
|
|
156
|
-
const
|
|
154
|
+
const i = new x(), { start: a, end: r, rotation: d = [0, 0, 0, 0], opacity: u, color: m } = t.object_data, c = new h.Vector3().fromArray(a), g = new h.Vector3().fromArray(r), V = new h.Euler().fromArray(d), y = new h.Quaternion().setFromEuler(V), v = y.clone().inverse(), _ = new h.Vector3().lerpVectors(c, g, 0.5), w = _.clone().negate(), E = c.clone().add(w).applyQuaternion(v), M = g.clone().add(w).applyQuaternion(v), b = new h.Box3(E.clone().max(M), E.clone().min(M));
|
|
155
|
+
i.setPoints({
|
|
156
|
+
points: [f(b, 2), f(b, 3), f(b, 7), f(b, 6)],
|
|
157
|
+
heightPoint: f(b, 0)
|
|
158
|
+
}), i.position.copy(_), i.quaternion.copy(y), i.setStyle({ color: m, opacity: u, lineColor: m, occlusionVisibility: !1 });
|
|
159
|
+
const k = new D({
|
|
157
160
|
five: this.five,
|
|
158
|
-
|
|
161
|
+
tagWrapper: this.tagWrapper,
|
|
162
|
+
model: i,
|
|
159
163
|
group: this.group,
|
|
160
164
|
type: t.type,
|
|
161
|
-
rawData: t
|
|
162
|
-
tagContainerZIndex: i
|
|
165
|
+
rawData: t
|
|
163
166
|
});
|
|
164
|
-
this.items.push(
|
|
167
|
+
this.items.push(k);
|
|
165
168
|
}
|
|
166
169
|
}), 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);
|
|
167
170
|
});
|
|
168
171
|
}
|
|
169
172
|
setState(e) {
|
|
170
|
-
|
|
173
|
+
j(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: "我不知道捏" })), j(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: "我不知道捏" }));
|
|
171
174
|
}
|
|
172
175
|
getItemById(e) {
|
|
173
|
-
return this.items.find((
|
|
176
|
+
return this.items.find((o) => o.rawData.id === e);
|
|
174
177
|
}
|
|
175
178
|
registerTagRenderer(e) {
|
|
176
179
|
this.tagRendererMap = e, this.updateTagRenderer();
|
|
@@ -194,12 +197,12 @@ class Se extends D {
|
|
|
194
197
|
this.hooks.emit("dispose"), this.handleDisable();
|
|
195
198
|
}
|
|
196
199
|
handleShow() {
|
|
197
|
-
this.
|
|
200
|
+
this.group.visible = !0, this.tagWrapper.style.visibility = "visible", this.five.needsRender = !0;
|
|
198
201
|
}
|
|
199
202
|
handleHide() {
|
|
200
|
-
this.
|
|
203
|
+
this.group.visible = !1, this.tagWrapper.style.visibility = "hidden", this.five.needsRender = !0;
|
|
201
204
|
}
|
|
202
205
|
}
|
|
203
206
|
export {
|
|
204
|
-
|
|
207
|
+
Ge as Controller
|
|
205
208
|
};
|
|
@@ -22,7 +22,6 @@ export declare class ModelMakerBaseItem extends Subscribe<Event> {
|
|
|
22
22
|
};
|
|
23
23
|
protected five: Five;
|
|
24
24
|
protected group: THREE.Object3D;
|
|
25
|
-
protected enabled: boolean;
|
|
26
25
|
protected fiveDomEvents: FiveDomEvents;
|
|
27
26
|
constructor(params: {
|
|
28
27
|
five: Five;
|
|
@@ -30,6 +29,7 @@ export declare class ModelMakerBaseItem extends Subscribe<Event> {
|
|
|
30
29
|
group: THREE.Object3D;
|
|
31
30
|
type: string;
|
|
32
31
|
rawData?: any;
|
|
32
|
+
tagWrapper?: HTMLElement;
|
|
33
33
|
visibleMode?: Mode[];
|
|
34
34
|
position?: THREE.Vector3;
|
|
35
35
|
tagContainerZIndex?: number;
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
var
|
|
2
|
-
var m = (s,
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var m = (s, t, e) => t in s ? d(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
|
|
3
|
+
var i = (s, t, e) => (m(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import * as l from "three";
|
|
5
5
|
import { addIfNotExists as v } from "../../shared-utils/three/addIfNotExists.js";
|
|
6
|
-
import { Subscribe as
|
|
7
|
-
import { tag as
|
|
8
|
-
import { boundingBox as
|
|
9
|
-
import { getFiveDomEvent as
|
|
6
|
+
import { Subscribe as a } from "../../shared-utils/Subscribe.js";
|
|
7
|
+
import { tag as c } from "../../shared-utils/tag.js";
|
|
8
|
+
import { boundingBox as p } from "../../shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
9
|
+
import { getFiveDomEvent as f } 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 a {
|
|
16
16
|
constructor(e) {
|
|
17
|
-
var o, r,
|
|
17
|
+
var o, r, h;
|
|
18
18
|
super();
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
this.tag = b(this.five, d, { wrapperStyle: { zIndex: `${(h = e.tagContainerZIndex) != null ? h : ""}` } });
|
|
19
|
+
i(this, "type");
|
|
20
|
+
i(this, "tag");
|
|
21
|
+
i(this, "rawData");
|
|
22
|
+
i(this, "model");
|
|
23
|
+
i(this, "five");
|
|
24
|
+
i(this, "group");
|
|
25
|
+
i(this, "fiveDomEvents");
|
|
26
|
+
this.five = e.five, this.model = e.model, this.group = e.group, this.type = e.type, this.rawData = e.rawData, this.fiveDomEvents = f(this.five);
|
|
27
|
+
const n = (h = (r = (o = e.position) != null ? o : this.model.worldCenter) != null ? r : this.model.center) != null ? h : p(this.model).getCenter(new l.Vector3());
|
|
28
|
+
this.tag = c(this.five, n, { wrapper: e.tagWrapper });
|
|
30
29
|
}
|
|
31
30
|
get container() {
|
|
32
31
|
return this.tag.container;
|
|
@@ -34,7 +33,7 @@ class B extends f {
|
|
|
34
33
|
get state() {
|
|
35
34
|
return {
|
|
36
35
|
visible: this.model.visible,
|
|
37
|
-
enabled: this.
|
|
36
|
+
enabled: this.group.children.includes(this.model)
|
|
38
37
|
};
|
|
39
38
|
}
|
|
40
39
|
show() {
|
|
@@ -44,14 +43,12 @@ class B extends f {
|
|
|
44
43
|
this.tag.hide(), this.model.visible = !1, this.five.needsRender = !0, this.emit("hide");
|
|
45
44
|
}
|
|
46
45
|
enable() {
|
|
47
|
-
|
|
48
|
-
return;
|
|
49
|
-
this.enabled = !0, v(this.group, this.model), this.five.needsRender = !0, this.tag.enable();
|
|
46
|
+
v(this.group, this.model), this.five.needsRender = !0, this.tag.enable();
|
|
50
47
|
const e = this.onClick.bind(this);
|
|
51
48
|
this.fiveDomEvents.addEventListener(this.model, "click", e), this.emit("enable");
|
|
52
49
|
}
|
|
53
50
|
disable() {
|
|
54
|
-
this.
|
|
51
|
+
this.group.remove(this.model), this.five.needsRender = !0, this.tag.disable(), this.fiveDomEvents.removeEventListener(this.model, "click"), this.emit("disable");
|
|
55
52
|
}
|
|
56
53
|
onClick() {
|
|
57
54
|
return this.emit("click", this);
|
|
@@ -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}%`);
|
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.5",
|
|
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
|