• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 66 项符合查询结果, 库内数据总量为 30,949 项。 (搜索耗时: 0.0027 秒)

1. laya.maths.Rectangle [ 100%]

... 对象是按其位置(由它左上角的点 (x, y) 确定)以及宽度高度定义的区域。 Rectangle 类的 xy、width height 属性相互独立;更改一个属性的值不会影响其他属性。 Public Properties PropertyDefined By  bottom : Number[read-only] 此矩形底...

来源: laya_api 发布时间: 20170929

2. laya.maths.Point [ 99%]

...oint 对象。 Point  distance(x:Number, y:Number):Number 计算当前点目标点(xy)的距离。 Point  normalize():void 标准化向量。 Point  setTo(x:Number, y:Number):Point 将 Point 的成员设置为指定值。 Point  toString():String返回包含 x y 坐标的值的字...

来源: laya_api 发布时间: 20170929

3. laya.display.Graphics [ 99%]

...图片。 Graphics  restore():void 返回之前保存过的路径状态属性。 Graphics  rotate(angle:Number, pivotX:Number = 0, pivotY:Number = 0):void 旋转当前绘图。(推荐使用transform,性能更高) Graphics  save():void 保存当前环境的状态。 Graphics  scale(scale...

来源: laya_api 发布时间: 20170929

4. laya.maths.Matrix [ 98%]

...为显示对象的 transform 属性。这些转换函数包括平移(x y 重新定位)、旋转、缩放倾斜。 Public Properties PropertyDefined By  a : Number缩放或旋转图像时影响像素沿 x 轴定位的值。Matrix  b : Number旋转或倾斜图像时影响像素沿 y ...

来源: laya_api 发布时间: 20170929

5. laya.utils.HitArea [ 93%]

...鼠标点击区域,可以设置绘制一系列矢量图作为点击区域非点击区域(目前只支持圆形,矩形,多边形) Public Properties PropertyDefined By  hit : Graphics 可点击区域,可以设置绘制一系列矢量图作为点击区域(目前只支持圆形,矩...

来源: laya_api 发布时间: 20170929

6. laya.utils.Utils [ 92%]

...ngle[static] 计算传入的显示对象 Sprite 的全局坐标系的坐标缩放值,返回 Rectangle 对象存放计算出的坐标X值、Y值、ScaleX值、ScaleY值。 Utils  getTransformRelativeToWindow(coordinateSpace:Sprite, x:Number, y:Number):Object[static] 获取指定区域内相对...

来源: laya_api 发布时间: 20170929

7. laya.resource.Texture [ 92%]

...示是否加载成功,只能表示初次载入成功(通常包含下载载入),并不能完全表示资源是否可立即使用(资源管理机制释放影响等)。 Texture  offsetX : Number = 0沿 X 轴偏移量。Texture  offsetY : Number = 0沿 Y 轴偏移量。Texture  releas...

来源: laya_api 发布时间: 20170929

8. laya.ui.AutoBitmap [ 91%]

...个图片。 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

9. laya.device.motion.AccelerationInfo [ 90%]

...均为m/s²。 在硬件(陀螺仪)不支持的情况下,alpha、betagamma值为null。 Public Properties PropertyDefined By  x : Number x轴上的加速度值。 AccelerationInfo  y : Number y轴上的加速度值。 AccelerationInfo  z : Number z轴上的加速度值。 Acceleratio...

来源: laya_api 发布时间: 20170929

10. laya.display.Sprite [ 88%]

...rue,然后再获取宽高。Sprite的宽高一般用于进行碰撞检测排版,并不影响显示图像大小,如果需要更改显示图像大小,请使用 scaleX , scaleY , scale。 Sprite 默认不接受鼠标事件,即mouseEnabled=false,但是只要对其监听任意鼠标事...

来源: laya_api 发布时间: 20170929