diff --git a/en/react-native-svg-capi.md b/en/react-native-svg-capi.md index 09c2845cffd99562b59127aa2aa37c9d1e488352..f54dad7d20951cdcb23593364956029520ae15d9 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 b44d1375099c22d0aee5c59100c95ac2921c5e3d..daeff489fefe00405c288268817ac2788541b0d0 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 b4568374c801e9bb30e5a43ded2b51e1d8b85ff6..e6f38780892fd84bf5d6409775e14a77495e0704 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 1053663e651f1d55ec68d6486d664df1d8905a50..459e3d1cda09275a06979b548a40767816ccb589 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 侧支持情况