-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(heatmap): respect margins and paddings (#2577)
* [heatmap] Add margin and padding knobs to storybook * [heatmap] Fix chart margins and paddings * fix(heatmap): update x and y label origins * fix(heatmap): Update points for group titles * Add margins and paddings knobs to heatmap small multiple story * Add common renderers and colors * heatmap(fix): Respect paddings and add debug * fix: resolve errors * Update heatmap stories to not use the legacy margins * Update additional heatmap stories * test: Add test for magins and paddings * Use legacy margings for heatmap stories * Extract isPointWithinYLabelArea method * fix(heatmap): fix brush mask and area * Update brush mask rect y * Update rgba colors * Share ChartDimensions interface * Apply margins and paddings to dragArea in viewmodel * Remove ctx from margins and paddins renderers * Apply suggestions * Use satisfies with RgbaTuple * Apply debug renderers suggestions * Fix error * Add debug elements to a single function * test(vrt): update screenshots [skip ci] * Add test for debug elements * test(vrt): update screenshots [skip ci] * Delete not used screenshot --------- Co-authored-by: elastic-datavis[bot] <98618603+elastic-datavis[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8f6872f
commit c24566d
Showing
73 changed files
with
661 additions
and
108 deletions.
There are no files selected for viewing
Binary file modified
BIN
+563 Bytes
(100%)
...creenshots/all.test.ts-snapshots/baselines/heatmap-alpha/basic-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.17 KB
(100%)
...hots/all.test.ts-snapshots/baselines/heatmap-alpha/categorical-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-17.2 KB
(82%)
...s/all.test.ts-snapshots/baselines/heatmap-alpha/label-rotation-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+41 Bytes
(100%)
...eenshots/all.test.ts-snapshots/baselines/heatmap-alpha/sorting-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.97 KB
(90%)
...eenshots/all.test.ts-snapshots/baselines/heatmap-alpha/theming-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+52 Bytes
(100%)
...screenshots/all.test.ts-snapshots/baselines/heatmap-alpha/time-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+468 Bytes
(100%)
...nshots/all.test.ts-snapshots/baselines/heatmap-alpha/time-snap-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+525 Bytes
(100%)
.../sizing/should-accommodate-chart-title-and-description-heatmap-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-428 Bytes
(99%)
...apshots/chart/sizing/should-render-multiple-charts-with-titles-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+55 Bytes
(100%)
....test.ts-snapshots/heatmap-stories/render-table-with-all-nulls-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-900 Bytes
(97%)
...st.ts-snapshots/heatmap-stories/rotate-categorical-axis-labels-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-15.8 KB
(81%)
...ries.test.ts-snapshots/heatmap-stories/rotate-time-axis-labels-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-11 KB
(73%)
...-snapshots/heatmap-stories/should-maximize-the-label-font-size-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.31 KB
(89%)
...map-stories/should-maximize-the-label-with-an-unique-font-size-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.72 KB
(96%)
...ts/heatmap-stories/should-not-have-brush-tool-extend-into-axes-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+52.2 KB
...hots/heatmap-stories/should-render-heatmap-with-debug-elements-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.8 KB
...eatmap-stories/should-render-heatmap-with-margins-and-paddings-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-908 Bytes
(98%)
...t.ts-snapshots/heatmap-stories/should-show-x-and-y-axis-titles-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-166 Bytes
(100%)
...tmap-stories/small-multiples/should-brush-panel-with-time-data-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-78 Bytes
(100%)
...stories/small-multiples/should-constrain-brush-to-active-panel-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+36 Bytes
(100%)
...ts/heatmap-stories/small-multiples/should-render-1-x-3-trellis-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-50 Bytes
(100%)
...ts/heatmap-stories/small-multiples/should-render-2-x-2-trellis-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-266 Bytes
(99%)
...-stories/small-multiples/should-render-2-x-2-trellis-time-data-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+173 Bytes
(100%)
...small-multiples/should-render-2-x-2-trellis-without-any-titles-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+113 Bytes
(100%)
...iples/should-render-2-x-2-trellis-without-any-titles-time-data-chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+67 Bytes
(100%)
...mall-multiples/should-render-2-x-2-trellis-without-axes-titles-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
-21 Bytes
(100%)
...all-multiples/should-render-2-x-2-trellis-without-panel-titles-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
-187 Bytes
(99%)
...ts/heatmap-stories/small-multiples/should-render-3-x-1-trellis-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+101 Bytes
(100%)
...ts/heatmap-stories/small-multiples/should-render-3-x-3-trellis-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+25 Bytes
(100%)
...heatmap-stories/small-multiples/should-render-3-x-null-trellis-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+41 Bytes
(100%)
...heatmap-stories/small-multiples/should-render-null-x-3-trellis-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+118 Bytes
(100%)
...ories/small-multiples/should-render-tooltip-over-correct-panel-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
-50 Bytes
(100%)
...iples/should-select-single-cell-on-click-with-categorical-data-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
-69 Bytes
(100%)
...ll-multiples/should-select-single-cell-on-click-with-time-data-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+44 Bytes
(100%)
...-stories/theme-dark/should-highlight-band-on-legend-hover-dark-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+689 Bytes
(100%)
...apshots/heatmap-stories/theme-dark/should-render-basic-heatmap-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
-77 Bytes
(100%)
...ts/heatmap-stories/theme-dark/should-render-correct-brush-area-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+51 Bytes
(100%)
...tories/theme-light/should-highlight-band-on-legend-hover-light-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+563 Bytes
(100%)
...pshots/heatmap-stories/theme-light/should-render-basic-heatmap-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
-608 Bytes
(99%)
...s/heatmap-stories/theme-light/should-render-correct-brush-area-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
-303 Bytes
(98%)
...ies.test.ts-snapshots/heatmap-stories/time-snap-with-dataset-2-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+36 Bytes
(100%)
...ies.test.ts-snapshots/heatmap-stories/time-snap-with-dataset-3-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+510 Bytes
(100%)
...ies.test.ts-snapshots/heatmap-stories/time-snap-with-dataset-4-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+23 Bytes
(100%)
...ies.test.ts-snapshots/heatmap-stories/time-snap-with-dataset-5-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
-632 Bytes
(99%)
...ies.test.ts-snapshots/heatmap-stories/time-snap-with-dataset-6-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
-3.12 KB
(90%)
...ies.test.ts-snapshots/heatmap-stories/time-snap-with-dataset-7-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+150 Bytes
(100%)
...ies.test.ts-snapshots/heatmap-stories/time-snap-with-dataset-8-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
+547 Bytes
(100%)
...ies.test.ts-snapshots/heatmap-stories/time-snap-with-dataset-9-chrome-linux.png
Oops, something went wrong.
Binary file modified
BIN
-251 Bytes
(100%)
...s-snapshots/tooltip/chart-types/heatmap/pinning-with-selection-chrome-linux.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.