大约有 95 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0026 秒)
Laya2.0_示例(32) Laya_示例(32) Laya_社区(15) Laya2.0_文档(11) Laya3.0_api(2) laya_api(1) Laya2.0_api(1) Laya3.0_文档(1)
...置编译的时候会报错:This syntax requires an imported helper but module 'tslib' cannot be found 开发群里有大神提供了一种解决办法: 右键 LayaAirIDE.app->显示包内容,定位到 Contents->Resources->app->node_modules->rollup->dist->rollup.js 修改...
来源: Laya_社区 发布时间: 20201223
颜色滤镜 差值变化 /** * leo */ module touch { /** * 颜色工具类 */ export class ColorTool { private _targetsValue: number = 16777215; private _targetsLastValue: number = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool =...
来源: Laya_社区 发布时间: 20180930
...文本样式的API参数: ![1](img/1.png) ![2](img/2.png) ```typescript module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class HelloLayabox { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browse...
来源: Laya2.0_文档 发布时间: 20210715
...) { liveGraphics.clear(); liveGraphics.drawPoly(0, 0, path, color); } })();module laya { import Graphics = Laya.Graphics; import Sprite = Laya.Sprite; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class PIXI_Example_21 { private colors:Array = ["#5D0776", "#EC8A49", "#AF3666", "#F...
来源: Laya_示例 发布时间: 20240930
...okeColor = strokeColor; } Laya.stage.addChild(label); return label; } })();module laya { import Stage = Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = ...
来源: Laya_示例 发布时间: 20240930
...ear(); liveGraphics.drawPoly(0, 0, path, color); } } new PIXI_Example_21();module laya { import Graphics = Laya.Graphics; import Sprite = Laya.Sprite; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class PIXI_Example_21 { private colors:Array = ["#5D0776", "#EC8A49", "#AF3666", "#F...
来源: Laya2.0_示例 发布时间: 20240930
...WIDTH; label.strokeColor = strokeColor; } return label; } } new UI_Label();module laya { import Stage = Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = ...
来源: Laya2.0_示例 发布时间: 20240930
...iusX, radiusY, 0, radiusY * 2, color); Laya.stage.addChild(sprite); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import MapLayer = Laya.MapLayer; import TiledMap = Laya.TiledMap; import Point = Laya.Point; import Rectangle = Laya.Rectangle; import Handler = Laya.Handl...
来源: Laya_示例 发布时间: 20240930
...olor); Laya.stage.addChild(this.sprite); } } new TiledMap_IsometricWorld();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import MapLayer = Laya.MapLayer; import TiledMap = Laya.TiledMap; import Point = Laya.Point; import Rectangle = Laya.Rectangle; import Handler = Laya.Handl...
来源: Laya2.0_示例 发布时间: 20240930
... = Laya.stage.height - text.height >> 1; Laya.stage.addChild(text); } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import WebGL = Laya.WebGL; export class SmartScale_Landscape { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage...
来源: Laya_示例 发布时间: 20240930