Skip to content

Offset

A 2D floating-point offset.

属性 ​

名称类型默认值说明
xNumber0The horizontal offset.
yNumber0The vertical offset.
transform_hit_testsboolTrueWhether to apply the transformation when performing hit tests.
filter_qualityOptional['FilterQuality']NoneThe filter quality with which to apply this transform as a bitmap operation.

只读属性 ​

名称类型默认值说明
distancefloat—The magnitude of the offset.

方法 ​

名称类型默认值说明
copy'Offset'—返回此对象的副本,可覆盖指定属性。

关注我,学习大模型、大数据、Python等热门技术。