Skip to content

Commit

Permalink
Merge branch 'main' into gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshenhai committed Jul 14, 2024
2 parents 6c0178a + 8a0d854 commit 44bc9bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/en-US/element/info.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type Element = {
angle?: number;
detail: any; // Different element has different description
operations?: {
lock?: boolean;
locked?: boolean;
invisible?: boolean;
limitRatio?: boolean;
};
Expand All @@ -51,9 +51,9 @@ type Element = {
| w | Element width | `number` | - | `true` | - |
| h | Element height | `number` | - | `true` | - |
| angle | Element rotation angle | `number` | `0` | `false` | `[0, 360]` |
| lock | Set the lock-staus of element | `boolean` | `false` | `false` | The view operation cannot be controlled after the element is locked |
| locked | Set the lock-staus of element | `boolean` | `false` | `false` | The view operation cannot be controlled after the element is locked |
| detail | Detail of different elements | `object` (Please check the description of each element for details) | - | `true` | - |
| operation.lock | Set the lock-staus of element | `boolean` | `false` | `false` | The view operation cannot be controlled after the element is locked |
| operation.locked | Set the locked-staus of element | `boolean` | `false` | `false` | The view operation cannot be controlled after the element is locked |
| operation.invisible | - | `boolean` | `false` | `false` | - |
| operation.limitRatio | Limit element width and height ratio | `boolean` | - | `false` | When the element is scaled, it is scaled according to its width and height ratio |

Expand Down
4 changes: 2 additions & 2 deletions src/zh-CN/element/info.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type Element = {
detail: any; // 不同元素的描述内容不一样
// operations 为元素操控配置
operations?: {
lock?: boolean;
locked?: boolean;
invisible?: boolean;
limitRatio?: boolean;
};
Expand All @@ -53,7 +53,7 @@ type Element = {
| h | 元素高度 | `number` | - | - |
| angle | 元素旋转角度 | `number` | `0` | `[0, 360]` |
| detail | 元素描述内容 | `object` (详情请查看各元素描述内容) | - | - |
| operations.lock | 元素是否锁住 | `boolean` | `false` | 元素锁住后就不能进行视图操作 |
| operations.locked | 元素是否锁住 | `boolean` | `false` | 元素锁住后就不能进行视图操作 |
| operations.invisible | 元素是否不可见 | `boolean` | `false` | 元素不可见就不会渲染 |
| operations.limitRatio | 元素是否限制宽高比例 | `boolean` | - | 在元素缩放时候,按照其宽高比例进行缩放 |

Expand Down

0 comments on commit 44bc9bc

Please sign in to comment.