@wwawing/page-generator 4.0.6 → 4.0.8-fps-measure.based-on.4.0.7
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/lib/data-types/wwa.d.ts +2 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +5 -4
- package/lib/wwa.pug +1 -0
- package/module/data-types/wwa.d.ts +2 -0
- package/module/index.d.ts +2 -0
- package/module/index.js +5 -4
- package/module/wwa.pug +1 -0
- package/package.json +3 -2
package/lib/data-types/wwa.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { FrameRateDisplayingPattern } from "@wwawing/common-interface";
|
|
1
2
|
export interface GameOption {
|
|
2
3
|
isUrlGateEnabled?: boolean;
|
|
3
4
|
isClassicMode?: boolean;
|
|
@@ -20,6 +21,7 @@ export interface GameOption {
|
|
|
20
21
|
wwaScript?: {
|
|
21
22
|
userDefinedScriptsFile: string;
|
|
22
23
|
};
|
|
24
|
+
frameRateDisplayingPattern?: FrameRateDisplayingPattern;
|
|
23
25
|
}
|
|
24
26
|
export interface Resources {
|
|
25
27
|
mapData: string;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { FrameRateDisplayingPattern } from "@wwawing/common-interface";
|
|
1
2
|
import * as DataTypes from "./data-types";
|
|
2
3
|
export interface InputConfig {
|
|
3
4
|
page?: DataTypes.Page;
|
|
@@ -35,6 +36,7 @@ export interface TemplateValues {
|
|
|
35
36
|
"data-wwa-virtualpad-controller-elm"?: string;
|
|
36
37
|
"data-wwa-user-defined-scripts-file"?: string;
|
|
37
38
|
"data-wwa-picture-image-names-file"?: string;
|
|
39
|
+
"data-wwa-frame-rate-displaying-pattern"?: FrameRateDisplayingPattern;
|
|
38
40
|
};
|
|
39
41
|
};
|
|
40
42
|
debugConsoleElement?: {
|
package/lib/index.js
CHANGED
|
@@ -38,7 +38,7 @@ const pug = __importStar(require("pug"));
|
|
|
38
38
|
const path = __importStar(require("node:path"));
|
|
39
39
|
const Helper = __importStar(require("./helper"));
|
|
40
40
|
function generateTemplateValues({ page, wwa, copyrights }) {
|
|
41
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
41
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
|
|
42
42
|
return {
|
|
43
43
|
head: {
|
|
44
44
|
pageTitle: (page === null || page === void 0 ? void 0 : page.title) || "World Wide Adventure Wing",
|
|
@@ -66,11 +66,12 @@ function generateTemplateValues({ page, wwa, copyrights }) {
|
|
|
66
66
|
"data-wwa-virtualpad-controller-elm": ((_t = (_s = wwa.gameOption) === null || _s === void 0 ? void 0 : _s.virtualPad) === null || _t === void 0 ? void 0 : _t.controllerId) ? `#${wwa.gameOption.virtualPad.controllerId}` : undefined,
|
|
67
67
|
"data-wwa-user-defined-scripts-file": (_v = (_u = wwa.gameOption) === null || _u === void 0 ? void 0 : _u.wwaScript) === null || _v === void 0 ? void 0 : _v.userDefinedScriptsFile,
|
|
68
68
|
"data-wwa-picture-image-names-file": wwa.resources.pictureImageNamesFile,
|
|
69
|
+
"data-wwa-frame-rate-displaying-pattern": (_w = wwa.gameOption) === null || _w === void 0 ? void 0 : _w.frameRateDisplayingPattern
|
|
69
70
|
}
|
|
70
71
|
},
|
|
71
|
-
debugConsoleElement: ((
|
|
72
|
-
varDumpElement: ((
|
|
73
|
-
virtualPadController: ((
|
|
72
|
+
debugConsoleElement: ((_x = wwa.gameOption) === null || _x === void 0 ? void 0 : _x.debugConsole) ? { id: "wwa-debug-console-area" } : undefined,
|
|
73
|
+
varDumpElement: ((_z = (_y = wwa.gameOption) === null || _y === void 0 ? void 0 : _y.userVars) === null || _z === void 0 ? void 0 : _z.dumpElementId) ? { id: wwa.gameOption.userVars.dumpElementId } : undefined,
|
|
74
|
+
virtualPadController: ((_1 = (_0 = wwa.gameOption) === null || _0 === void 0 ? void 0 : _0.virtualPad) === null || _1 === void 0 ? void 0 : _1.controllerId) ? { id: wwa.gameOption.virtualPad.controllerId } : undefined,
|
|
74
75
|
footer: {
|
|
75
76
|
copyrights: Helper.generateCopyrights(copyrights)
|
|
76
77
|
}
|
package/lib/wwa.pug
CHANGED
|
@@ -31,6 +31,7 @@ html(lang="ja")
|
|
|
31
31
|
data-wwa-virtualpad-controller-elm=wwa.attributes["data-wwa-virtualpad-controller-elm"]
|
|
32
32
|
data-wwa-user-defined-scripts-file=wwa.attributes["data-wwa-user-defined-scripts-file"]
|
|
33
33
|
data-wwa-picture-image-names-file=wwa.attributes["data-wwa-picture-image-names-file"]
|
|
34
|
+
data-wwa-frame-rate-displaying-pattern=wwa.attributes["data-wwa-frame-rate-displaying-pattern"]
|
|
34
35
|
)
|
|
35
36
|
|
|
36
37
|
if virtualPadController
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { FrameRateDisplayingPattern } from "@wwawing/common-interface";
|
|
1
2
|
export interface GameOption {
|
|
2
3
|
isUrlGateEnabled?: boolean;
|
|
3
4
|
isClassicMode?: boolean;
|
|
@@ -20,6 +21,7 @@ export interface GameOption {
|
|
|
20
21
|
wwaScript?: {
|
|
21
22
|
userDefinedScriptsFile: string;
|
|
22
23
|
};
|
|
24
|
+
frameRateDisplayingPattern?: FrameRateDisplayingPattern;
|
|
23
25
|
}
|
|
24
26
|
export interface Resources {
|
|
25
27
|
mapData: string;
|
package/module/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { FrameRateDisplayingPattern } from "@wwawing/common-interface";
|
|
1
2
|
import * as DataTypes from "./data-types";
|
|
2
3
|
export interface InputConfig {
|
|
3
4
|
page?: DataTypes.Page;
|
|
@@ -35,6 +36,7 @@ export interface TemplateValues {
|
|
|
35
36
|
"data-wwa-virtualpad-controller-elm"?: string;
|
|
36
37
|
"data-wwa-user-defined-scripts-file"?: string;
|
|
37
38
|
"data-wwa-picture-image-names-file"?: string;
|
|
39
|
+
"data-wwa-frame-rate-displaying-pattern"?: FrameRateDisplayingPattern;
|
|
38
40
|
};
|
|
39
41
|
};
|
|
40
42
|
debugConsoleElement?: {
|
package/module/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as pug from "pug";
|
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
import * as Helper from "./helper";
|
|
4
4
|
function generateTemplateValues({ page, wwa, copyrights }) {
|
|
5
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
5
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
|
|
6
6
|
return {
|
|
7
7
|
head: {
|
|
8
8
|
pageTitle: (page === null || page === void 0 ? void 0 : page.title) || "World Wide Adventure Wing",
|
|
@@ -30,11 +30,12 @@ function generateTemplateValues({ page, wwa, copyrights }) {
|
|
|
30
30
|
"data-wwa-virtualpad-controller-elm": ((_t = (_s = wwa.gameOption) === null || _s === void 0 ? void 0 : _s.virtualPad) === null || _t === void 0 ? void 0 : _t.controllerId) ? `#${wwa.gameOption.virtualPad.controllerId}` : undefined,
|
|
31
31
|
"data-wwa-user-defined-scripts-file": (_v = (_u = wwa.gameOption) === null || _u === void 0 ? void 0 : _u.wwaScript) === null || _v === void 0 ? void 0 : _v.userDefinedScriptsFile,
|
|
32
32
|
"data-wwa-picture-image-names-file": wwa.resources.pictureImageNamesFile,
|
|
33
|
+
"data-wwa-frame-rate-displaying-pattern": (_w = wwa.gameOption) === null || _w === void 0 ? void 0 : _w.frameRateDisplayingPattern
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
|
-
debugConsoleElement: ((
|
|
36
|
-
varDumpElement: ((
|
|
37
|
-
virtualPadController: ((
|
|
36
|
+
debugConsoleElement: ((_x = wwa.gameOption) === null || _x === void 0 ? void 0 : _x.debugConsole) ? { id: "wwa-debug-console-area" } : undefined,
|
|
37
|
+
varDumpElement: ((_z = (_y = wwa.gameOption) === null || _y === void 0 ? void 0 : _y.userVars) === null || _z === void 0 ? void 0 : _z.dumpElementId) ? { id: wwa.gameOption.userVars.dumpElementId } : undefined,
|
|
38
|
+
virtualPadController: ((_1 = (_0 = wwa.gameOption) === null || _0 === void 0 ? void 0 : _0.virtualPad) === null || _1 === void 0 ? void 0 : _1.controllerId) ? { id: wwa.gameOption.virtualPad.controllerId } : undefined,
|
|
38
39
|
footer: {
|
|
39
40
|
copyrights: Helper.generateCopyrights(copyrights)
|
|
40
41
|
}
|
package/module/wwa.pug
CHANGED
|
@@ -31,6 +31,7 @@ html(lang="ja")
|
|
|
31
31
|
data-wwa-virtualpad-controller-elm=wwa.attributes["data-wwa-virtualpad-controller-elm"]
|
|
32
32
|
data-wwa-user-defined-scripts-file=wwa.attributes["data-wwa-user-defined-scripts-file"]
|
|
33
33
|
data-wwa-picture-image-names-file=wwa.attributes["data-wwa-picture-image-names-file"]
|
|
34
|
+
data-wwa-frame-rate-displaying-pattern=wwa.attributes["data-wwa-frame-rate-displaying-pattern"]
|
|
34
35
|
)
|
|
35
36
|
|
|
36
37
|
if virtualPadController
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wwawing/page-generator",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.8-fps-measure.based-on.4.0.7",
|
|
4
4
|
"description": "a HTML file generator for WWA Wing",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"typescript": "^5.8.3"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
+
"@wwawing/common-interface": "^4.0.8-fps-measure.based-on.4.0.7",
|
|
43
44
|
"pug": "^3.0.3"
|
|
44
45
|
},
|
|
45
46
|
"publishConfig": {
|
|
@@ -49,5 +50,5 @@
|
|
|
49
50
|
"node": ">=24",
|
|
50
51
|
"npm": ">=11"
|
|
51
52
|
},
|
|
52
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "ec6bcd0442537c65936f5b935bdfb60e4c5f849c"
|
|
53
54
|
}
|