From a369fc1b4a53b49e5def98c7d5c7ed4f5541b40a Mon Sep 17 00:00:00 2001 From: liqiang Date: Sat, 6 Dec 2025 19:12:19 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=A2=9E=E5=8A=A0antiAliasing=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=EF=BC=9A=E5=A6=82=E6=9E=9C=E8=AE=BE=E7=BD=AE=E7=9A=84?= =?UTF-8?q?=E6=8A=97=E9=94=AF=E9=BD=BF=E7=AD=89=E7=BA=A7=E8=B6=85=E8=BF=87?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=94=AF=E6=8C=81=E7=9A=84=E6=9C=80=E5=A4=A7?= =?UTF-8?q?=E6=8A=97=E9=94=AF=E9=BD=BF=E7=AD=89=E7=BA=A7=EF=BC=8CHarmonyOS?= =?UTF-8?q?=E4=BB=A5=E8=AE=BE=E5=A4=87=E5=AE=9E=E9=99=85=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E7=9A=84=E6=9C=80=E5=A4=A7=E6=8A=97=E9=94=AF=E9=BD=BF=E7=AD=89?= =?UTF-8?q?=E7=BA=A7=E7=94=9F=E6=95=88=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liqiang --- en/BabylonReactNative.md | 4 ++-- zh-cn/BabylonReactNative.md | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/en/BabylonReactNative.md b/en/BabylonReactNative.md index c5eee4ad..5ff90ae6 100644 --- a/en/BabylonReactNative.md +++ b/en/BabylonReactNative.md @@ -389,7 +389,7 @@ Check the release version information in the release address of the third-party | `displayFrameRate` | Whether to display the FPS counter | boolean | No | iOS Android | Yes | | `isTransparent` | Whether to enable transparent background rendering | boolean | No | iOS Android | Yes | | `androidView` | The SurfaceView identifier used for native rendering binding on Android | string | No | iOS Android | Yes | -| `antiAliasing` | Anti-aliasing level; 0 disables anti-aliasing | number | No | iOS Android | Yes | +| `antiAliasing` | Anti-aliasing level. Available values: 0, 1, 2, 4, 8, 16. Higher values generally provide better anti-aliasing quality at the cost of performance. 0 and 1 indicate that anti-aliasing is disabled. If the specified anti-aliasing level exceeds the maximum level supported by the device, it will automatically apply the highest supported level instead. | number | No | iOS Android | Yes | | `onInitialized` | Callback invoked after the native engine has completed initialization | function | No | iOS Android | Yes | `NativeEngineView` is a native UI component bridged into React Native. @@ -397,7 +397,7 @@ Check the release version information in the release address of the third-party | Name | Description | Type | Required | Platform | HarmonyOS Support | | ------------------------ | ----------------------------------------------------------------------- | -------- | -------- | ------------ | ----------------- | | `isTransparent` | Whether to enable transparent background rendering | boolean | No | iOS Android | Yes | -| `antiAliasing` | Anti-aliasing level; 0 disables anti-aliasing | number | No | iOS Android | Yes | +| `antiAliasing` | Anti-aliasing level. Available values: 0, 1, 2, 4, 8, 16. Higher values generally provide better anti-aliasing quality at the cost of performance. 0 and 1 indicate that anti-aliasing is disabled. If the specified anti-aliasing level exceeds the maximum level supported by the device, it will automatically apply the highest supported level instead. | number | No | iOS Android | Yes | | `androidView` | The SurfaceView identifier used for native rendering binding on Android | string | No | iOS Android | Yes | | `onSnapshotDataReturned` | Callback returning screenshot data from the native side | function | No | iOS Android | Yes | diff --git a/zh-cn/BabylonReactNative.md b/zh-cn/BabylonReactNative.md index e3bae507..8e194eea 100644 --- a/zh-cn/BabylonReactNative.md +++ b/zh-cn/BabylonReactNative.md @@ -386,23 +386,23 @@ ohpm install `EngineView` 是一个 React Native 组件,用来渲染 Babylon.js 的 3D 场景。 -| Name | Description | Type | Required | Platform | HarmonyOS Support | -| ------------------ | ----------------------------------------------------------- | -------- | -------- | ------------ | ----------------- | -| `camera` | 初始化时默认绑定的摄像机对象 | Camera | Yes | iOS Android | Yes | -| `displayFrameRate` | 是否显示 FPS 计数器 | boolean | No | iOS Android | Yes | -| `isTransparent` | 是否启用透明背景 | boolean | No | iOS Android | Yes | -| `androidView` | 用于 native 渲染绑定的SurfaceView ID | string | No | iOS Android | Yes | -| `antiAliasing` | 抗锯齿等级,0 表示关闭抗锯齿 | number | No | iOS Android | Yes | -| `onInitialized` | 在原生引擎初始化完成后的回调 | function | No | iOS Android | Yes | +| Name | Description | Type | Required | Platform | HarmonyOS Support | +| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | ------------ | ----------------- | +| `camera` | 初始化时默认绑定的摄像机对象 | Camera | Yes | iOS Android | Yes | +| `displayFrameRate` | 是否显示 FPS 计数器 | boolean | No | iOS Android | Yes | +| `isTransparent` | 是否启用透明背景 | boolean | No | iOS Android | Yes | +| `androidView` | 用于 native 渲染绑定的SurfaceView ID | string | No | iOS Android | Yes | +| `antiAliasing` | 抗锯齿等级,可选值:0、1、2、4、8、16,值越大理论上消除锯齿越明显,但性能代价越高,0和1表示关闭抗锯齿。如果设置的抗锯齿等级超过设备支持的最大抗锯齿等级,以设备实际支持的最大抗锯齿等级生效。 | number | No | iOS Android | Yes | +| `onInitialized` | 在原生引擎初始化完成后的回调 | function | No | iOS Android | Yes | `NativeEngineView` 是 React Native 原生桥接的 Native UI 组件。 -| Name | Description | Type | Required | Platform | HarmonyOS Support | -| ------------------------ | ----------------------------------------------------------- | -------- | -------- | ------------ | ----------------- | -| `isTransparent` | 控制原生渲染背景是否透明 | boolean | No | iOS Android | Yes | -| `antiAliasing` | 抗锯齿等级,0 表示关闭抗锯齿 | number | No | iOS Android | Yes | -| `androidView` | 用于 native 渲染绑定的SurfaceView ID | string | No | iOS Android | Yes | -| `onSnapshotDataReturned` | 原生返回截图数据的回调 | function | No | iOS Android | Yes | +| Name | Description | Type | Required | Platform | HarmonyOS Support | +| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | -------- | ------------ | ----------------- | +| `isTransparent` | 控制原生渲染背景是否透明 | boolean | No | iOS Android | Yes | +| `antiAliasing` | 抗锯齿等级,可选值:0、1、2、4、8、16,值越大理论上消除锯齿越明显,但性能代价越高,0和1表示关闭抗锯齿。如果设置的抗锯齿等级超过设备支持的最大抗锯齿等级,以设备实际支持的最大抗锯齿等级生效。 | number | No | iOS Android | Yes | +| `androidView` | 用于 native 渲染绑定的SurfaceView ID | string | No | iOS Android | Yes | +| `onSnapshotDataReturned` | 原生返回截图数据的回调 | function | No | iOS Android | Yes | # API -- Gitee