大约有 1,723 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0060 秒)
Laya_社区(1004) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(49)
...nt("div"); this.qrcode = new Laya.Browser.window.QRCode(div, { width: 100, height: 100 }); var url: string = this.URL; this.qrcode.makeCode(url); Laya.stage.once("click", this, this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private clickHandler(): void {...
来源: Laya_社区 发布时间: 20180412
...ontSize = 30; txt.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); Laya.stage.addChild(txt); Laya.Tween.to(txt, { scaleX: 2, scaleY: 2 }, 5000); 5秒钟把文本放大2倍,感觉是 fontSize在不平滑的增大,显得比较卡,...
来源: Laya_社区 发布时间: 20200410
...stage.width - this.progressBar.width) / 2; this.progressBar.y = Laya.stage.height / 2; this.progressBar.sizeGrid = "5,5,5,5"; this.progressBar.changeHandler = new Handler(this, this.onChange); Laya.stage.addChild(this.progressBar); Laya.timer.loop(100, this, this.changeValue); } private changeValue(...
来源: Laya2.0_文档 发布时间: 20210715
...aniBody.getBounds(); this.aniBody.pivot(bound.width / 2, bound.height / 2); if (direction < 0) { this.aniBody.scaleX = -1; } else { this.aniBody.scaleX = 1; } } 每改变一个方向CurMern都爆涨50M这样...
来源: Laya_社区 发布时间: 20170615
...; var SPACING = 100; var INPUT_WIDTH = 300; var INPUT_HEIGHT = 50; var Y_OFFSET = 50; var skins; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.AL...
来源: Laya_社区 发布时间: 20190814
... this.iframe.style.width = "100%"; this.iframe.style.height = "100%" this.iframe.style.border = "none"; this.iframe.style.zIndex=-1 } 那我有一个需求,想将document 元素 层级设置为-1,任看得见,该如何实现呢 2024-03-05 0...
来源: Laya_社区 发布时间: 20240304
...1005945485 • 2017-11-16 23:13 获取浏览器的高度,是Laya.Browser.height吧,我把这个值赋给精灵后,还是因为超出而看不到,因为精灵的位置也是相对舞台的,而舞台底部是超出了屏幕的,所以精灵还是被挡住了,我被这问题难住好几天...
来源: Laya_社区 发布时间: 20171116
...est-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoadedMap)); } private var sp:Sprite; private function onLoadedMap():void { var mapLayer:MapLayer=tiledMap.getLayerByIndex(2); sp=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000&quo...
来源: Laya_社区 发布时间: 20170525
...("res/map/map.json",new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height), Laya.Handler.create(this,this.onLoaded));报错的地方为:laya.tiledmap.js第178行: var tImageArray=relativePath.split("/");调试显示relativePath为undefined。 稍微跟踪了下,是141行在初始化tTi...
来源: Laya_社区 发布时间: 20161224
... graphics.drawTexture(shareTexture, 0, 0, shareTexture.width, shareTexture.height); 下一行报错: Uncaught TypeError: this.bitmap.activeResource is not a function 2020-05-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 星夜 相关...
来源: Laya_社区 发布时间: 20190910