大约有 1,754 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0077 秒)
Laya_社区(1137) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(42)
...的宽和高为啥都是0呢,舞台是有内容的啊 trace(Laya.stage.width + "-" + Laya.stage.height); trace(Browser.clientWidth + "--" + Browser.clientHeight); trace(Browser.width + "---" + Browser.height); trace(Browser.canvas.width + "----" + Browser.canvas.height); 以上是输出的代码...
来源: Laya_社区 发布时间: 20171014
...00); reference.size(600, 400); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElement...
来源: Laya2.0_示例 发布时间: 20251130
... this.mapImg.source = texture; this.width = texture.width; this.height = texture.height; this.pos((Laya.stage.width - this.width)/2, (Laya.stage.height - this.height)/2); } ...
来源: Laya_社区 发布时间: 20171019
...layabox.com/question/149 2.然后这个解决方法需要改动viewport 把width去掉,这样的话使用Laya.Browser.clientWidth获取的实际宽高就不是设备的width了 想解决的是:在显示不模糊的情况下,还能获取设备的实际宽高。 2018-02-28 添加评论 免费帖...
来源: Laya_社区 发布时间: 20180228
...回复 坚果 赞同来自: 183*****291 、₩ var htmlC = sp.drawToCanvas(width, height, 0, 0); var canvas = htmlC.getCanvas(); canvas.toTempFilePath({ x: 0, y: 0, width: width, height: height, destWidth: width, destHeight: height, success: function (res) { wx.shareAppMessage({ imageUrl: res.tempFi...
来源: Laya_社区 发布时间: 20180517
...stateNum destroyedImmediately lock name offsetX offsetY sourceHeight sourceWidth url uuid DEBUG Accessors bitmap cpuMemory destroyed gpuMemory height id obsolute referenceCount uv valid width cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setG...
来源: Laya3.0_api 发布时间: 20231115
...Sprite(); var sharedCanvas:* = Browser.window.sharedCanvas; sharedCanvas.width = Laya.stage.width; sharedCanvas.height = Laya.stage.height; _sp.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height); Laya.stage.addChild(_sp); 开放域那边初始化的时候宽高和主域宽...
来源: Laya_社区 发布时间: 20180511
..."clipY": "3"}}, {"type": "Label", "props": {"y": "1", "text": "treeItem", "width": "150", "left": "33", "height": "22", "name": "label", "color": "#ffff00", "right": "0", "x": "33"}}, {"type": "Clip", "props": {"x": "0", "name": "arrow", "y": "5", "skin": "ui/clip_tree_arrow.png", "clipY": "2"}}], "...
来源: Laya_示例 发布时间: 20251130
...emRender = Item; tree.xml = xml; tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; Laya.stage.addChild(tree); } } const Box = Laya.Box, Clip = Laya.Clip, Label = Laya.Label; // 此类对应的json对象: // {"child": [{"type": "Clip"...
来源: Laya2.0_示例 发布时间: 20251130
... if (this.x < 0 || this.x > this._map.viewPortWidth || this.y < 0 || this.y > this._map.viewPortHeight) { this.hide(); } else { this.show(); ...
来源: Laya_社区 发布时间: 20220627