Skip to content

Commit

Permalink
Fix booleans, release 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rzats committed Jul 30, 2024
1 parent 5f500ed commit ffb46a5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "www-epivis",
"version": "2.0.3",
"version": "2.1.0",
"private": true,
"license": "MIT",
"description": "",
Expand Down
10 changes: 5 additions & 5 deletions src/components/TopMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@
type="button"
class="uk-button uk-button-small"
disabled={!chart}
class:uk-active={$autoFit === true}
class:uk-button-secondary={$autoFit === true}
class:uk-button-default={$autoFit === false}
class:uk-active={$autoFit}
class:uk-button-secondary={$autoFit}
class:uk-button-default={!$autoFit}
on:click|preventDefault={() => ($autoFit = !$autoFit)}
title="Automatically Fit Data<br/>(Keyboard Shortcut: a)"
data-tour="autofit"
Expand All @@ -116,8 +116,8 @@
type="button"
class="uk-button uk-button-small"
class:uk-active={$isShowingPoints}
class:uk-button-secondary={$isShowingPoints === true}
class:uk-button-default={$isShowingPoints === false}
class:uk-button-secondary={$isShowingPoints}
class:uk-button-default={!$isShowingPoints}
on:click|preventDefault={() => ($isShowingPoints = !$isShowingPoints)}
title="Show or Hide points<br/>(Keyboard Shortcut: s)"
data-tour="points"
Expand Down
2 changes: 1 addition & 1 deletion src/components/tree/TreeLeafNode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
$: {
// runs whenever $activeDatasets is updated
if ($activeDatasets && chart && $autoFit === true) {
if ($activeDatasets && chart && $autoFit) {
chart.fitData(true);
}
}
Expand Down

0 comments on commit ffb46a5

Please sign in to comment.