• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,720 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0051 秒)

611. 关于layaCanvas大小自适应的建议 [ 72%]

...议 <div id="layaContainer"><canvas id="layaCanvas" width="1920" height="181" class="layaCanvas" style="position: absolute; left: 0px; top: 0px; background: rgb(0, 0, 0); transform-origin: 0px 0px 0px; transform: matrix(1, 0, 0, 1, 0, 0); width: 100%; height: 100%; display: block;"></...

来源: Laya_社区 发布时间: 20180124

612. 文本-自动调整文本尺寸 [ 72%]

...ext.width = 100; widthLimitText.y = 180; //该文本被限制了高度 var heightLimitText = createSampleText(); heightLimitText.height = 20; heightLimitText.y = 320; } function createSampleText() { var text = new Text(); text.overflow = Text.HIDDEN; text.color = "#FFFFFF"; text.font = "Impact"; tex...

来源: Laya_示例 发布时间: 20251209

613. 微信排行榜 点击事件 无法监测到 [ 72%]

...自: 叔年心~厌世 搜ui.js 里面class WXOpenDataViewer 有个 get height{}  改成  return super.height   2019-09-23 1 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 需要传个demo看一下,不然不好确认原因   2019-09-23 0 2 分享 微博 QZONE 微信 叔年心~厌...

来源: Laya_社区 发布时间: 20190923

614. [Error] TypeError: null is not an object (evaluating 'this._style._tf') [ 72%]

...s.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]) 第三: 离开这个有videoEl...

来源: Laya_社区 发布时间: 20181020

615. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 72%]

...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.addChild(this.interacti...

来源: Laya_社区 发布时间: 20171222

616. 2.0 的list问题 [ 72%]

...,2.0这里有个bug,就是用了分离模式的话这个view的width和height都为0,虽然大部分情况下不影响显示,但是如果需要用到这两个属性计算的话就会出错,比如list。把分离模式改成内嵌模式,或者简单粗暴的在构造函数里面对width...

来源: Laya_社区 发布时间: 20181221

617. 怎么获取屏幕的size,这个size是包括屏幕的高度和宽度的 [ 72%]

... 2 人 158*****196 • 2018-11-29 04:42 Laya3D.init(w, h) 后,Laya.stage.height 就是h的值。 如果想获得当前舞台高度(类似as3里的stage.stageHeight)怎么获得? 难道要document.getElementById('layaCanvas').height这样?

来源: Laya_社区 发布时间: 20180814

618. LayaNative2.0 beta3 单像素图片平铺绘制失败 [ 72%]

...横着平铺绘制无法显示 p.graphics.fillTexture(tex, 0, 0, 100, tex.height);// 无法显示 p.graphics.drawTexture(tex, 0, 0, 100, tex.height);// 正常显示   忘记说明了,native上显示有问题,网页是正常的 2018-10-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

来源: Laya_社区 发布时间: 20181025

619. UI-ProgressBar [ 72%]

...tage.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.timer.loop(100, this, this.changeValue); } changeValue() { if (this.progressBar.value >= 1) { this.pro...

来源: Laya2.0_示例 发布时间: 20251209

620. 【LIST无法拖动】参照官方实例做的 [ 72%]

...    this.hitArea.hit.drawRect(list.x, list.y -100,list.width, list.height, "#000000");         //限制鼠标点击区域                       }     find_StringAllIndex(str :String):String[]{         let pos_arr =[];         for(let i=0;i...

来源: Laya_社区 发布时间: 20210122