From 219dfaa780f2000a4710dedc67075473bc8752a6 Mon Sep 17 00:00:00 2001 From: tyBrave Date: Tue, 28 Oct 2025 10:05:11 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#ID3R0X]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-svg-capi=E6=8C=87=E5=AF=BC=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tyBrave docs: [Issues: #ID3R0X] 修改react-native-svg-capi指导文档 Signed-off-by: tyBrave --- en/react-native-svg-capi.md | 12 +++++++++++- en/react-native-svg.md | 8 -------- zh-cn/react-native-svg-capi.md | 12 +++++++++++- zh-cn/react-native-svg.md | 8 -------- 4 files changed, 22 insertions(+), 18 deletions(-) diff --git a/en/react-native-svg-capi.md b/en/react-native-svg-capi.md index 09c2845cf..f54dad7d2 100644 --- a/en/react-native-svg-capi.md +++ b/en/react-native-svg-capi.md @@ -552,6 +552,16 @@ For details, see [react-native-svg](https://github.com/software-mansion/react-na | onLoad | 加载成功后触发 | function | No | All | Yes | | fallback | 加载中元素 | function | No | All | Yes | +**ForeignObject**:该元素可以嵌套非SVG内容到SVG中 + +| Name | Description | Type | Required | Platform | HarmonyOS Support | +| :----: | :---------------: | :-------------: | -------- | -------- | ----------------- | +| x | 在 x 轴上平移距离 | number\| string | No | All | Yes | +| y | 在 y 轴上平移距离 | number\| string | No | All | Yes | +| width | 元素宽度 | number\| string | No | All | Yes | +| height | 元素高度 | number\| string | No | All | Yes | + + **函数** | Name | Description | Type | Required | Platform | HarmonyOS Support | @@ -636,7 +646,7 @@ FontProps 组件 Properties HarmonyOS 侧支持情况 - [ ] getCTM 获取相对于父组件的 matrix 矩阵信息 未实现 - [ ] getScreenCTM 获取组件的 matrix 矩阵信息 未实现 - [ ] getRawResource 获取 android 中的资源文件 未实现 -- [ ] foreignObject 该组件允许 svg 使用外部组件 未实现 +- [X] foreignObject 该组件允许 svg 使用外部组件 已实现 - [ ] filter 该组件可以为 SVG 图形添加各种视觉效果 未实现 - [ ] TextPath 功能未完全实现 - [ ] Text,TSpan 组件的 rotate,fontFamily,wordSpacingProperties 未实现 diff --git a/en/react-native-svg.md b/en/react-native-svg.md index b44d13750..daeff489f 100644 --- a/en/react-native-svg.md +++ b/en/react-native-svg.md @@ -326,14 +326,6 @@ ohpm install | height | 元素高度 | number\| string | No | All | Yes | | href | 图像资源引用 | source\| string | Yes | All | Yes | -**ForeignObject**:该元素可以嵌套非SVG内容到SVG中 - -| Name | Description | Type | Required | Platform | HarmonyOS Support | -| :----: | :---------------: | :-------------: | -------- | -------- | ----------------- | -| x | 在 x 轴上平移距离 | number\| string | No | All | Yes | -| y | 在 y 轴上平移距离 | number\| string | No | All | Yes | -| width | 元素宽度 | number\| string | No | All | Yes | -| height | 元素高度 | number\| string | No | All | Yes | **公共属性**:Common props 组件属性 HarmonyOS 侧支持情况 diff --git a/zh-cn/react-native-svg-capi.md b/zh-cn/react-native-svg-capi.md index b4568374c..e6f387808 100644 --- a/zh-cn/react-native-svg-capi.md +++ b/zh-cn/react-native-svg-capi.md @@ -555,6 +555,16 @@ ohpm install | onLoad | 加载成功后触发 | function | No | All | Yes | | fallback | 加载中元素 | function | No | All | Yes | +**ForeignObject**:该元素可以嵌套非SVG内容到SVG中 + +| Name | Description | Type | Required | Platform | HarmonyOS Support | +| :----: | :---------------: | :-------------: | -------- | -------- | ----------------- | +| x | 在 x 轴上平移距离 | number\| string | No | All | Yes | +| y | 在 y 轴上平移距离 | number\| string | No | All | Yes | +| width | 元素宽度 | number\| string | No | All | Yes | +| height | 元素高度 | number\| string | No | All | Yes | + + **函数** | Name | Description | Type | Required | Platform | HarmonyOS Support | @@ -639,7 +649,7 @@ FontProps 组件属性 HarmonyOS 侧支持情况 - [ ] getCTM 获取相对于父组件的matrix矩阵信息 未实现 - [ ] getScreenCTM 获取组件的matrix矩阵信息 未实现 - [ ] getRawResource 获取android中的资源文件 未实现 -- [ ] foreignObject 该组件允许svg使用外部组件 未实现 +- [X] foreignObject 该组件允许 svg 使用外部组件 已实现 - [ ] filter 该组件可以为 SVG 图形添加各种视觉效果 未实现 - [ ] TextPath 功能未完全实现 - [ ] Text,TSpan组件的rotate,fontFamily,wordSpacing属性 未实现 diff --git a/zh-cn/react-native-svg.md b/zh-cn/react-native-svg.md index 1053663e6..459e3d1cd 100644 --- a/zh-cn/react-native-svg.md +++ b/zh-cn/react-native-svg.md @@ -325,14 +325,6 @@ ohpm install | height | 元素高度 | number\| string | No | All | Yes | | href | 图像资源引用 | source\| string | Yes | All | Yes | -**ForeignObject**:该元素可以嵌套非SVG内容到SVG中 - -| Name | Description | Type | Required | Platform | HarmonyOS Support | -| :----: | :---------------: | :-------------: | -------- | -------- | ----------------- | -| x | 在 x 轴上平移距离 | number\| string | No | All | Yes | -| y | 在 y 轴上平移距离 | number\| string | No | All | Yes | -| width | 元素宽度 | number\| string | No | All | Yes | -| height | 元素高度 | number\| string | No | All | Yes | **公共属性**:Common props 组件属性 HarmonyOS 侧支持情况 -- Gitee