@quenty/colorpalette 10.17.0 → 10.18.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [10.18.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/colorpalette@10.17.0...@quenty/colorpalette@10.18.0) (2024-12-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * Allow observation of grades from palette ([d30ecab](https://github.com/Quenty/NevermoreEngine/commit/d30ecab8ec6d5710a002f677293a8a9f7562065d))
12
+
13
+
14
+
15
+
16
+
6
17
  # [10.17.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/colorpalette@10.16.0...@quenty/colorpalette@10.17.0) (2024-12-03)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/colorpalette
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/colorpalette",
3
- "version": "10.17.0",
3
+ "version": "10.18.0",
4
4
  "description": "Color palette system for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -29,17 +29,17 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@quenty/baseobject": "^10.7.1",
32
- "@quenty/blend": "^12.14.0",
33
- "@quenty/color3utils": "^11.14.0",
34
- "@quenty/colorpicker": "^10.15.0",
32
+ "@quenty/blend": "^12.15.0",
33
+ "@quenty/color3utils": "^11.15.0",
34
+ "@quenty/colorpicker": "^10.16.0",
35
35
  "@quenty/loader": "^10.7.1",
36
36
  "@quenty/maid": "^3.4.0",
37
37
  "@quenty/math": "^2.7.0",
38
- "@quenty/observablecollection": "^12.16.0",
39
- "@quenty/rx": "^13.14.0",
38
+ "@quenty/observablecollection": "^12.17.0",
39
+ "@quenty/rx": "^13.15.0",
40
40
  "@quenty/signal": "^7.9.0",
41
41
  "@quenty/table": "^3.7.0",
42
- "@quenty/valueobject": "^13.14.0"
42
+ "@quenty/valueobject": "^13.15.0"
43
43
  },
44
- "gitHead": "bc1bdf404d38ffcdcc8aa97df305a8ec5a40b990"
44
+ "gitHead": "0a20ace4dc7d38f8c889bf73b716b33e8a767c54"
45
45
  }
@@ -270,14 +270,10 @@ function ColorPalette:ObserveModifiedGrade(gradeName, amount, multiplier)
270
270
  end
271
271
 
272
272
  function ColorPalette:ObserveGrade(name)
273
- assert(type(name) == "string", "Bad name")
274
-
275
273
  return self._gradePalette:ObserveGrade(name)
276
274
  end
277
275
 
278
276
  function ColorPalette:ObserveVividness(name)
279
- assert(type(name) == "string", "Bad name")
280
-
281
277
  return self._gradePalette:ObserveVividness(name)
282
278
  end
283
279
 
@@ -95,14 +95,7 @@ function ColorGradePalette:Add(gradeName, colorGrade, vividness)
95
95
  end
96
96
 
97
97
  function ColorGradePalette:ObserveGrade(gradeName)
98
- assert(type(gradeName) == "string", "Bad gradeName")
99
-
100
- if not self._grades[gradeName] then
101
- error(string.format("No grade for gradeName %q defined", gradeName))
102
- return
103
- end
104
-
105
- return self._grades[gradeName], self._vividness[gradeName]
98
+ return self:_observeGradeFromName(gradeName)
106
99
  end
107
100
 
108
101
  function ColorGradePalette:ObserveVividness(gradeName)