大约有 683 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0077 秒)
Laya_社区(327) Laya3.0_api(89) Laya2.0_api(69) Laya2.0_文档(65) laya_api(61) Laya3.0_文档(38) Laya2.0_示例(19) Laya_示例(15)
...,需要遮罩宽度随着进度变化而变化 _mask.size(_barImage.width * _percent, _barImage.height); _mask.graphics.clear(); _mask.graphics.drawRect(0, 0, _mask.width, _mask.height, "#FF0000"); _barImage.mask = null; _barImage.mask = _mask; 试过需...
来源: Laya_社区 发布时间: 20170809
... cuixueying 赞同来自: 问题1、 label的宽高可以直接通过.width和.height获取,尺寸会跟随字符的多少变化而变化,是自动调整的,无需开发者去计算 问题2、 htmlDivElement的文本宽高,默认的宽高为200,,200,如果已经设置过htmlDivElem...
来源: Laya_社区 发布时间: 20160823
...area.w; this._doll_area.h = doll_area.h; } // 设置容器的宽高 this.width = Math.max( this._blood_area.w, this._demon_area.w, this._doll_area.w ); this.height = this._blood_area.h + this._demon_area.h + this._doll_area.h; this.graphics.drawRect( 0, 0, this.width, this.height, null, "#ff00...
来源: Laya_社区 发布时间: 20180515
...t.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url:string = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private cl...
来源: Laya2.0_文档 发布时间: 20210715
...是需要改html哪里的宽度呢 wxj56406542 • 2018-05-11 14:04 设置Width 为结对单位 别用相对单位 再设置wordwrap为false 就不会换行了
来源: Laya_社区 发布时间: 20170721
...先描述一下现象:Laya.stage根据外部浏览器的大小而变化width和height,stage里面有个sprite,sprite里面有个Button,Button时刻保持在右上角。因为忘了设置sprite的width和height,导致按钮有时移出sprite 的范围而失去焦点,只要同时把sprite...
来源: Laya_社区 发布时间: 20171128
..._LEFTUP RENDERORDER_RIGHTDOWN RENDERORDER_RIGHTUP Accessors gridHeight gridWidth height numColumnsGrid numColumnsTile numRowsGrid numRowsTile orientation renderOrder scale tileHeight tileWidth width x y Methods changeViewPort changeViewPortBySize createMap destroy getLayerByIndex getLayerByName getL...
来源: Laya3.0_api 发布时间: 20231115
....core.js中的CharRender_Canvas这个类里面的 CharRender_Canvas.canvas.width属性,把width改成4096看看
来源: Laya_社区 发布时间: 20220608
...gressBar("../../../../res/ui/progressBar.png"); //设置宽度 progressBar.width = 400; //设置显示位置,在舞台居中 progressBar.x = (Laya.stage.width - progressBar.width ) / 2; progressBar.y = Laya.stage.height / 2; //设置九宫格边距,以防变形 progressBar.sizeGrid = "5,5,5,5"; ...
来源: Laya2.0_文档 发布时间: 20210715
...:Label = new Label(); demoLable2.text = "上个Lable的宽: " + demoLable1.width + ", 高: " + demoLable1.height; demoLable2.fontSize = 50; demoLable2.bgColor = "#0FF"; demo.addChild(demoLable2.pos(0,50)); } 附件 : --> 2018-05-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180530