Skip to content

Commit

Permalink
Merge d03bf8b into 9273dc2
Browse files Browse the repository at this point in the history
  • Loading branch information
zBritva committed Jan 11, 2019
2 parents 9273dc2 + d03bf8b commit 9d7c393
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.0.1
* Fix selection issue

## 2.0.0
* The visual converted to use the new tools 3.0

## 1.10.0
* High contrast mode
* API 1.13.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powerbi-visuals-sankey",
"version": "2.0.0",
"version": "2.0.1",
"description": "Sankey is a type of flow diagram in which the width of the series is in proportion to the quantity of the flow. Use it to find major contributions to an overall flow.",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions pbiviz.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"visual": {
"name": "SankeyDiagram",
"displayName": "Sankey 2.0.0",
"displayName": "Sankey 2.0.1",
"guid": "SankeyDiagram1446463184954",
"visualClassName": "SankeyDiagram",
"version": "2.00.0",
"version": "2.0.1",
"description": "Sankey is a type of flow diagram in which the width of the series is in proportion to the quantity of the flow. Use it to find major contributions to an overall flow.",
"supportUrl": "https://community.powerbi.com",
"gitHubUrl": "https://github.com/Microsoft/powerbi-visuals-sankey"
Expand Down
10 changes: 5 additions & 5 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ export function updateFillOpacity(
}

selection.classed(SelectedClassName, (dataPoint: SankeyDiagramLink | SankeyDiagramNode): boolean => {
let isDataPointSelected: boolean = this.isDataPointSelected(dataPoint),
isTheDataPointNode: boolean = this.isTheDataPointNode(dataPoint),
let dataPointSelected: boolean = isDataPointSelected(dataPoint),
theDataPointNode: boolean = isTheDataPointNode(dataPoint),
selected: boolean;

selected = !isTheDataPointNode && hasSelection
? !isDataPointSelected
: isDataPointSelected;
selected = !theDataPointNode && hasSelection
? !dataPointSelected
: dataPointSelected;

return getFillOpacity(
selected,
Expand Down

0 comments on commit 9d7c393

Please sign in to comment.