@realsee/dnalogel 3.36.11 → 3.36.12
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 +4 -0
- package/dist/CSS3DRenderPlugin/Controller.d.ts +1 -0
- package/dist/ModelMakerPlugin/Controller.d.ts +9 -1
- package/dist/ModelMakerPlugin/index.d.ts +1 -0
- package/dist/index.cjs.js +52 -52
- package/dist/index.js +2482 -2419
- package/dist/index.umd.js +44 -44
- package/dist/shared-utils/five/FiveDomEvents.d.ts +4 -0
- package/dist/shared-utils/five/FiveLine.d.ts +28 -3
- 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 +29 -19
- 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 +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/MovePlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/PipelinePlugin.html +3 -3
- package/docs/functions/SculptPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +3 -3
- package/docs/functions/Util.blink.html +3 -3
- package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
- package/docs/functions/Util.equal.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +3 -3
- package/docs/functions/Util.getCoordsFromElement.html +3 -3
- package/docs/functions/Util.getFrameTime.html +3 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
- package/docs/functions/Util.isAbsoluteURL.html +3 -3
- package/docs/functions/Util.isModelLike.html +3 -3
- package/docs/functions/Util.isNil.html +3 -3
- package/docs/functions/Util.isPanoramaLike.html +3 -3
- package/docs/functions/Util.nextFrame.html +3 -3
- package/docs/functions/Util.notNil.html +3 -3
- package/docs/functions/Util.reblink.html +3 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
- package/docs/functions/Util.tweenProgress.html +3 -3
- package/docs/functions/Util.uuid.html +3 -3
- package/docs/functions/pluginFlag.html +3 -3
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.html +3 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
- package/docs/interfaces/EventMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +3 -3
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +3 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +3 -3
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
- package/docs/interfaces/FloorplanServerEntrance.html +3 -3
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
- package/docs/interfaces/HelperOffset.html +3 -3
- package/docs/interfaces/ImagePlaneGroup.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +3 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/MinMax.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.State.html +3 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
- package/docs/interfaces/ModelViewPluginExportType.html +3 -3
- package/docs/interfaces/Object3DHelperState.html +3 -3
- package/docs/interfaces/ObjectHelperControllers.html +3 -3
- package/docs/interfaces/PaintBrushAction.html +3 -3
- package/docs/interfaces/PaintBrushConfigs.html +3 -3
- package/docs/interfaces/PaintBrushState.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
- package/docs/interfaces/PanoMeasureParameterType.html +3 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginState.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
- package/docs/interfaces/Point.html +3 -3
- package/docs/interfaces/Room.html +3 -3
- package/docs/interfaces/RoomInfo.html +3 -3
- package/docs/interfaces/RoomLabel.html +3 -3
- package/docs/interfaces/RoomRules.html +3 -3
- package/docs/interfaces/Rooms.html +3 -3
- package/docs/interfaces/Scissor.html +3 -3
- package/docs/interfaces/State.html +3 -3
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
- package/docs/interfaces/TagIconUrl.html +3 -3
- package/docs/interfaces/TagObjectGroup.html +3 -3
- package/docs/interfaces/TagStyle.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/interfaces/TemporaryState.html +3 -3
- package/docs/interfaces/Util.BlinkAnimeOptions.html +3 -3
- package/docs/interfaces/Util.MagnifierParameter.html +3 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
- package/docs/interfaces/Util.PointIntersection.html +3 -3
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +3 -3
- package/docs/modules/CruisePluginTypes.html +3 -3
- package/docs/modules/CurrentPanoImagePluginType.html +3 -3
- package/docs/modules/GuideLineItem.html +3 -3
- package/docs/modules/GuideLineModeItem.html +3 -3
- package/docs/modules/GuideLinePluginType.html +3 -3
- package/docs/modules/ModelMakerPluginType.html +3 -3
- package/docs/modules/PanoVideoPluginType.html +3 -3
- package/docs/modules/SculptData.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- package/docs/types/AddObject3DHelperConfig.html +3 -3
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
- package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
- package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
- package/docs/types/ArrayPosition.html +3 -3
- package/docs/types/AudioAppearance.html +3 -3
- package/docs/types/CSS3DRenderExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
- package/docs/types/ClassFunctionParameters.html +3 -3
- package/docs/types/Color.html +3 -3
- package/docs/types/ContentTypeConfigKey.html +3 -3
- package/docs/types/ContentTypeConfigKeySplit.html +3 -3
- package/docs/types/ContentTypeMap.html +3 -3
- package/docs/types/Create3DDomContainerReturnType.html +3 -3
- package/docs/types/Create3DElementReturnType.html +3 -3
- package/docs/types/CruisePluginExportType.html +3 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
- package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
- package/docs/types/DeprecatedTagProperty.html +3 -3
- package/docs/types/Direction-1.html +3 -3
- package/docs/types/Direction4.html +3 -3
- package/docs/types/ElementRenderer.html +3 -3
- package/docs/types/FloorplanRuleLabels.html +3 -3
- package/docs/types/FloorplanServerRuleLabels.html +3 -3
- package/docs/types/GuideLinePluginExportType.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
- package/docs/types/GuideLinePluginType.PathItem.html +3 -3
- package/docs/types/GuideLinePluginType.PluginData.html +3 -3
- package/docs/types/HelperEventMap.html +3 -3
- package/docs/types/InternalHelperEventMap.html +3 -3
- package/docs/types/LoadTagConfig.html +3 -3
- package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/MediaData.html +3 -3
- package/docs/types/MediaStore.html +3 -3
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
- package/docs/types/ModelId.html +3 -3
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +3 -3
- package/docs/types/ModelMakerPluginType.ItemType.html +3 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
- package/docs/types/MoveArgs.html +3 -3
- package/docs/types/MoveOpts.html +3 -3
- package/docs/types/Object3DHelperEventMap.html +3 -3
- package/docs/types/ObjectFit.html +3 -3
- package/docs/types/PaintBrushEventMap.html +3 -3
- package/docs/types/PanoCompassPluginData.html +3 -3
- package/docs/types/PanoCompassPluginExportType.html +3 -3
- package/docs/types/PanoCompassPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
- package/docs/types/PanoIndex.html +3 -3
- package/docs/types/PanoMeasurePluginEvent.html +3 -3
- package/docs/types/PanoMeasureReturnType.html +3 -3
- package/docs/types/PanoSpatialTagPluginId.html +3 -3
- package/docs/types/PanoTagPluginExportInterface.html +3 -3
- package/docs/types/PanoTagPluginParamsInterface.html +3 -3
- package/docs/types/PanoVideoPluginParameterType.html +3 -3
- package/docs/types/PanoVideoPluginReturnType.html +3 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
- package/docs/types/PipelinePluginParameterType.html +3 -3
- package/docs/types/PipelinePluginReturnType.html +3 -3
- package/docs/types/PlaneTag.html +3 -3
- package/docs/types/Point2DTag.html +3 -3
- package/docs/types/Point3DTag.html +3 -3
- package/docs/types/PointTag.html +3 -3
- package/docs/types/PointTagInstance.html +3 -3
- package/docs/types/Position.html +3 -3
- package/docs/types/PositionFrom.html +3 -3
- package/docs/types/RotateArgs.html +3 -3
- package/docs/types/RotateOpts.html +3 -3
- package/docs/types/RuleLabelsKey.html +3 -3
- package/docs/types/RuleLabelsValue.html +3 -3
- package/docs/types/ScaleCallback.html +3 -3
- package/docs/types/ScalePosition.html +3 -3
- package/docs/types/SculptData.BoxData.html +3 -3
- package/docs/types/SculptData.CircleData.html +3 -3
- package/docs/types/SculptData.CylinderData.html +3 -3
- package/docs/types/SculptData.PointData.html +3 -3
- package/docs/types/SculptData.PolygonData.html +3 -3
- package/docs/types/SculptData.PolylineData.html +3 -3
- package/docs/types/SculptData.PrismData.html +3 -3
- package/docs/types/SculptData.RectangleData.html +3 -3
- package/docs/types/StickType.html +3 -3
- package/docs/types/Tag.html +3 -3
- package/docs/types/Tag2D.html +3 -3
- package/docs/types/Tag3D.html +3 -3
- package/docs/types/TagConfigByKey.html +3 -3
- package/docs/types/TagContentType.html +3 -3
- package/docs/types/TagContentTypeMapping.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +3 -3
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +3 -3
- package/docs/types/TagId.html +3 -3
- package/docs/types/TagInstance.html +3 -3
- package/docs/types/TagPointType.html +3 -3
- package/docs/types/TagRendererMap.html +3 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/WorkCode.html +3 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
- package/docs/variables/PLUGIN.html +3 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
- package/docs/variables/ROOM_TYPE_MAP.html +3 -3
- package/docs/variables/defaultGlobalConfig.html +3 -3
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -0
- package/libs/CSS3DRenderPlugin/Controller.js +47 -40
- package/libs/GuideLinePlugin/Controller.js +4 -4
- package/libs/ModelMakerPlugin/Controller.d.ts +9 -1
- package/libs/ModelMakerPlugin/Controller.js +92 -76
- package/libs/ModelMakerPlugin/index.d.ts +1 -0
- package/libs/ModelMakerPlugin/index.js +4 -2
- package/libs/Sculpt/Meshes/Line.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/five/FiveDomEvents.d.ts +4 -0
- package/libs/shared-utils/five/FiveDomEvents.js +43 -35
- package/libs/shared-utils/five/FiveLine.d.ts +28 -3
- package/libs/shared-utils/five/FiveLine.js +41 -5
- package/libs/shared-utils/five/fiveModelLoad.js +13 -12
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var R = Object.defineProperty, F = Object.defineProperties;
|
|
2
|
+
var C = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var f = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var m = (
|
|
4
|
+
var O = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var m = (s, i, e) => i in s ? R(s, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[i] = e, p = (s, i) => {
|
|
6
6
|
for (var e in i || (i = {}))
|
|
7
|
-
|
|
7
|
+
O.call(i, e) && m(s, e, i[e]);
|
|
8
8
|
if (f)
|
|
9
9
|
for (var e of f(i))
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
import { CSS3DRender as
|
|
15
|
-
import
|
|
10
|
+
S.call(i, e) && m(s, e, i[e]);
|
|
11
|
+
return s;
|
|
12
|
+
}, l = (s, i) => F(s, C(i));
|
|
13
|
+
var n = (s, i, e) => (m(s, typeof i != "symbol" ? i + "" : i, e), e);
|
|
14
|
+
import { CSS3DRender as j } from "./utils/three/CSS3DRender.js";
|
|
15
|
+
import x from "./utils/generateBehindFiveElement.js";
|
|
16
16
|
import "hammerjs";
|
|
17
17
|
import "three";
|
|
18
18
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
19
19
|
import "animejs";
|
|
20
|
-
import { absoluteUrl as
|
|
21
|
-
import { waitFiveModelLoaded as
|
|
20
|
+
import { absoluteUrl as P } from "../shared-utils/url/absoluteUrl.js";
|
|
21
|
+
import { waitFiveModelLoaded as w } from "../shared-utils/five/fiveModelLoad.js";
|
|
22
22
|
import "../shared-utils/positionToVector3.js";
|
|
23
23
|
import "./utils/three/CSS3DRenderer.js";
|
|
24
24
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
@@ -33,16 +33,16 @@ import "../shared-utils/three/centerPoint.js";
|
|
|
33
33
|
import "../shared-utils/three/getObjectVisible.js";
|
|
34
34
|
import "./utils/three/CSS3DScene.js";
|
|
35
35
|
import "./utils/three/CSS3DGroup.js";
|
|
36
|
-
const
|
|
37
|
-
class
|
|
36
|
+
const b = "v2.0.1", E = `CSS3DRenderPlugin@${b}`;
|
|
37
|
+
class Z extends j {
|
|
38
38
|
constructor(e) {
|
|
39
39
|
super();
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
n(this, "five");
|
|
41
|
+
n(this, "behindFiveContainer");
|
|
42
|
+
n(this, "frontFiveContainer");
|
|
43
|
+
n(this, "VERSION", b);
|
|
44
|
+
n(this, "staticPrefix", "//vr-image-4.realsee-cdn.cn");
|
|
45
|
+
n(this, "created3DElementResults", []);
|
|
46
46
|
/**
|
|
47
47
|
* @description 根据传入的四个点位创建一个 3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中
|
|
48
48
|
* @param { Vector3Position[] } points 矩形四个点坐标
|
|
@@ -78,12 +78,12 @@ class Y extends S {
|
|
|
78
78
|
* } | void
|
|
79
79
|
* ```
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
n(this, "create3DDomContainer", (e, t) => {
|
|
82
82
|
if (this.state.disposed)
|
|
83
83
|
return;
|
|
84
|
-
const
|
|
84
|
+
const o = (() => {
|
|
85
85
|
var a;
|
|
86
|
-
(t == null ? void 0 : t.dpr) !== void 0 && console.warn(`${
|
|
86
|
+
(t == null ? void 0 : t.dpr) !== void 0 && console.warn(`${E}: please use "config.devicePixelRatio" replace "config.dpr"`);
|
|
87
87
|
const d = {
|
|
88
88
|
ratio: 216e-5,
|
|
89
89
|
devicePixelRatio: (a = t == null ? void 0 : t.dpr) != null ? a : 1,
|
|
@@ -92,21 +92,23 @@ class Y extends S {
|
|
|
92
92
|
wrapperStyle: {}
|
|
93
93
|
};
|
|
94
94
|
return Object.assign(d, t, (t == null ? void 0 : t.mode) === "behind" ? { scene: this.five.scene } : void 0);
|
|
95
|
-
})(), { autoRender:
|
|
96
|
-
|
|
97
|
-
const
|
|
98
|
-
if (!
|
|
95
|
+
})(), { autoRender: h } = o;
|
|
96
|
+
o.mode === "behind" && o.behindFiveContainer && (this.behindFiveContainer = o.behindFiveContainer);
|
|
97
|
+
const r = this.create3DElement(this.five.camera, e, l(p({}, o), { autoRender: !1 }));
|
|
98
|
+
if (!r)
|
|
99
99
|
return;
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
const D = r.dispose;
|
|
101
|
+
r.dispose = () => (this.created3DElementResults.includes(r) && this.created3DElementResults.splice(this.created3DElementResults.indexOf(r), 1), D());
|
|
102
|
+
const c = () => {
|
|
103
|
+
var a, v;
|
|
104
|
+
const d = r.css3DObject.mode === "front" ? (v = this.frontFiveContainer) != null ? v : (a = this.five.getElement()) == null ? void 0 : a.parentElement : this.getBehindFiveElement();
|
|
103
105
|
if (!d)
|
|
104
|
-
return console.error(`${
|
|
105
|
-
|
|
106
|
-
},
|
|
107
|
-
|
|
106
|
+
return console.error(`${E}: wrapper is ${d}; mode is ${r.css3DObject.mode}`);
|
|
107
|
+
r.appendToElement(d), r.render(), this.created3DElementResults.push(r);
|
|
108
|
+
}, u = () => {
|
|
109
|
+
r.css3DObject.mode === "front" && c(), r.css3DObject.mode === "behind" && w(this.five).then(() => c());
|
|
108
110
|
};
|
|
109
|
-
return
|
|
111
|
+
return h && u(), l(p({}, r), { render: h ? void 0 : u });
|
|
110
112
|
});
|
|
111
113
|
this.five = e;
|
|
112
114
|
}
|
|
@@ -129,16 +131,21 @@ class Y extends S {
|
|
|
129
131
|
});
|
|
130
132
|
}
|
|
131
133
|
getBehindFiveElement() {
|
|
132
|
-
return this.behindFiveContainer ? this.behindFiveContainer : (this.behindFiveContainer =
|
|
134
|
+
return this.behindFiveContainer ? this.behindFiveContainer : (this.behindFiveContainer = x(this.five), this.behindFiveContainer);
|
|
133
135
|
}
|
|
134
136
|
/**
|
|
135
137
|
* @description: 获取静态资源的url
|
|
136
138
|
*/
|
|
137
139
|
absoluteUrl(e) {
|
|
138
|
-
return
|
|
140
|
+
return P(this.staticPrefix, e);
|
|
141
|
+
}
|
|
142
|
+
clear() {
|
|
143
|
+
this.created3DElementResults.forEach((e) => {
|
|
144
|
+
e.dispose();
|
|
145
|
+
}), this.created3DElementResults = [];
|
|
139
146
|
}
|
|
140
147
|
}
|
|
141
148
|
export {
|
|
142
|
-
|
|
143
|
-
|
|
149
|
+
E as PLUGIN_NAME,
|
|
150
|
+
Z as default
|
|
144
151
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var C = Object.defineProperty;
|
|
2
2
|
var T = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
3
|
+
var O = Object.prototype.hasOwnProperty, M = Object.prototype.propertyIsEnumerable;
|
|
4
4
|
var c = (s, o, t) => o in s ? C(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t, f = (s, o) => {
|
|
5
5
|
for (var t in o || (o = {}))
|
|
6
|
-
|
|
6
|
+
O.call(o, t) && c(s, t, o[t]);
|
|
7
7
|
if (T)
|
|
8
8
|
for (var t of T(o))
|
|
9
|
-
|
|
9
|
+
M.call(o, t) && c(s, t, o[t]);
|
|
10
10
|
return s;
|
|
11
11
|
};
|
|
12
12
|
var h = (s, o, t) => (c(s, typeof o != "symbol" ? o + "" : o, t), t);
|
|
@@ -331,7 +331,7 @@ class oe extends k {
|
|
|
331
331
|
}
|
|
332
332
|
/** 清空所有 GuideLineItem */
|
|
333
333
|
clear() {
|
|
334
|
-
this.itemMap.forEach((t) => {
|
|
334
|
+
this.heightOffset = 0, this.itemMap.forEach((t) => {
|
|
335
335
|
this.removeGuideLineItem(t);
|
|
336
336
|
});
|
|
337
337
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Five } from '@realsee/five';
|
|
1
|
+
import type { Five, Mode as FiveMode } from '@realsee/five';
|
|
2
2
|
import * as BasePlugin from '../base/BasePluginWithData';
|
|
3
3
|
import type * as PluginType from './typings';
|
|
4
4
|
import * as THREE from 'three';
|
|
@@ -12,8 +12,15 @@ export declare class Controller extends BasePlugin.Controller<PluginType.State,
|
|
|
12
12
|
private fiveDomEvents;
|
|
13
13
|
private zFightingOffset;
|
|
14
14
|
private tagWrapper;
|
|
15
|
+
private occlusionVisibility;
|
|
15
16
|
constructor(five: Five, config?: {
|
|
16
17
|
tagContainerZIndex?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @description 是否以一种半透明的方式显示遮挡的部分
|
|
20
|
+
* @params 所有模式下都显示被遮挡的部分, false: 所有模式下不显示被遮挡的部分, ['Mapview', ...]: 指定模式下显示被遮挡的部分
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
occlusionVisibility?: boolean | FiveMode[];
|
|
17
24
|
});
|
|
18
25
|
load(serverData: PluginType.ServerData): Promise<void>;
|
|
19
26
|
setState(targetState: Partial<PluginType.State>): void;
|
|
@@ -26,6 +33,7 @@ export declare class Controller extends BasePlugin.Controller<PluginType.State,
|
|
|
26
33
|
clear(): void;
|
|
27
34
|
dispose(): void;
|
|
28
35
|
protected onWorkCodeChange(): void;
|
|
36
|
+
private onFiveModeChange;
|
|
29
37
|
private handleShow;
|
|
30
38
|
private handleHide;
|
|
31
39
|
private handleEnable;
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
-
var
|
|
2
|
-
var P = (
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var k = Object.defineProperty;
|
|
2
|
+
var P = (h, a, e) => a in h ? k(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e;
|
|
3
|
+
var n = (h, a, e) => (P(h, typeof a != "symbol" ? a + "" : a, e), e);
|
|
4
|
+
var V = (h, a, e) => new Promise((i, r) => {
|
|
5
|
+
var t = (s) => {
|
|
6
6
|
try {
|
|
7
|
-
|
|
7
|
+
o(e.next(s));
|
|
8
8
|
} catch (d) {
|
|
9
|
-
|
|
9
|
+
r(d);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, l = (s) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
13
|
+
o(e.throw(s));
|
|
14
14
|
} catch (d) {
|
|
15
|
-
|
|
15
|
+
r(d);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
17
|
+
}, o = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(t, l);
|
|
18
|
+
o((e = e.apply(h, a)).next());
|
|
19
19
|
});
|
|
20
|
-
import { Controller as
|
|
21
|
-
import * as
|
|
22
|
-
import { ModelMakerBoxItem as
|
|
20
|
+
import { Controller as F } from "../base/BasePluginWithData.js";
|
|
21
|
+
import * as p from "three";
|
|
22
|
+
import { ModelMakerBoxItem as A } from "./item/boxItem.js";
|
|
23
23
|
import { PrismMesh as R } from "../Sculpt/Meshes/Prism.js";
|
|
24
24
|
import { anyPositionToVector3 as I } from "../shared-utils/positionToVector3.js";
|
|
25
|
-
import { PolygonWithEdgeMesh as
|
|
25
|
+
import { PolygonWithEdgeMesh as D } from "../Sculpt/Meshes/PolygonWithEdge.js";
|
|
26
26
|
import "hammerjs";
|
|
27
27
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
28
28
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
29
29
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
30
|
+
import { waitFiveModelLoaded as T } from "../shared-utils/five/fiveModelLoad.js";
|
|
30
31
|
import "animejs";
|
|
31
|
-
import { notNil as
|
|
32
|
-
import { tagRendererMap as
|
|
33
|
-
import { ModelMakerPrismItem as
|
|
34
|
-
import { ModelMakerPolygonItem as
|
|
35
|
-
import { boxVertex as
|
|
36
|
-
import { getFiveDomEvent as
|
|
32
|
+
import { notNil as C } from "../shared-utils/isNil.js";
|
|
33
|
+
import { tagRendererMap as H } from "./utils/tagRenderer.js";
|
|
34
|
+
import { ModelMakerPrismItem as L } from "./item/prismItem.js";
|
|
35
|
+
import { ModelMakerPolygonItem as z } from "./item/polygonItem.js";
|
|
36
|
+
import { boxVertex as u } from "../shared-utils/Object3DHelper/utils/boundingBox.js";
|
|
37
|
+
import { getFiveDomEvent as O } from "./utils/getFiveDomEvent.js";
|
|
37
38
|
import "../base/BasePlugin.js";
|
|
38
39
|
import "../shared-utils/Subscribe.js";
|
|
39
40
|
import "../shared-utils/url/absoluteUrl.js";
|
|
@@ -51,6 +52,7 @@ import "../Sculpt/utils/three/ColoredMesh.js";
|
|
|
51
52
|
import "../shared-utils/three/geometryUtil.js";
|
|
52
53
|
import "../shared-utils/three/centerPoint.js";
|
|
53
54
|
import "../Sculpt/Meshes/Line.js";
|
|
55
|
+
import "../shared-utils/five/FiveLine.js";
|
|
54
56
|
import "@realsee/five/line";
|
|
55
57
|
import "../Sculpt/Meshes/Polyline.js";
|
|
56
58
|
import "../Sculpt/Meshes/LineWithDots.js";
|
|
@@ -77,105 +79,119 @@ import "../shared-utils/tag.js";
|
|
|
77
79
|
import "../shared-utils/five/vector3ToScreen.js";
|
|
78
80
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
79
81
|
import "../shared-utils/five/calculateThreeMouse.js";
|
|
80
|
-
class
|
|
81
|
-
constructor(e,
|
|
82
|
+
class Ke extends F {
|
|
83
|
+
constructor(e, i) {
|
|
84
|
+
var r;
|
|
82
85
|
super(e);
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
86
|
+
n(this, "state");
|
|
87
|
+
n(this, "items", []);
|
|
88
|
+
n(this, "group", new p.Group());
|
|
89
|
+
n(this, "data");
|
|
90
|
+
n(this, "tagRendererMap", {});
|
|
91
|
+
n(this, "fiveDomEvents");
|
|
92
|
+
n(this, "zFightingOffset", 0);
|
|
93
|
+
n(this, "tagWrapper");
|
|
94
|
+
n(this, "occlusionVisibility");
|
|
95
|
+
n(this, "onFiveModeChange", (e) => {
|
|
96
|
+
const i = this.occlusionVisibility;
|
|
97
|
+
Array.isArray(i) && this.items.forEach((r) => {
|
|
98
|
+
r.model.setStyle instanceof Function && r.model.setStyle({ occlusionVisibility: i.includes(e) });
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
n(this, "handleEnable", () => {
|
|
102
|
+
var e, i;
|
|
103
|
+
this.five.scene.add(this.group), (i = (e = this.five.getElement()) == null ? void 0 : e.parentElement) == null || i.appendChild(this.tagWrapper), this.five.needsRender = !0, this.five.on("modeChange", this.onFiveModeChange);
|
|
94
104
|
});
|
|
95
|
-
|
|
96
|
-
this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0;
|
|
105
|
+
n(this, "handleDisable", () => {
|
|
106
|
+
this.five.scene.remove(this.group), this.tagWrapper.remove(), this.five.needsRender = !0, this.five.off("modeChange", this.onFiveModeChange);
|
|
97
107
|
});
|
|
98
|
-
|
|
108
|
+
n(this, "updateTagRenderer", () => {
|
|
99
109
|
this.items.forEach((e) => {
|
|
100
|
-
var
|
|
101
|
-
const
|
|
102
|
-
|
|
110
|
+
var r;
|
|
111
|
+
const i = (r = this.tagRendererMap[e.type]) != null ? r : H[e.type];
|
|
112
|
+
i && e.__renderer !== i && (e.__renderer = i, typeof e.__disposeRenderer == "function" && e.__disposeRenderer(), e.tag.container.innerHTML = "", e.__disposeRenderer = i(e.tag.container, e));
|
|
103
113
|
});
|
|
104
114
|
});
|
|
105
|
-
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.fiveDomEvents =
|
|
115
|
+
this.group.name = "ModelMakerPluginGroup", this.state = { enabled: !0, visible: !0 }, this.occlusionVisibility = (r = i == null ? void 0 : i.occlusionVisibility) != null ? r : !1, this.fiveDomEvents = O(e), this.tagWrapper = (() => {
|
|
106
116
|
var l;
|
|
107
117
|
const t = document.createElement("div");
|
|
108
|
-
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 =
|
|
118
|
+
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 = i == null ? void 0 : i.tagContainerZIndex) != null ? l : ""}`, t;
|
|
109
119
|
})(), e.scene.add(this.group), this.handleEnable(), window.__MODELMAKER_DEBUG__ = this;
|
|
110
120
|
}
|
|
111
121
|
load(e) {
|
|
112
|
-
return
|
|
113
|
-
var
|
|
114
|
-
this.clear(), this.data = e, (
|
|
122
|
+
return V(this, null, function* () {
|
|
123
|
+
var r;
|
|
124
|
+
if (this.clear(), this.data = e, yield T(this.five), this.data !== e)
|
|
125
|
+
return;
|
|
126
|
+
this.clear();
|
|
127
|
+
const i = typeof this.occlusionVisibility == "boolean" ? this.occlusionVisibility : !1;
|
|
128
|
+
(r = e == null ? void 0 : e.list) == null || r.forEach((t) => {
|
|
115
129
|
var l;
|
|
116
130
|
if (t.type === "triangles") {
|
|
117
|
-
const
|
|
118
|
-
|
|
131
|
+
const o = new D();
|
|
132
|
+
o.setPoints(t.object_data.points), o.setStyle({
|
|
119
133
|
color: t.object_data.color,
|
|
120
134
|
opacity: t.object_data.opacity,
|
|
121
135
|
lineColor: t.object_data.color,
|
|
122
|
-
occlusionVisibility:
|
|
123
|
-
}), this.fiveDomEvents.addEventListener(
|
|
124
|
-
const
|
|
136
|
+
occlusionVisibility: i
|
|
137
|
+
}), this.fiveDomEvents.addEventListener(o, "hover", () => o.highlight()), this.fiveDomEvents.addEventListener(o, "unHover", () => o.unhighlight());
|
|
138
|
+
const s = new z({
|
|
125
139
|
five: this.five,
|
|
126
140
|
tagWrapper: this.tagWrapper,
|
|
127
|
-
model:
|
|
141
|
+
model: o,
|
|
128
142
|
group: this.group,
|
|
129
143
|
type: t.type,
|
|
130
144
|
rawData: t
|
|
131
145
|
});
|
|
132
|
-
this.items.push(
|
|
146
|
+
this.items.push(s);
|
|
133
147
|
} else if (t.type === "prism") {
|
|
134
|
-
const
|
|
148
|
+
const o = new R();
|
|
135
149
|
this.zFightingOffset += 1e-4;
|
|
136
|
-
const
|
|
137
|
-
var
|
|
138
|
-
return [
|
|
139
|
-
})
|
|
140
|
-
|
|
150
|
+
const s = t.object_data.points.map((c) => {
|
|
151
|
+
var b;
|
|
152
|
+
return [c[0], c[1] + ((b = t.object_data.fixedY) != null ? b : 0), c[2]];
|
|
153
|
+
});
|
|
154
|
+
s.push(s[0]);
|
|
155
|
+
const d = t.object_data.height + ((l = t.object_data.fixedHeight) != null ? l : 0) + this.zFightingOffset, g = I(s[0]).add(new p.Vector3().setY(d));
|
|
156
|
+
o.setPoints({ points: s, heightPoint: g }), o.setStyle({
|
|
141
157
|
color: t.object_data.color,
|
|
142
158
|
opacity: t.object_data.opacity,
|
|
143
159
|
lineColor: t.object_data.color,
|
|
144
|
-
occlusionVisibility:
|
|
160
|
+
occlusionVisibility: i
|
|
145
161
|
});
|
|
146
|
-
const
|
|
162
|
+
const f = new L({
|
|
147
163
|
five: this.five,
|
|
148
164
|
tagWrapper: this.tagWrapper,
|
|
149
|
-
model:
|
|
165
|
+
model: o,
|
|
150
166
|
group: this.group,
|
|
151
167
|
type: t.type,
|
|
152
168
|
rawData: t
|
|
153
169
|
});
|
|
154
|
-
this.items.push(
|
|
170
|
+
this.items.push(f);
|
|
155
171
|
} else if (t.type === "box") {
|
|
156
|
-
const
|
|
157
|
-
|
|
158
|
-
points: [
|
|
159
|
-
heightPoint:
|
|
160
|
-
}),
|
|
161
|
-
const
|
|
172
|
+
const o = new R(), { start: s, end: d, rotation: g = [0, 0, 0, 0], opacity: f, color: c } = t.object_data, b = new p.Vector3().fromArray(s), y = new p.Vector3().fromArray(d), W = new p.Euler().fromArray(g), v = new p.Quaternion().setFromEuler(W), w = v.clone().inverse(), E = new p.Vector3().lerpVectors(b, y, 0.5), _ = E.clone().negate(), M = b.clone().add(_).applyQuaternion(w), x = y.clone().add(_).applyQuaternion(w), m = new p.Box3(M.clone().max(x), M.clone().min(x));
|
|
173
|
+
o.setPoints({
|
|
174
|
+
points: [u(m, 2), u(m, 3), u(m, 7), u(m, 6), u(m, 2)],
|
|
175
|
+
heightPoint: u(m, 0)
|
|
176
|
+
}), o.position.copy(E), o.quaternion.copy(v), o.setStyle({ color: c, opacity: f, lineColor: c, occlusionVisibility: i });
|
|
177
|
+
const j = new A({
|
|
162
178
|
five: this.five,
|
|
163
179
|
tagWrapper: this.tagWrapper,
|
|
164
|
-
model:
|
|
180
|
+
model: o,
|
|
165
181
|
group: this.group,
|
|
166
182
|
type: t.type,
|
|
167
183
|
rawData: t
|
|
168
184
|
});
|
|
169
|
-
this.items.push(
|
|
185
|
+
this.items.push(j);
|
|
170
186
|
}
|
|
171
187
|
}), 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);
|
|
172
188
|
});
|
|
173
189
|
}
|
|
174
190
|
setState(e) {
|
|
175
|
-
|
|
191
|
+
C(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: "我不知道捏" })), C(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: "我不知道捏" }));
|
|
176
192
|
}
|
|
177
193
|
getItemById(e) {
|
|
178
|
-
return this.items.find((
|
|
194
|
+
return this.items.find((i) => i.rawData.id === e);
|
|
179
195
|
}
|
|
180
196
|
registerTagRenderer(e) {
|
|
181
197
|
this.tagRendererMap = e, this.updateTagRenderer();
|
|
@@ -193,10 +209,10 @@ class Se extends C {
|
|
|
193
209
|
this.setState({ visible: !1 });
|
|
194
210
|
}
|
|
195
211
|
clear() {
|
|
196
|
-
this.zFightingOffset = 0, this.handleDisable(), this.items = [];
|
|
212
|
+
this.zFightingOffset = 0, this.handleDisable(), this.group.children.length = 0, this.five.needsRender = !0, this.items = [], this.tagWrapper.innerHTML = "", this.fiveDomEvents.clear(), console.log("123");
|
|
197
213
|
}
|
|
198
214
|
dispose() {
|
|
199
|
-
this.hooks.emit("dispose"), this.
|
|
215
|
+
this.hooks.emit("dispose"), this.clear();
|
|
200
216
|
}
|
|
201
217
|
onWorkCodeChange() {
|
|
202
218
|
this.group.matrix.copy(this.workUtil.transform.clone()), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld();
|
|
@@ -209,5 +225,5 @@ class Se extends C {
|
|
|
209
225
|
}
|
|
210
226
|
}
|
|
211
227
|
export {
|
|
212
|
-
|
|
228
|
+
Ke as Controller
|
|
213
229
|
};
|
|
@@ -2,6 +2,7 @@ import type * as ModelMakerPluginType from './typings';
|
|
|
2
2
|
import { Controller } from './Controller';
|
|
3
3
|
export declare const ModelMakerPlugin: (five: import("@realsee/five").Five, config?: {
|
|
4
4
|
tagContainerZIndex?: number;
|
|
5
|
+
occlusionVisibility?: boolean | import("@realsee/five").Mode[];
|
|
5
6
|
}) => ModelMakerPluginType.ModelMakerController;
|
|
6
7
|
export type { Controller as ModelMakerPluginInstance };
|
|
7
8
|
export type { ModelMakerPluginType };
|
|
@@ -47,19 +47,21 @@ import "../Sculpt/utils/color.js";
|
|
|
47
47
|
import "../Sculpt/utils/three/ColoredMesh.js";
|
|
48
48
|
import "../shared-utils/three/geometryUtil.js";
|
|
49
49
|
import "../Sculpt/Meshes/Line.js";
|
|
50
|
+
import "../shared-utils/five/FiveLine.js";
|
|
50
51
|
import "@realsee/five/line";
|
|
51
52
|
import "../Sculpt/Meshes/PolygonWithEdge.js";
|
|
52
53
|
import "../Sculpt/Meshes/Polyline.js";
|
|
53
54
|
import "../Sculpt/Meshes/LineWithDots.js";
|
|
54
55
|
import "../Sculpt/Meshes/Point.js";
|
|
55
56
|
import "../shared-utils/three/closeVectors.js";
|
|
57
|
+
import "../shared-utils/five/fiveModelLoad.js";
|
|
56
58
|
import "./utils/tagRenderer.js";
|
|
57
59
|
import "./utils/Text.js";
|
|
58
60
|
import "../vendor/svelte/internal/index.js";
|
|
59
61
|
import "../components/AreaLabel/LabelItem.js";
|
|
60
62
|
import "../components/AreaLabel/Assets/roomLabelBg.js";
|
|
61
63
|
import "./item/prismItem.js";
|
|
62
|
-
const
|
|
64
|
+
const co = (...o) => new r(...o);
|
|
63
65
|
export {
|
|
64
|
-
|
|
66
|
+
co as ModelMakerPlugin
|
|
65
67
|
};
|
|
@@ -3,7 +3,7 @@ var E = (h, o, e) => o in h ? k(h, o, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var l = (h, o, e) => (E(h, typeof o != "symbol" ? o + "" : o, e), e);
|
|
4
4
|
import * as r from "three";
|
|
5
5
|
import { DEFAULT_LINE_COLOR as g, DEFAULT_LINE_WIDTH as w, DEFAULT_HIGHLIGHT_OPACITY as L } from "../utils/color.js";
|
|
6
|
-
import { LineGeometry as y, LineMaterial as a, THREE_Line2 as H } from "
|
|
6
|
+
import { LineGeometry as y, LineMaterial as a, THREE_Line2 as H } from "../../shared-utils/five/FiveLine.js";
|
|
7
7
|
import { anyPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
|
|
8
8
|
import { IObject3D as D } from "../../shared-utils/three/IObject3D.js";
|
|
9
9
|
import "hammerjs";
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -102,7 +102,11 @@ export declare class FiveDomEvents {
|
|
|
102
102
|
*/
|
|
103
103
|
addEventListener<T extends EventName = EventName>(object: Object3DWithEvent, event: T, callback: FiveDomEventMap[T], config?: EventHandlerConfig): void;
|
|
104
104
|
removeEventListener(object: Object3DWithEvent, event?: EventName, callback?: (e: FiveDomEvent) => any, ...args: any[]): void;
|
|
105
|
+
clear(): void;
|
|
105
106
|
dispose(): void;
|
|
107
|
+
toJSON(): {
|
|
108
|
+
boundObject: Partial<Record<keyof FiveDomEventMap, Object3DWithEvent[]>>;
|
|
109
|
+
};
|
|
106
110
|
private getRaycaster;
|
|
107
111
|
private handleWantsGesture;
|
|
108
112
|
private handleDomEvent;
|