@flashist/appframework 0.0.37 → 0.0.39

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.
@@ -1,4 +1,5 @@
1
1
  import { BaseAppModule } from "../base/modules/BaseAppModule";
2
2
  export declare class DebugModule extends BaseAppModule {
3
+ init(): void;
3
4
  activateCompleteHook(): void;
4
5
  }
@@ -14,21 +14,24 @@ var __extends = (this && this.__extends) || (function () {
14
14
  };
15
15
  })();
16
16
  import { ConsoleCustomLoggerItem, Logger } from "@flashist/fcore";
17
- import { FApp } from "@flashist/flibs";
17
+ import { FApp, getInstance, serviceLocatorAdd } from "@flashist/flibs";
18
18
  import { FC } from "@flashist/fconsole";
19
19
  import { BaseAppModule } from "../base/modules/BaseAppModule";
20
+ import { DefaultDebugModuleConfigVO } from "./data/DefaultDebugModuleConfigVO";
20
21
  var DebugModule = /** @class */ (function (_super) {
21
22
  __extends(DebugModule, _super);
22
23
  function DebugModule() {
23
24
  return _super !== null && _super.apply(this, arguments) || this;
24
25
  }
26
+ DebugModule.prototype.init = function () {
27
+ _super.prototype.init.call(this);
28
+ // Modules
29
+ serviceLocatorAdd(DefaultDebugModuleConfigVO, { isSingleton: true });
30
+ };
25
31
  DebugModule.prototype.activateCompleteHook = function () {
26
32
  _super.prototype.activateCompleteHook.call(this);
27
- FC.startInit(FApp.instance.stage, {
28
- console: {
29
- defaultVisible: true
30
- }
31
- });
33
+ var fConsoleConfig = getInstance(DefaultDebugModuleConfigVO);
34
+ FC.startInit(FApp.instance.stage, fConsoleConfig.fconsoleConfig);
32
35
  Logger.addLoggerItem(new ConsoleCustomLoggerItem());
33
36
  };
34
37
  return DebugModule;
@@ -1 +1 @@
1
- {"version":3,"file":"DebugModule.js","sourceRoot":"","sources":["../../src/debug/DebugModule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAC,uBAAuB,EAAE,MAAM,EAAC,MAAM,iBAAiB,CAAC;AAChE,OAAO,EA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AQ,CAAC,KAAK,EACnB,cAAc,CAAC,cAAc,CAChC,CAAC;QAEF,MAAM,CAAC,aAAa,CAAC,IAAI,uBAAuB,EAAE,CAAC,CAAC;IACxD,CAAC;IACL,kBAAC;AAAD,CAAC,AApBD,CAAiC,aAAa,GAoB7C"}
@@ -0,0 +1,5 @@
1
+ import { IFConsoleConfigVO } from "@flashist/fconsole/console/config/IFConsoleConfigVO";
2
+ import { IDebugModuleConfigVO } from "./IDebugModuleConfigVO";
3
+ export declare class DefaultDebugModuleConfigVO implements IDebugModuleConfigVO {
4
+ fconsoleConfig: Partial<IFConsoleConfigVO>;
5
+ }
@@ -0,0 +1,12 @@
1
+ var DefaultDebugModuleConfigVO = /** @class */ (function () {
2
+ function DefaultDebugModuleConfigVO() {
3
+ this.fconsoleConfig = {
4
+ console: {
5
+ defaultVisible: true
6
+ }
7
+ };
8
+ }
9
+ return DefaultDebugModuleConfigVO;
10
+ }());
11
+ export { DefaultDebugModuleConfigVO };
12
+ //# sourceMappingURL=DefaultDebugModuleConfigVO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultDebugModuleConfigVO.js","sourceRoot":"","sources":["../../../src/debug/data/DefaultDebugModuleConfigVO.ts"],"names":[],"mappings":"AAGA;IAAA;QACI,mBAAc,GAA+B;YACzC,OAAO,EAAE;gBACL,cAAc,EAAE,IAAI;aACvB;SACG,CAAC;IACb,CAAC;IAAD,iCAAC;AAAD,CAAC,AAND,IAMC"}
@@ -0,0 +1,4 @@
1
+ import { IFConsoleConfigVO } from "@flashist/fconsole/console/config/IFConsoleConfigVO";
2
+ export interface IDebugModuleConfigVO {
3
+ fconsoleConfig: Partial<IFConsoleConfigVO>;
4
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDebugModuleConfigVO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDebugModuleConfigVO.js","sourceRoot":"","sources":["../../../src/debug/data/IDebugModuleConfigVO.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashist/appframework",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
4
4
  "scripts": {
5
5
  "build": "gulp",
6
6
  "publish:patch": "npm version patch && npm run build && cd ./dist && npm publish",
@@ -16,7 +16,7 @@
16
16
  "main": "index.js",
17
17
  "typings": "index.d.ts",
18
18
  "dependencies": {
19
- "@flashist/fconsole": "0.x",
19
+ "@flashist/fconsole": "0.0.13",
20
20
  "@flashist/flibs": "0.x"
21
21
  },
22
22
  "devDependencies": {
@@ -7,4 +7,5 @@ export declare class TimeModel extends BaseAppGenericObjectsModel {
7
7
  protected construction(...args: any[]): void;
8
8
  changeTimeData(currentTime: number, lastRenderDeltaTime: number): void;
9
9
  get timeDelta(): number;
10
+ get timeDeltaPerSec(): number;
10
11
  }
@@ -46,6 +46,13 @@ var TimeModel = /** @class */ (function (_super) {
46
46
  enumerable: false,
47
47
  configurable: true
48
48
  });
49
+ Object.defineProperty(TimeModel.prototype, "timeDeltaPerSec", {
50
+ get: function () {
51
+ return this.timeDelta / 1000;
52
+ },
53
+ enumerable: false,
54
+ configurable: true
55
+ });
49
56
  return TimeModel;
50
57
  }(BaseAppGenericObjectsModel));
51
58
  export { TimeModel };
@@ -1 +1 @@
1
- {"version":3,"file":"TimeModel.js","sourceRoot":"","sources":["../../../src/time/models/TimeModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAC,0BAA0B,EAAC,MAAM,8CAA8C,CAAC;AACxF,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEhD;IAA+B,6BAA0B;IAAzD;QAAA,qEAyBC;QAvBU,eAAS,GAAW,CAAC,CAAC;QACtB,cAAQ,GAAW,CAAC,CAAC;QACrB,iBAAW,GAAW,CAAC,CAAC;QACxB,yBAAmB,GAAW,CAAC,CAAC;;IAoB3C,CAAC;IAlBa,gCAAY,GAAtB;QAAuB,cAAO;aAAP,UAAO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