@eva/plugin-stats 1.3.0-alpha.1 → 2.0.0-beta.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/dist/EVA.plugin.stats.js +210 -73
- package/dist/EVA.plugin.stats.min.js +1 -1
- package/dist/packages/eva.js/lib/core/Component.d.ts +35 -0
- package/dist/packages/eva.js/lib/core/Component.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/core/ComponentObserver.d.ts +22 -0
- package/dist/packages/eva.js/lib/core/ComponentObserver.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/core/GameObject.d.ts +31 -0
- package/dist/packages/eva.js/lib/core/GameObject.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/core/System.d.ts +30 -0
- package/dist/packages/eva.js/lib/core/System.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/core/Transform.d.ts +51 -0
- package/dist/packages/eva.js/lib/core/Transform.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/core/observer.d.ts +23 -0
- package/dist/packages/eva.js/lib/core/observer.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/decorators/ide.d.ts +2 -0
- package/dist/packages/eva.js/lib/decorators/ide.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/decorators/system.d.ts +11 -0
- package/dist/packages/eva.js/lib/decorators/system.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/game/Game.d.ts +72 -0
- package/dist/packages/eva.js/lib/game/Game.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/game/Scene.d.ts +12 -0
- package/dist/packages/eva.js/lib/game/Scene.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/game/Ticker.d.ts +25 -0
- package/dist/packages/eva.js/lib/game/Ticker.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/index.d.ts +26 -0
- package/dist/packages/eva.js/lib/index.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/loader/Progress.d.ts +21 -0
- package/dist/packages/eva.js/lib/loader/Progress.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/loader/Resource.d.ts +99 -0
- package/dist/packages/eva.js/lib/loader/Resource.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/loader/resourceLoader.d.ts +14 -0
- package/dist/packages/eva.js/lib/loader/resourceLoader.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/timeline/index.d.ts +40 -0
- package/dist/packages/eva.js/lib/timeline/index.d.ts.map +1 -0
- package/dist/packages/eva.js/lib/timeline/utils.d.ts +2 -0
- package/dist/packages/eva.js/lib/timeline/utils.d.ts.map +1 -0
- package/dist/packages/plugin-a11y/lib/A11y.d.ts +26 -0
- package/dist/packages/plugin-a11y/lib/A11y.d.ts.map +1 -0
- package/dist/packages/plugin-a11y/lib/A11ySystem.d.ts +54 -0
- package/dist/packages/plugin-a11y/lib/A11ySystem.d.ts.map +1 -0
- package/dist/packages/plugin-a11y/lib/constant.d.ts +34 -0
- package/dist/packages/plugin-a11y/lib/constant.d.ts.map +1 -0
- package/dist/packages/plugin-a11y/lib/index.d.ts +4 -0
- package/dist/packages/plugin-a11y/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-a11y/lib/utils.d.ts +6 -0
- package/dist/packages/plugin-a11y/lib/utils.d.ts.map +1 -0
- package/dist/packages/plugin-evax/lib/EvaXComponent.d.ts +20 -0
- package/dist/packages/plugin-evax/lib/EvaXComponent.d.ts.map +1 -0
- package/dist/packages/plugin-evax/lib/EvaXSystem.d.ts +33 -0
- package/dist/packages/plugin-evax/lib/EvaXSystem.d.ts.map +1 -0
- package/dist/packages/plugin-evax/lib/index.d.ts +10 -0
- package/dist/packages/plugin-evax/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-evax/lib/utils.d.ts +3 -0
- package/dist/packages/plugin-evax/lib/utils.d.ts.map +1 -0
- package/dist/packages/plugin-matterjs/lib/BodiesFactory.d.ts +31 -0
- package/dist/packages/plugin-matterjs/lib/BodiesFactory.d.ts.map +1 -0
- package/dist/packages/plugin-matterjs/lib/Physics.d.ts +32 -0
- package/dist/packages/plugin-matterjs/lib/Physics.d.ts.map +1 -0
- package/dist/packages/plugin-matterjs/lib/PhysicsEngine.d.ts +35 -0
- package/dist/packages/plugin-matterjs/lib/PhysicsEngine.d.ts.map +1 -0
- package/dist/packages/plugin-matterjs/lib/PhysicsSystem.d.ts +32 -0
- package/dist/packages/plugin-matterjs/lib/PhysicsSystem.d.ts.map +1 -0
- package/dist/packages/plugin-matterjs/lib/index.d.ts +5 -0
- package/dist/packages/plugin-matterjs/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-matterjs/lib/matter.d.ts +3 -0
- package/dist/packages/plugin-matterjs/lib/matter.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/Renderer.d.ts +19 -0
- package/dist/packages/plugin-renderer/lib/Renderer.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/System.d.ts +40 -0
- package/dist/packages/plugin-renderer/lib/System.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/Transform.d.ts +28 -0
- package/dist/packages/plugin-renderer/lib/Transform.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/compressedTexture/ability.d.ts +20 -0
- package/dist/packages/plugin-renderer/lib/compressedTexture/ability.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/compressedTexture/fix/loader.d.ts +2 -0
- package/dist/packages/plugin-renderer/lib/compressedTexture/fix/loader.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/compressedTexture/index.d.ts +7 -0
- package/dist/packages/plugin-renderer/lib/compressedTexture/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/index.d.ts +8 -0
- package/dist/packages/plugin-renderer/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/manager/ContainerManager.d.ts +18 -0
- package/dist/packages/plugin-renderer/lib/manager/ContainerManager.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/manager/RendererManager.d.ts +17 -0
- package/dist/packages/plugin-renderer/lib/manager/RendererManager.d.ts.map +1 -0
- package/dist/packages/plugin-renderer/lib/mixin.d.ts +2 -0
- package/dist/packages/plugin-renderer/lib/mixin.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/component.d.ts +26 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/db.d.ts +3 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/db.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/engine.d.ts +10 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/engine.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/system.d.ts +24 -0
- package/dist/packages/plugin-renderer-dragonbone/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-event/lib/component.d.ts +52 -0
- package/dist/packages/plugin-renderer-event/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-event/lib/index.d.ts +5 -0
- package/dist/packages/plugin-renderer-event/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-event/lib/system.d.ts +19 -0
- package/dist/packages/plugin-renderer-event/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-graphics/lib/component.d.ts +8 -0
- package/dist/packages/plugin-renderer-graphics/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-graphics/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-graphics/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-graphics/lib/system.d.ts +12 -0
- package/dist/packages/plugin-renderer-graphics/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-img/lib/component.d.ts +10 -0
- package/dist/packages/plugin-renderer-img/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-img/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-img/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-img/lib/system.d.ts +18 -0
- package/dist/packages/plugin-renderer-img/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-lottie/lib/Lottie.d.ts +27 -0
- package/dist/packages/plugin-renderer-lottie/lib/Lottie.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-lottie/lib/LottieSystem.d.ts +18 -0
- package/dist/packages/plugin-renderer-lottie/lib/LottieSystem.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-lottie/lib/index.d.ts +3 -0
- package/dist/packages/plugin-renderer-lottie/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-lottie/lib/lottie-pixi.d.ts +180 -0
- package/dist/packages/plugin-renderer-lottie/lib/lottie-pixi.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-lottie/lib/types.d.ts +18 -0
- package/dist/packages/plugin-renderer-lottie/lib/types.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-lottie/lib/utils.d.ts +2 -0
- package/dist/packages/plugin-renderer-lottie/lib/utils.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-mask/lib/component.d.ts +33 -0
- package/dist/packages/plugin-renderer-mask/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-mask/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-mask/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-mask/lib/system.d.ts +31 -0
- package/dist/packages/plugin-renderer-mask/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-nine-patch/lib/component.d.ts +22 -0
- package/dist/packages/plugin-renderer-nine-patch/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-nine-patch/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-nine-patch/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-nine-patch/lib/system.d.ts +19 -0
- package/dist/packages/plugin-renderer-nine-patch/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-render/lib/component.d.ts +17 -0
- package/dist/packages/plugin-renderer-render/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-render/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-render/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-render/lib/system.d.ts +17 -0
- package/dist/packages/plugin-renderer-render/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-spine/lib/Spine.d.ts +4 -0
- package/dist/packages/plugin-renderer-spine/lib/Spine.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-spine/lib/SpineSystem.d.ts +5 -0
- package/dist/packages/plugin-renderer-spine/lib/SpineSystem.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-spine/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-spine/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-sprite/lib/component.d.ts +12 -0
- package/dist/packages/plugin-renderer-sprite/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-sprite/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-sprite/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-sprite/lib/system.d.ts +17 -0
- package/dist/packages/plugin-renderer-sprite/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-sprite-animation/lib/component.d.ts +31 -0
- package/dist/packages/plugin-renderer-sprite-animation/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-sprite-animation/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-sprite-animation/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-sprite-animation/lib/system.d.ts +31 -0
- package/dist/packages/plugin-renderer-sprite-animation/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-test/lib/component.d.ts +20 -0
- package/dist/packages/plugin-renderer-test/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-test/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-test/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-test/lib/system.d.ts +21 -0
- package/dist/packages/plugin-renderer-test/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-test/lib/system2.d.ts +12 -0
- package/dist/packages/plugin-renderer-test/lib/system2.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-text/lib/component.d.ts +43 -0
- package/dist/packages/plugin-renderer-text/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-text/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-text/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-text/lib/system.d.ts +22 -0
- package/dist/packages/plugin-renderer-text/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-tiling-sprite/lib/component.d.ts +20 -0
- package/dist/packages/plugin-renderer-tiling-sprite/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-tiling-sprite/lib/index.d.ts +4 -0
- package/dist/packages/plugin-renderer-tiling-sprite/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-renderer-tiling-sprite/lib/system.d.ts +18 -0
- package/dist/packages/plugin-renderer-tiling-sprite/lib/system.d.ts.map +1 -0
- package/dist/packages/plugin-sound/lib/Sound.d.ts +44 -0
- package/dist/packages/plugin-sound/lib/Sound.d.ts.map +1 -0
- package/dist/packages/plugin-sound/lib/SoundSystem.d.ts +37 -0
- package/dist/packages/plugin-sound/lib/SoundSystem.d.ts.map +1 -0
- package/dist/packages/plugin-sound/lib/index.d.ts +3 -0
- package/dist/packages/plugin-sound/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-stats/lib/Stats.d.ts +19 -0
- package/dist/packages/plugin-stats/lib/Stats.d.ts.map +1 -0
- package/dist/packages/plugin-stats/lib/StatsComponent.d.ts +7 -0
- package/dist/packages/plugin-stats/lib/StatsComponent.d.ts.map +1 -0
- package/dist/packages/plugin-stats/lib/StatsSystem.d.ts +28 -0
- package/dist/packages/plugin-stats/lib/StatsSystem.d.ts.map +1 -0
- package/dist/packages/plugin-stats/lib/hooks/BaseHooks.d.ts +18 -0
- package/dist/packages/plugin-stats/lib/hooks/BaseHooks.d.ts.map +1 -0
- package/dist/packages/plugin-stats/lib/hooks/GLHook.d.ts +11 -0
- package/dist/packages/plugin-stats/lib/hooks/GLHook.d.ts.map +1 -0
- package/dist/packages/plugin-stats/lib/hooks/TextureHook.d.ts +16 -0
- package/dist/packages/plugin-stats/lib/hooks/TextureHook.d.ts.map +1 -0
- package/dist/packages/plugin-stats/lib/index.d.ts +9 -0
- package/dist/packages/plugin-stats/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-transition/lib/Animation.d.ts +38 -0
- package/dist/packages/plugin-transition/lib/Animation.d.ts.map +1 -0
- package/dist/packages/plugin-transition/lib/component.d.ts +35 -0
- package/dist/packages/plugin-transition/lib/component.d.ts.map +1 -0
- package/dist/packages/plugin-transition/lib/index.d.ts +3 -0
- package/dist/packages/plugin-transition/lib/index.d.ts.map +1 -0
- package/dist/packages/plugin-transition/lib/system.d.ts +6 -0
- package/dist/packages/plugin-transition/lib/system.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/Application.d.ts +3 -0
- package/dist/packages/renderer-adapter/lib/Application.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/Container.d.ts +5 -0
- package/dist/packages/renderer-adapter/lib/Container.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/Graphics.d.ts +5 -0
- package/dist/packages/renderer-adapter/lib/Graphics.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/NinePatch.d.ts +5 -0
- package/dist/packages/renderer-adapter/lib/NinePatch.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/Sprite.d.ts +9 -0
- package/dist/packages/renderer-adapter/lib/Sprite.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/SpriteAnimation.d.ts +14 -0
- package/dist/packages/renderer-adapter/lib/SpriteAnimation.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/Text.d.ts +6 -0
- package/dist/packages/renderer-adapter/lib/Text.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/TilingSprite.d.ts +9 -0
- package/dist/packages/renderer-adapter/lib/TilingSprite.d.ts.map +1 -0
- package/dist/packages/renderer-adapter/lib/index.d.ts +9 -0
- package/dist/packages/renderer-adapter/lib/index.d.ts.map +1 -0
- package/dist/packages/spine-base/lib/Spine.d.ts +32 -0
- package/dist/packages/spine-base/lib/Spine.d.ts.map +1 -0
- package/dist/packages/spine-base/lib/SpineData.d.ts +5 -0
- package/dist/packages/spine-base/lib/SpineData.d.ts.map +1 -0
- package/dist/packages/spine-base/lib/SpineSystem.d.ts +20 -0
- package/dist/packages/spine-base/lib/SpineSystem.d.ts.map +1 -0
- package/dist/packages/spine-base/lib/TexCache.d.ts +10 -0
- package/dist/packages/spine-base/lib/TexCache.d.ts.map +1 -0
- package/dist/packages/spine-base/lib/index.d.ts +4 -0
- package/dist/packages/spine-base/lib/index.d.ts.map +1 -0
- package/dist/plugin-stats.cjs.js +190 -3
- package/dist/plugin-stats.cjs.prod.js +2 -2
- package/dist/plugin-stats.esm.js +189 -2
- package/package.json +2 -2
- package/dist/plugin-stats.d.ts +0 -37
package/dist/EVA.plugin.stats.js
CHANGED
|
@@ -1,77 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
this.EVA.plugin.stats = function (exports, eva_js) {
|
|
1
|
+
window.EVA = window.EVA || {};
|
|
2
|
+
window.EVA.plugin = window.EVA.plugin || {};
|
|
3
|
+
var _EVA_IIFE_stats = function (exports, eva_js) {
|
|
5
4
|
'use strict';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
_extendStatics = Object.setPrototypeOf || {
|
|
5
|
+
var extendStatics = function (d, b) {
|
|
6
|
+
extendStatics = Object.setPrototypeOf || {
|
|
9
7
|
__proto__: []
|
|
10
8
|
} instanceof Array && function (d, b) {
|
|
11
9
|
d.__proto__ = b;
|
|
12
10
|
} || function (d, b) {
|
|
13
|
-
for (var p in b)
|
|
14
|
-
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
15
|
-
}
|
|
11
|
+
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
16
12
|
};
|
|
17
|
-
|
|
18
|
-
return _extendStatics(d, b);
|
|
13
|
+
return extendStatics(d, b);
|
|
19
14
|
};
|
|
20
|
-
|
|
21
15
|
function __extends(d, b) {
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
extendStatics(d, b);
|
|
24
17
|
function __() {
|
|
25
18
|
this.constructor = d;
|
|
26
19
|
}
|
|
27
|
-
|
|
28
20
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29
21
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
_assign = Object.assign || function __assign(t) {
|
|
22
|
+
var __assign = function () {
|
|
23
|
+
__assign = Object.assign || function __assign(t) {
|
|
33
24
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
34
25
|
s = arguments[i];
|
|
35
|
-
|
|
36
|
-
for (var p in s) {
|
|
37
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
38
|
-
}
|
|
26
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
39
27
|
}
|
|
40
|
-
|
|
41
28
|
return t;
|
|
42
29
|
};
|
|
43
|
-
|
|
44
|
-
return _assign.apply(this, arguments);
|
|
30
|
+
return __assign.apply(this, arguments);
|
|
45
31
|
};
|
|
46
|
-
|
|
47
32
|
var StatsComponent = function (_super) {
|
|
48
33
|
__extends(StatsComponent, _super);
|
|
49
|
-
|
|
50
34
|
function StatsComponent() {
|
|
51
35
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
52
36
|
}
|
|
53
|
-
|
|
54
37
|
StatsComponent.prototype.update = function () {
|
|
55
38
|
this.stats && this.stats.begin();
|
|
56
39
|
};
|
|
57
|
-
|
|
58
40
|
StatsComponent.componentName = 'Stats';
|
|
59
41
|
return StatsComponent;
|
|
60
42
|
}(eva_js.Component);
|
|
61
|
-
|
|
62
43
|
var Stats$2 = StatsComponent;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
style = _assign({
|
|
44
|
+
var Stats = function (style) {
|
|
45
|
+
style = __assign({
|
|
66
46
|
width: 20,
|
|
67
47
|
height: 12,
|
|
68
48
|
x: 0,
|
|
69
49
|
y: 0
|
|
70
50
|
}, style);
|
|
71
51
|
var width = style.width,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
52
|
+
height = style.height,
|
|
53
|
+
x = style.x,
|
|
54
|
+
y = style.y;
|
|
75
55
|
var mode = 0;
|
|
76
56
|
var container = document.createElement('div');
|
|
77
57
|
container.style.cssText = "position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000;width: " + width + "vw;height: " + height + "vw;left: " + x + "vw;top: " + y + "vw;";
|
|
@@ -79,79 +59,75 @@ this.EVA.plugin.stats = function (exports, eva_js) {
|
|
|
79
59
|
event.preventDefault();
|
|
80
60
|
showPanel(++mode % container.children.length);
|
|
81
61
|
}, false);
|
|
82
|
-
|
|
83
62
|
function addPanel(panel) {
|
|
84
63
|
container.appendChild(panel.dom);
|
|
85
64
|
return panel;
|
|
86
65
|
}
|
|
87
|
-
|
|
88
66
|
function showPanel(id) {
|
|
89
67
|
for (var i = 0; i < container.children.length; i++) {
|
|
90
68
|
container.children[i].style.display = i === id ? 'block' : 'none';
|
|
91
69
|
}
|
|
92
|
-
|
|
93
70
|
mode = id;
|
|
94
71
|
}
|
|
95
|
-
|
|
96
72
|
var beginTime = (performance || Date).now(),
|
|
97
|
-
|
|
98
|
-
|
|
73
|
+
prevTime = beginTime,
|
|
74
|
+
frames = 0;
|
|
99
75
|
var fpsPanel = addPanel(Stats.Panel('FPS', '#0ff', '#002'));
|
|
100
76
|
var msPanel = addPanel(Stats.Panel('MS', '#0f0', '#020'));
|
|
77
|
+
var dcPanel = addPanel(Stats.Panel('DrawCall', '#330570', '#A69700'));
|
|
78
|
+
var tcPanel = addPanel(Stats.Panel('TC:', '#A62500', '#00B454'));
|
|
101
79
|
var memPanel;
|
|
102
|
-
|
|
103
80
|
if (self.performance && self.performance.memory) {
|
|
104
81
|
memPanel = addPanel(Stats.Panel('MB', '#f08', '#201'));
|
|
105
82
|
}
|
|
106
|
-
|
|
107
83
|
showPanel(0);
|
|
108
84
|
return {
|
|
109
85
|
REVISION: 16,
|
|
110
86
|
dom: container,
|
|
111
87
|
addPanel: addPanel,
|
|
112
88
|
showPanel: showPanel,
|
|
113
|
-
begin: function
|
|
89
|
+
begin: function (time) {
|
|
114
90
|
beginTime = time || (performance || Date).now();
|
|
115
91
|
},
|
|
116
|
-
end: function
|
|
92
|
+
end: function (hook) {
|
|
117
93
|
frames++;
|
|
118
94
|
var time = (performance || Date).now();
|
|
119
95
|
msPanel.update(time - beginTime, 200);
|
|
120
|
-
|
|
96
|
+
if (hook) {
|
|
97
|
+
dcPanel.update(hook.deltaDrawCalls, Math.max(50, hook.maxDeltaDrawCalls));
|
|
98
|
+
tcPanel.update(hook.texturesCount, Math.max(20, hook.maxTextureCount));
|
|
99
|
+
}
|
|
121
100
|
if (time >= prevTime + 1000) {
|
|
122
101
|
fpsPanel.update(frames * 1000 / (time - prevTime), 100);
|
|
123
102
|
prevTime = time;
|
|
124
103
|
frames = 0;
|
|
125
|
-
|
|
126
104
|
if (memPanel) {
|
|
127
105
|
var memory = performance.memory;
|
|
128
106
|
memPanel.update(memory.usedJSHeapSize / 1048576, memory.jsHeapSizeLimit / 1048576);
|
|
129
107
|
}
|
|
130
108
|
}
|
|
131
|
-
|
|
132
109
|
return time;
|
|
133
110
|
},
|
|
134
|
-
update: function
|
|
111
|
+
update: function () {
|
|
135
112
|
beginTime = this.end();
|
|
136
113
|
},
|
|
137
114
|
domElement: container,
|
|
138
115
|
setMode: showPanel
|
|
139
116
|
};
|
|
140
117
|
};
|
|
141
|
-
|
|
142
118
|
Stats.Panel = function (name, fg, bg) {
|
|
143
119
|
var min = Infinity,
|
|
144
|
-
|
|
120
|
+
max = 0;
|
|
145
121
|
var round = Math.round;
|
|
146
122
|
var PR = round(window.devicePixelRatio || 1);
|
|
147
123
|
var WIDTH = 80 * PR,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
124
|
+
HEIGHT = 48 * PR,
|
|
125
|
+
TEXT_X = 3 * PR,
|
|
126
|
+
TEXT_Y = 2 * PR,
|
|
127
|
+
GRAPH_X = 3 * PR,
|
|
128
|
+
GRAPH_Y = 15 * PR,
|
|
129
|
+
GRAPH_WIDTH = 74 * PR,
|
|
130
|
+
GRAPH_HEIGHT = 30 * PR;
|
|
155
131
|
var canvas = document.createElement('canvas');
|
|
156
132
|
canvas.width = WIDTH;
|
|
157
133
|
canvas.height = HEIGHT;
|
|
@@ -169,7 +145,7 @@ this.EVA.plugin.stats = function (exports, eva_js) {
|
|
|
169
145
|
context.fillRect(GRAPH_X, GRAPH_Y, GRAPH_WIDTH, GRAPH_HEIGHT);
|
|
170
146
|
return {
|
|
171
147
|
dom: canvas,
|
|
172
|
-
update: function
|
|
148
|
+
update: function (value, maxValue) {
|
|
173
149
|
min = Math.min(min, value);
|
|
174
150
|
max = Math.max(max, value);
|
|
175
151
|
context.fillStyle = bg;
|
|
@@ -185,30 +161,193 @@ this.EVA.plugin.stats = function (exports, eva_js) {
|
|
|
185
161
|
}
|
|
186
162
|
};
|
|
187
163
|
};
|
|
188
|
-
|
|
189
164
|
var Stats$1 = Stats;
|
|
190
|
-
|
|
165
|
+
var GLHook = function () {
|
|
166
|
+
function GLHook(_gl) {
|
|
167
|
+
this.drawPasses = 0;
|
|
168
|
+
this.isInit = false;
|
|
169
|
+
this.realGLDrawElements = function () {};
|
|
170
|
+
if (_gl) {
|
|
171
|
+
if (_gl.__proto__.drawElements) {
|
|
172
|
+
this.gl = _gl;
|
|
173
|
+
this.realGLDrawElements = _gl.__proto__.drawElements;
|
|
174
|
+
_gl.__proto__.drawElements = this.fakeGLdrawElements(this);
|
|
175
|
+
this.isInit = true;
|
|
176
|
+
}
|
|
177
|
+
} else {
|
|
178
|
+
console.error("[GLHook] GL can't be NULL");
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
GLHook.prototype.fakeGLdrawElements = function (context) {
|
|
182
|
+
return function (mode, count, type, offset) {
|
|
183
|
+
context.drawPasses++;
|
|
184
|
+
context.realGLDrawElements.call(this, mode, count, type, offset);
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
GLHook.prototype.reset = function () {
|
|
188
|
+
this.drawPasses = 0;
|
|
189
|
+
};
|
|
190
|
+
GLHook.prototype.release = function () {
|
|
191
|
+
if (this.isInit) {
|
|
192
|
+
this.gl.__proto__.drawElements = this.realGLDrawElements;
|
|
193
|
+
}
|
|
194
|
+
this.isInit = false;
|
|
195
|
+
};
|
|
196
|
+
return GLHook;
|
|
197
|
+
}();
|
|
198
|
+
var TextureHook = function () {
|
|
199
|
+
function TextureHook(_gl) {
|
|
200
|
+
this.createdTextures = new Array();
|
|
201
|
+
this.maxTexturesCount = 0;
|
|
202
|
+
this.isInit = false;
|
|
203
|
+
this.realGLCreateTexture = function () {};
|
|
204
|
+
this.realGLDeleteTexture = function () {};
|
|
205
|
+
if (_gl) {
|
|
206
|
+
if (_gl.__proto__.createTexture) {
|
|
207
|
+
this.gl = _gl;
|
|
208
|
+
this.realGLCreateTexture = _gl.__proto__.createTexture;
|
|
209
|
+
this.realGLDeleteTexture = _gl.__proto__.deleteTexture;
|
|
210
|
+
_gl.__proto__.createTexture = this.fakeGLCreateTexture(this);
|
|
211
|
+
_gl.__proto__.deleteTexture = this.fakeGLDeleteTexture(this);
|
|
212
|
+
this.isInit = true;
|
|
213
|
+
}
|
|
214
|
+
} else {
|
|
215
|
+
console.error("[TextureHook] GL can't be NULL");
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
Object.defineProperty(TextureHook.prototype, "currentTextureCount", {
|
|
219
|
+
get: function () {
|
|
220
|
+
return this.createdTextures.length;
|
|
221
|
+
},
|
|
222
|
+
enumerable: false,
|
|
223
|
+
configurable: true
|
|
224
|
+
});
|
|
225
|
+
TextureHook.prototype.registerTexture = function (texture) {
|
|
226
|
+
this.createdTextures.push(texture);
|
|
227
|
+
this.maxTexturesCount = Math.max(this.createdTextures.length, this.maxTexturesCount);
|
|
228
|
+
};
|
|
229
|
+
TextureHook.prototype.fakeGLCreateTexture = function (context) {
|
|
230
|
+
return function () {
|
|
231
|
+
var texture = context.realGLCreateTexture.call(this);
|
|
232
|
+
context.registerTexture(texture);
|
|
233
|
+
return texture;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
TextureHook.prototype.fakeGLDeleteTexture = function (context) {
|
|
237
|
+
return function (texture) {
|
|
238
|
+
var index = context.createdTextures.indexOf(texture);
|
|
239
|
+
if (index > -1) {
|
|
240
|
+
context.createdTextures.splice(index, 1);
|
|
241
|
+
}
|
|
242
|
+
context.realGLDeleteTexture.call(this, texture);
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
TextureHook.prototype.reset = function () {
|
|
246
|
+
this.createdTextures = new Array();
|
|
247
|
+
this.maxTexturesCount = 0;
|
|
248
|
+
};
|
|
249
|
+
TextureHook.prototype.release = function () {
|
|
250
|
+
if (this.isInit) {
|
|
251
|
+
this.gl.__proto__.createTexture = this.realGLCreateTexture;
|
|
252
|
+
this.gl.__proto__.deleteTexture = this.realGLDeleteTexture;
|
|
253
|
+
console.log('[TextureHook] Hook was removed!');
|
|
254
|
+
}
|
|
255
|
+
this.isInit = false;
|
|
256
|
+
};
|
|
257
|
+
return TextureHook;
|
|
258
|
+
}();
|
|
259
|
+
var BaseHooks = function () {
|
|
260
|
+
function BaseHooks() {
|
|
261
|
+
this._drawCalls = -1;
|
|
262
|
+
this._maxDeltaDrawCalls = -1;
|
|
263
|
+
}
|
|
264
|
+
BaseHooks.prototype.attach = function (gl) {
|
|
265
|
+
this.glhook = new GLHook(gl);
|
|
266
|
+
this.texturehook = new TextureHook(gl);
|
|
267
|
+
};
|
|
268
|
+
Object.defineProperty(BaseHooks.prototype, "drawCalls", {
|
|
269
|
+
get: function () {
|
|
270
|
+
if (this.glhook && this.glhook.isInit) {
|
|
271
|
+
return this.glhook.drawPasses;
|
|
272
|
+
}
|
|
273
|
+
return -1;
|
|
274
|
+
},
|
|
275
|
+
enumerable: false,
|
|
276
|
+
configurable: true
|
|
277
|
+
});
|
|
278
|
+
Object.defineProperty(BaseHooks.prototype, "maxDeltaDrawCalls", {
|
|
279
|
+
get: function () {
|
|
280
|
+
return this._maxDeltaDrawCalls;
|
|
281
|
+
},
|
|
282
|
+
enumerable: false,
|
|
283
|
+
configurable: true
|
|
284
|
+
});
|
|
285
|
+
Object.defineProperty(BaseHooks.prototype, "deltaDrawCalls", {
|
|
286
|
+
get: function () {
|
|
287
|
+
if (this._drawCalls == -1) {
|
|
288
|
+
this._drawCalls = this.drawCalls;
|
|
289
|
+
return 0;
|
|
290
|
+
}
|
|
291
|
+
var dc = this.drawCalls;
|
|
292
|
+
var delta = dc - this._drawCalls;
|
|
293
|
+
this._drawCalls = dc;
|
|
294
|
+
this._maxDeltaDrawCalls = Math.max(this._maxDeltaDrawCalls, delta);
|
|
295
|
+
return delta;
|
|
296
|
+
},
|
|
297
|
+
enumerable: false,
|
|
298
|
+
configurable: true
|
|
299
|
+
});
|
|
300
|
+
Object.defineProperty(BaseHooks.prototype, "maxTextureCount", {
|
|
301
|
+
get: function () {
|
|
302
|
+
if (this.texturehook && this.texturehook.isInit) return this.texturehook.maxTexturesCount;
|
|
303
|
+
return 0;
|
|
304
|
+
},
|
|
305
|
+
enumerable: false,
|
|
306
|
+
configurable: true
|
|
307
|
+
});
|
|
308
|
+
Object.defineProperty(BaseHooks.prototype, "texturesCount", {
|
|
309
|
+
get: function () {
|
|
310
|
+
if (this.texturehook && this.texturehook.isInit) return this.texturehook.currentTextureCount;
|
|
311
|
+
return 0;
|
|
312
|
+
},
|
|
313
|
+
enumerable: false,
|
|
314
|
+
configurable: true
|
|
315
|
+
});
|
|
316
|
+
BaseHooks.prototype.reset = function () {
|
|
317
|
+
this._maxDeltaDrawCalls = -1;
|
|
318
|
+
this._drawCalls = -1;
|
|
319
|
+
if (this.glhook) this.glhook.reset();
|
|
320
|
+
if (this.texturehook) this.texturehook.reset();
|
|
321
|
+
};
|
|
322
|
+
BaseHooks.prototype.release = function () {
|
|
323
|
+
if (this.glhook) this.glhook.release();
|
|
324
|
+
if (this.texturehook) this.texturehook.release();
|
|
325
|
+
};
|
|
326
|
+
return BaseHooks;
|
|
327
|
+
}();
|
|
191
328
|
var StatsSystem = function (_super) {
|
|
192
329
|
__extends(StatsSystem, _super);
|
|
193
|
-
|
|
194
330
|
function StatsSystem() {
|
|
195
331
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
196
|
-
|
|
197
332
|
_this.show = true;
|
|
198
333
|
return _this;
|
|
199
334
|
}
|
|
200
|
-
|
|
201
335
|
StatsSystem.prototype.init = function (param) {
|
|
202
336
|
if (param === void 0) {
|
|
203
337
|
param = {
|
|
204
338
|
show: true
|
|
205
339
|
};
|
|
206
340
|
}
|
|
207
|
-
|
|
208
341
|
this.show = param.show;
|
|
209
342
|
this.style = param.style;
|
|
343
|
+
this.renderSystem = this.game.getSystem('Renderer');
|
|
344
|
+
this.app = this.renderSystem.application;
|
|
345
|
+
if (this.app && this.show) {
|
|
346
|
+
var gl = this.app.renderer.gl;
|
|
347
|
+
this.hook = new BaseHooks();
|
|
348
|
+
this.hook.attach(gl);
|
|
349
|
+
}
|
|
210
350
|
};
|
|
211
|
-
|
|
212
351
|
StatsSystem.prototype.start = function () {
|
|
213
352
|
if (!this.show) return;
|
|
214
353
|
this.component = this.game.scene.addComponent(new Stats$2());
|
|
@@ -217,16 +356,13 @@ this.EVA.plugin.stats = function (exports, eva_js) {
|
|
|
217
356
|
this.stats.showPanel(0);
|
|
218
357
|
document.body.appendChild(this.stats.dom);
|
|
219
358
|
};
|
|
220
|
-
|
|
221
359
|
StatsSystem.prototype.lateUpdate = function () {
|
|
222
360
|
if (!this.show) return;
|
|
223
|
-
this.stats && this.stats.end();
|
|
361
|
+
this.stats && this.stats.end(this.hook);
|
|
224
362
|
};
|
|
225
|
-
|
|
226
363
|
StatsSystem.systemName = 'Stats';
|
|
227
364
|
return StatsSystem;
|
|
228
365
|
}(eva_js.System);
|
|
229
|
-
|
|
230
366
|
var StatsSystem$1 = StatsSystem;
|
|
231
367
|
var index = {
|
|
232
368
|
Components: [Stats$2],
|
|
@@ -234,9 +370,10 @@ this.EVA.plugin.stats = function (exports, eva_js) {
|
|
|
234
370
|
};
|
|
235
371
|
exports.Stats = Stats$2;
|
|
236
372
|
exports.StatsSystem = StatsSystem$1;
|
|
237
|
-
exports[
|
|
373
|
+
exports["default"] = index;
|
|
238
374
|
Object.defineProperty(exports, '__esModule', {
|
|
239
375
|
value: true
|
|
240
376
|
});
|
|
241
377
|
return exports;
|
|
242
378
|
}({}, EVA);
|
|
379
|
+
window.EVA.plugin.stats = window.EVA.plugin.stats || _EVA_IIFE_stats;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
window.EVA=window.EVA||{},window.EVA.plugin=window.EVA.plugin||{};var _EVA_IIFE_stats=function(t,e){"use strict";var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},r(t,e)};function o(t,e){function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var n=function(){return n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},n.apply(this,arguments)},i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.update=function(){this.stats&&this.stats.begin()},e.componentName="Stats",e}(e.Component),s=i,a=function(t){var e=(t=n({width:20,height:12,x:0,y:0},t)).width,r=t.height,o=t.x,i=t.y,s=0,l=document.createElement("div");function u(t){return l.appendChild(t.dom),t}function h(t){for(var e=0;e<l.children.length;e++)l.children[e].style.display=e===t?"block":"none";s=t}l.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000;width: "+e+"vw;height: "+r+"vw;left: "+o+"vw;top: "+i+"vw;",l.addEventListener("click",(function(t){t.preventDefault(),h(++s%l.children.length)}),!1);var c,p=(performance||Date).now(),f=p,d=0,x=u(a.Panel("FPS","#0ff","#002")),w=u(a.Panel("MS","#0f0","#020")),m=u(a.Panel("DrawCall","#330570","#A69700")),_=u(a.Panel("TC:","#A62500","#00B454"));return self.performance&&self.performance.memory&&(c=u(a.Panel("MB","#f08","#201"))),h(0),{REVISION:16,dom:l,addPanel:u,showPanel:h,begin:function(t){p=t||(performance||Date).now()},end:function(t){d++;var e=(performance||Date).now();if(w.update(e-p,200),t&&(m.update(t.deltaDrawCalls,Math.max(50,t.maxDeltaDrawCalls)),_.update(t.texturesCount,Math.max(20,t.maxTextureCount))),e>=f+1e3&&(x.update(1e3*d/(e-f),100),f=e,d=0,c)){var r=performance.memory;c.update(r.usedJSHeapSize/1048576,r.jsHeapSizeLimit/1048576)}return e},update:function(){p=this.end()},domElement:l,setMode:h}};a.Panel=function(t,e,r){var o=1/0,n=0,i=Math.round,s=i(window.devicePixelRatio||1),a=80*s,l=48*s,u=3*s,h=2*s,c=3*s,p=15*s,f=74*s,d=30*s,x=document.createElement("canvas");x.width=a,x.height=l,x.style.cssText="width:100%;height:100%";var w=x.getContext("2d");return w.font="bold "+9*s+"px Helvetica,Arial,sans-serif",w.textBaseline="top",w.fillStyle=r,w.fillRect(0,0,a,l),w.fillStyle=e,w.fillText(t,u,h),w.fillRect(c,p,f,d),w.fillStyle=r,w.globalAlpha=.9,w.fillRect(c,p,f,d),{dom:x,update:function(l,m){o=Math.min(o,l),n=Math.max(n,l),w.fillStyle=r,w.globalAlpha=1,w.fillRect(0,0,a,p),w.fillStyle=e,w.fillText(i(l)+" "+t+" ("+i(o)+"-"+i(n)+")",u,h),w.drawImage(x,c+s,p,f-s,d,c,p,f-s,d),w.fillRect(c+f-s,p,s,d),w.fillStyle=r,w.globalAlpha=.9,w.fillRect(c+f-s,p,s,i((1-l/m)*d))}}};var l=a,u=function(){function t(t){this.drawPasses=0,this.isInit=!1,this.realGLDrawElements=function(){},t?t.__proto__.drawElements&&(this.gl=t,this.realGLDrawElements=t.__proto__.drawElements,t.__proto__.drawElements=this.fakeGLdrawElements(this),this.isInit=!0):console.error("[GLHook] GL can't be NULL")}return t.prototype.fakeGLdrawElements=function(t){return function(e,r,o,n){t.drawPasses++,t.realGLDrawElements.call(this,e,r,o,n)}},t.prototype.reset=function(){this.drawPasses=0},t.prototype.release=function(){this.isInit&&(this.gl.__proto__.drawElements=this.realGLDrawElements),this.isInit=!1},t}(),h=function(){function t(t){this.createdTextures=new Array,this.maxTexturesCount=0,this.isInit=!1,this.realGLCreateTexture=function(){},this.realGLDeleteTexture=function(){},t?t.__proto__.createTexture&&(this.gl=t,this.realGLCreateTexture=t.__proto__.createTexture,this.realGLDeleteTexture=t.__proto__.deleteTexture,t.__proto__.createTexture=this.fakeGLCreateTexture(this),t.__proto__.deleteTexture=this.fakeGLDeleteTexture(this),this.isInit=!0):console.error("[TextureHook] GL can't be NULL")}return Object.defineProperty(t.prototype,"currentTextureCount",{get:function(){return this.createdTextures.length},enumerable:!1,configurable:!0}),t.prototype.registerTexture=function(t){this.createdTextures.push(t),this.maxTexturesCount=Math.max(this.createdTextures.length,this.maxTexturesCount)},t.prototype.fakeGLCreateTexture=function(t){return function(){var e=t.realGLCreateTexture.call(this);return t.registerTexture(e),e}},t.prototype.fakeGLDeleteTexture=function(t){return function(e){var r=t.createdTextures.indexOf(e);r>-1&&t.createdTextures.splice(r,1),t.realGLDeleteTexture.call(this,e)}},t.prototype.reset=function(){this.createdTextures=new Array,this.maxTexturesCount=0},t.prototype.release=function(){this.isInit&&(this.gl.__proto__.createTexture=this.realGLCreateTexture,this.gl.__proto__.deleteTexture=this.realGLDeleteTexture,console.log("[TextureHook] Hook was removed!")),this.isInit=!1},t}(),c=function(){function t(){this._drawCalls=-1,this._maxDeltaDrawCalls=-1}return t.prototype.attach=function(t){this.glhook=new u(t),this.texturehook=new h(t)},Object.defineProperty(t.prototype,"drawCalls",{get:function(){return this.glhook&&this.glhook.isInit?this.glhook.drawPasses:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxDeltaDrawCalls",{get:function(){return this._maxDeltaDrawCalls},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deltaDrawCalls",{get:function(){if(-1==this._drawCalls)return this._drawCalls=this.drawCalls,0;var t=this.drawCalls,e=t-this._drawCalls;return this._drawCalls=t,this._maxDeltaDrawCalls=Math.max(this._maxDeltaDrawCalls,e),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextureCount",{get:function(){return this.texturehook&&this.texturehook.isInit?this.texturehook.maxTexturesCount:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texturesCount",{get:function(){return this.texturehook&&this.texturehook.isInit?this.texturehook.currentTextureCount:0},enumerable:!1,configurable:!0}),t.prototype.reset=function(){this._maxDeltaDrawCalls=-1,this._drawCalls=-1,this.glhook&&this.glhook.reset(),this.texturehook&&this.texturehook.reset()},t.prototype.release=function(){this.glhook&&this.glhook.release(),this.texturehook&&this.texturehook.release()},t}(),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.show=!0,e}return o(e,t),e.prototype.init=function(t){if(void 0===t&&(t={show:!0}),this.show=t.show,this.style=t.style,this.renderSystem=this.game.getSystem("Renderer"),this.app=this.renderSystem.application,this.app&&this.show){var e=this.app.renderer.gl;this.hook=new c,this.hook.attach(e)}},e.prototype.start=function(){this.show&&(this.component=this.game.scene.addComponent(new s),this.stats=l(this.style),this.component.stats=this.stats,this.stats.showPanel(0),document.body.appendChild(this.stats.dom))},e.prototype.lateUpdate=function(){this.show&&this.stats&&this.stats.end(this.hook)},e.systemName="Stats",e}(e.System),f=p,d={Components:[s],Systems:[f]};return t.Stats=s,t.StatsSystem=f,t.default=d,Object.defineProperty(t,"__esModule",{value:!0}),t}({},EVA);window.EVA.plugin.stats=window.EVA.plugin.stats||_EVA_IIFE_stats;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import EventEmitter from 'eventemitter3';
|
|
2
|
+
import GameObject from './GameObject';
|
|
3
|
+
export interface UpdateParams {
|
|
4
|
+
deltaTime: number;
|
|
5
|
+
frameCount: number;
|
|
6
|
+
time: number;
|
|
7
|
+
currentTime: number;
|
|
8
|
+
fps: number;
|
|
9
|
+
}
|
|
10
|
+
export declare type ComponentType = typeof Component;
|
|
11
|
+
export declare function getComponentName<T extends Component<ComponentParams>>(component: T | ComponentConstructor<T>): string;
|
|
12
|
+
export interface ComponentParams {
|
|
13
|
+
}
|
|
14
|
+
export interface ComponentConstructor<T extends Component<ComponentParams>> {
|
|
15
|
+
componentName: string;
|
|
16
|
+
new (params?: ComponentParams): T;
|
|
17
|
+
}
|
|
18
|
+
declare class Component<T extends ComponentParams = {}> extends EventEmitter {
|
|
19
|
+
static componentName: string;
|
|
20
|
+
readonly name: string;
|
|
21
|
+
started: boolean;
|
|
22
|
+
gameObject: GameObject;
|
|
23
|
+
__componentDefaultParams: T;
|
|
24
|
+
constructor(params?: T);
|
|
25
|
+
init?(params?: T): void;
|
|
26
|
+
awake?(): void;
|
|
27
|
+
start?(): void;
|
|
28
|
+
update?(frame: UpdateParams): void;
|
|
29
|
+
lateUpdate?(frame: UpdateParams): void;
|
|
30
|
+
onResume?(): void;
|
|
31
|
+
onPause?(): void;
|
|
32
|
+
onDestroy?(): void;
|
|
33
|
+
}
|
|
34
|
+
export default Component;
|
|
35
|
+
//# sourceMappingURL=Component.d.ts.map
|
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G,IAAI;IAOtC,QAAQ,CAAC,IAAI,IAAI;IAMjB,OAAO,CAAC,IAAI,IAAI;IAMhB,SAAS,CAAC,IAAI,IAAI;CACnB;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import GameObject from './GameObject';
|
|
2
|
+
import Component from './Component';
|
|
3
|
+
import { PureObserverProp, ObserverType } from './observer';
|
|
4
|
+
export interface ObserverEventParams {
|
|
5
|
+
type: ObserverType;
|
|
6
|
+
component: Component;
|
|
7
|
+
componentName: string;
|
|
8
|
+
prop?: PureObserverProp;
|
|
9
|
+
}
|
|
10
|
+
export interface ObserverEvent extends ObserverEventParams {
|
|
11
|
+
gameObject?: GameObject;
|
|
12
|
+
systemName?: string;
|
|
13
|
+
}
|
|
14
|
+
declare class ComponentObserver {
|
|
15
|
+
private events;
|
|
16
|
+
add({ component, prop, type, componentName }: ObserverEventParams): void;
|
|
17
|
+
getChanged(): ObserverEvent[];
|
|
18
|
+
get changed(): ObserverEvent[];
|
|
19
|
+
clear(): ObserverEvent[];
|
|
20
|
+
}
|
|
21
|
+
export default ComponentObserver;
|
|
22
|
+
//# sourceMappingURL=ComponentObserver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComponentObserver.d.ts","sourceRoot":"","sources":["ComponentObserver.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE5D,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,YAAY,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB;AAED,MAAM,WAAW,aAAc,SAAQ,mBAAmB;IACxD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAQD,cAAM,iBAAiB;IAKrB,OAAO,CAAC,MAAM,CAAuB;IAWrC,GAAG,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE,mBAAmB;IA8BjE,UAAU;IAQV,IAAI,OAAO,oBAEV;IAGD,KAAK;CAKN;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import Scene from '../game/Scene';
|
|
2
|
+
import Transform, { TransformParams } from './Transform';
|
|
3
|
+
import Component, { ComponentConstructor, ComponentParams } from './Component';
|
|
4
|
+
declare class GameObject {
|
|
5
|
+
private _name;
|
|
6
|
+
private _scene;
|
|
7
|
+
private _componentCache;
|
|
8
|
+
id: number;
|
|
9
|
+
components: Component<ComponentParams>[];
|
|
10
|
+
destroyed: boolean;
|
|
11
|
+
constructor(name: string, obj?: TransformParams);
|
|
12
|
+
get transform(): Transform;
|
|
13
|
+
get parent(): GameObject;
|
|
14
|
+
get name(): string;
|
|
15
|
+
set scene(val: Scene);
|
|
16
|
+
get scene(): Scene;
|
|
17
|
+
addChild(gameObject: GameObject): void;
|
|
18
|
+
removeChild(gameObject: GameObject): GameObject;
|
|
19
|
+
addComponent<T extends Component<ComponentParams>>(C: T): T;
|
|
20
|
+
addComponent<T extends Component<ComponentParams>>(C: ComponentConstructor<T>, obj?: ComponentParams): T;
|
|
21
|
+
removeComponent<T extends Component<ComponentParams>>(c: string): T;
|
|
22
|
+
removeComponent<T extends Component<ComponentParams>>(c: T): T;
|
|
23
|
+
removeComponent<T extends Component<ComponentParams>>(c: ComponentConstructor<T>): T;
|
|
24
|
+
private _removeComponent;
|
|
25
|
+
getComponent<T extends Component<ComponentParams>>(c: ComponentConstructor<T>): T;
|
|
26
|
+
getComponent<T extends Component>(c: string): T;
|
|
27
|
+
remove(): GameObject;
|
|
28
|
+
destroy(): void;
|
|
29
|
+
}
|
|
30
|
+
export default GameObject;
|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S,CAAC,eAAe,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC;IAC9D,eAAe,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG,CAAC;IAkBpF,OAAO,CAAC,gBAAgB;IAkBxB,YAAY,CAAC,CAAC,SAAS,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG,CAAC;IACjF,YAAY,CAAC,CAAC,SAAS,SAAS,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC;IAqB/C,MAAM;IAKN,OAAO;CAgBR;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PureObserverInfo } from './observer';
|
|
2
|
+
import { UpdateParams } from './Component';
|
|
3
|
+
import ComponentObserver from './ComponentObserver';
|
|
4
|
+
import Game from '../game/Game';
|
|
5
|
+
export interface SystemConstructor<T extends System = System> {
|
|
6
|
+
systemName: string;
|
|
7
|
+
observerInfo: PureObserverInfo;
|
|
8
|
+
new (params?: any): T;
|
|
9
|
+
}
|
|
10
|
+
declare class System<T extends {} = {}> {
|
|
11
|
+
static systemName: string;
|
|
12
|
+
name: string;
|
|
13
|
+
static observerInfo: PureObserverInfo;
|
|
14
|
+
componentObserver: ComponentObserver;
|
|
15
|
+
game: Game;
|
|
16
|
+
started: boolean;
|
|
17
|
+
__systemDefaultParams: T;
|
|
18
|
+
constructor(params?: T);
|
|
19
|
+
init?(param?: T): void;
|
|
20
|
+
awake?(): void;
|
|
21
|
+
start?(): void;
|
|
22
|
+
update?(e: UpdateParams): void;
|
|
23
|
+
lateUpdate?(e: UpdateParams): void;
|
|
24
|
+
onResume?(): void;
|
|
25
|
+
onPause?(): void;
|
|
26
|
+
onDestroy?(): void;
|
|
27
|
+
destroy(): void;
|
|
28
|
+
}
|
|
29
|
+
export default System;
|
|
30
|
+
//# sourceMappingURL=System.d.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entParams } from './Component';
|
|
3
|
+
interface Vector2 {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
}
|
|
7
|
+
interface Size2 {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
}
|
|
11
|
+
export interface TransformMatrix {
|
|
12
|
+
a: number;
|
|
13
|
+
b: number;
|
|
14
|
+
c: number;
|
|
15
|
+
d: number;
|
|
16
|
+
tx: number;
|
|
17
|
+
ty: number;
|
|
18
|
+
array: Float32Array | null;
|
|
19
|
+
}
|
|
20
|
+
export interface TransformParams extends ComponentParams {
|
|
21
|
+
position?: Vector2;
|
|
22
|
+
size?: Size2;
|
|
23
|
+
origin?: Vector2;
|
|
24
|
+
anchor?: Vector2;
|
|
25
|
+
scale?: Vector2;
|
|
26
|
+
skew?: Vector2;
|
|
27
|
+
rotation?: number;
|
|
28
|
+
}
|
|
29
|
+
declare class Transform extends Component<TransformParams> {
|
|
30
|
+
static componentName: string;
|
|
31
|
+
readonly name: string;
|
|
32
|
+
private _parent;
|
|
33
|
+
inScene: boolean;
|
|
34
|
+
worldTransform: TransformMatrix;
|
|
35
|
+
children: Transform[];
|
|
36
|
+
init(params?: TransformParams): void;
|
|
37
|
+
position: Vector2;
|
|
38
|
+
size: Size2;
|
|
39
|
+
origin: Vector2;
|
|
40
|
+
anchor: Vector2;
|
|
41
|
+
scale: Vector2;
|
|
42
|
+
skew: Vector2;
|
|
43
|
+
rotation: number;
|
|
44
|
+
set parent(val: Transform);
|
|
45
|
+
get parent(): Transform;
|
|
46
|
+
addChild(child: Transform): void;
|
|
47
|
+
removeChild(child: Transform): void;
|
|
48
|
+
clearChildren(): void;
|
|
49
|
+
}
|
|
50
|
+
export default Transform;
|
|
51
|
+
//# sourceMappingURL=Transform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Transform.d.ts","sourceRoot":"","sources":["Transform.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,aAAa,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