大约有 1,232 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0048 秒)
...rt Stage = Laya.Stage; import Text = Laya.Text; import WebGL = Laya.WebGL; export class SmartScale_Portrait { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "...
来源: Laya2.0_示例 发布时间: 20241118
...rt 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.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = ...
来源: Laya2.0_示例 发布时间: 20241118
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/html/XML" XML Class XML Hierarchy XML Index Constructors constructor Properties name text Accessors attributes Methods elements getAttrBool getAttrFloat getAttrInt getAttrString getNode parse reset...
来源: Laya3.0_api 发布时间: 20231115
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/components/AnimatorTransition2D" AnimatorTransition2D Class AnimatorTransition2D Hierarchy AnimatorTransition2D Index Constructors constructor Properties conditions destState exitByTime exitTime mu...
来源: Laya3.0_api 发布时间: 20231115
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/components/AnimatorStateCondition" AnimatorStateNumberCondition Class AnimatorStateNumberCondition Hierarchy AnimatorStateCondition AnimatorStateNumberCondition Index Constructors constructor Acces...
来源: Laya3.0_api 发布时间: 20231115
...ge = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_MaxChars { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTE...
来源: Laya2.0_示例 发布时间: 20241118
...o World!'; } 一个是src/Library/ToolService.ts, 内容为module Library{ export class ToolService{ constructor(){ } public static sum(a:number, b:number):number { return a + b; } } } 一个是 src/Library/UserService.ts, 内容为module Library{ export class UserService{ constructor(){ } public...
来源: Laya_社区 发布时间: 20181214
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/RenderObjs/NativeOBJ/NativeBaseRenderQueue" NativeBaseRenderQueue Class NativeBaseRenderQueue Hierarchy NativeBaseRenderQueue Implements IRenderQueue Index Constructors constructor Properties _b...
来源: Laya3.0_api 发布时间: 20231115
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/RenderObjs/RenderObj/BaseRenderQueue" BaseRenderQueue Class BaseRenderQueue Hierarchy BaseRenderQueue Implements IRenderQueue Index Constructors constructor Properties _batch _context _isTranspa...
来源: Laya3.0_api 发布时间: 20231115
...放(类似按钮)的功能,全部代码如下所示: ```typescript export default class ImageRunTime extends Laya.Image{ constructor(){ super(); this.scaleTime = 100; //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 thi...
来源: Laya2.0_文档 发布时间: 20210715