大约有 1,037 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
Laya_社区(608) Laya2.0_文档(86) Laya3.0_api(75) Laya2.0_api(62) laya_api(57) Laya2.0_示例(53) Laya_示例(49) Laya3.0_文档(47)
... page[1].rotation=ps[1]+180; page[1].pos(_core.p1.x,_core.p1.y); }else if(idx==4){ page[1].pivot(0,200); page[1].rotation=0;//ps[0...
来源: Laya_社区 发布时间: 20161214
...ude altitudeAccuracy heading latitude longitude speed timestamp Methods setPosition Accessors accuracy get accuracy(): number Defined in laya/device/geolocation/GeolocationInfo.ts:38 获取设备当前地理坐标的精度 Returns number altitude get altitude(): number Defined in laya/device/geoloca...
来源: Laya3.0_api 发布时间: 20231115
...): void { // 方法1:使用loadImage var ape: Sprite = new Sprite(); ape.pos(100,50); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); } } } new laya.Sprite_DisplayImage(); ``` 在示例代码里,“`100,50`”是图片的显示坐标信息。示例代码运行效果如图2...
来源: Laya2.0_文档 发布时间: 20210715
...= 0; i < data.touches.length; i++) { str += ` {${i} : ${data.touches[i].pos.toString()}}`; } } console.log("drag mouse down", str); }); Laya.stage.on(Laya.Event.MOUSE_UP, this, (data: Laya.Event) => { let str = ""; if (data.touches) { for (let i = 0; i < data.touches.length; i++) { str += `...
来源: Laya_社区 发布时间: 20230823
....Sprite(); Laya.stage.addChild(this.ape); this.ape.pivot(55, 72); this.ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.switchTexture(); this.ape.on(Laya.Event.CLICK, this, this.switchTexture); } switchTexture() { let monkey = (this.flag = !this.flag) ? monkey1Res : monkey2Res; this.ape.gr...
来源: Laya2.0_示例 发布时间: 20251130
....graphics.drawRect(0, 0, 100, 100, "#ff0000"); Laya.stage.addChild(sp); sp.pos(100, 100); drawToc(sp); } private function drawToc(sp:Sprite):void { var canvas:HTMLCanvas= sp.drawToCanvas(100, 100, 0, 0); var ct:*= canvas.getContext("2d").canvas; var bs64:String = ct.toDataURL(); trace(bs64); var img...
来源: Laya_社区 发布时间: 20170417
...svalue.anchorX = 0.5; this.progressvalue.anchorY = 0.5; this.progressvalue.pos(15, 15); //记录宽度 this.width_x = this.progress.width + 3; this.vmask = new Laya.Sprite(); this.vmask.pos(15,15); this.vmask.graphics.drawPie(0, 0, 20, -90, 270, "#000000"); this.progress.addChild(this.progressval...
来源: Laya_社区 发布时间: 20180725
...r y = Math.random() * Laya.stage.height; console.log(x + "" + y); drawyuan.pos(x,y); return drawyuan; } 2017-09-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 用下面的方法给circl...
来源: Laya_社区 发布时间: 20170905
...ideView.zOrder = MazeConst.gameZOrder; guideView.pos(0,0); Laya.stage.addChild(guideView); guideView.setClickArea(Laya.stage.width/2, Laya.stage.height/2,100); } } export class MazeGuideView...
来源: Laya_社区 发布时间: 20200119
... (3).png"; dialog.sizeGrid = "40,40,40,40,0"; dialog.size(500,400); dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } })(); 在你们demo的基础上改的 pc的狐火下有问题 ie下应该也有 edge上不太确定 2017-08-28 0 0 分享 微博 QZONE 微信 a1284964657 赞同来...
来源: Laya_社区 发布时间: 20170828