Skip to content

Commit 1d8ebd8

Browse files
docs: Remove obsolete supportsCSSTransform option from canvas docs (#2112)
The supportsCSSTransform option is no longer present in the CanvasConfig interface. This commit removes the corresponding documentation from both the English and Chinese API documents to align them with the current codebase. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent ac21a81 commit 1d8ebd8

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

site/docs/api/canvas/options.en.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -177,19 +177,6 @@ const canvas = new Canvas({
177177
});
178178
```
179179

180-
### supportsCSSTransform
181-
182-
Optional. 是否支持在容器上应用 CSS Transform 的情况下确保交互事件坐标转换正确。
183-
184-
Whether or not CSS Transform is supported on the container to ensure that the interaction event coordinates are transformed correctly.
185-
186-
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.
187-
188-
```js
189-
const $wrapper = document.getElementById('container');
190-
$wrapper.style.transform = 'scale(1.1)';
191-
```
192-
193180
### supportsPointerEvents
194181

195182
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`.

site/docs/api/canvas/options.zh.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -184,17 +184,6 @@ const canvas = new Canvas({
184184
});
185185
```
186186

187-
### supportsCSSTransform
188-
189-
可选。是否支持在容器上应用 CSS Transform 的情况下确保交互事件坐标转换正确。
190-
191-
在该 [示例](/examples/canvas/container/#supports-css-transform) 中,我们将容器放大了 1.1 倍,开启该配置项后,鼠标移动到圆上可以正确变化鼠标样式:
192-
193-
```js
194-
const $wrapper = document.getElementById('container');
195-
$wrapper.style.transform = 'scale(1.1)';
196-
```
197-
198187
### supportsPointerEvents
199188

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

0 commit comments

Comments
 (0)