主题
Offset
A 2D floating-point offset.
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
x | Number | 0 | The horizontal offset. |
y | Number | 0 | The vertical offset. |
transform_hit_tests | bool | True | Whether to apply the transformation when performing hit tests. |
filter_quality | Optional['FilterQuality'] | None | The filter quality with which to apply this transform as a bitmap operation. |
只读属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
distance | float | — | The magnitude of the offset. |
方法
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
copy | 'Offset' | — | 返回此对象的副本,可覆盖指定属性。 |