大约有 373 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0045 秒)
Laya_社区(156) Laya3.0_api(70) Laya2.0_api(62) laya_api(59) Laya_示例(9) Laya2.0_文档(8) Laya2.0_示例(7) Laya3.0_文档(2)
....Graphics; var Event = Laya.Event; var Layer = Laya.Layer; var Rectangle = Laya.Rectangle; function layaSlot(info){ layaSlot.__super.call(this); this.size(200,200); this.graphics.drawRect(0,0,200,200,'#123456'); var viewPort = new Rectangle(0,0,200,...
来源: Laya_社区 发布时间: 20170323
...rns void Static getGlobalPosAndScale getGlobalPosAndScale(sprite: Sprite): Rectangle Defined in laya/utils/SpriteUtils.ts:37 计算传入的显示对象 Sprite 的全局坐标系的坐标和缩放值,返回 Rectangle 对象存放计算出的坐标X值、Y值、ScaleX值、ScaleY值。 Parameters s...
来源: Laya3.0_api 发布时间: 20231115
...ody, engine: engine }); // create two boxes and a ground var boxA = Bodies.rectangle(400, 200, 80, 80); var boxB = Bodies.rectangle(450, 50, 80, 80); var ground = Bodies.rectangle(400, 500, 810, 60, { isStatic: true }); // add all of the bodies to the world World.add(engine.world, [boxA, boxB, groun...
来源: Laya_社区 发布时间: 20170905
...大小 TiledMap changeViewPortBySize(width:Number, height:Number, rect:Rectangle = null):Rectangle 在锚点的基础上计算,通过宽和高,重新计算视口 TiledMap createMap(mapName:String, viewRect:Rectangle, completeHandler:Handler, viewRectPadding:Rectangle = null, gridSize:Point...
来源: laya_api 发布时间: 20170929
...大小 TiledMap changeViewPortBySize(width:Number, height:Number, rect:Rectangle = null):Rectangle 在锚点的基础上计算,通过宽和高,重新计算视口 TiledMap createMap(mapName:String, viewRect:Rectangle, completeHandler:Handler, viewRectPadding:Rectangle = null, gridSize:Point...
来源: Laya2.0_api 发布时间: 20190513
....graphics; this.closeBtn.hitArea = hitA; // 写法三 let closeRect:Laya.Rectangle = new Laya.Rectangle(this.closeBtn.x-10,this.closeBtn.y-10,this.closeBtn.width+20,this.closeBtn.height+20); this.closeBtn.hitArea = closeRect; // closeBtn 为 Laya.Button 实例 this.closeBtn.on(Event.CLICK,this,t...
来源: Laya_社区 发布时间: 20170920
...aya { import Animation = Laya.Animation; import Stage = Laya.Stage; import Rectangle = Laya.Rectangle; import Loader = Laya.Loader; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Animation_Altas { private AniConfPath: string = "res/fighter/fighter.json"; constructor() { // ...
来源: Laya2.0_示例 发布时间: 20241117
... { import laya.display.Node; import laya.display.Sprite; import laya.maths.Rectangle; import laya.ui.Dialog; import laya.ui.Image; import laya.utils.Handler; import ui.TestDialogUI; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var spee...
来源: Laya_社区 发布时间: 20171129
... this._tMap = new TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(); console.log(this._tMap); //创建TiledMap地图 this._tMap.createMap("../bin...
来源: Laya_社区 发布时间: 20200815
.../串盒子的高 var boxHeight = 500; //串盒子 this.chuanBox = new Laya.Rectangle(Laya.stage.width - boxWidth >> 1, Laya.stage.height - boxHeight - 10, boxWidth, boxHeight); //画出盒子 Laya.stage.graphics.drawRect( this.chuanBox.x, this.chuanBox.y, this.chuanBox.width, this.chuanBox.hei...
来源: Laya_社区 发布时间: 20181026