@realsee/dnalogel 3.29.7 → 3.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/Sculpt/Meshes/Prism.d.ts +5 -0
- package/dist/index.cjs.js +14 -14
- package/dist/index.js +102 -84
- package/dist/index.umd.js +13 -13
- package/dist/shared-utils/three/getIntersect.d.ts +2 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
- package/docs/classes/ModelMakerPluginType.ModelMakerController.html +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 +5 -5
- 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 +11 -11
- 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 +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/CurrentPanoImagePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +3 -3
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelMakerPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/MovePlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/PanoVideoPlugin.html +4 -4
- package/docs/functions/PipelinePlugin.html +4 -4
- package/docs/functions/SculptPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- 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 +5 -5
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +5 -5
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +5 -5
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +5 -5
- 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.js +17 -17
- package/libs/ModelMakerPlugin/item/baseItem.js +16 -16
- package/libs/ModelMakerPlugin/utils/getFiveDomEvent.js +7 -4
- package/libs/PanoCompassPlugin/Controller.js +3 -3
- package/libs/Sculpt/Meshes/Prism.d.ts +5 -0
- package/libs/Sculpt/Meshes/Prism.js +17 -8
- package/libs/Sculpt/Objects/Base/index.js +24 -20
- package/libs/Sculpt/Objects/Box/Editor.js +1 -1
- package/libs/Sculpt/Objects/Prism/Editor.js +2 -2
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.js +17 -16
- package/libs/shared-utils/three/Magnifier.js +17 -15
- package/libs/shared-utils/three/getIntersect.d.ts +2 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ import Um from "earcut";
|
|
|
48
48
|
import { GLTFLoader as Ym } from "@realsee/five/gltf-loader";
|
|
49
49
|
function Xm() {
|
|
50
50
|
console.debug(
|
|
51
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
51
|
+
"%c %c@realsee/dnalogel %cv3.30.0",
|
|
52
52
|
[
|
|
53
53
|
"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=')",
|
|
54
54
|
"background-repeat: no-repeat",
|
|
@@ -517,7 +517,7 @@ function op(n, t, e, i = Gt.Linear.None) {
|
|
|
517
517
|
}
|
|
518
518
|
return requestAnimationFrame(o), s;
|
|
519
519
|
}
|
|
520
|
-
var
|
|
520
|
+
var Ii = /* @__PURE__ */ ((n) => (n.Drawline = "Drawline", n.Undo = "Undo", n.Exit = "Exit", n))(Ii || {});
|
|
521
521
|
const Ts = Symbol("$$PAINT_BRUSH_EVENT$$");
|
|
522
522
|
function bo(n) {
|
|
523
523
|
return n[Ts] || (n[Ts] = {}), n[Ts];
|
|
@@ -599,11 +599,11 @@ let ap = class {
|
|
|
599
599
|
return i;
|
|
600
600
|
}
|
|
601
601
|
};
|
|
602
|
-
function
|
|
602
|
+
function Ci() {
|
|
603
603
|
return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
604
604
|
}
|
|
605
605
|
function nt() {
|
|
606
|
-
return (
|
|
606
|
+
return (Ci() + Ci() + "-" + Ci() + "-4" + Ci().substr(0, 3) + "-" + Ci() + "-" + Ci() + Ci() + Ci()).toLowerCase();
|
|
607
607
|
}
|
|
608
608
|
const lp = `
|
|
609
609
|
<style type="text/css">
|
|
@@ -772,7 +772,7 @@ let cp = class extends ap {
|
|
|
772
772
|
return;
|
|
773
773
|
const l = this.data[this.uuid].pop();
|
|
774
774
|
l && this.emitStateChange({
|
|
775
|
-
type:
|
|
775
|
+
type: Ii.Undo,
|
|
776
776
|
color: this.color,
|
|
777
777
|
ready: this.ready,
|
|
778
778
|
state: l,
|
|
@@ -807,7 +807,7 @@ let cp = class extends ap {
|
|
|
807
807
|
const i = this.canvas[e].getContext("2d");
|
|
808
808
|
i && i.clearRect(0, 0, this.canvas[e].width, this.canvas[e].height);
|
|
809
809
|
}), this.ready = !1, this.emit("readyChange", !1), this.emitStateChange({
|
|
810
|
-
type:
|
|
810
|
+
type: Ii.Exit,
|
|
811
811
|
color: this.color,
|
|
812
812
|
ready: !1,
|
|
813
813
|
uuid: this.uuid
|
|
@@ -860,7 +860,7 @@ let cp = class extends ap {
|
|
|
860
860
|
};
|
|
861
861
|
this.data[this.uuid].push(g), Vo(() => {
|
|
862
862
|
this.emitStateChange({
|
|
863
|
-
type:
|
|
863
|
+
type: Ii.Drawline,
|
|
864
864
|
color: this.color,
|
|
865
865
|
ready: this.ready,
|
|
866
866
|
state: g,
|
|
@@ -893,7 +893,7 @@ let cp = class extends ap {
|
|
|
893
893
|
};
|
|
894
894
|
this.data[this.uuid].push(g), Vo(() => {
|
|
895
895
|
this.emitStateChange({
|
|
896
|
-
type:
|
|
896
|
+
type: Ii.Drawline,
|
|
897
897
|
color: this.color,
|
|
898
898
|
ready: this.ready,
|
|
899
899
|
state: g,
|
|
@@ -903,7 +903,7 @@ let cp = class extends ap {
|
|
|
903
903
|
};
|
|
904
904
|
}
|
|
905
905
|
emitStateChange(e, i = !0) {
|
|
906
|
-
if (e.type !==
|
|
906
|
+
if (e.type !== Ii.Drawline) {
|
|
907
907
|
this.emit("stateChange", e, i);
|
|
908
908
|
return;
|
|
909
909
|
}
|
|
@@ -944,13 +944,13 @@ let cp = class extends ap {
|
|
|
944
944
|
}
|
|
945
945
|
if (this.ready)
|
|
946
946
|
switch (s) {
|
|
947
|
-
case
|
|
947
|
+
case Ii.Drawline:
|
|
948
948
|
const { state: r, timestamp: a, end: l } = e;
|
|
949
949
|
if (!a || !r)
|
|
950
950
|
return;
|
|
951
951
|
this.tempLine[a] = [].concat(this.tempLine[a] || [], r.line), l && (Object.assign(r, { line: this.tempLine[a] }), this.handleDrawLine(o, r, {}, () => delete this.tempLine[a]));
|
|
952
952
|
break;
|
|
953
|
-
case
|
|
953
|
+
case Ii.Undo:
|
|
954
954
|
this.handleUndo(o);
|
|
955
955
|
break;
|
|
956
956
|
}
|
|
@@ -1171,12 +1171,12 @@ function dp(n) {
|
|
|
1171
1171
|
if (n)
|
|
1172
1172
|
return Array.isArray(n) ? typeof n[0] == "number" ? Be(n) : n.map(Be) : Be(n);
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function pi(n) {
|
|
1175
1175
|
return arguments.length === 0 ? [] : Array.isArray(n) ? n : [n];
|
|
1176
1176
|
}
|
|
1177
1177
|
function qi(n) {
|
|
1178
1178
|
const t = [];
|
|
1179
|
-
return
|
|
1179
|
+
return pi(n).forEach((i) => {
|
|
1180
1180
|
i.traverse((s) => {
|
|
1181
1181
|
s.isCSS3DObjectPlus && t.push(s);
|
|
1182
1182
|
});
|
|
@@ -1896,8 +1896,10 @@ class ml {
|
|
|
1896
1896
|
this.canvas.style.transform = `translate3d(${e}px, ${i}px, 100px)`, this.offset = { x: e, y: i };
|
|
1897
1897
|
});
|
|
1898
1898
|
var s, o, r, a;
|
|
1899
|
-
if (!t.renderer)
|
|
1900
|
-
|
|
1899
|
+
if (!t.renderer) {
|
|
1900
|
+
console.error("Five Render 未初始化");
|
|
1901
|
+
return;
|
|
1902
|
+
}
|
|
1901
1903
|
this.five = t, this.scale = (s = e == null ? void 0 : e.scale) != null ? s : 2, this.width = (o = e == null ? void 0 : e.width) != null ? o : 190, this.height = (a = (r = e == null ? void 0 : e.height) != null ? r : e == null ? void 0 : e.width) != null ? a : 190, this.config = {
|
|
1902
1904
|
dragEnabled: (e == null ? void 0 : e.dragEnabled) || !1,
|
|
1903
1905
|
autoFixPCPosition: (e == null ? void 0 : e.autoFixPCPosition) || !1,
|
|
@@ -2269,7 +2271,7 @@ class pf extends xm {
|
|
|
2269
2271
|
}
|
|
2270
2272
|
const mi = /* @__PURE__ */ new Map(), pc = /* @__PURE__ */ new Map();
|
|
2271
2273
|
function Qp(n) {
|
|
2272
|
-
|
|
2274
|
+
pi(n).forEach((e) => {
|
|
2273
2275
|
var i, s;
|
|
2274
2276
|
mi.has(e) || (e instanceof HTMLElement ? mi.set(e, {
|
|
2275
2277
|
opacity: e.style.opacity === "" ? void 0 : e.style.opacity,
|
|
@@ -2285,7 +2287,7 @@ function Qp(n) {
|
|
|
2285
2287
|
});
|
|
2286
2288
|
}
|
|
2287
2289
|
function Gp(n) {
|
|
2288
|
-
|
|
2290
|
+
pi(n).forEach((e) => {
|
|
2289
2291
|
const i = mi.get(e);
|
|
2290
2292
|
i && (e instanceof HTMLElement && (e.style.opacity = i.opacity, e.style.display = i.visible.display, e.style.visibility = i.visible.visibility, e.style.display = i.visible.display), e.isObject3D && (e.visible = i.visible, e.material && (e.material.opacity = i.opacity, e.material.transparent = i.transparent)), mi.delete(e));
|
|
2291
2293
|
});
|
|
@@ -2294,7 +2296,7 @@ function pl(n, t) {
|
|
|
2294
2296
|
return Q(this, null, function* () {
|
|
2295
2297
|
var a, l;
|
|
2296
2298
|
const e = (a = t == null ? void 0 : t.traverseTHREEObject) != null ? a : !0;
|
|
2297
|
-
let i =
|
|
2299
|
+
let i = pi(n);
|
|
2298
2300
|
const s = [];
|
|
2299
2301
|
i.forEach((c) => {
|
|
2300
2302
|
c instanceof HTMLElement ? s.push(c) : c.isObject3D && (e ? (s.push(c), c.traverse((h) => {
|
|
@@ -2334,7 +2336,7 @@ function Af(n, t) {
|
|
|
2334
2336
|
if (!mi.has(o))
|
|
2335
2337
|
return;
|
|
2336
2338
|
const r = mi.get(o), l = ((h = (c = r == null ? void 0 : r.opacity) != null ? c : t == null ? void 0 : t.maxOpacity) != null ? h : 1) * (e.progress / 100);
|
|
2337
|
-
o instanceof HTMLElement ? (o.style.opacity = String(l), o.style.visibility = "visible") : o.isObject3D && (
|
|
2339
|
+
o instanceof HTMLElement ? (o.style.opacity = String(l), o.style.visibility = "visible") : o.isObject3D && (pi(n).includes(o) && (o.visible = !0), o.material && (o.material.opacity = l, o.material.transparent = !0));
|
|
2338
2340
|
}), (i = t == null ? void 0 : t.updateRender) == null || i.call(t);
|
|
2339
2341
|
}
|
|
2340
2342
|
}, t));
|
|
@@ -2649,7 +2651,7 @@ const Q3 = (n) => {
|
|
|
2649
2651
|
};
|
|
2650
2652
|
function J() {
|
|
2651
2653
|
}
|
|
2652
|
-
const
|
|
2654
|
+
const Ai = (n) => n;
|
|
2653
2655
|
function ft(n, t) {
|
|
2654
2656
|
for (const e in t)
|
|
2655
2657
|
n[e] = t[e];
|
|
@@ -3056,7 +3058,7 @@ function on(n, t, e) {
|
|
|
3056
3058
|
r && qo(n, r);
|
|
3057
3059
|
}
|
|
3058
3060
|
function h() {
|
|
3059
|
-
const { delay: f = 0, duration: g = 300, easing: A =
|
|
3061
|
+
const { delay: f = 0, duration: g = 300, easing: A = Ai, tick: p = J, css: m } = s || kl;
|
|
3060
3062
|
m && (r = Jo(n, 0, 1, g, f, A, m, l++)), p(0, 1);
|
|
3061
3063
|
const b = bl() + f, y = b + g;
|
|
3062
3064
|
a && a.abort(), o = !0, Xe(() => Ui(n, !0, "start")), a = wl((P) => {
|
|
@@ -3090,7 +3092,7 @@ function is(n, t, e) {
|
|
|
3090
3092
|
const a = Kt;
|
|
3091
3093
|
a.r += 1;
|
|
3092
3094
|
function l() {
|
|
3093
|
-
const { delay: c = 0, duration: h = 300, easing: u =
|
|
3095
|
+
const { delay: c = 0, duration: h = 300, easing: u = Ai, tick: f = J, css: g } = s || kl;
|
|
3094
3096
|
g && (r = Jo(n, 1, 0, h, c, u, g));
|
|
3095
3097
|
const A = bl() + c, p = A + h;
|
|
3096
3098
|
Xe(() => Ui(n, !1, "start")), wl((m) => {
|
|
@@ -3132,7 +3134,7 @@ function ni(n, t, e, i) {
|
|
|
3132
3134
|
};
|
|
3133
3135
|
}
|
|
3134
3136
|
function f(g) {
|
|
3135
|
-
const { delay: A = 0, duration: p = 300, easing: m =
|
|
3137
|
+
const { delay: A = 0, duration: p = 300, easing: m = Ai, tick: b = J, css: y } = o || kl, P = {
|
|
3136
3138
|
start: bl() + A,
|
|
3137
3139
|
b: g
|
|
3138
3140
|
};
|
|
@@ -4008,7 +4010,7 @@ function Nf(n) {
|
|
|
4008
4010
|
const t = n - 1;
|
|
4009
4011
|
return t * t * t + 1;
|
|
4010
4012
|
}
|
|
4011
|
-
function gt(n, { delay: t = 0, duration: e = 400, easing: i =
|
|
4013
|
+
function gt(n, { delay: t = 0, duration: e = 400, easing: i = Ai } = {}) {
|
|
4012
4014
|
const s = +getComputedStyle(n).opacity;
|
|
4013
4015
|
return {
|
|
4014
4016
|
delay: t,
|
|
@@ -6965,7 +6967,7 @@ function Zc(n) {
|
|
|
6965
6967
|
/*duration*/
|
|
6966
6968
|
n[0]
|
|
6967
6969
|
),
|
|
6968
|
-
easing:
|
|
6970
|
+
easing: Ai
|
|
6969
6971
|
}), e.start();
|
|
6970
6972
|
}), i = !0;
|
|
6971
6973
|
}
|
|
@@ -7422,7 +7424,7 @@ let rn = class {
|
|
|
7422
7424
|
/**
|
|
7423
7425
|
* @realsee/dnalogel 版本号
|
|
7424
7426
|
*/
|
|
7425
|
-
d(this, "VERSION", "3.
|
|
7427
|
+
d(this, "VERSION", "3.30.0");
|
|
7426
7428
|
d(this, "five");
|
|
7427
7429
|
/**
|
|
7428
7430
|
* @description: 插件事件钩子
|
|
@@ -7443,7 +7445,7 @@ let rn = class {
|
|
|
7443
7445
|
absoluteUrl(t) {
|
|
7444
7446
|
return Al(this.staticPrefix, t);
|
|
7445
7447
|
}
|
|
7446
|
-
},
|
|
7448
|
+
}, vi = class extends rn {
|
|
7447
7449
|
};
|
|
7448
7450
|
var St = /* @__PURE__ */ ((n) => (n.UnknownError = "UnknownError", n.DataNotLoaded = "DataNotLoaded", n.UpdateSizeError = "UpdateSizeError", n.BreakOffByHide = "BreakOffByHide", n.BreakOffByDisable = "BreakOffByDisable", n.ModelNotLoaded = "ModelNotLoaded", n.ChangeModeError = "ChangeModeError", n.UpdateCameraError = "UpdateCameraError", n))(St || {});
|
|
7449
7451
|
const Wf = 500, w0 = 80;
|
|
@@ -7532,7 +7534,7 @@ function M0(n) {
|
|
|
7532
7534
|
const { latitude: t, longitude: e } = n, i = Math.abs(t - Math.PI / 2) < 10 * Math.PI / 180, s = e < 30 * (Math.PI / 180) || e > 330 * (Math.PI / 180);
|
|
7533
7535
|
return i && s;
|
|
7534
7536
|
}
|
|
7535
|
-
let k0 = class extends
|
|
7537
|
+
let k0 = class extends vi {
|
|
7536
7538
|
constructor(e, i) {
|
|
7537
7539
|
var l, c, h;
|
|
7538
7540
|
super(e);
|
|
@@ -7871,7 +7873,7 @@ function D0(n) {
|
|
|
7871
7873
|
const { latitude: t, longitude: e } = n, i = Math.abs(t - Math.PI / 2) < 10 * Math.PI / 180, s = e < 30 * (Math.PI / 180) || e > 330 * (Math.PI / 180);
|
|
7872
7874
|
return i && s;
|
|
7873
7875
|
}
|
|
7874
|
-
let S0 = class extends
|
|
7876
|
+
let S0 = class extends vi {
|
|
7875
7877
|
constructor(e, i) {
|
|
7876
7878
|
var l, c;
|
|
7877
7879
|
super(e);
|
|
@@ -8205,7 +8207,7 @@ let S0 = class extends Ai {
|
|
|
8205
8207
|
}
|
|
8206
8208
|
};
|
|
8207
8209
|
const K3 = (n, t) => new S0(n, t);
|
|
8208
|
-
let T0 = class extends
|
|
8210
|
+
let T0 = class extends vi {
|
|
8209
8211
|
constructor(e, i) {
|
|
8210
8212
|
var l, c;
|
|
8211
8213
|
super(e);
|
|
@@ -9256,7 +9258,7 @@ class J0 extends ce {
|
|
|
9256
9258
|
);
|
|
9257
9259
|
}
|
|
9258
9260
|
}
|
|
9259
|
-
let q0 = class extends
|
|
9261
|
+
let q0 = class extends vi {
|
|
9260
9262
|
constructor(e, i) {
|
|
9261
9263
|
super(e);
|
|
9262
9264
|
// =============== public properties =================
|
|
@@ -10570,7 +10572,7 @@ function Kf(n) {
|
|
|
10570
10572
|
});
|
|
10571
10573
|
}
|
|
10572
10574
|
const Mo = { userAction: !0 };
|
|
10573
|
-
class Pb extends
|
|
10575
|
+
class Pb extends vi {
|
|
10574
10576
|
constructor(e, i) {
|
|
10575
10577
|
super(e, i);
|
|
10576
10578
|
/**
|
|
@@ -10653,10 +10655,10 @@ class Pb extends Ai {
|
|
|
10653
10655
|
d(this, "onFivePanoArrived", (e) => {
|
|
10654
10656
|
var s, o, r, a, l, c, h, u;
|
|
10655
10657
|
const i = (r = (o = (s = this.five.work) == null ? void 0 : s.observers) == null ? void 0 : o[e]) == null ? void 0 : r.standingPosition;
|
|
10656
|
-
if (this.compassMesh && (this.compassMesh.position.copy(i.clone().setY(i.y + 0.01)), this.compassMesh.material.opacity === 0 && ((a = this.compassMeshTween) == null || a.dispose(), this.compassMeshTween = Bn(1e3).onUpdate(({ progress: f }) => {
|
|
10658
|
+
if (this.compassMesh && i && (this.compassMesh.position.copy(i.clone().setY(i.y + 0.01)), this.compassMesh.material.opacity === 0 && ((a = this.compassMeshTween) == null || a.dispose(), this.compassMeshTween = Bn(1e3).onUpdate(({ progress: f }) => {
|
|
10657
10659
|
var g;
|
|
10658
10660
|
(g = this.compassMesh) == null || g.material.setValues({ opacity: f }), this.five.needsRender = !0;
|
|
10659
|
-
}).play())), this.logoMesh && (this.logoMesh.position.copy(i.clone().setY(i.y + 0.011)), this.logoMesh.material.opacity === 0 && ((l = this.logoMeshTween) == null || l.dispose(), this.logoMeshTween = Bn(1e3).onUpdate(({ progress: f }) => {
|
|
10661
|
+
}).play())), this.logoMesh && i && (this.logoMesh.position.copy(i.clone().setY(i.y + 0.011)), this.logoMesh.material.opacity === 0 && ((l = this.logoMeshTween) == null || l.dispose(), this.logoMeshTween = Bn(1e3).onUpdate(({ progress: f }) => {
|
|
10660
10662
|
var g;
|
|
10661
10663
|
(g = this.logoMesh) == null || g.material.setValues({ opacity: f }), this.five.needsRender = !0;
|
|
10662
10664
|
}).play())), this.entryDoorMesh) {
|
|
@@ -10667,7 +10669,7 @@ class Pb extends Ai {
|
|
|
10667
10669
|
).clone().setY(i.y).sub(i).normalize(), A = i.clone().add(g.clone().multiplyScalar(0.7)).setY(i.y + 0.01);
|
|
10668
10670
|
this.entryDoorMesh.rotation.z = new w.Vector3(0, 0, -1).angleTo(g), this.entryDoorMesh.position.copy(A), ((c = this.data) == null ? void 0 : c.room_observers[e].room.type) === 1 ? (h = this.entryDoorMesh) == null || h.material.setValues({ opacity: 1 }) : (u = this.entryDoorMesh) == null || u.material.setValues({ opacity: 0 });
|
|
10669
10671
|
}
|
|
10670
|
-
this.roomInfoInstance && this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.position.copy(i.clone().setY(i.y + 0.01)), this.roomInfoInstance.setRoom(this.data.room_observers[e].room)), this.five.needsRender = !0;
|
|
10672
|
+
this.roomInfoInstance && this.roomInfoWrapperInstance && i && (this.roomInfoWrapperInstance.css3DObject.position.copy(i.clone().setY(i.y + 0.01)), this.roomInfoInstance.setRoom(this.data.room_observers[e].room)), this.five.needsRender = !0;
|
|
10671
10673
|
});
|
|
10672
10674
|
d(this, "onFiveCameraDirectionUpdate", ({ longitude: e, latitude: i }) => {
|
|
10673
10675
|
var s, o;
|
|
@@ -11788,7 +11790,7 @@ function Zb(n, t) {
|
|
|
11788
11790
|
return n.x === t.x && n.y === t.y;
|
|
11789
11791
|
}
|
|
11790
11792
|
const gh = () => !1;
|
|
11791
|
-
class
|
|
11793
|
+
class Ei extends yr {
|
|
11792
11794
|
constructor(e) {
|
|
11793
11795
|
var i;
|
|
11794
11796
|
super(e);
|
|
@@ -13488,7 +13490,7 @@ function k1(n, t, e) {
|
|
|
13488
13490
|
m === "Edit" ? e(5, f = !0) : (a(null), e(5, f = !1));
|
|
13489
13491
|
}
|
|
13490
13492
|
function c() {
|
|
13491
|
-
i.controller instanceof
|
|
13493
|
+
i.controller instanceof Ei && i.controller.complete(), i.save({ mode: "Watch" });
|
|
13492
13494
|
}
|
|
13493
13495
|
function h(m) {
|
|
13494
13496
|
e(3, r = m.length > 0);
|
|
@@ -14135,9 +14137,9 @@ function H1(n, t, e) {
|
|
|
14135
14137
|
const f = () => {
|
|
14136
14138
|
i.getCurrentMode() !== "Edit" ? i.changeMode("Edit") : (p("add"), g());
|
|
14137
14139
|
}, g = () => {
|
|
14138
|
-
i.controller instanceof
|
|
14140
|
+
i.controller instanceof Ei && i.controller.selectPoint();
|
|
14139
14141
|
}, A = () => {
|
|
14140
|
-
i.controller instanceof
|
|
14142
|
+
i.controller instanceof Ei && i.controller.complete();
|
|
14141
14143
|
}, p = (_) => {
|
|
14142
14144
|
e(3, h = _);
|
|
14143
14145
|
}, m = () => {
|
|
@@ -14544,7 +14546,7 @@ class q1 {
|
|
|
14544
14546
|
var t, e, i, s;
|
|
14545
14547
|
this.hasOpen = !1, this.container.style.visibility = "hidden", this.container.style.opacity = "0", (t = this.controller) == null || t.dispose(), (e = this.useUIController) == null || e.hide(), (i = this.useGuideController) == null || i.hide(), (s = this.shortcutKeyController) == null || s.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
|
|
14546
14548
|
});
|
|
14547
|
-
d(this, "getCurrentMode", () => this.controller instanceof
|
|
14549
|
+
d(this, "getCurrentMode", () => this.controller instanceof Ei ? "Edit" : this.controller instanceof vh ? "Watch" : this.controller instanceof ws ? "Mixed" : this.controller instanceof mh ? "View" : null);
|
|
14548
14550
|
/** 变更场景
|
|
14549
14551
|
* @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
|
|
14550
14552
|
*/
|
|
@@ -14556,7 +14558,7 @@ class q1 {
|
|
|
14556
14558
|
const e = {
|
|
14557
14559
|
View: mh,
|
|
14558
14560
|
Watch: vh,
|
|
14559
|
-
Edit:
|
|
14561
|
+
Edit: Ei,
|
|
14560
14562
|
Mixed: ws
|
|
14561
14563
|
};
|
|
14562
14564
|
if (!e[t])
|
|
@@ -14625,7 +14627,7 @@ class q1 {
|
|
|
14625
14627
|
}
|
|
14626
14628
|
/** 撤销编辑 */
|
|
14627
14629
|
revoke() {
|
|
14628
|
-
this.controller instanceof
|
|
14630
|
+
this.controller instanceof Ei && this.controller.revoke();
|
|
14629
14631
|
}
|
|
14630
14632
|
removePolyline(t) {
|
|
14631
14633
|
this.model.removePolyline(t);
|
|
@@ -14659,10 +14661,10 @@ class q1 {
|
|
|
14659
14661
|
*/
|
|
14660
14662
|
save(t) {
|
|
14661
14663
|
var s;
|
|
14662
|
-
if (!(this.controller instanceof
|
|
14664
|
+
if (!(this.controller instanceof Ei) && !(this.controller instanceof ws))
|
|
14663
14665
|
return this;
|
|
14664
14666
|
const e = (s = t == null ? void 0 : t.mode) != null ? s : "View", i = this.controller.model.areas;
|
|
14665
|
-
return this.controller instanceof
|
|
14667
|
+
return this.controller instanceof Ei ? this.controller.complete() : i.forEach((o) => {
|
|
14666
14668
|
o.showArea(), this.model.addArea(o);
|
|
14667
14669
|
}), this.changeMode(e), this;
|
|
14668
14670
|
}
|
|
@@ -15309,12 +15311,12 @@ const ya = 1e-3, Fh = 0.01, dy = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
15309
15311
|
Ye.distance + Fh
|
|
15310
15312
|
), [Ct] = p.intersectObjects ? ot.intersectObjects(p.intersectObjects, !0) : n.model.loaded ? n.model.intersectRaycaster(ot) : ot.intersectObjects(n.model.children, !0);
|
|
15311
15313
|
if (Ct && Ye.distance - Ct.distance < Fh) {
|
|
15312
|
-
const { position: Ve, normal: Ne, id: Je, replacement: Rt } = Ye, ss = new w.Plane().setFromNormalAndCoplanarPoint(Ne, Ve), Xt = Ve.clone().sub(me.position).cross(new w.Vector3(0, 1, 0)).setLength(ya),
|
|
15314
|
+
const { position: Ve, normal: Ne, id: Je, replacement: Rt } = Ye, ss = new w.Plane().setFromNormalAndCoplanarPoint(Ne, Ve), Xt = Ve.clone().sub(me.position).cross(new w.Vector3(0, 1, 0)).setLength(ya), bi = [
|
|
15313
15315
|
Ve.clone(),
|
|
15314
15316
|
Ve.clone().add(Xt),
|
|
15315
15317
|
Ve.clone().add(new w.Vector3(0, ya, 0)).add(Xt),
|
|
15316
15318
|
Ve.clone().add(new w.Vector3(0, ya, 0))
|
|
15317
|
-
].map((cn) => ss.projectPoint(cn, new w.Vector3())), { container: Bi, dispose: kt } = u.create3DDomContainer(
|
|
15319
|
+
].map((cn) => ss.projectPoint(cn, new w.Vector3())), { container: Bi, dispose: kt } = u.create3DDomContainer(bi) || {}, ln = new oy({
|
|
15318
15320
|
target: Bi,
|
|
15319
15321
|
props: {
|
|
15320
15322
|
id: Je,
|
|
@@ -18520,7 +18522,7 @@ class Xw extends Uw {
|
|
|
18520
18522
|
return Math.round((1e4 - (e != null ? e : 0)) * 100);
|
|
18521
18523
|
}
|
|
18522
18524
|
setVisible(t) {
|
|
18523
|
-
(t ?
|
|
18525
|
+
(t ? pi(t) : this.tags).forEach((i) => {
|
|
18524
18526
|
const s = this.getVisible(i);
|
|
18525
18527
|
i.state && (i.state.visible = s);
|
|
18526
18528
|
});
|
|
@@ -18551,7 +18553,7 @@ class Xw extends Uw {
|
|
|
18551
18553
|
const i = tn(tn((c = this.getTagConfig(t).visibleConfig) != null ? c : {}).intersectRaycaster), s = e != null ? e : this.five.getCurrentState().panoIndex, o = Nt(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(s) : this.five.camera.position;
|
|
18552
18554
|
if (o === void 0)
|
|
18553
18555
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: s } };
|
|
18554
|
-
const r =
|
|
18556
|
+
const r = pi(
|
|
18555
18557
|
(() => {
|
|
18556
18558
|
var p;
|
|
18557
18559
|
const A = (p = i.checkPoints) != null ? p : "center";
|
|
@@ -18746,7 +18748,7 @@ function ad(n) {
|
|
|
18746
18748
|
/*inDelay*/
|
|
18747
18749
|
n[0]
|
|
18748
18750
|
),
|
|
18749
|
-
easing:
|
|
18751
|
+
easing: Ai
|
|
18750
18752
|
}), i.start());
|
|
18751
18753
|
}), o = !0);
|
|
18752
18754
|
},
|
|
@@ -18760,7 +18762,7 @@ function ad(n) {
|
|
|
18760
18762
|
/*outDelay*/
|
|
18761
18763
|
n[1]
|
|
18762
18764
|
),
|
|
18763
|
-
easing:
|
|
18765
|
+
easing: Ai
|
|
18764
18766
|
})), o = !1;
|
|
18765
18767
|
},
|
|
18766
18768
|
d(r) {
|
|
@@ -21402,7 +21404,7 @@ var jo = EI, or = {}, MI = {
|
|
|
21402
21404
|
return v ? "Symbol(src)_1." + v : "";
|
|
21403
21405
|
}(), Ne = Mt.toString, Je = ot.hasOwnProperty, Rt = ot.toString, ss = RegExp(
|
|
21404
21406
|
"^" + Ne.call(Je).replace(Z, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
21405
|
-
), Xt = Ze ? be.Buffer : void 0,
|
|
21407
|
+
), Xt = Ze ? be.Buffer : void 0, bi = be.Symbol, Bi = be.Uint8Array, kt = Ie(Object.getPrototypeOf, Object), ln = Object.create, cn = ot.propertyIsEnumerable, kr = Ye.splice, os = Object.getOwnPropertySymbols, hn = Xt ? Xt.isBuffer : void 0, to = Ie(Object.keys, Object), dn = Ht(be, "DataView"), Ri = Ht(be, "Map"), Vt = Ht(be, "Promise"), un = Ht(be, "Set"), rs = Ht(be, "WeakMap"), Vi = Ht(Object, "create"), as = Pt(dn), Hi = Pt(Ri), ls = Pt(Vt), cs = Pt(un), hs = Pt(rs), yi = bi ? bi.prototype : void 0, io = yi ? yi.valueOf : void 0;
|
|
21406
21408
|
function ri(v) {
|
|
21407
21409
|
var M = -1, R = v ? v.length : 0;
|
|
21408
21410
|
for (this.clear(); ++M < R; ) {
|
|
@@ -21850,12 +21852,12 @@ var rr = {}, xI = {
|
|
|
21850
21852
|
R[++M] = Y;
|
|
21851
21853
|
}), R;
|
|
21852
21854
|
}
|
|
21853
|
-
var Rt = Array.prototype, ss = Function.prototype, Xt = Object.prototype,
|
|
21854
|
-
var v = /[^.]+$/.exec(
|
|
21855
|
+
var Rt = Array.prototype, ss = Function.prototype, Xt = Object.prototype, bi = ve["__core-js_shared__"], Bi = ss.toString, kt = Xt.hasOwnProperty, ln = function() {
|
|
21856
|
+
var v = /[^.]+$/.exec(bi && bi.keys && bi.keys.IE_PROTO || "");
|
|
21855
21857
|
return v ? "Symbol(src)_1." + v : "";
|
|
21856
21858
|
}(), cn = Xt.toString, kr = RegExp(
|
|
21857
21859
|
"^" + Bi.call(kt).replace(Ce, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
21858
|
-
), os = tt ? ve.Buffer : void 0, hn = ve.Symbol, to = ve.Uint8Array, dn = Xt.propertyIsEnumerable, Ri = Rt.splice, Vt = hn ? hn.toStringTag : void 0, un = Object.getOwnPropertySymbols, rs = os ? os.isBuffer : void 0, Vi = Ne(Object.keys, Object), as = ai(ve, "DataView"), Hi = ai(ve, "Map"), ls = ai(ve, "Promise"), cs = ai(ve, "Set"), hs = ai(ve, "WeakMap"),
|
|
21860
|
+
), os = tt ? ve.Buffer : void 0, hn = ve.Symbol, to = ve.Uint8Array, dn = Xt.propertyIsEnumerable, Ri = Rt.splice, Vt = hn ? hn.toStringTag : void 0, un = Object.getOwnPropertySymbols, rs = os ? os.isBuffer : void 0, Vi = Ne(Object.keys, Object), as = ai(ve, "DataView"), Hi = ai(ve, "Map"), ls = ai(ve, "Promise"), cs = ai(ve, "Set"), hs = ai(ve, "WeakMap"), yi = ai(Object, "create"), io = Pt(as), ri = Pt(Hi), xr = Pt(ls), Dr = Pt(cs), Sr = Pt(hs), no = hn ? hn.prototype : void 0, ds = no ? no.valueOf : void 0;
|
|
21859
21861
|
function lt(v) {
|
|
21860
21862
|
var M = -1, R = v == null ? 0 : v.length;
|
|
21861
21863
|
for (this.clear(); ++M < R; ) {
|
|
@@ -21864,7 +21866,7 @@ var rr = {}, xI = {
|
|
|
21864
21866
|
}
|
|
21865
21867
|
}
|
|
21866
21868
|
function Tr() {
|
|
21867
|
-
this.__data__ =
|
|
21869
|
+
this.__data__ = yi ? yi(null) : {}, this.size = 0;
|
|
21868
21870
|
}
|
|
21869
21871
|
function Lr(v) {
|
|
21870
21872
|
var M = this.has(v) && delete this.__data__[v];
|
|
@@ -21872,7 +21874,7 @@ var rr = {}, xI = {
|
|
|
21872
21874
|
}
|
|
21873
21875
|
function jr(v) {
|
|
21874
21876
|
var M = this.__data__;
|
|
21875
|
-
if (
|
|
21877
|
+
if (yi) {
|
|
21876
21878
|
var R = M[v];
|
|
21877
21879
|
return R === i ? void 0 : R;
|
|
21878
21880
|
}
|
|
@@ -21880,11 +21882,11 @@ var rr = {}, xI = {
|
|
|
21880
21882
|
}
|
|
21881
21883
|
function zr(v) {
|
|
21882
21884
|
var M = this.__data__;
|
|
21883
|
-
return
|
|
21885
|
+
return yi ? M[v] !== void 0 : kt.call(M, v);
|
|
21884
21886
|
}
|
|
21885
21887
|
function Or(v, M) {
|
|
21886
21888
|
var R = this.__data__;
|
|
21887
|
-
return this.size += this.has(v) ? 0 : 1, R[v] =
|
|
21889
|
+
return this.size += this.has(v) ? 0 : 1, R[v] = yi && M === void 0 ? i : M, this;
|
|
21888
21890
|
}
|
|
21889
21891
|
lt.prototype.clear = Tr, lt.prototype.delete = Lr, lt.prototype.get = jr, lt.prototype.has = zr, lt.prototype.set = Or;
|
|
21890
21892
|
function mt(v) {
|
|
@@ -22028,8 +22030,8 @@ var rr = {}, xI = {
|
|
|
22028
22030
|
if (!(R & s)) {
|
|
22029
22031
|
var At = pt && kt.call(v, "__wrapped__"), ct = Dt && kt.call(M, "__wrapped__");
|
|
22030
22032
|
if (At || ct) {
|
|
22031
|
-
var
|
|
22032
|
-
return pe || (pe = new Zt()), Ee(
|
|
22033
|
+
var wi = At ? v.value() : v, ci = ct ? M.value() : M;
|
|
22034
|
+
return pe || (pe = new Zt()), Ee(wi, ci, R, Y, pe);
|
|
22033
22035
|
}
|
|
22034
22036
|
}
|
|
22035
22037
|
return it ? (pe || (pe = new Zt()), ia(v, M, R, Y, Ee, pe)) : !1;
|
|
@@ -22062,9 +22064,9 @@ var rr = {}, xI = {
|
|
|
22062
22064
|
for (pe.set(v, M), pe.set(M, v); ++pt < Te; ) {
|
|
22063
22065
|
var At = v[pt], ct = M[pt];
|
|
22064
22066
|
if (Y)
|
|
22065
|
-
var
|
|
22066
|
-
if (
|
|
22067
|
-
if (
|
|
22067
|
+
var wi = Se ? Y(ct, At, pt, M, v, pe) : Y(At, ct, pt, v, M, pe);
|
|
22068
|
+
if (wi !== void 0) {
|
|
22069
|
+
if (wi)
|
|
22068
22070
|
continue;
|
|
22069
22071
|
Dt = !1;
|
|
22070
22072
|
break;
|
|
@@ -22133,7 +22135,7 @@ var rr = {}, xI = {
|
|
|
22133
22135
|
return At == M;
|
|
22134
22136
|
var ct = !0;
|
|
22135
22137
|
pe.set(v, M), pe.set(M, v);
|
|
22136
|
-
for (var
|
|
22138
|
+
for (var wi = Se; ++Dt < qe; ) {
|
|
22137
22139
|
it = Te[Dt];
|
|
22138
22140
|
var ci = v[it], Gi = M[it];
|
|
22139
22141
|
if (Y)
|
|
@@ -22142,9 +22144,9 @@ var rr = {}, xI = {
|
|
|
22142
22144
|
ct = !1;
|
|
22143
22145
|
break;
|
|
22144
22146
|
}
|
|
22145
|
-
|
|
22147
|
+
wi || (wi = it == "constructor");
|
|
22146
22148
|
}
|
|
22147
|
-
if (ct && !
|
|
22149
|
+
if (ct && !wi) {
|
|
22148
22150
|
var go = v.constructor, mo = M.constructor;
|
|
22149
22151
|
go != mo && "constructor" in v && "constructor" in M && !(typeof go == "function" && go instanceof go && typeof mo == "function" && mo instanceof mo) && (ct = !1);
|
|
22150
22152
|
}
|
|
@@ -23890,7 +23892,7 @@ function Gd(n) {
|
|
|
23890
23892
|
/*inDelay*/
|
|
23891
23893
|
n[2]
|
|
23892
23894
|
),
|
|
23893
|
-
easing:
|
|
23895
|
+
easing: Ai
|
|
23894
23896
|
} : void 0
|
|
23895
23897
|
), o.start());
|
|
23896
23898
|
}), a = !0);
|
|
@@ -23910,7 +23912,7 @@ function Gd(n) {
|
|
|
23910
23912
|
/*outDelay*/
|
|
23911
23913
|
n[3]
|
|
23912
23914
|
),
|
|
23913
|
-
easing:
|
|
23915
|
+
easing: Ai
|
|
23914
23916
|
} : void 0
|
|
23915
23917
|
)), a = !1;
|
|
23916
23918
|
},
|
|
@@ -30748,7 +30750,7 @@ const Rx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
30748
30750
|
__proto__: null,
|
|
30749
30751
|
GuideLineItem: tm
|
|
30750
30752
|
}, Symbol.toStringTag, { value: "Module" })), ll = "GuideLinePlugin", Eu = `${ll}`;
|
|
30751
|
-
let pM = class extends
|
|
30753
|
+
let pM = class extends vi {
|
|
30752
30754
|
constructor(e, i) {
|
|
30753
30755
|
super(e, i);
|
|
30754
30756
|
d(this, "name", ll);
|
|
@@ -31307,7 +31309,7 @@ function zM() {
|
|
|
31307
31309
|
border: "1px solid rgba(255,255,255,0.4)"
|
|
31308
31310
|
});
|
|
31309
31311
|
n.appendChild(t), t.appendChild(e);
|
|
31310
|
-
const i = "-4px", s = { direction: "nesw", element:
|
|
31312
|
+
const i = "-4px", s = { direction: "nesw", element: Pi({ cursor: "nesw-resize", left: i, bottom: i }) }, o = { direction: "ns", element: Pi({ cursor: "ns-resize", bottom: i }) }, r = { direction: "nwse", element: Pi({ cursor: "nwse-resize", right: i, bottom: i }) }, a = { direction: "ew", element: Pi({ cursor: "ew-resize", right: i }) }, l = { direction: "nesw", element: Pi({ cursor: "nesw-resize", right: i, top: i }) }, c = { direction: "ns", element: Pi({ cursor: "ns-resize", top: i }) }, h = { direction: "nwse", element: Pi({ cursor: "nwse-resize", left: i, top: i }) }, u = { direction: "ew", element: Pi({ cursor: "ew-resize", left: i }) };
|
|
31311
31313
|
return new Array(o, a, c, u, s, r, l, h).forEach((g) => t.appendChild(g.element)), { container: n, squares: [
|
|
31312
31314
|
s,
|
|
31313
31315
|
o,
|
|
@@ -31319,7 +31321,7 @@ function zM() {
|
|
|
31319
31321
|
u
|
|
31320
31322
|
] };
|
|
31321
31323
|
}
|
|
31322
|
-
function
|
|
31324
|
+
function Pi(n) {
|
|
31323
31325
|
const t = Ji(D({
|
|
31324
31326
|
background: "#FFFFFF",
|
|
31325
31327
|
width: "9px",
|
|
@@ -31858,7 +31860,7 @@ class Ks {
|
|
|
31858
31860
|
}
|
|
31859
31861
|
}
|
|
31860
31862
|
hoverListener(t, e = 16777215, i = 1) {
|
|
31861
|
-
const s =
|
|
31863
|
+
const s = pi(t).filter(Me), o = [];
|
|
31862
31864
|
for (const r of s)
|
|
31863
31865
|
if (r.material || r instanceof w.Group) {
|
|
31864
31866
|
const a = r instanceof w.Group ? r.children.filter((f) => f instanceof w.Mesh) : [r];
|
|
@@ -33504,7 +33506,7 @@ class vk extends Dn {
|
|
|
33504
33506
|
}
|
|
33505
33507
|
}
|
|
33506
33508
|
const xu = { flowSpeed: 0.6, rotateSpeed: 0 };
|
|
33507
|
-
let bk = class extends
|
|
33509
|
+
let bk = class extends vi {
|
|
33508
33510
|
constructor(e) {
|
|
33509
33511
|
super(e);
|
|
33510
33512
|
// ==================== public properties ====================
|
|
@@ -34212,7 +34214,7 @@ function Va(n, t) {
|
|
|
34212
34214
|
const e = new w.Matrix4(), i = new w.Matrix4().makeRotationX(Math.PI / 2), s = new w.Matrix4().makeTranslation(0, 0, -t), o = new w.Matrix4().makeScale(1, 1, -1);
|
|
34213
34215
|
e.multiply(i), e.multiply(s), e.multiply(o), n.applyMatrix4(e);
|
|
34214
34216
|
}
|
|
34215
|
-
let kk = class extends
|
|
34217
|
+
let kk = class extends vi {
|
|
34216
34218
|
/** AreaMakerPlugin
|
|
34217
34219
|
* @param `five` `<Five>` Five 实例
|
|
34218
34220
|
* @param `params` `<PluginType.Params> | <undefined>` 插件初始化参数
|
|
@@ -35476,7 +35478,10 @@ class Oi extends Lt {
|
|
|
35476
35478
|
unhighlight() {
|
|
35477
35479
|
}
|
|
35478
35480
|
applyObjectMatrixWorld(e) {
|
|
35479
|
-
|
|
35481
|
+
const i = pi(e);
|
|
35482
|
+
this.updateMatrixWorld();
|
|
35483
|
+
const s = i.map((o) => this.localToWorld(o.clone()));
|
|
35484
|
+
return Array.isArray(e) ? s : s[0];
|
|
35480
35485
|
}
|
|
35481
35486
|
applyObjectQuaternion(e) {
|
|
35482
35487
|
const i = this.quaternion.clone();
|
|
@@ -35911,12 +35916,21 @@ class hr extends Lt {
|
|
|
35911
35916
|
d(this, "edgePlanes", new Lt());
|
|
35912
35917
|
this.topPolygon.name = "TopPolygon", this.bottomPolygon.name = "BottomPolygon", this.edgePlanes.name = "EdgePlanes", this.addIfNotExists(this.bottomPolygon), e && this.setPoints(e), e && this.setStyle(e);
|
|
35913
35918
|
}
|
|
35919
|
+
/**
|
|
35920
|
+
* @deprecated notice: please use specified center instead, such as `localCenter` or `worldCenter`
|
|
35921
|
+
*/
|
|
35914
35922
|
get center() {
|
|
35923
|
+
return this.localCenter;
|
|
35924
|
+
}
|
|
35925
|
+
get localCenter() {
|
|
35915
35926
|
var s, o;
|
|
35916
35927
|
const e = (s = this.topPolygon) == null ? void 0 : s.center, i = (o = this.bottomPolygon) == null ? void 0 : o.center;
|
|
35917
35928
|
if (e && i)
|
|
35918
35929
|
return new w.Vector3().lerpVectors(e, i, 0.5);
|
|
35919
35930
|
}
|
|
35931
|
+
get worldCenter() {
|
|
35932
|
+
return this.updateMatrixWorld(), this.localToWorld(this.localCenter);
|
|
35933
|
+
}
|
|
35920
35934
|
get color() {
|
|
35921
35935
|
return this.bottomPolygon.color;
|
|
35922
35936
|
}
|
|
@@ -35971,7 +35985,7 @@ class $k extends eo {
|
|
|
35971
35985
|
super(t, () => {
|
|
35972
35986
|
const e = () => {
|
|
35973
35987
|
var r, a;
|
|
35974
|
-
const i = (r = t.prismMesh.topPolygon
|
|
35988
|
+
const i = (r = t.prismMesh.topPolygon) == null ? void 0 : r.center, s = (a = t.prismMesh.bottomPolygon) == null ? void 0 : a.center, o = new w.Vector3().lerpVectors(i, s, 0.5);
|
|
35975
35989
|
return { topCenter: i, bottomCenter: s, boxCenter: o };
|
|
35976
35990
|
};
|
|
35977
35991
|
return {
|
|
@@ -36510,7 +36524,7 @@ class l3 extends eo {
|
|
|
36510
36524
|
super(t, () => {
|
|
36511
36525
|
const e = () => {
|
|
36512
36526
|
var r, a;
|
|
36513
|
-
const i = (r = t.boxMesh.topPlane
|
|
36527
|
+
const i = (r = t.boxMesh.topPlane) == null ? void 0 : r.center, s = (a = t.boxMesh.bottomPlane) == null ? void 0 : a.center, o = new w.Vector3().lerpVectors(i, s, 0.5);
|
|
36514
36528
|
return { topCenter: i, bottomCenter: s, boxCenter: o };
|
|
36515
36529
|
};
|
|
36516
36530
|
return {
|
|
@@ -36894,8 +36908,9 @@ class f3 {
|
|
|
36894
36908
|
if (this.enabled)
|
|
36895
36909
|
return;
|
|
36896
36910
|
this.enabled = !0, this.wrapper = (i = document.getElementById(Zu)) != null ? i : (() => {
|
|
36911
|
+
var o;
|
|
36897
36912
|
const s = document.createElement("div");
|
|
36898
|
-
return s.id = Zu, s.style.position = "absolute", s.style.top = "0", s.style.left = "0", s.style.width = "100%", s.style.height = "100%", s.style.pointerEvents = "none", this.five.getElement().parentElement.appendChild(s), s;
|
|
36913
|
+
return s.id = Zu, s.style.position = "absolute", s.style.top = "0", s.style.left = "0", s.style.width = "100%", s.style.height = "100%", s.style.pointerEvents = "none", (o = this.five.getElement()) == null || o.parentElement.appendChild(s), s;
|
|
36899
36914
|
})(), this.wrapper.appendChild(this.container);
|
|
36900
36915
|
let t = !1;
|
|
36901
36916
|
const e = () => {
|
|
@@ -36916,10 +36931,13 @@ function g3(n, t) {
|
|
|
36916
36931
|
return new f3(n, t);
|
|
36917
36932
|
}
|
|
36918
36933
|
let Ro;
|
|
36919
|
-
const wm = (n) => Ro || (Ro =
|
|
36934
|
+
const wm = (n) => ((!Ro || n !== Ro.five) && (Ro = {
|
|
36935
|
+
instance: new Ql(n, { noEmitWhenHide: !0 }),
|
|
36936
|
+
five: n
|
|
36937
|
+
}), Ro.instance);
|
|
36920
36938
|
class Cm extends ii {
|
|
36921
36939
|
constructor(e) {
|
|
36922
|
-
var s, o;
|
|
36940
|
+
var s, o, r;
|
|
36923
36941
|
super();
|
|
36924
36942
|
d(this, "type");
|
|
36925
36943
|
d(this, "tag");
|
|
@@ -36930,7 +36948,7 @@ class Cm extends ii {
|
|
|
36930
36948
|
d(this, "enabled", !1);
|
|
36931
36949
|
d(this, "fiveDomEvents");
|
|
36932
36950
|
this.five = e.five, this.model = e.model, this.group = e.group, this.type = e.type, this.rawData = e.rawData, this.fiveDomEvents = wm(this.five);
|
|
36933
|
-
const i = (o = (s = e.position) != null ? s : this.model.
|
|
36951
|
+
const i = (r = (o = (s = e.position) != null ? s : this.model.worldCenter) != null ? o : this.model.center) != null ? r : Js(this.model).getCenter(new w.Vector3());
|
|
36934
36952
|
this.tag = g3(this.five, i);
|
|
36935
36953
|
}
|
|
36936
36954
|
get container() {
|
|
@@ -37075,7 +37093,7 @@ class C3 extends Cm {
|
|
|
37075
37093
|
super(se(D({}, e), { position: s })), this.enable();
|
|
37076
37094
|
}
|
|
37077
37095
|
}
|
|
37078
|
-
class P3 extends
|
|
37096
|
+
class P3 extends vi {
|
|
37079
37097
|
constructor(e) {
|
|
37080
37098
|
super(e);
|
|
37081
37099
|
d(this, "state");
|
|
@@ -37098,7 +37116,7 @@ class P3 extends Ai {
|
|
|
37098
37116
|
i && e.__renderer !== i && (e.__renderer = i, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = i(e.tag.container, e));
|
|
37099
37117
|
});
|
|
37100
37118
|
});
|
|
37101
|
-
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents = wm(e), e.scene.add(this.group), this.handleEnable();
|
|
37119
|
+
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents = wm(e), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
|
|
37102
37120
|
}
|
|
37103
37121
|
load(e) {
|
|
37104
37122
|
return Q(this, null, function* () {
|
|
@@ -37229,7 +37247,7 @@ export {
|
|
|
37229
37247
|
Fx as Object3DHelperPlugin,
|
|
37230
37248
|
ec as PLUGIN,
|
|
37231
37249
|
B3 as PaintBrush,
|
|
37232
|
-
|
|
37250
|
+
Ii as PaintBrushTypeEnum,
|
|
37233
37251
|
ux as PanoCompassPlugin,
|
|
37234
37252
|
Q3 as PanoCursorRaycasterPlugin,
|
|
37235
37253
|
kx as PanoDoorLabelPlugin,
|