大约有 1,720 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0060 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
... b = sprite.getBounds(); if (b.width <= 0 || b.height <= 0) { return; } 同时,发现这里区域计算与第一次渲染不一致,以下是修改后的; //start //发光滤镜第...
来源: Laya_社区 发布时间: 20210629
...ze(640, 960); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoEle...
来源: Laya_社区 发布时间: 20180119
...centerY components 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 ri...
来源: Laya3.0_api 发布时间: 20231102
... -4380+Laya.stage.width, -2375+Laya.stage.height, 4380-Laya.stage.width+4380, 2375-Laya.stage.height+2375 ); 2025-07-29 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20250726
...Text(); letterText.text ="hello world"; letterText.width = 400; letterText.height = 200; letterText.fontSize = 36; letterText.align = "center"; letterText.valign = "middle"; var offsetPos={offsetX:100,offsetY:100}; letterText.x = Laya.stage.width - letterText.width>>1 +offsetPos.offsetX; lette...
来源: Laya_社区 发布时间: 20180620
...序入口 class GameMain{ constructor() { Laya.init(Browser.width, Browser.height, WebGL); this.CreateCircle(); // this.CreateRectangle(); } private firstSp: Laya.Sprite; private _adaptSp: Laya.Sprite; private _pointList : Point[]; private _rootSp : Laya.Sprite; public CreateCircle() { this._rootS...
来源: Laya_社区 发布时间: 20190314
...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components content customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInS...
来源: Laya3.0_api 发布时间: 20231115
...于目标Texture的y位置。 * @param width 截取的宽度。 * @param height 截取的高度。 * @return 返回一个新的Texture。 */ public static function createFromTexture(texture:Texture, x:Number, y:Number, width:Number, height:Number):Texture 这个也是截取矩形的 Texture类里的...
来源: Laya_社区 发布时间: 20180110
... //设置大小 canvas.width = Laya.stage.width; canvas.height = Laya.stage.height; ctx = canvas.getContext('2d'); Laya.stage.graphics.clear(false);//清空绘制命令。 var textture = new Laya.Texture(canvas); textture.bitmap.alwaysChange = true;...
来源: Laya_社区 发布时间: 20190411
...wx.postMessage({type: "resizeShared", url: "", data: {width: subW * mat.a, height: subH * mat.d, matrix: mat}, isLoad: false}); 子域接收消息的地方:var openMatrix = new Laya.Matrix(); openMatrix.a = mainMatrix.a; openMatrix.b = mainMatrix.b; openMatrix.c = mainMatrix.c; openMatrix.d = m...
来源: Laya_社区 发布时间: 20180815