大约有 66 项符合查询结果, 库内数据总量为 30,949 项。 (搜索耗时: 0.0027 秒)
... 对象是按其位置(由它左上角的点 (x, y) 确定)以及宽度和高度定义的区域。 Rectangle 类的 x、y、width 和 height 属性相互独立;更改一个属性的值不会影响其他属性。 Public Properties PropertyDefined By bottom : Number[read-only] 此矩形底...
来源: laya_api 发布时间: 20170929
...oint 对象。 Point distance(x:Number, y:Number):Number 计算当前点和目标点(x,y)的距离。 Point normalize():void 标准化向量。 Point setTo(x:Number, y:Number):Point 将 Point 的成员设置为指定值。 Point toString():String返回包含 x 和 y 坐标的值的字...
来源: laya_api 发布时间: 20170929
...图片。 Graphics restore():void 返回之前保存过的路径状态和属性。 Graphics rotate(angle:Number, pivotX:Number = 0, pivotY:Number = 0):void 旋转当前绘图。(推荐使用transform,性能更高) Graphics save():void 保存当前环境的状态。 Graphics scale(scale...
来源: laya_api 发布时间: 20170929
...为显示对象的 transform 属性。这些转换函数包括平移(x 和 y 重新定位)、旋转、缩放和倾斜。 Public Properties PropertyDefined By a : Number缩放或旋转图像时影响像素沿 x 轴定位的值。Matrix b : Number旋转或倾斜图像时影响像素沿 y ...
来源: laya_api 发布时间: 20170929
...鼠标点击区域,可以设置绘制一系列矢量图作为点击区域和非点击区域(目前只支持圆形,矩形,多边形) Public Properties PropertyDefined By hit : Graphics 可点击区域,可以设置绘制一系列矢量图作为点击区域(目前只支持圆形,矩...
来源: laya_api 发布时间: 20170929
...ngle[static] 计算传入的显示对象 Sprite 的全局坐标系的坐标和缩放值,返回 Rectangle 对象存放计算出的坐标X值、Y值、ScaleX值、ScaleY值。 Utils getTransformRelativeToWindow(coordinateSpace:Sprite, x:Number, y:Number):Object[static] 获取指定区域内相对...
来源: laya_api 发布时间: 20170929
...示是否加载成功,只能表示初次载入成功(通常包含下载和载入),并不能完全表示资源是否可立即使用(资源管理机制释放影响等)。 Texture offsetX : Number = 0沿 X 轴偏移量。Texture offsetY : Number = 0沿 Y 轴偏移量。Texture releas...
来源: laya_api 发布时间: 20170929
...个图片。 Graphics restore():void 返回之前保存过的路径状态和属性。 Graphics rotate(angle:Number, pivotX:Number = 0, pivotY:Number = 0):void 旋转当前绘图。(推荐使用transform,性能更高) Graphics save():void 保存当前环境的状态。 Graphics scale(scaleX:Num...
来源: laya_api 发布时间: 20170929
...均为m/s²。 在硬件(陀螺仪)不支持的情况下,alpha、beta和gamma值为null。 Public Properties PropertyDefined By x : Number x轴上的加速度值。 AccelerationInfo y : Number y轴上的加速度值。 AccelerationInfo z : Number z轴上的加速度值。 Acceleratio...
来源: laya_api 发布时间: 20170929
...rue,然后再获取宽高。Sprite的宽高一般用于进行碰撞检测和排版,并不影响显示图像大小,如果需要更改显示图像大小,请使用 scaleX , scaleY , scale。 Sprite 默认不接受鼠标事件,即mouseEnabled=false,但是只要对其监听任意鼠标事...
来源: laya_api 发布时间: 20170929