大约有 1,738 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1124) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(39)
...d-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴...
来源: laya_api 发布时间: 20170929
...prite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.name = "maskArea"; this.guideContainer.addChild(maskArea); this.interactionArea = new Laya.Sprite(); this.interactionArea.blendMode = "destination-out"; this.guideContainer.addCh...
来源: Laya_社区 发布时间: 20171222
...QZONE 微信 Devilsparta 赞同来自: var panel = new Laya.Panel(); panel.width = 800; panel.y = 30; panel.hScrollBarSkin = null; var sp = new Laya.Sprite(); panel.addChild(sp); sp.x = 0; sp.y = 0; // 用下面这组数据是可显示的 // sp.y = 1; // sp.x = 1; sp.graphics.drawRect(0, 0, 200, 200...
来源: Laya_社区 发布时间: 20170217
...itDOMElementInArea(this.videoElement, this.reference, 0, 0, this.reference.width, this.reference.height) 第二: 加Event.RESIZE Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [this.videoElement, this.reference, 0, 0, this.reference.width, this.reference.height]) 第三: ...
来源: Laya_社区 发布时间: 20181020
...览: 1573 关注: 3 人 182*****369 • 2017-07-27 14:36 画布在init后,width height就不能改变了对吗?测试再次init无效呀 cuixueying • 2017-07-27 15:41 把width和height用两个变量代替,动态修改变量的值即可!
来源: Laya_社区 发布时间: 20170427
.... /// </summary> public center: Transform3D; /// <summary> /// Width of area. /// </summary> public width: number; /// <summary> /// Length of area. /// </summary> public length: number; /// <summary> /// Constructor. /// </summary> /// <param name="cente...
来源: Laya_社区 发布时间: 20190224
...模式,2.0这里有个bug,就是用了分离模式的话这个view的width和height都为0,虽然大部分情况下不影响显示,但是如果需要用到这两个属性计算的话就会出错,比如list。把分离模式改成内嵌模式,或者简单粗暴的在构造函数里面对w...
来源: Laya_社区 发布时间: 20181221
...r.getRes('../laya/assets/comp/bg.jpg'); console.log([this.bgImage.width,this.bgImage.height]); })); 2018-07-30 1 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: width height 不行吗? 2018-07-30 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前...
来源: Laya_社区 发布时间: 20180730
... Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() {...
来源: Laya2.0_示例 发布时间: 20240930
...n: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) / 2; Laya.stage.addChild(soundButton); //创建一个Sprite充当音乐播放按钮 var musicButton: Sprite = this.createBut...
来源: Laya_社区 发布时间: 20190421