大约有 293 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0045 秒)
Laya_社区(77) Laya3.0_api(71) Laya2.0_api(57) laya_api(53) Laya2.0_文档(13) Laya2.0_示例(8) Laya3.0_文档(7) Laya_示例(7)
...条曲线 Hierarchy DrawLineCmd Index Properties fromX fromY lineColor lineWidth percent toX toY ID Methods getBoundPoints recover Properties fromX fromX: number Defined in laya/display/cmd/DrawLineCmd.ts:14 X轴开始位置。 fromY fromY: number Defined in laya/display/cmd/DrawLineCmd.ts:18 Y轴...
来源: Laya3.0_api 发布时间: 20231115
...制圆形 Hierarchy DrawCircleCmd Index Properties fillColor lineColor lineWidth percent radius x y ID Methods getBoundPoints recover Properties fillColor fillColor: any Defined in laya/display/cmd/DrawCircleCmd.ts:27 填充颜色,或者填充绘图的渐变对象。 lineColor lineColor: any Defin...
来源: Laya3.0_api 发布时间: 20231115
...用的是LayaAirIDE2.3,图片偶尔显示不了,经查parent,visible,x,y,width,height,alpha,skin都正常,资源所在图集也存在,不过小图的source的_referecentCount==0,_texture==null。不知是不是这个原因引起? 如附件图,black.png是用到的小图,所在...
来源: Laya_社区 发布时间: 20220722
...athCmd.ts:30 (可选)画笔定义,支持以下设置{strokeStyle,lineWidth,lineJoin:"bevel|round|miter",lineCap:"butt|round|square",miterLimit}。 x x: number Defined in laya/display/cmd/DrawPathCmd.ts:14 开始绘制的 X 轴位置。 y y: number Defined in laya/display/cmd/DrawPathCmd.ts:18 ...
来源: Laya3.0_api 发布时间: 20231115
...边框位置偏移 let sp = new Laya.Sprite(); drawArr = [startX, 0, this.width, 0, this.width - startX, this.height, 0, this.height]; sp.graphics.drawPoly(0, 0, drawArr, fillColor, this.m_vo.c_StrokeColor, this.m_vo.c_StrokeThickness); 附件 : --> 2019-09-10 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20190910
...openID, BuffInfo){ if(openID == openID1) { var buff = BuffInfo.buffer; var width = BuffInfo.width; var height = BuffInfo.height; BK.Script.log(0,0,"headeBuff :"+ openId + " buff:"+ buff + " width:"+ width +" height:"+height); var tex = new BK.Texture(buff,width,height); var sp =new BK.Sprite(200,200...
来源: Laya_社区 发布时间: 20180417
...rite ; public function LayaAirDemo() { //初始化引擎 Laya.init(Browser.width, Browser.height,WebGL); Stat.show(); Laya.stage.bgColor = "#ffcccc"; Laya.stage.on(Event.CLICK,this,onClick); sp= new Sprite(); sp.name='base'; sp.loadImage("logo.png"); Laya.stage.addChild(sp); } private function onCli...
来源: Laya_社区 发布时间: 20170523
...data = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' +'<foreignObject width="100%" height="100%">' +'<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' +'<em>I</em> like ' +'<span style="color:white; text-...
来源: Laya_社区 发布时间: 20190306
...放置头像, var sp = new Laya.Sprite(); sp.loadImage(url, 0, 0, widget.width, widget.height); //从网络加载图片生成Sprite widget.removeChildren(); // 防止重复提交,把之前生成的头像先删除 widget.addChild(sp); // 添加为只节点 }; 2017-12-29 添加评论 免费帖 -->...
来源: Laya_社区 发布时间: 20171229
...lesCmd.ts:13 Methods getBoundPoints getBoundPoints(sp?: { height?: number; width: number }): number[] Defined in laya/display/cmd/DrawTrianglesCmd.ts:96 Parameters Optional sp: { height?: number; width: number } Optional height?: number width: number Returns number[] recover recover(): void Defined ...
来源: Laya3.0_api 发布时间: 20231115