大约有 291 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0081 秒)
Laya_社区(116) Laya3.0_api(60) Laya2.0_示例(34) Laya2.0_文档(31) Laya_示例(31) Laya3.0_文档(17) laya_api(1) Laya2.0_api(1)
...体中,没放空格,最好设置一个空格宽度 mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(mFontName,mBitmapFont); var txt = new Laya.Text(); txt.text = "asdfghjk"; //设置宽度,高度自动匹配 txt.width = 250; //自动换行 txt.wordWrap = true; txt.align = "center"; ...
来源: Laya2.0_文档 发布时间: 20201114
... sprite.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height); // console.log("再次往开放域发请求"); // openDataContext.postMessage({ // cmd:2, ...
来源: Laya_社区 发布时间: 20180529
...g/vscroll.png"; this.sp_wanfa.addChild(panel); let t = new Laya.Label(); t.width = 638; t.fontSize = 25; t.wordWrap = true; t.color = "#976A4F"; t.overflow = "scroll" t.leading = 20; t.text =WanF.xinxi; panel.addChild(t); } public static xinxi = ` 信息,指音讯、消息、通讯系统传输和...
来源: Laya_社区 发布时间: 20180426
...中设置字体、颜色不同3.3 获取html文本的实际宽高(contextWidth、contextHeight)3.4 设置文本的水平居中对齐(align需要和width配合使用)3.5 实现超链接3.6 实现html页面跳转3.7 为HtmlDivElement设置行间距,leading属性,注意,必须设置valign=’...
来源: Laya3.0_文档 发布时间: 20230303
...去下载Meta(json)文件 [key: string]: any; } TextureConstructParams { width?: number, height?: number, format?: TextureFormat, mipmap?: boolean, canRead?: boolean, sRGB?: boolean, } TexturePropertyParams { wrapModeU?: number, wrapModeV?: number, filterMode?: FilterMode, anisoLevel?: number, premu...
来源: Laya3.0_文档 发布时间: 20251010
HTMLDivElement 中contextWidth计算有问题 HTMLDivElement 设置一个css文本后调用contextWidth获取实际宽度是0 /** * @private * @param out */ override public function _addToLayout(out:Vector.<ILayout>):void { layout(); //!_style.absolute && out.push(this); } 这个重...
来源: Laya_社区 发布时间: 20170309
...ents customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX ...
来源: Laya3.0_api 发布时间: 20231102
...r ts = Laya.Laya.stage._canvasTransform.identity(); ts.scale((Laya.Browser.width / Laya.Render.canvas.width / Laya.Browser.pixelRatio), Laya.Browser.height / Laya.Render.canvas.height / Laya.Browser.pixelRatio); } static wxinputFocus(e) { var _inputTarget = Laya.Input['inputElement'].target; if (_in...
来源: Laya_社区 发布时间: 20200103
...ents customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray group height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation s...
来源: Laya3.0_api 发布时间: 20231102
...enderOrder = tJsonData.renderorder; _mapW = tJsonData.width; _mapH = tJsonData.height; _mapTileW = tJsonData.tilewidth; _mapTileH = tJsonData.tileheight; ...
来源: Laya_社区 发布时间: 20161109