大约有 196 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0046 秒)
...Script三种开发语言、LayaAirIDE让项目开发更高效。class SmartScale_Scale_SHOW_ALL { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya...
来源: Laya2.0_示例 发布时间: 20260303
...tage = Laya.Stage; var rect; (function() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createCantralRect(); })(); function createCantralRect() { rect = new Sprite(); rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(rect); ...
来源: Laya_示例 发布时间: 20260303
...ColumnsGrid numColumnsTile numRowsGrid numRowsTile orientation renderOrder scale tileHeight tileWidth width x y Methods changeViewPort changeViewPortBySize createMap destroy getLayerByIndex getLayerByName getLayerObject getMapProperties getSprite getTexture getTileProperties getTileUserData mapSprit...
来源: Laya3.0_api 发布时间: 20231115
关于适配有点疑惑 在http://layaair.ldc.layabox.com/demo/?SmartScale_Scale_SHOW_ALL 这个demo中,我修改js代码测试几种适配模式,有一些困惑 我分别用noscale, fixedwidth, fixedheight进行试验, 代码如下:var rect; (function() { Laya.init(550, 400); // Laya.s...
来源: Laya_社区 发布时间: 20170206
...多个位图或者矢量图,还可以结合save,restore,transform,scale,rotate,translate,alpha等指令对绘图效果进行变化。 Graphics以命令流方式存储,可以通过cmds属性访问所有命令流。Graphics是比Sprite更轻量级的对象,合理使用能提高应用...
来源: Laya3.0_api 发布时间: 20231115
...ext fillText fillTexture getBounds loadImage removeCmd restore rotate save scale strokeText transform translate create recycle Constructors constructor new GraphicsAni(): GraphicsAni Inherited from Graphics.constructor Defined in laya/display/Graphics.ts:54 Returns GraphicsAni Accessors cmds get cmd...
来源: Laya3.0_api 发布时间: 20231115
...ext fillText fillTexture getBounds loadImage removeCmd restore rotate save scale setState strokeText transform translate Constructors constructor new AutoBitmap(): AutoBitmap Inherited from Graphics.constructor Defined in laya/display/Graphics.ts:54 Returns AutoBitmap Properties _color _color: strin...
来源: Laya3.0_api 发布时间: 20231115
... TiledMap renderOrder : String[read-only] tile渲染顺序 TiledMap scale : Number 得到当前地图的缩放 TiledMap showGridTextureCount : Boolean = false 是否显示大格子里显示的贴图数量 TiledMap tileHeight : int[read-only] 格子的高度 TiledMap tileWidth : int[re...
来源: laya_api 发布时间: 20170929
... TiledMap renderOrder : String[read-only] tile渲染顺序 TiledMap scale : Number 得到当前地图的缩放 TiledMap showGridTextureCount : Boolean = false 是否显示大格子里显示的贴图数量 TiledMap tileHeight : int[read-only] 格子的高度 TiledMap tileWidth : int[re...
来源: Laya2.0_api 发布时间: 20190513
...lt;/title> <meta name='viewport' content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no' /> <meta name="renderer" content="webkit"/> <meta name='apple-mobile-web-app-capable' content='yes' /> <meta name='full-screen' content='true' ...
来源: Laya_社区 发布时间: 20201003