Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions site/docs/api/canvas/options.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,19 +177,6 @@ const canvas = new Canvas({
});
```

### supportsCSSTransform

Optional. 是否支持在容器上应用 CSS Transform 的情况下确保交互事件坐标转换正确。

Whether or not CSS Transform is supported on the container to ensure that the interaction event coordinates are transformed correctly.

In this [example](/en/examples/canvas/container/#supports-css-transform), we have enlarged the container by a factor of 1.1, and with this configuration enabled, mouse movement over the circle changes the mouse style correctly.

```js
const $wrapper = document.getElementById('container');
$wrapper.style.transform = 'scale(1.1)';
```

### supportsPointerEvents

Optional. Whether PointerEvent is supported or not, the default will use `! !globalThis.PointerEvent`. If `false` is passed, the event listener plugin will not listen for PointerEvent such as `pointerdown`.
Expand Down
11 changes: 0 additions & 11 deletions site/docs/api/canvas/options.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,17 +184,6 @@ const canvas = new Canvas({
});
```

### supportsCSSTransform

可选。是否支持在容器上应用 CSS Transform 的情况下确保交互事件坐标转换正确。

在该 [示例](/examples/canvas/container/#supports-css-transform) 中,我们将容器放大了 1.1 倍,开启该配置项后,鼠标移动到圆上可以正确变化鼠标样式:

```js
const $wrapper = document.getElementById('container');
$wrapper.style.transform = 'scale(1.1)';
```

### supportsPointerEvents

可选。是否支持 PointerEvent,默认将使用 `!!globalThis.PointerEvent` 判断。如果传入 `false`,事件监听插件将不会监听例如 `pointerdown` 等 PointerEvent。
Expand Down
Loading