fix: correct opacity prop typo and style object in centroid labels (#2767)

This commit is contained in:
LiudengZhang
2026-03-09 15:39:56 -05:00
committed by GitHub
parent 5eb3021752
commit 76a39fcf92

View File

@@ -150,7 +150,7 @@ class CentroidLabels extends PureComponent {
dilatedValue={dilatedValue}
coords={coords}
inverseTransform={inverseTransform}
opactity={selected ? 1 : deselectOpacity}
opacity={selected ? 1 : deselectOpacity}
colorAccessor={colorAccessor}
displayLabel={displayLabel}
onMouseEnter={this.handleMouseEnter}
@@ -205,7 +205,7 @@ const Label = ({
fontWeight,
fill: "black",
userSelect: "none",
opacity: { opacity },
opacity,
}}
onMouseEnter={(e) => onMouseEnter(e, colorAccessor, label)}
onMouseOut={(e) => onMouseOut(e, colorAccessor, label)}