大约有 190 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0071 秒)
Laya3.0_api(64) Laya_社区(58) Laya2.0_文档(21) Laya2.0_api(17) laya_api(14) Laya3.0_文档(12) Laya2.0_示例(2) Laya_示例(2)
...乎是使用 this.bgimg.texture=Loader.getRes(pic) 载入数据的时候,宽度,高度都没有进行定义,需要手动进行设置,而直接用 loadImage(pic) 的时候,则宽高均自动进行了重设 2017-11-08 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠...
来源: Laya_社区 发布时间: 20171024
...为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] 获得相对于stage的全局旋转值...
来源: Laya2.0_api 发布时间: 20190513
...可见,节点将不被渲染。Sprite width : Number 显示对象的宽度,单位为像素,默认为0。 此宽度用于鼠标碰撞检测,并不影响显示对象图像大小。需要对显示对象的图像进行缩放,请使用scale、scaleX、scaleY。 可以通过getbounds获取显...
来源: laya_api 发布时间: 20170929
...器的垂直方向坐标值。 shape.width = 100;//设置 shape 对象的宽度。 shape.height = 100;//设置 shape 对象的高度。 shape.pivotX = 50;//设置 shape 对象的水平方法轴心点坐标。 shape.pivotY = 50;//设置 shape 对象的垂直方法轴心点坐标。 Laya.stage.addChil...
来源: Laya3.0_api 发布时间: 20231115
...) { txt += tTxt; } } } trace("文本内容为"+txt); trace("文本的实际宽度为"+htmlDiv.contextWidth,"文本的实际高度为"+htmlDiv.contextHeight) Laya.stage.addChild(htmlDiv);3、设置文本的水平居中对齐(align需要和width配合使用),换行(<br/>换行需要有行高...
来源: Laya_社区 发布时间: 20161027
...tionBase.displayWidth Defined in laya/display/Sprite.ts:514 对象的显示宽度(以像素为单位)。 Returns number displayedInStage get displayedInStage(): boolean Inherited from Node.displayedInStage Defined in laya/display/Node.ts:473 表示是否在显示列表中显示。 Returns boolea...
来源: Laya3.0_api 发布时间: 20231102
...tionBase.displayWidth Defined in laya/display/Sprite.ts:514 对象的显示宽度(以像素为单位)。 Returns number displayedInStage get displayedInStage(): boolean Inherited from Node.displayedInStage Defined in laya/display/Node.ts:473 表示是否在显示列表中显示。 Returns boolea...
来源: Laya3.0_api 发布时间: 20231102
...粗体,功能同bold color:#ff0000; 字体颜色 stroke:2px; 字体描边宽度 strokeColor:#ff0000; 字体描边颜色 padding:10px 10px 20px 20px; 边缘的距离 vertical-align:top|bottom|middle; 垂直对齐方式 align:left|right|center; 水平对齐方式 line-height:20px; 行高 background-...
来源: Laya3.0_api 发布时间: 20231102
...nt.contextWidth Defined in laya/html/dom/HTMLDivElement.ts:172 获取內容宽度 Returns number customRenderEnable set customRenderEnable(b: boolean): void Inherited from AnimationBase.customRenderEnable Defined in laya/display/Sprite.ts:319 设置是否开启自定义渲染,只有开启自定义...
来源: Laya3.0_api 发布时间: 20231102
...ht = _mapTileH * _mapH; width的逻辑是格子的横向数量*单元格的宽度,我能说这个算的是菱形ABEF中BF的长度么,而我的实际地图的宽应该是BG段的长度,难道不是么?并且细心的同学会发现在maplayer计算坐标的位置都会用这个width/2方式...
来源: Laya_社区 发布时间: 20161109