大约有 32 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0039 秒)
... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_DisplayImage { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN...
来源: Laya2.0_文档 发布时间: 20210715
... Image = Laya.Image; import Sprite = Laya.Sprite; export class SmartScale_T { //适配模式 private modes:string = "exactfit"; //全局文本信息 private txt: Text; constructor()...
来源: Laya2.0_文档 发布时间: 20200307
...ext = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class HelloLayabox { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER...
来源: Laya2.0_文档 发布时间: 20210715
... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Main { private ApePath: string = "../../res/apes/monkey2.png"; private apeTexture: Texture; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); L...
来源: Laya2.0_文档 发布时间: 20210715
...ext = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class HelloLayabox { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER...
来源: Laya2.0_文档 发布时间: 20210714
... Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { Laya.init(500, 300, WebGL); this.drawSomething()...
来源: Laya2.0_文档 发布时间: 20210715
... Sprite = Laya.Sprite; import Stage = Laya.Stage; export class Sprite_DrawShapes { private sp: Sprite; constructor() { //初始化舞台 Laya.init(500, 300); ...
来源: Laya2.0_文档 发布时间: 20210715
...rt Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { Laya.init(500, 300, WebGL); this.drawSomething(); ...
来源: Laya2.0_文档 发布时间: 20210714
...ext = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class HelloLayabox { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(600, 300, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SC...
来源: Laya2.0_文档 发布时间: 20210715
... ```typescript //单模块 declare module '*.glsl' { const value: string; export default value; } declare module CANNON { //在声名的模块里定义类型 export class Demo { constructor( options: Object ); addScene( title: string, initfunc: Function ): void; restartCurrentScene(): void; } } //...
来源: Laya2.0_文档 发布时间: 20210715