大约有 19 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
...,debug出错 I/LayaBox: alert=undefined:5155: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode let runtime = json.props.runtime; ^^^ SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode ...
来源: Laya_社区 发布时间: 20180724
...会返回ArrayBuffer,不要使用这个参数。因为可能太大。 */ declare var downloadBigFile:(url:string, local:string, onprog:(total:number,now:number,speed:number)=>boolean,oncomp:(curlret:number, httpret:number)=>void, trynum:number, opttimeout:number)=>void; 处理zip文件的...
来源: Laya3.0_文档 发布时间: 20251010
... JSX code generation: 'preserve', 'react-native', or 'react'. */ // "declaration": true, /* Generates corresponding '.d.ts' file. */ // "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", ...
来源: Laya_社区 发布时间: 20190408
...的LayaAir.d.ts的MiniAdpter只有一个接口 类库版本:1.7.19.1beta declare module laya.wx.mini { class MiniAdpter { /** * 初始化回调 * @param isPosMsg 是否需要在主域中自动将加载的文本数据自动传递到子域,默认 false * @param isSon 是否是子域,默认为fal...
来源: Laya_社区 发布时间: 20180612
...TS的小游戏工程,但是在MiniAdpter的类声明中只有init方法 declare module laya.wx.mini { class MiniAdpter { /** * 初始化回调 * @param isPosMsg 是否需要在主域中自动将加载的文本数据自动传递到子域,默认 false * @param isSon 是否是子域,默认为fals...
来源: Laya_社区 发布时间: 20180808
...perty } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number =...
来源: Laya3.0_文档 发布时间: 20251010
...目的libs目录中新建一个d.ts,写入画圆角矩形的函数声明 declare namespace laya.display { interface Graphics { /** * 绘制圆角矩形。 * @param x 开始绘制的 X 轴位置。 * @param y 开始...
来源: Laya_社区 发布时间: 20210123
...: 2 人 陆仁毅 • 2019-07-30 18:01 改下protobuf的d.ts。export=>declare。然后把namespace的相关引用改下就行。或者把js放到d.ts同级,把js改成es6 Channel.F • 2019-07-30 18:16 辛苦大神, 我先试试,那如果第二个方案,我把js放到d.ts的那个文件...
来源: Laya_社区 发布时间: 20190730
...例子 还有发现 layaedotor.d.ts 里面的GraphicAnimation找不到 declare module laya.editorUI { /** * Graphics解析器 */ // class GraphicParser extends laya.display.GraphicAnimation { // protected _getTextureByUrl(url: string): string; // ...
来源: Laya_社区 发布时间: 20170817
...用视频纹理 */ @regClass() export class Script extends Laya.Script { declare owner: Laya.Sprite3D; @property(Laya.Scene3D) private scene: Laya.Scene3D; private videoPlane: Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void { //获取场景中要添加视频纹理的3D...
来源: Laya3.0_文档 发布时间: 20251010