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

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

1. HTMLDivElement下划线换行时,下划线颜色错误 [ 100%]

...代码造成。 __proto.createOneLine=function(startWord,lastWords,hasLine,graphic,recList){ var lineY=lastWords.y+lastWords.height; if(hasLine) graphic.drawLine(startWord.x,lineY,lastWords.x+lastWords.width,lineY,this.color,1); var hitRec=HTMLHitRect.create(); hitRec.rec.setTo(startWord.x,lastWords...

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

2. 【解决】富文本html下划线换行bug [ 96%]

...求。   修改2.0版本 laya.html.js库里的代码__proto.renderSelfToGraphic=function(graphic,gX,gY,recList){ var cssStyle=this.style; var words=this._getWords(); var i=0,len=0; if (words){ len=words.length; var a; if (cssStyle){ var font=cssStyle.font; var color=cssStyle.color; if (cssStyle.str...

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

3. Text的中划线(删除线) [ 93%]

...         y+=this._charSize.height;             this._graphics.drawLine(x,y,x+lineWidth,y,this.underlineColor || this.color,1);         } y  如果  y+=this._charSize.height/2;  就是中划线  可以自己加个变量 控制 例如  linethrough   如果是 true...

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

4. HtmlDivElement 下划线 [ 85%]

... 诶诶诶诶诶诶 • 2019-04-10 21:08 看了下HTMLElement#renderSelfToGraphic graphic.drawLine(words[0].x, lineY, lastWords.x + lastWords.width, lineY, color, 1);

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

5. 如何降低graphics绘制产生的drawcall [ 83%]

如何降低graphics绘制产生的drawcall     for (var i = 0; i < 100; i++) {         for (var j = 0; j < 100; j++) {             img.graphics.drawRect(i, j, 2, 2, "#CD5C5C");         }     } 这样绘制会有10000个drawcall 官方有能降低drawcall...

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

6. graphics如何绘制阴影 [ 82%]

graphics如何绘制阴影 graphics.drawLine可以绘制带阴影的线条吗? 2017-12-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 再画一条线,在它后面显示就可以了...

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

7. 分享,扩展Laya.Text组件实现简单的富文本 [ 82%]

...gin * @param visibleLineCount */ renderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true); var ctxFont = (this.italic ? "italic " : "") + (this.bold ? "bold " : "") + this.fontSize + "px " + (Browser.onIPhone ? (laya.display.Text._fontFamilyMap[this.font] || this.font...

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

8. graphic能不能绘制圆形边框 [ 82%]

graphic能不能绘制圆形边框 绘制一个圆形的边框,单单一个边框就可以,假如用给一张小图片跟此边框进行碰撞检测,与边框碰撞为true ,当小图片位于圆形边框里面,碰撞检测为false 2017-05-09 添加评论 免费帖 --> 分享 微博 QZONE ...

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

9. 如何清除graphics绘制的矢量图 [ 81%]

如何清除graphics绘制的矢量图             let count1 = 1;             Laya.timer.loop(3000, this, function () {                 sp.graphics.clear();                 if (count1 == 0) {                     sp.graphic...

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

10. 如何获取 graphics 绘制的线段长度 [ 81%]

如何获取 graphics 绘制的线段长度 如题 2017-06-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 没有办法直接获取graphics线段的长度,线段的长度需要你自...

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