Skip to content

Commit

Permalink
Release 8.1.1 (#194)
Browse files Browse the repository at this point in the history
## What's Changed
* fix: vertical position of datavisyn logo in visyn header by
@dvdanielamoitzi in #193
* fix(vis): transparent scatterplot labels by @dv-raghad-jamalaldeen in
#192


**Full Changelog**:
v8.1.0...v8.1.1
  • Loading branch information
thinkh authored Feb 22, 2024
2 parents 3d1ce3b + d0aa993 commit f26cff0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 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.0",
"version": "8.1.1",
"author": {
"name": "datavisyn GmbH",
"email": "[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions src/app/header/DatavisynLogo.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import * as React from 'react';
import { Anchor, rem } from '@mantine/core';
import { Anchor } from '@mantine/core';
import datavisynLogoWhite from '../../assets/datavisyn_white.svg';
import datavisynLogoBlack from '../../assets/datavisyn_black.svg';
import datavisynLogoColor from '../../assets/datavisyn_color.svg';

export function DatavisynLogo({ color }: { color: 'white' | 'black' | 'color' }) {
const source = color === 'white' ? datavisynLogoWhite : color === 'black' ? datavisynLogoBlack : datavisynLogoColor;
return (
<Anchor h={rem(24)} href="https://datavisyn.io/" target="_blank">
<Anchor display="flex" href="https://datavisyn.io/" target="_blank">
<img src={source} alt="logo" style={{ height: '24px' }} />
</Anchor>
);
Expand Down
2 changes: 1 addition & 1 deletion src/vis/scatter/ScatterVis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function ScatterVis({

if (selectedList.length === 0 && config.showLabels === ELabelingOptions.SELECTED) {
// @ts-ignore
p.data.selected.textfont.color = 'white';
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})`;
Expand Down
4 changes: 2 additions & 2 deletions src/vis/scatter/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export async function createScatterTraces(
size: sizeSliderVal,
},
textfont: {
color: showLabels === ELabelingOptions.NEVER ? 'white' : '#666666',
color: showLabels === ELabelingOptions.NEVER ? `rgba(102, 102, 102, 0)` : `rgba(102, 102, 102, 1)`,
},
},
unselected: {
Expand All @@ -214,7 +214,7 @@ export async function createScatterTraces(
size: sizeSliderVal,
},
textfont: {
color: showLabels === ELabelingOptions.ALWAYS ? `rgba(179, 179, 179, ${alphaSliderVal})` : 'white',
color: showLabels === ELabelingOptions.ALWAYS ? `rgba(179, 179, 179, ${alphaSliderVal})` : `rgba(179, 179, 179, 0)`,
},
},
},
Expand Down

0 comments on commit f26cff0

Please sign in to comment.