From d8043988fb89f3f5cd2a92de2769ce177e90a1ca Mon Sep 17 00:00:00 2001 From: Woraphot Chokratanasombat Date: Thu, 24 Oct 2024 12:11:30 +0700 Subject: [PATCH] docs(README.md): add TextDirection and add direction to TextOptions --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index c8bbf4ac..7d6944f5 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ import RNPhotoManipulator from 'react-native-photo-manipulator'; * [`Point`](README.md#point) * [`Rect`](README.md#rect) * [`Size`](README.md#size) + * [`TextDirection`](README.md#textdirection) * [`TextOptions`](README.md#textoptions) ### Method #### Crop and resize @@ -391,6 +392,14 @@ Represent size (width, height) of region or image | `width` | number | The width of the region | | `height` | number | The height of the region | +#### TextDirection +Enum represent text direction + +| Enum | Description | +| --------------- | ----------------------------------------------------------------- | +| LTR | Left-to-Right text direction (e.g., English, Spanish) | +| RTL | Right-to-Left text direction (e.g., Arabic, Hebrew) | + #### TextOptions Represent attributes of text such as text, color, size, and etc. @@ -406,3 +415,4 @@ Represent attributes of text such as text, color, size, and etc. | `shadowRadius` | number | No | The shadow radius | | `shadowOffset` | [`Point`](README.md#point) | No | The shadow offset | | `shadowColor` | string | No | The color of the shadow | +| `direction` | [`TextDirection`](README.md#textdirection) | No | The direction of the text, default to TextDirection.LTR |