Skip to content

Commit

Permalink
Release 8.1.3 (#207)
Browse files Browse the repository at this point in the history
## What's changed

* fix: fixed bug when textfont has no color
(#205)
  • Loading branch information
puehringer authored Feb 29, 2024
2 parents 1d760a9 + ea1c999 commit dab8051
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "visyn_core",
"description": "Core repository for datavisyn applications.",
"version": "8.1.2",
"version": "8.1.3",
"author": {
"name": "datavisyn GmbH",
"email": "[email protected]",
Expand Down
21 changes: 12 additions & 9 deletions src/vis/scatter/ScatterVis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,18 @@ export function ScatterVis({

p.data.selectedpoints = temp;

if (selectedList.length === 0 && config.showLabels === ELabelingOptions.SELECTED) {
// @ts-ignore
p.data.selected.textfont.color = `rgba(102, 102, 102, 0)`;
} else if (selectedList.length === 0 && config.showLabels === ELabelingOptions.ALWAYS) {
// @ts-ignore
p.data.selected.textfont.color = `rgba(102, 102, 102, ${config.alphaSliderVal})`;
} else {
// @ts-ignore
p.data.selected.textfont.color = `rgba(102, 102, 102, 1)`;
// @ts-ignore
if (p.data?.selectedpoints?.textfont) {
if (selectedList.length === 0 && config.showLabels === ELabelingOptions.SELECTED) {
// @ts-ignore
p.data.selected.textfont.color = `rgba(102, 102, 102, 0)`;
} else if (selectedList.length === 0 && config.showLabels === ELabelingOptions.ALWAYS) {
// @ts-ignore
p.data.selected.textfont.color = `rgba(102, 102, 102, ${config.alphaSliderVal})`;
} else {
// @ts-ignore
p.data.selected.textfont.color = `rgba(102, 102, 102, 1)`;
}
}

if (selectedList.length === 0 && config.color) {
Expand Down

0 comments on commit dab8051

Please sign in to comment.