Skip to content

Commit 37c434f

Browse files
committed
chore: update material-color-utils
1 parent 9c9e737 commit 37c434f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/core/shared/material-color-utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ class TemperatureCache {
636636
get hctsByTemp() {
637637
if (this.hctsByTempCache.length > 0) return this.hctsByTempCache;
638638
const hcts = this.hctsByHue.concat([ this.input ]), temperaturesByHct = this.tempsByHct;
639-
return hcts.sort(((a, b) => temperaturesByHct.get(a) - temperaturesByHct.get(b))),
639+
return hcts.sort((a, b) => temperaturesByHct.get(a) - temperaturesByHct.get(b)),
640640
this.hctsByTempCache = hcts, hcts;
641641
}
642642
get warmest() {
@@ -1444,7 +1444,7 @@ class ColorSpecDelegateImpl2025 extends ColorSpecDelegateImpl2021 {
14441444
const color2025 = DynamicColor.fromPalette({
14451445
name: "on_surface",
14461446
palette: s => s.neutralPalette,
1447-
tone: s => s.variant === Variant.VIBRANT ? tMaxC(s.neutralPalette, 0, 100, 1.1) : DynamicColor.getInitialToneFromBackground((s => "phone" === s.platform ? this.highestSurface(s) : this.surfaceContainerHigh()))(s),
1447+
tone: s => s.variant === Variant.VIBRANT ? tMaxC(s.neutralPalette, 0, 100, 1.1) : DynamicColor.getInitialToneFromBackground(s => "phone" === s.platform ? this.highestSurface(s) : this.surfaceContainerHigh())(s),
14481448
chromaMultiplier: s => {
14491449
if ("phone" === s.platform) {
14501450
if (s.variant === Variant.NEUTRAL) return 2.2;
@@ -1912,7 +1912,7 @@ class ColorSpecDelegateImpl2025 extends ColorSpecDelegateImpl2021 {
19121912

19131913
class MaterialDynamicColors {
19141914
constructor() {
1915-
this.allColors = [ this.background(), this.onBackground(), this.surface(), this.surfaceDim(), this.surfaceBright(), this.surfaceContainerLowest(), this.surfaceContainerLow(), this.surfaceContainer(), this.surfaceContainerHigh(), this.surfaceContainerHighest(), this.onSurface(), this.onSurfaceVariant(), this.outline(), this.outlineVariant(), this.inverseSurface(), this.inverseOnSurface(), this.primary(), this.primaryDim(), this.onPrimary(), this.primaryContainer(), this.onPrimaryContainer(), this.primaryFixed(), this.primaryFixedDim(), this.onPrimaryFixed(), this.onPrimaryFixedVariant(), this.inversePrimary(), this.secondary(), this.secondaryDim(), this.onSecondary(), this.secondaryContainer(), this.onSecondaryContainer(), this.secondaryFixed(), this.secondaryFixedDim(), this.onSecondaryFixed(), this.onSecondaryFixedVariant(), this.tertiary(), this.tertiaryDim(), this.onTertiary(), this.tertiaryContainer(), this.onTertiaryContainer(), this.tertiaryFixed(), this.tertiaryFixedDim(), this.onTertiaryFixed(), this.onTertiaryFixedVariant(), this.error(), this.errorDim(), this.onError(), this.errorContainer(), this.onErrorContainer() ].filter((c => void 0 !== c));
1915+
this.allColors = [ this.background(), this.onBackground(), this.surface(), this.surfaceDim(), this.surfaceBright(), this.surfaceContainerLowest(), this.surfaceContainerLow(), this.surfaceContainer(), this.surfaceContainerHigh(), this.surfaceContainerHighest(), this.onSurface(), this.onSurfaceVariant(), this.outline(), this.outlineVariant(), this.inverseSurface(), this.inverseOnSurface(), this.primary(), this.primaryDim(), this.onPrimary(), this.primaryContainer(), this.onPrimaryContainer(), this.primaryFixed(), this.primaryFixedDim(), this.onPrimaryFixed(), this.onPrimaryFixedVariant(), this.inversePrimary(), this.secondary(), this.secondaryDim(), this.onSecondary(), this.secondaryContainer(), this.onSecondaryContainer(), this.secondaryFixed(), this.secondaryFixedDim(), this.onSecondaryFixed(), this.onSecondaryFixedVariant(), this.tertiary(), this.tertiaryDim(), this.onTertiary(), this.tertiaryContainer(), this.onTertiaryContainer(), this.tertiaryFixed(), this.tertiaryFixedDim(), this.onTertiaryFixed(), this.onTertiaryFixedVariant(), this.error(), this.errorDim(), this.onError(), this.errorContainer(), this.onErrorContainer() ].filter(c => void 0 !== c);
19161916
}
19171917
highestSurface(s) {
19181918
return MaterialDynamicColors.colorSpec.highestSurface(s);

0 commit comments

Comments
 (0)