webgal-parser 4.3.13 → 4.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/config/scriptConfig.d.ts +1 -1
- package/build/cjs/configParser/configParser.d.ts +1 -0
- package/build/cjs/index.d.ts +5 -2
- package/build/cjs/index.js +1148 -17042
- package/build/cjs/interface/sceneInterface.d.ts +3 -1
- package/build/cjs/parser4/index.d.ts +1 -0
- package/build/cjs/scriptParser/subSceneScanner.d.ts +1 -1
- package/build/es/config/scriptConfig.d.ts +1 -1
- package/build/es/configParser/configParser.d.ts +1 -0
- package/build/es/index.d.ts +5 -2
- package/build/es/index.js +1147 -17043
- package/build/es/interface/sceneInterface.d.ts +3 -1
- package/build/es/parser4/index.d.ts +1 -0
- package/build/es/scriptParser/subSceneScanner.d.ts +1 -1
- package/build/types/config/scriptConfig.d.ts +6 -0
- package/build/types/configParser/configParser.d.ts +1 -0
- package/build/types/index.d.ts +13 -0
- package/build/types/interface/assets.d.ts +12 -0
- package/build/types/interface/runtimeInterface.d.ts +9 -0
- package/build/types/interface/sceneInterface.d.ts +96 -0
- package/build/types/parser4/index.d.ts +1 -0
- package/build/types/sceneParser.d.ts +14 -0
- package/build/types/scriptParser/argsParser.d.ts +9 -0
- package/build/types/scriptParser/assetsScanner.d.ts +9 -0
- package/build/types/scriptParser/commandParser.d.ts +9 -0
- package/build/types/scriptParser/contentParser.d.ts +9 -0
- package/build/types/scriptParser/scriptParser.d.ts +9 -0
- package/build/types/scriptParser/subSceneScanner.d.ts +7 -0
- package/build/umd/index.global.js +1776 -0
- package/package.json +40 -35
- package/src/config/scriptConfig.ts +46 -44
- package/src/configParser/configParser.ts +60 -0
- package/src/index.ts +42 -25
- package/src/interface/assets.ts +12 -12
- package/src/interface/runtimeInterface.ts +9 -9
- package/src/interface/sceneInterface.ts +103 -101
- package/src/parser4/index.ts +158 -0
- package/src/sceneParser.ts +47 -47
- package/src/scriptParser/argsParser.ts +68 -62
- package/src/scriptParser/assetsScanner.ts +72 -72
- package/src/scriptParser/commandParser.ts +57 -57
- package/src/scriptParser/contentParser.ts +66 -66
- package/src/scriptParser/scriptParser.ts +87 -87
- package/src/scriptParser/subSceneScanner.ts +23 -23
- package/.babelrc +0 -14
- package/build/cjs/index.js.map +0 -1
- package/build/es/index.js.map +0 -1
- package/rollup.config.js +0 -48
- package/test/parser.test.ts +0 -130
- package/tsconfig.json +0 -29
- package/tsconfig.node.json +0 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const parser4 = "unreleased";
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* @param content 语句内容
|
|
4
4
|
* @return {Array<string>} 子场景列表
|
|
5
5
|
*/
|
|
6
|
-
import { commandType } from
|
|
6
|
+
import { commandType } from "../interface/sceneInterface";
|
|
7
7
|
export declare const subSceneScanner: (command: commandType, content: string) => Array<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function configParser(configText: string): string;
|
package/build/es/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IAsset } from "./interface/sceneInterface";
|
|
2
2
|
import { fileType } from "./interface/assets";
|
|
3
|
+
import { ADD_NEXT_ARG_LIST, SCRIPT_CONFIG } from "./config/scriptConfig";
|
|
3
4
|
export default class SceneParser {
|
|
4
5
|
private readonly assetsPrefetcher;
|
|
5
6
|
private readonly assetSetter;
|
|
6
7
|
private readonly ADD_NEXT_ARG_LIST;
|
|
7
8
|
private readonly SCRIPT_CONFIG;
|
|
8
|
-
constructor(assetsPrefetcher: ((assetList: Array<IAsset>) => void), assetSetter: (fileName: string, assetType: fileType) => string, ADD_NEXT_ARG_LIST: Array<
|
|
9
|
+
constructor(assetsPrefetcher: ((assetList: Array<IAsset>) => void), assetSetter: (fileName: string, assetType: fileType) => string, ADD_NEXT_ARG_LIST: Array<number>, SCRIPT_CONFIG: Array<any>);
|
|
9
10
|
parse(rawScene: string, sceneName: string, sceneUrl: string): import("./interface/sceneInterface").IScene;
|
|
11
|
+
parseConfig(configText: string): string;
|
|
10
12
|
}
|
|
13
|
+
export { ADD_NEXT_ARG_LIST, SCRIPT_CONFIG };
|