大约有 84 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0034 秒)
... 对象是按其位置(由它左上角的点 (x, y) 确定)以及宽度和高度定义的区域。 Rectangle 类的 x、y、width 和 height 属性相互独立;更改一个属性的值不会影响其他属性。 Public Properties PropertyDefined By bottom : Number[read-only] 此矩形底...
来源: Laya2.0_api 发布时间: 20190513
...。 Graphics restore():RestoreCmd 返回之前保存过的路径状态和属性。 Graphics rotate(angle:Number, pivotX:Number = 0, pivotY:Number = 0):RotateCmd 旋转当前绘图。(推荐使用transform,性能更高) Graphics save():SaveCmd 保存当前环境的状态。 Graphics sca...
来源: Laya2.0_api 发布时间: 20190513
...象池创建 Point distance(x:Number, y:Number):Number 计算当前点和目标点(x,y)的距离。 Point normalize():void 标准化向量。 Point recover():void 回收到对象池,方便复用 Point reset():Point 重置 Point setTo(x:Number, y:Number):Point 将 Point 的成员...
来源: Laya2.0_api 发布时间: 20190513
...为显示对象的 transform 属性。这些转换函数包括平移(x 和 y 重新定位)、旋转、缩放和倾斜。 Public Properties PropertyDefined By a : Number缩放或旋转图像时影响像素沿 x 轴定位的值。Matrix b : Number旋转或倾斜图像时影响像素沿 y ...
来源: Laya2.0_api 发布时间: 20190513
...dth:Number = 0, sourceHeight:Number = 0):Texture[static] 根据指定资源和坐标、宽高、偏移量等创建 Texture 对象。 Texture createFromTexture(texture:Texture, x:Number, y:Number, width:Number, height:Number):Texture[static] 截取Texture的一部分区域,生成新的Texture,...
来源: Laya2.0_api 发布时间: 20190513
...ngle[static] 计算传入的显示对象 Sprite 的全局坐标系的坐标和缩放值,返回 Rectangle 对象存放计算出的坐标X值、Y值、ScaleX值、ScaleY值。 Utils getQueryString(name:String):String[static] 获得URL参数值 Utils getTransformRelativeToWindow(coordinateSpace...
来源: Laya2.0_api 发布时间: 20190513
...片。 Graphics restore():RestoreCmd 返回之前保存过的路径状态和属性。 Graphics rotate(angle:Number, pivotX:Number = 0, pivotY:Number = 0):RotateCmd 旋转当前绘图。(推荐使用transform,性能更高) Graphics save():SaveCmd 保存当前环境的状态。 Graphics scale(sc...
来源: Laya2.0_api 发布时间: 20190513
...均为m/s²。 在硬件(陀螺仪)不支持的情况下,alpha、beta和gamma值为null。 Public Properties PropertyDefined By x : Number x轴上的加速度值。 AccelerationInfo y : Number y轴上的加速度值。 AccelerationInfo z : Number z轴上的加速度值。 Acceleratio...
来源: Laya2.0_api 发布时间: 20190513
...rue,然后再获取宽高。Sprite的宽高一般用于进行碰撞检测和排版,并不影响显示图像大小,如果需要更改显示图像大小,请使用 scaleX , scaleY , scale。 Sprite 默认不接受鼠标事件,即mouseEnabled=false,但是只要对其监听任意鼠标事...
来源: Laya2.0_api 发布时间: 20190513
...本颜色,比如"#ff0000"。 StrokeTextCmd font : String 定义字体和字号,比如"20px Arial"。 StrokeTextCmd lineWidth : Number 线条宽度。 StrokeTextCmd text : String 在画布上输出的文本。 StrokeTextCmd textAlign : String 文本对齐方式,可选值:"left",...
来源: Laya2.0_api 发布时间: 20190513