archetype-ecs-lib 0.6.0 → 1.0.0
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/README.md +3 -2
- package/lib/ecs/Archetype.d.ts +7 -0
- package/lib/ecs/Archetype.js +7 -0
- package/lib/ecs/Commands.d.ts +12 -4
- package/lib/ecs/Commands.js +10 -32
- package/lib/ecs/Schedule.d.ts +1 -1
- package/lib/ecs/Schedule.js +51 -47
- package/lib/ecs/Signature.d.ts +4 -0
- package/lib/ecs/Signature.js +19 -0
- package/lib/ecs/Types.d.ts +65 -23
- package/lib/ecs/Types.js +12 -0
- package/lib/ecs/World.d.ts +37 -14
- package/lib/ecs/World.js +359 -114
- package/lib/ecs/stats/StatsOverlay.js +4 -1
- package/package.json +9 -8
|
@@ -50,7 +50,7 @@ var StatsOverlay = /** @class */ (function () {
|
|
|
50
50
|
this.canvas = null;
|
|
51
51
|
this.ctx = null;
|
|
52
52
|
this.resizeObserver = null;
|
|
53
|
-
this.isExpanded =
|
|
53
|
+
this.isExpanded = false;
|
|
54
54
|
this.debugLoggingEnabled = false;
|
|
55
55
|
this.isInitialized = false;
|
|
56
56
|
this.debugingEnabled = false;
|
|
@@ -169,6 +169,9 @@ var StatsOverlay = /** @class */ (function () {
|
|
|
169
169
|
this.root.appendChild(this.header);
|
|
170
170
|
this.root.appendChild(this.content);
|
|
171
171
|
this.opts.parent.appendChild(this.root);
|
|
172
|
+
// Start collapsed
|
|
173
|
+
this.content.style.display = "none";
|
|
174
|
+
this.toggleButton.textContent = "+";
|
|
172
175
|
this.resizeCanvas();
|
|
173
176
|
this.resizeObserver = new ResizeObserver(function () { return _this.resizeCanvas(); });
|
|
174
177
|
this.resizeObserver.observe(this.root);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "archetype-ecs-lib",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "An Archetype Entity Component System (AECS)",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"build": "tsc",
|
|
9
9
|
"lint": "eslint src/ test/",
|
|
10
10
|
"lint:fix": "eslint src/ test/ --fix",
|
|
11
|
+
"bench": "jest --config jest.bench.config.js --verbose",
|
|
11
12
|
"reload-packages": "rm -Rf node_modules && npm cache clean --force && npm ci"
|
|
12
13
|
},
|
|
13
14
|
"repository": {
|
|
@@ -40,12 +41,12 @@
|
|
|
40
41
|
],
|
|
41
42
|
"typings": "./lib/index.d.ts",
|
|
42
43
|
"devDependencies": {
|
|
43
|
-
"@eslint/js": "
|
|
44
|
-
"@types/jest": "
|
|
45
|
-
"eslint": "
|
|
46
|
-
"jest": "
|
|
47
|
-
"jest-environment-jsdom": "
|
|
48
|
-
"ts-jest": "
|
|
49
|
-
"typescript-eslint": "
|
|
44
|
+
"@eslint/js": "9.39.2",
|
|
45
|
+
"@types/jest": "30.0.0",
|
|
46
|
+
"eslint": "9.39.2",
|
|
47
|
+
"jest": "30.2.0",
|
|
48
|
+
"jest-environment-jsdom": "30.2.0",
|
|
49
|
+
"ts-jest": "29.4.6",
|
|
50
|
+
"typescript-eslint": "8.53.1"
|
|
50
51
|
}
|
|
51
52
|
}
|