大约有 193 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0037 秒)
...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_SHOW_ALL { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_S...
来源: Laya_示例 发布时间: 20251209
...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_示例 发布时间: 20251209
...RENDERORDER_LEFTUP RENDERORDER_RIGHTDOWN RENDERORDER_RIGHTUP Accessors gridHeight gridWidth height numColumnsGrid numColumnsTile numRowsGrid numRowsTile orientation renderOrder scale tileHeight tileWidth width x y Methods changeViewPort changeViewPortBySize createMap destroy getLayerByIndex getLayer...
来源: Laya3.0_api 发布时间: 20231115
...种适配模式,有一些困惑 我分别用noscale, fixedwidth, fixedheight进行试验, 代码如下:var rect; (function() { Laya.init(550, 400); // Laya.stage.scaleMode = Stage.SCALE_SHOWALL; // Laya.stage.scaleMode = "noscale"; // Laya.stage.scaleMode = "fixedwidth"; Laya.stage.scaleMod...
来源: Laya_社区 发布时间: 20170206
...回收 Returns void clipRect clipRect(x: number, y: number, width: number, height: number): ClipRectCmd Defined in laya/display/Graphics.ts:304 设置剪裁区域,超出剪裁区域的坐标不显示。 Parameters x: number X 轴偏移量。 y: number Y 轴偏移量。 width: number 宽度。 heig...
来源: Laya3.0_api 发布时间: 20231115
...p Index Constructors constructor Properties _color uv Accessors cmds color height sizeGrid source width Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText ...
来源: Laya3.0_api 发布时间: 20231115
...的layer属性相同的图层进行合并以提高性能 TiledMap gridHeight : Number[read-only] 块的高度 TiledMap gridWidth : Number[read-only] 块的宽度 TiledMap height : int[read-only] 地图的高度 TiledMap numColumnsGrid : Number[read-only] 地图的横向块数 TiledMap ...
来源: laya_api 发布时间: 20170929
...的layer属性相同的图层进行合并以提高性能 TiledMap gridHeight : Number[read-only] 块的高度 TiledMap gridWidth : Number[read-only] 块的宽度 TiledMap height : int[read-only] 地图的高度 TiledMap numColumnsGrid : Number[read-only] 地图的横向块数 TiledMap ...
来源: Laya2.0_api 发布时间: 20190513
...回收 Returns void clipRect clipRect(x: number, y: number, width: number, height: number): ClipRectCmd Inherited from Graphics.clipRect Defined in laya/display/Graphics.ts:304 设置剪裁区域,超出剪裁区域的坐标不显示。 Parameters x: number X 轴偏移量。 y: number Y 轴偏移...
来源: Laya3.0_api 发布时间: 20231115
...空绘制命令。 Graphics clipRect(x:Number, y:Number, width:Number, height:Number):void 设置剪裁区域,超出剪裁区域的坐标不显示。 Graphics destroy():void 销毁此对象。 Graphics drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* = null, lineWidt...
来源: laya_api 发布时间: 20170929