@vived/app 4.15.1 → 4.16.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.
@@ -17,7 +17,7 @@ class FramedScreenContainerImp extends FramedScreenContainer {
17
17
  super(appObject, FramedScreenContainer.type);
18
18
  this.memoizedPos = new Entities_1.MemoizedVector2(ValueObjects_1.Vector2.Zero(), this.notifyOnChange);
19
19
  this.memoizedSize = new Entities_1.MemoizedVector2(ValueObjects_1.Vector2.Zero(), this.notifyOnChange);
20
- this.memoizedShow = new Entities_1.MemoizedBoolean(true, this.notifyOnChange);
20
+ this.memoizedShow = new Entities_1.MemoizedBoolean(false, this.notifyOnChange);
21
21
  }
22
22
  get id() {
23
23
  return this.appObject.id;
@@ -0,0 +1,3 @@
1
+ import { AppObjectRepo } from "../../../AppObject";
2
+ import { Color } from "../../../ValueObjects";
3
+ export declare function getOnPrimaryColor(appObjects: AppObjectRepo): Color;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getOnPrimaryColor = void 0;
4
+ const ValueObjects_1 = require("../../../ValueObjects");
5
+ const Entities_1 = require("../Entities");
6
+ function getOnPrimaryColor(appObjects) {
7
+ const theme = Entities_1.ThemeColors.get(appObjects);
8
+ if (theme) {
9
+ return theme.getColorForType(Entities_1.ThemeColorType.onPrimary);
10
+ }
11
+ else {
12
+ appObjects.submitError("getOnPrimaryColor", "Unable to find ThemeColors");
13
+ return ValueObjects_1.Color.RGB(0, 0, 0);
14
+ }
15
+ }
16
+ exports.getOnPrimaryColor = getOnPrimaryColor;
@@ -0,0 +1,3 @@
1
+ import { AppObjectRepo } from "../../../AppObject";
2
+ import { Color } from "../../../ValueObjects";
3
+ export declare function getOnSurfaceColor(appObjects: AppObjectRepo): Color;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getOnSurfaceColor = void 0;
4
+ const ValueObjects_1 = require("../../../ValueObjects");
5
+ const Entities_1 = require("../Entities");
6
+ function getOnSurfaceColor(appObjects) {
7
+ const theme = Entities_1.ThemeColors.get(appObjects);
8
+ if (theme) {
9
+ return theme.getColorForType(Entities_1.ThemeColorType.onSurface);
10
+ }
11
+ else {
12
+ appObjects.submitError("getOnSurfaceColor", "Unable to find ThemeColors");
13
+ return ValueObjects_1.Color.RGB(0, 0, 0);
14
+ }
15
+ }
16
+ exports.getOnSurfaceColor = getOnSurfaceColor;
@@ -0,0 +1,3 @@
1
+ import { AppObjectRepo } from "../../../AppObject";
2
+ import { Color } from "../../../ValueObjects";
3
+ export declare function getPrimaryColor(appObjects: AppObjectRepo): Color;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPrimaryColor = void 0;
4
+ const ValueObjects_1 = require("../../../ValueObjects");
5
+ const Entities_1 = require("../Entities");
6
+ function getPrimaryColor(appObjects) {
7
+ const theme = Entities_1.ThemeColors.get(appObjects);
8
+ if (theme) {
9
+ return theme.getColorForType(Entities_1.ThemeColorType.primary);
10
+ }
11
+ else {
12
+ appObjects.submitError("getPrimaryColor", "Unable to find ThemeColors");
13
+ return ValueObjects_1.Color.RGB(0, 0, 0);
14
+ }
15
+ }
16
+ exports.getPrimaryColor = getPrimaryColor;
@@ -0,0 +1,3 @@
1
+ import { AppObjectRepo } from "../../../AppObject";
2
+ import { Color } from "../../../ValueObjects";
3
+ export declare function getSurfaceColor(appObjects: AppObjectRepo): Color;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSurfaceColor = void 0;
4
+ const ValueObjects_1 = require("../../../ValueObjects");
5
+ const Entities_1 = require("../Entities");
6
+ function getSurfaceColor(appObjects) {
7
+ const theme = Entities_1.ThemeColors.get(appObjects);
8
+ if (theme) {
9
+ return theme.getColorForType(Entities_1.ThemeColorType.surface);
10
+ }
11
+ else {
12
+ appObjects.submitError("getSurfaceColor", "Unable to find ThemeColors");
13
+ return ValueObjects_1.Color.RGB(0, 0, 0);
14
+ }
15
+ }
16
+ exports.getSurfaceColor = getSurfaceColor;
@@ -0,0 +1,3 @@
1
+ import { AppObjectRepo } from "../../../AppObject";
2
+ import { Color } from "../../../ValueObjects";
3
+ export declare function getSurfaceContainerColor(appObjects: AppObjectRepo): Color;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSurfaceContainerColor = void 0;
4
+ const ValueObjects_1 = require("../../../ValueObjects");
5
+ const Entities_1 = require("../Entities");
6
+ function getSurfaceContainerColor(appObjects) {
7
+ const theme = Entities_1.ThemeColors.get(appObjects);
8
+ if (theme) {
9
+ return theme.getColorForType(Entities_1.ThemeColorType.surfaceContainer);
10
+ }
11
+ else {
12
+ appObjects.submitError("getSurfaceColor", "Unable to find ThemeColors");
13
+ return ValueObjects_1.Color.RGB(0, 0, 0);
14
+ }
15
+ }
16
+ exports.getSurfaceContainerColor = getSurfaceContainerColor;
@@ -0,0 +1,5 @@
1
+ export * from "./getOnPrimaryColor";
2
+ export * from "./getOnSurfaceColor";
3
+ export * from "./getPrimaryColor";
4
+ export * from "./getSurfaceColor";
5
+ export * from "./getSurfaceContainerColor";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./getOnPrimaryColor"), exports);
14
+ __exportStar(require("./getOnSurfaceColor"), exports);
15
+ __exportStar(require("./getPrimaryColor"), exports);
16
+ __exportStar(require("./getSurfaceColor"), exports);
17
+ __exportStar(require("./getSurfaceContainerColor"), exports);
@@ -1,2 +1,3 @@
1
+ export * from "./Controllers";
1
2
  export * from "./Entities";
2
3
  export * from "./PM";
@@ -10,5 +10,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./Controllers"), exports);
13
14
  __exportStar(require("./Entities"), exports);
14
15
  __exportStar(require("./PM"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vived/app",
3
- "version": "4.15.1",
3
+ "version": "4.16.0",
4
4
  "description": "Public package for the VIVED Learning App system",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",