Skip to content

Commit

Permalink
fix(point): opacityAttribute default to colorAttribute (#4981)
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini authored May 10, 2023
1 parent 01e071e commit 5703414
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/shape/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export function getConnectStyle(
}

export function toOpacityKey(options) {
const { opacityAttribute = 'fill' } = options;
const { colorAttribute, opacityAttribute = colorAttribute } = options;
return `${opacityAttribute}Opacity`;
}

Expand Down

0 comments on commit 5703414

Please sign in to comment.