大约有 667 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0059 秒)
Laya_社区(279) Laya3.0_api(93) Laya2.0_api(73) laya_api(62) Laya_示例(54) Laya2.0_示例(54) Laya2.0_文档(33) Laya3.0_文档(19)
...!因为是必现所以没有提供DEMO了 getPixels(x, y, width, height) { if (window.conch) { return this._nativeObj.getImageData(x, y, width, height); //this._nativeObj为空! } ...
来源: Laya_社区 发布时间: 20220317
...teRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_EXTRACT_FIT();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_EXTRACT_FIT { private rect: Sprite; constructor() { Laya.init(550, 400); L...
来源: Laya2.0_示例 发布时间: 20251130
...teRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_SHOW_ALL();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_SHOW_ALL { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.st...
来源: Laya2.0_示例 发布时间: 20251130
... this.hitArea.hit.drawRect(list.x, list.y -100,list.width, list.height, "#000000"); //限制鼠标点击区域 } find_StringAllIndex(str :String):String[]{ let pos_arr =[]; for(let i=0;i...
来源: Laya_社区 发布时间: 20210122
...这里了,也可以查看附近 window.screenWidth = 1280; window.screenHeight = 720; Laya.init(window.screenWidth, window.screenHeight, laya.webgl.WebGL); Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_HE...
来源: Laya_社区 发布时间: 20200223
...proto = Hp.prototype; _proto.init = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.loader.getRes("res/en_bar.png"); break; case Hp.HP_TYPE_SPEED: texture2 = Laya.loader.getR...
来源: Laya_社区 发布时间: 20160803
...: Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : A...
来源: Laya2.0_api 发布时间: 20190513
...x = (Laya.stage.width - progressBar.width) / 2; progressBar.y = Laya.stage.height / 2; progressBar.sizeGrid = "5,5,5,5"; progressBar.changeHandler = new Handler(this, onChange); Laya.stage.addChild(progressBar); Laya.timer.loop(100, this, changeValue); } function changeValue() { if (progressBar.valu...
来源: Laya_示例 发布时间: 20251130
....1" '; data += 'viewBox="0 0 ' + this.width + ' ' + this.height + '" '; // set svg width and height data += 'width="' + this.width + '" height="' + this.height + '">'; data += '<defs>'; // set gradient...
来源: Laya_社区 发布时间: 20180824
...cessors active activeInHierarchy alpha blendMode cacheAs components contextHeight contextWidth customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea href innerHTML is3D mask mouseEn...
来源: Laya3.0_api 发布时间: 20231102