Skip to content

Commit

Permalink
docs(element-canvas): except the "scale" option for the `event.deta…
Browse files Browse the repository at this point in the history
…il.action` of actionstart/move/end
  • Loading branch information
fengyuanchen committed Sep 1, 2024
1 parent 396f2c7 commit c778cb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/api/cropper-canvas.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ The event is fired when a pointer becomes active.
- The related data of the action.
- **event.detail.action**:
- Type: `string`
- Options: same as the `action` event.
- Options: same as the `action` event, except for the `"scale"` option.
- The action type.
- **event.detail.relatedEvent**:
- Type: `PointerEvent | TouchEvent | MouseEvent`
Expand All @@ -202,7 +202,7 @@ This event is fired when a pointer changes coordinates.
- The related data of the action.
- **event.detail.action**:
- Type: `string`
- Options: same as the `action` event.
- Options: same as the `action` event, except for the `"scale"` option.
- The action type.
- **event.detail.relatedEvent**:
- Type: `PointerEvent | TouchEvent | MouseEvent`
Expand All @@ -221,7 +221,7 @@ This event is fired when a pointer is no longer active.
- The related data of the action.
- **event.detail.action**:
- Type: `string`
- Options: same as the `action` event.
- Options: same as the `action` event, except for the `"scale"` option.
- The action type.
- **event.detail.relatedEvent**:
- Type: `PointerEvent | TouchEvent | MouseEvent`
Expand Down
6 changes: 3 additions & 3 deletions docs/zh/api/cropper-canvas.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ document.querySelector('#canvas').addEventListener('action', function (event) {
- 动作的相关数据。
- **event.detail.action**
- 类型:`string`
- 可选值: `action` 事件
- 可选值: `action` 事件相同,除了 `"scale"` 选项
- 动作类型。
- **event.detail.relatedEvent**
- 类型:`PointerEvent | TouchEvent | MouseEvent`
Expand All @@ -202,7 +202,7 @@ document.querySelector('#canvas').addEventListener('action', function (event) {
- 动作的相关数据。
- **event.detail.action**
- 类型:`string`
- 可选值: `action` 事件
- 可选值: `action` 事件相同,除了 `"scale"` 选项
- 动作类型。
- **event.detail.relatedEvent**
- 类型:`PointerEvent | TouchEvent | MouseEvent`
Expand All @@ -221,7 +221,7 @@ document.querySelector('#canvas').addEventListener('action', function (event) {
- 动作的相关数据。
- **event.detail.action**
- 类型:`string`
- 可选值: `action` 事件
- 可选值: `action` 事件相同,除了 `"scale"` 选项
- 动作类型。
- **event.detail.relatedEvent**
- 类型:`PointerEvent | TouchEvent | MouseEvent`
Expand Down

0 comments on commit c778cb6

Please sign in to comment.