@quenty/colorpalette 10.6.3-canary.499.60b3012.0 → 10.7.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,7 +3,7 @@
|
|
|
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
|
-
|
|
6
|
+
# [10.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/colorpalette@10.6.2...@quenty/colorpalette@10.7.0) (2024-09-25)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @quenty/colorpalette
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/colorpalette",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.7.0",
|
|
4
4
|
"description": "Color palette system for Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@quenty/baseobject": "10.
|
|
32
|
-
"@quenty/blend": "12.
|
|
33
|
-
"@quenty/color3utils": "11.
|
|
34
|
-
"@quenty/colorpicker": "10.
|
|
35
|
-
"@quenty/loader": "10.
|
|
36
|
-
"@quenty/maid": "3.3.0",
|
|
37
|
-
"@quenty/math": "2.7.0",
|
|
38
|
-
"@quenty/rx": "13.
|
|
39
|
-
"@quenty/signal": "7.
|
|
40
|
-
"@quenty/table": "3.5.0",
|
|
41
|
-
"@quenty/valueobject": "13.
|
|
31
|
+
"@quenty/baseobject": "^10.5.0",
|
|
32
|
+
"@quenty/blend": "^12.6.0",
|
|
33
|
+
"@quenty/color3utils": "^11.6.0",
|
|
34
|
+
"@quenty/colorpicker": "^10.7.0",
|
|
35
|
+
"@quenty/loader": "^10.5.0",
|
|
36
|
+
"@quenty/maid": "^3.3.0",
|
|
37
|
+
"@quenty/math": "^2.7.0",
|
|
38
|
+
"@quenty/rx": "^13.6.0",
|
|
39
|
+
"@quenty/signal": "^7.5.0",
|
|
40
|
+
"@quenty/table": "^3.5.0",
|
|
41
|
+
"@quenty/valueobject": "^13.6.0"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "41715b15e2b48b2d22ff4f5277a8d4b7a0d32ef3"
|
|
44
44
|
}
|
|
@@ -132,7 +132,7 @@ end
|
|
|
132
132
|
function ColorPalette:GetColorSwatch(colorName)
|
|
133
133
|
local swatch = self._swatches[colorName]
|
|
134
134
|
if not swatch then
|
|
135
|
-
error(("No swatch with name %q"
|
|
135
|
+
error(string.format("No swatch with name %q", colorName))
|
|
136
136
|
end
|
|
137
137
|
|
|
138
138
|
return swatch
|
|
@@ -229,7 +229,7 @@ function ColorPalette:GetColorValue(colorName)
|
|
|
229
229
|
|
|
230
230
|
local colorValue = self._colorValues[colorName]
|
|
231
231
|
if not colorValue then
|
|
232
|
-
error(("No color with name %q"
|
|
232
|
+
error(string.format("No color with name %q", colorName))
|
|
233
233
|
end
|
|
234
234
|
|
|
235
235
|
return colorValue
|
|
@@ -238,7 +238,7 @@ end
|
|
|
238
238
|
function ColorPalette:GetGradeValue(gradeName)
|
|
239
239
|
local gradeValue = self._colorGradeValues[gradeName]
|
|
240
240
|
if not gradeValue then
|
|
241
|
-
error(("No grade with name %q"
|
|
241
|
+
error(string.format("No grade with name %q", gradeName))
|
|
242
242
|
end
|
|
243
243
|
|
|
244
244
|
return gradeValue
|
|
@@ -247,7 +247,7 @@ end
|
|
|
247
247
|
function ColorPalette:GetVividnessValue(gradeName)
|
|
248
248
|
local vividnessValue = self._vividnessValues[gradeName]
|
|
249
249
|
if not vividnessValue then
|
|
250
|
-
error(("No grade with name %q"
|
|
250
|
+
error(string.format("No grade with name %q", gradeName))
|
|
251
251
|
end
|
|
252
252
|
|
|
253
253
|
return vividnessValue
|
|
@@ -275,7 +275,7 @@ function ColorPalette:GetSwatch(swatchName)
|
|
|
275
275
|
|
|
276
276
|
local swatch = self._swatches[swatchName]
|
|
277
277
|
if not swatch then
|
|
278
|
-
error(("No swatch with name %q"
|
|
278
|
+
error(string.format("No swatch with name %q", swatchName))
|
|
279
279
|
end
|
|
280
280
|
|
|
281
281
|
return swatch
|
|
@@ -285,7 +285,7 @@ function ColorPalette:SetColor(colorName, color)
|
|
|
285
285
|
assert(type(colorName) == "string", "Bad colorName")
|
|
286
286
|
|
|
287
287
|
if not self._colorValues[colorName] then
|
|
288
|
-
error(("No color grade with name %q"
|
|
288
|
+
error(string.format("No color grade with name %q", colorName))
|
|
289
289
|
end
|
|
290
290
|
|
|
291
291
|
self._colorMaid[colorName] = self._colorValues[colorName]:Mount(color)
|
|
@@ -295,7 +295,7 @@ function ColorPalette:SetVividness(gradeName, vividness)
|
|
|
295
295
|
assert(type(gradeName) == "string", "Bad colorName")
|
|
296
296
|
|
|
297
297
|
if not self._vividnessValues[gradeName] then
|
|
298
|
-
error(("No vividness with name %q"
|
|
298
|
+
error(string.format("No vividness with name %q", gradeName))
|
|
299
299
|
end
|
|
300
300
|
|
|
301
301
|
self._vividMaid[gradeName] = self._vividnessValues[gradeName]:Mount(vividness)
|
|
@@ -306,7 +306,7 @@ function ColorPalette:SetColorGrade(gradeName, grade)
|
|
|
306
306
|
assert(grade, "Bad grade")
|
|
307
307
|
|
|
308
308
|
if not self._colorGradeValues[gradeName] then
|
|
309
|
-
error(("No color grade with name %q"
|
|
309
|
+
error(string.format("No color grade with name %q", gradeName))
|
|
310
310
|
end
|
|
311
311
|
|
|
312
312
|
self._gradeMaid[gradeName] = self._colorGradeValues[gradeName]:Mount(grade)
|
|
@@ -323,7 +323,7 @@ function ColorPalette:DefineColorGrade(gradeName, gradeValue, vividnessValue)
|
|
|
323
323
|
assert(type(gradeName) == "string", "Bad gradeName")
|
|
324
324
|
|
|
325
325
|
if self._colorGradeValues[gradeName] then
|
|
326
|
-
warn(("[ColorPalette.DefineColorGrade] - Already defined grade of name %q"
|
|
326
|
+
warn(string.format("[ColorPalette.DefineColorGrade] - Already defined grade of name %q", gradeName))
|
|
327
327
|
return
|
|
328
328
|
end
|
|
329
329
|
|
|
@@ -350,7 +350,7 @@ function ColorPalette:DefineColorSwatch(colorName, value)
|
|
|
350
350
|
assert(type(colorName) == "string", "Bad colorName")
|
|
351
351
|
|
|
352
352
|
if self._swatches[colorName] then
|
|
353
|
-
warn(("[ColorPalette.DefineColorGrade] -Already defined color of name %q"
|
|
353
|
+
warn(string.format("[ColorPalette.DefineColorGrade] -Already defined color of name %q", colorName))
|
|
354
354
|
return
|
|
355
355
|
end
|
|
356
356
|
|
|
@@ -165,7 +165,7 @@ function FontPalette:DefineFont(fontName, defaultFont)
|
|
|
165
165
|
assert(typeof(defaultFont) == "EnumItem" or typeof(defaultFont) == "Font", "Bad defaultFont")
|
|
166
166
|
|
|
167
167
|
if self._fonts[fontName] then
|
|
168
|
-
warn(("Already defined defaultFont of name %q"
|
|
168
|
+
warn(string.format("Already defined defaultFont of name %q", fontName))
|
|
169
169
|
return
|
|
170
170
|
end
|
|
171
171
|
|
|
@@ -46,7 +46,7 @@ function ColorGradePalette:GetGrade(gradeName)
|
|
|
46
46
|
|
|
47
47
|
local observable = self._grades[gradeName]
|
|
48
48
|
if not observable then
|
|
49
|
-
error(("No grade for gradeName %q defined"
|
|
49
|
+
error(string.format("No grade for gradeName %q defined", gradeName))
|
|
50
50
|
return
|
|
51
51
|
end
|
|
52
52
|
|
|
@@ -57,7 +57,7 @@ function ColorGradePalette:GetGrade(gradeName)
|
|
|
57
57
|
|
|
58
58
|
local ok, grade = promise:Yield()
|
|
59
59
|
if not ok then
|
|
60
|
-
error(("Failed to retrieve grade %q due to %s"
|
|
60
|
+
error(string.format("Failed to retrieve grade %q due to %s", gradeName, tostring(grade)))
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
assert(type(grade) == "number", "Bad grade retrieved")
|
|
@@ -69,7 +69,7 @@ function ColorGradePalette:GetVividness(gradeName)
|
|
|
69
69
|
|
|
70
70
|
local observable = self._vividness[gradeName]
|
|
71
71
|
if not observable then
|
|
72
|
-
error(("No vividness for gradeName %q defined"
|
|
72
|
+
error(string.format("No vividness for gradeName %q defined", gradeName))
|
|
73
73
|
return
|
|
74
74
|
end
|
|
75
75
|
|
|
@@ -80,7 +80,7 @@ function ColorGradePalette:GetVividness(gradeName)
|
|
|
80
80
|
|
|
81
81
|
local ok, vividness = promise:Yield()
|
|
82
82
|
if not ok then
|
|
83
|
-
error(("Failed to retrieve vividness %q due to %s"
|
|
83
|
+
error(string.format("Failed to retrieve vividness %q due to %s", gradeName, tostring(vividness)))
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
assert(type(vividness) == "number", "Bad vividness retrieved")
|
|
@@ -98,7 +98,7 @@ function ColorGradePalette:ObserveGrade(gradeName)
|
|
|
98
98
|
assert(type(gradeName) == "string", "Bad gradeName")
|
|
99
99
|
|
|
100
100
|
if not self._grades[gradeName] then
|
|
101
|
-
error(("No grade for gradeName %q defined"
|
|
101
|
+
error(string.format("No grade for gradeName %q defined", gradeName))
|
|
102
102
|
return
|
|
103
103
|
end
|
|
104
104
|
|
|
@@ -196,7 +196,7 @@ function ColorGradePalette:_observeGradeFromName(gradeName)
|
|
|
196
196
|
})
|
|
197
197
|
end
|
|
198
198
|
|
|
199
|
-
error(("No grade for gradeName %q"
|
|
199
|
+
error(string.format("No grade for gradeName %q", tostring(gradeName)))
|
|
200
200
|
end
|
|
201
201
|
|
|
202
202
|
function ColorGradePalette:ObserveDefaultSurfaceGrade()
|