@quenty/bodycolorsutils 7.10.1-canary.513.484c203.0 → 7.11.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,12 +3,9 @@
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
- ## [7.10.1-canary.513.484c203.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/bodycolorsutils@7.10.0...@quenty/bodycolorsutils@7.10.1-canary.513.484c203.0) (2024-10-24)
6
+ # [7.11.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/bodycolorsutils@7.10.0...@quenty/bodycolorsutils@7.11.0) (2024-11-03)
7
7
 
8
-
9
- ### Bug Fixes
10
-
11
- * BodyColor observation is done correctly ([3c89fa6](https://github.com/Quenty/NevermoreEngine/commit/3c89fa60d9b0173a8e8c7928f98e8bb1b65a8a06))
8
+ **Note:** Version bump only for package @quenty/bodycolorsutils
12
9
 
13
10
 
14
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/bodycolorsutils",
3
- "version": "7.10.1-canary.513.484c203.0",
3
+ "version": "7.11.0",
4
4
  "description": "Body color helper utilities for merging and representing body colors over the network and datastore",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,15 +25,15 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/attributeutils": "14.10.1-canary.513.484c203.0",
29
- "@quenty/color3serializationutils": "2.2.0",
30
- "@quenty/color3utils": "11.10.1-canary.513.484c203.0",
31
- "@quenty/loader": "10.7.0",
32
- "@quenty/rx": "13.10.1-canary.513.484c203.0",
33
- "@quenty/table": "3.6.0"
28
+ "@quenty/attributeutils": "^14.11.0",
29
+ "@quenty/color3serializationutils": "^2.2.0",
30
+ "@quenty/color3utils": "^11.11.0",
31
+ "@quenty/loader": "^10.7.0",
32
+ "@quenty/rx": "^13.11.0",
33
+ "@quenty/table": "^3.6.0"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "484c2031829caf7e983cae58a6aa6f0ceef1d059"
38
+ "gitHead": "a7e6d8dffd16e9b516e352050571009f57fe6c67"
39
39
  }
@@ -57,7 +57,7 @@ end
57
57
  @param color3 Color3
58
58
  @return BodyColorsData
59
59
  ]=]
60
- function BodyColorsDataUtils.fromUniformColor(color3)
60
+ function BodyColorsDataUtils.fromSingleColor(color3)
61
61
  assert(typeof(color3) == "Color3", "Bad color3")
62
62
 
63
63
  return BodyColorsDataUtils.createBodyColorsData({
@@ -160,7 +160,7 @@ end
160
160
  @param bodyColorsData BodyColorsData
161
161
  @return boolean
162
162
  ]=]
163
- function BodyColorsDataUtils.isUniformColor(bodyColorsData)
163
+ function BodyColorsDataUtils.isSingleColor(bodyColorsData)
164
164
  assert(BodyColorsDataUtils.isBodyColorsData(bodyColorsData), "Bad bodyColorsData")
165
165
 
166
166
  local headColor = bodyColorsData.headColor
@@ -191,14 +191,6 @@ function BodyColorsDataUtils.isUniformColor(bodyColorsData)
191
191
  return true
192
192
  end
193
193
 
194
- function BodyColorsDataUtils.getUniformColor(bodyColorsData)
195
- if BodyColorsDataUtils.isUniformColor(bodyColorsData) then
196
- return bodyColorsData.headColor
197
- end
198
-
199
- return nil
200
- end
201
-
202
194
  --[=[
203
195
  Constructs a BodyColors from the bodyColorsData
204
196
 
@@ -28,9 +28,9 @@ function RxBodyColorsDataUtils.observeFromAttributes(instance)
28
28
 
29
29
  return Rx.combineLatest(observables):Pipe({
30
30
  Rx.map(function(latestValues)
31
- local bodyColorsData = {}
32
-
33
31
  for key, attributeName in pairs(BodyColorsDataConstants.ATTRIBUTE_MAPPING) do
32
+ local bodyColorsData = {}
33
+
34
34
  local value = latestValues[key]
35
35
  if typeof(value) == "Color3" then
36
36
  bodyColorsData[key] = value
@@ -39,9 +39,9 @@ function RxBodyColorsDataUtils.observeFromAttributes(instance)
39
39
  attributeName,
40
40
  typeof(value)))
41
41
  end
42
- end
43
42
 
44
- return BodyColorsDataUtils.createBodyColorsData(bodyColorsData)
43
+ return BodyColorsDataUtils.createBodyColorsData(bodyColorsData)
44
+ end
45
45
  end);
46
46
  })
47
47
  end