大约有 1,122 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0068 秒)
Laya_社区(974) Laya3.0_api(66) Laya_示例(33) Laya2.0_示例(32) Laya2.0_文档(6) Laya2.0_api(4) laya_api(4) Laya3.0_文档(3)
...//继续画到D点 ["closePath"] //闭合路径 ]; btn_1=new View(); btn_1.graphics.drawPath(0, 0, path, {fillStyle: "#123456"}); this.addChild(btn_1); btn_1.mouseEnabled=true; btn_1.on(Event.MOUSE_DOWN, this, onClickBt1); 不管怎么点,在这个点击方法里面是不会执行的 2018-...
来源: Laya_社区 发布时间: 20180709
RenderContext代码 调度问题 在laya画布上调用Laya.stage.graphics.drawLine画线 发现触发 RenderContext 里面的_drawLine方法 即使在鼠标松开后,还会不停的调用。这是不是正常现象? 附件 : --> 2017-11-27 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20171127
...: Laya.init(600, 400, WebGL); let bgSprite = new Laya.Sprite(); bgSprite.graphics.drawRect(0, 0, 200, 200, "#0xFFFF00"); bgSprite.pos(300, 300); Laya.stage.addChild(bgSprite); let mask = new Laya.Sprite(); bgSprite.mask = mask; mask.graphics.drawCircle(0, 0, 100, "0x0000FF"); window.onblur = funct...
来源: Laya_社区 发布时间: 20181016
..._proto.stroke (laya.js:17440) at RenderContext._drawLine (laya.js:4738) at GraphicsGL.__proto._renderAll (laya.js:987) at RenderSprite3D.__proto._graphics (laya.js:5234) at RenderSprite3D.RenderSprite._initRenderFun [as _fun] (laya.js:5466) at Sprite.__proto.render (laya.js:18990) at RenderSprite3D....
来源: Laya_社区 发布时间: 20171214
...rite PhysicsDebugDraw Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable des...
来源: Laya3.0_api 发布时间: 20231115
...代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用iphone手机的safari扫码功能运行项目 3秒中之...
来源: Laya_社区 发布时间: 20191215
...lSprite); mLabelSprite.x = mStartX; mLabelSprite.y = mStartY; mLabelSprite.graphics.clear(); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) if(tEventData.name=="'fall'") { ...
来源: Laya_社区 发布时间: 20170406
... 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
... Sprite TileAniSprite Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable des...
来源: Laya3.0_api 发布时间: 20231115
... Hierarchy Clip FontClip Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY autoPlay blendMode bottom cacheA...
来源: Laya3.0_api 发布时间: 20231115