💄 Fix charts icon clipped on the right edge of the map (#322)
This commit is contained in:
parent
dc77d8ca49
commit
155e032569
4 changed files with 22 additions and 3197 deletions
1789
old-ui/pnpm-lock.yaml
generated
1789
old-ui/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
1389
viewer/pnpm-lock.yaml
generated
1389
viewer/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -24,7 +24,7 @@
|
|||
class="line-chart-icon"
|
||||
v-b-modal.chart-button
|
||||
role="button"
|
||||
:transform="`translate(${right - 15}, -10) scale(0.0043)`"
|
||||
:transform="`translate(${right - 15.5}, -10) scale(0.0043)`"
|
||||
>
|
||||
<path
|
||||
d="M32,480h480v32H0V0h32v96h32v32H32v64h32v32H32v64h32v32H32v64h32v32H32V480z M96,336c0-26.5,21.484-48,48-48
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ import {
|
|||
ChartConfiguration,
|
||||
ChartDataset,
|
||||
ChartEvent,
|
||||
ChartType as ChartJsChartType,
|
||||
LegendItem,
|
||||
LegendOptions,
|
||||
TooltipItem,
|
||||
|
|
@ -148,7 +147,7 @@ function newLegendOptions(provider: (index: number) => string) {
|
|||
let hovering = false;
|
||||
const tooltip = document.getElementById("tooltip");
|
||||
|
||||
const legendOptions: DeepPartial<LegendOptions<ChartJsChartType>> = {
|
||||
const legendOptions: DeepPartial<LegendOptions> = {
|
||||
onHover(event: ChartEvent, legendItem: LegendItem) {
|
||||
const description = provider(legendItem.datasetIndex);
|
||||
if (hovering || description == null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue