大约有 665 项符合查询结果, 库内数据总量为 30,961 项。 (搜索耗时: 0.0044 秒)
Laya_社区(277) Laya3.0_api(93) Laya2.0_api(73) laya_api(62) Laya_示例(54) Laya2.0_示例(54) Laya2.0_文档(33) Laya3.0_文档(19)
...getSelfBounds(); let texture = view.drawToTexture(bounds.width, bounds.height, -bounds.x + view.x, -bounds.y + view.y) as laya.resource.Texture; shadow.graphics.drawTexture(texture, bounds.x, bounds.y, bounds.width, bounds.height, null, 0.3); shadow.pos(view.x, view.y); view.parent.ad...
来源: Laya_社区 发布时间: 20200330
...illTextureCmd Object 填充贴图 Public Properties PropertyDefined By height : Number (可选)高度。 FillTextureCmd offset : Point (可选)贴图纹理偏移 FillTextureCmd texture : Texture 纹理。 FillTextureCmd type : String (可选)填充类型 repeat|repeat-x|repe...
来源: Laya2.0_api 发布时间: 20190513
... } y+=this._charSize.height; this._graphics.drawLine(x,y,x+lineWidth,y,this.underlineColor || this.color,1); } y 如果 y+=this._charSize.height/2; 就是中划线 可以自己加个变量 控制 例...
来源: Laya_社区 发布时间: 20171019
...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, setup)); })(); f...
来源: Laya_示例 发布时间: 20250411
...滤镜。 DrawTextureCmd colorFlt : ColorFilter = nullDrawTextureCmd height : Number (可选)高度。 DrawTextureCmd matrix : Matrix (可选)矩阵信息。 DrawTextureCmd texture : Texture 纹理。 DrawTextureCmd width : Number (可选)宽度。 DrawTextureCmd x : Nu...
来源: Laya2.0_api 发布时间: 20190513
... Utils.fitDOMElementInArea=function(dom,coordinateSpace,x,y,width,height){ if (!dom._fitLayaAirInitialized){ dom._fitLayaAirInitialized=true; dom.style.transformOrigin=dom.style.webKittransformOrigin="left top"; 修改为:dom....
来源: Laya_社区 发布时间: 20180113
...// 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMovieClip(); } createMovieClip() { const M...
来源: Laya2.0_示例 发布时间: 20250411
...ction updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOSCALE { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NO...
来源: Laya_示例 发布时间: 20250411
...ction updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOBORDER { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_N...
来源: Laya_示例 发布时间: 20250411
...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { var vGap = 100; but...
来源: Laya_示例 发布时间: 20250411