大约有 719 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0068 秒)
...ts图表,在UI设计中已经将HTMLDivElement控件放至页面中,且设置了var为mydiv,然后在代码中 var myChart = echarts.init(this.mydiv);进行echarts的初始化时,报: [ts] Argument of type 'HTMLDivElement' is not assignable to parameter of type 'HTMLDivElement | HTMLCanvas...
来源: Laya_社区 发布时间: 20170721
...来吧,你这个版本问题很严重啊 jweilan • 2017-11-27 16:16 不设置适配模式为showall就正常。。就因为设置了showall才会这样的。。 jweilan • 2017-11-27 16:25 你发一下你那边新建的项目文件给我ts版本的。。我这边打开测试一下。 jweilan ...
来源: Laya_社区 发布时间: 20171127
...alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponent autoSize : Boolean = false 指定...
来源: Laya2.0_api 发布时间: 20190513
...alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponent array : Array 列表数据源,...
来源: Laya2.0_api 发布时间: 20190513
...实现阴影投射效果,就像附件里的效果图那样。但是在我设置好俯视角和光源位置后,测试并没有出现阴影,请问我是哪个地方没搞对? 在测试DEMO里,我创建了一个球体,一个方体,球体坐标在方体正上方,光源为侧面光,...
来源: Laya_社区 发布时间: 20180302
...tion_Example { public function Animation_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 init();//初始化 } private function init():void { var animation:Animation = new Animation();//创建一个 Animation...
来源: Laya3.0_api 发布时间: 20231115
... momo199059 • 2017-10-19 12:02 源码里面有, 它在selectedIndex里面设置startIndex = _startIndex。 注释写的是//选择发生变化,自动渲染一次。 所以我才看不明白哪里发生变化了,要重新渲染 Monica • 2017-10-19 17:36 @momo199059:之前看错了,selectedI...
来源: Laya_社区 发布时间: 20171018
...Sample = (function(){ (function(){ //初始化引擎 Laya.init(800,600); //设置背景颜色 Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new backgr...
来源: Laya_社区 发布时间: 20180129
...rData.y,charData.w,charData.h); this.addChild(charSp); return charSp; } // 设置位置 private setCharsPos(){ switch (this._posType){ case BPFont.LEFT: this.setCharsPosOnLeft(); break; case BPFont.RIGHT: this.setCharsPosOnRight(); break; case BPFont.CENTER: this.setCharsPosOnCenter(); break; } } //...
来源: Laya_社区 发布时间: 20161014
...全一致,尤其在处理列表组件时更为常见。此时可以通过设置组件的 dataSource,对原始数据进行结构调整,使其满足列表渲染所需的格式。 示例代码如下: import { ItemBoxBase } from "./ItemBox.generated"; const { regClass, property } = Laya; @regCla...
来源: Laya3.0_文档 发布时间: 20251010