@vived/app 2.21.2 → 2.21.3

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.
@@ -76,11 +76,13 @@ class Color {
76
76
  * @returns True if Color A === Color B
77
77
  */
78
78
  static Equal(a, b) {
79
- if (a.a !== b.a)
80
- return false;
81
- if (a.b !== b.a)
82
- return false;
83
- return true;
79
+ let areEqual = true;
80
+ for (let index = 0; index < 4; index++) {
81
+ if (a.array[index] !== b.array[index]) {
82
+ areEqual = false;
83
+ }
84
+ }
85
+ return areEqual;
84
86
  }
85
87
  /**
86
88
  * Return the r value as a percent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vived/app",
3
- "version": "2.21.2",
3
+ "version": "2.21.3",
4
4
  "description": "Public package for the VIVED Learning App system",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",