From a60d69f82a51774b798528fa1bd317ecb2fec990 Mon Sep 17 00:00:00 2001 From: ywd17362752007 <3182569902@qq.com> Date: Fri, 16 Aug 2024 18:05:17 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=94=B9react-native-image-ma?= =?UTF-8?q?rker=E6=8C=87=E5=AF=BC=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh-cn/react-native-image-marker.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/zh-cn/react-native-image-marker.md b/zh-cn/react-native-image-marker.md index 02150647..b877ea7a 100644 --- a/zh-cn/react-native-image-marker.md +++ b/zh-cn/react-native-image-marker.md @@ -55,7 +55,7 @@ export const ImageMarkerText = () => { const [texturl, setTextMarkUrl] = useState(''); const [imageurl,setImageMarkUrl] = useState(''); const text_options: TextMarkOptions = { - backgroundImage: { src: require('./assets/code-images/1.png') }, + backgroundImage: { src: 'https://developer.huawei.com/allianceCmsResource/resource/HUAWEI_Developer_VUE/images/yuekan/xintexing00.jpg' }, watermarkTexts: [{ text: 'hello world \n 你好', position: { @@ -99,16 +99,16 @@ export const ImageMarkerText = () => { } const image_options: ImageMarkOptions = { - backgroundImage: { src: require('./assets/code-images/1.png') }, + backgroundImage: { src: 'https://developer.huawei.com/allianceCmsResource/resource/HUAWEI_Developer_VUE/images/yuekan/xintexing00.jpg' }, watermarkImages: [{ - src: require('./assets/pravatar-131.jpg'), + src: 'https://developer.huawei.com/allianceCmsResource/resource/HUAWEI_Developer_VUE/images/yingyongicon.png', rotate:20, position: { position: Position.topLeft, }, }, { - src: require('./assets/pravatar-131.jpg'), + src: 'https://developer.huawei.com/allianceCmsResource/resource/HUAWEI_Developer_VUE/images/yingyongicon.png', rotate:50, position: { position: Position.bottomCenter, @@ -378,15 +378,15 @@ markText(options: TextMarkOptions): Promise; | Name | Description | Type | Required | Platform | HarmonyOS Support | | --------- | ---------------------------------------------- | ------ | -------- | ----------- | ----------------- | | color | font color | string | yes | iOS/Android | yes | -| fontName | font name | string | no | iOS/Android | no | +| fontName | font name | string | no | iOS/Android | yes | | fontSize | font size | number | no | iOS/Android | yes | | shadowStyle | text shadow style | ShadowLayerStyle | no | iOS/Android | yes | | textBackgroundStyle | text background style | TextBackgroundStyle | no | iOS/Android | yes | | underline | text underline style | boolean | no | iOS/Android | yes | -| skewX | css italic with degree, you can use italic instead | number | no | iOS/Android | no | +| skewX | css italic with degree, you can use italic instead | number | no | iOS/Android | yes | | strikeThrough | text stroke | boolean | no | iOS/Android | yes | | textAlign | text align . 'left' / 'center' / 'right' | string | no | iOS/Android | yes | -| italic | text italic | boolean | no | iOS/Android | no | +| italic | text italic | boolean | no | iOS/Android | yes | | bold | text bold | boolean | no | iOS/Android | yes | | rotate | rotate text | number | no | iOS/Android | yes | @@ -444,9 +444,9 @@ extends Padding ## 遗留问题 -- [ ] Harmony OS is not support font name feature now: [issue#7](https://github.com/react-native-oh-library/react-native-image-marker/issues/7) -- [ ] Harmony OS is not support font skewX feature now: [issue#8](https://github.com/react-native-oh-library/react-native-image-marker/issues/8) -- [ ] Harmony OS is not support font italic feature now:[issue#9](https://github.com/react-native-oh-library/react-native-image-marker/issues/9) +- [x] Harmony OS is not support font name feature now: [issue#7](https://github.com/react-native-oh-library/react-native-image-marker/issues/7) +- [x] Harmony OS is not support font skewX feature now: [issue#8](https://github.com/react-native-oh-library/react-native-image-marker/issues/8) +- [x] Harmony OS is not support font italic feature now:[issue#9](https://github.com/react-native-oh-library/react-native-image-marker/issues/9) ## 其他 -- Gitee