大约有 10 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0027 秒)
...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Tween_SimpleSample { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.he...
来源: Laya2.0_示例 发布时间: 20241117
...Laya.stage.on(Event.MOUSE_UP, this, this.onApeRelease); } onHold() { const Tween = Laya.Tween, Ease = Laya.Ease; Tween.to(this.ape, { "scaleX": 1, "scaleY": 1 }, 500, Ease.bounceOut); isApeHold = true; } /** 鼠标放开后停止hold */ onApeRelease() { const Tween = Laya.Tween, Event = Laya.Event; ...
来源: Laya2.0_示例 发布时间: 20241117
...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Tween_TimeLine { 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.stage....
来源: Laya2.0_示例 发布时间: 20241117
...domAngle]); } // 触发自定义的rotate事件 onRotate(newAngle) { const Tween = Laya.Tween, Ease = Laya.Ease; Tween.to(this.sp, { "rotation": newAngle }, 1000, Ease.elasticOut); } } new Interaction_CustomEvent();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = ...
来源: Laya2.0_示例 发布时间: 20241117
...言、LayaAirIDE让项目开发更高效。let character, duration = 2000, tween; class Tween_EaseFunctionsDemo { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Browser = Laya.Browser, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 4...
来源: Laya2.0_示例 发布时间: 20241117
... mCurrIndex = 0; } mArmature.play(mCurrIndex, false); } onEvent(e) { const Tween = Laya.Tween, Handler = Laya.Handler; let tEventData = e; Laya.stage.addChild(mLabelSprite); mLabelSprite.pos(mStartX, mStartY); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); ...
来源: Laya2.0_示例 发布时间: 20241117
...ition); } /**抬起事件处理*/ onMouseUp(e) { const Event = Laya.Event, Tween = Laya.Tween; Laya.stage.off(Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.off(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.off(Event.MOUSE_OUT, this, this.onMouseUp); // 滑动到目的地 let dist = Laya....
来源: Laya2.0_示例 发布时间: 20241117
...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Tween_Letters { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height,...
来源: Laya2.0_示例 发布时间: 20241117
... = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite, Tween = Laya.Tween; // 不支持WebGL时自动切换至Canvas Laya.init(phoenixWidth * 2, phoenixHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCA...
来源: Laya2.0_示例 发布时间: 20241117
... Laya.Animation; Label = Laya.Label; Text = Laya.Text; Point = Laya.Point; Tween = Laya.Tween; TextArea = Laya.TextArea; class UI_RefreshList { constructor() { this.baseBox = null; this.refreshLoading = null; this.loadingAni = null; this.loadingLabel = null; this.refreshList = null; /** 消息生成...
来源: Laya2.0_示例 发布时间: 20241117