-
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.
refactor(cartesian): cartesian rendering iteration (#1286)
This commit discontinues the very large dimensions used for patterns; improves types; removes hundreds of lines; increases efficiency eg. by pre-transforming textures, upping O() and culling canvas2d API calls; code readability improvs eg. brevity and names; partial fix #1202 BREAKING CHANGE: - `TextStyle.fontStyle` is no longer a `string`, it's the more specific `FontStyle` - For symmetry, `fontStyle` in word cloud is also switching from `string` to `FontStyle` - Certain text configurations included both `fill` and `textColor` for the text color; `fill` got removed, because `textColor` is part of the public `Font` type, and because `textColor` has clearer meaning than `fill`. Yet, some of the code used the `fill` property and/or made the `fill` property also mandatory. So, userland code needs to remove some `fill` property, and might need to ensure that the correct value is going into `textColor` - `getRadians` got unpublished - No attempt to draw a rect border if there's not enough width/height for at least the specified border width (ie. width/height being at least twice the border width)
- Loading branch information
Showing
102 changed files
with
169 additions
and
361 deletions.
There are no files selected for viewing
Binary file modified
BIN
+179 Bytes
(100%)
...ll-stories-annotations-lines-advanced-markers-visually-looks-correct-1-snap.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
+43 Bytes
(100%)
...sts-for-all-stories-annotations-rects-styling-visually-looks-correct-1-snap.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
+171 Bytes
(100%)
...l-tests-for-all-stories-axes-many-tick-labels-visually-looks-correct-1-snap.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
+60 Bytes
(100%)
...r-all-stories-bar-chart-with-high-data-volume-visually-looks-correct-1-snap.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
+0 Bytes
(100%)
...s-for-all-stories-rotations-with-ordinal-axis-visually-looks-correct-1-snap.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
+19 Bytes
(100%)
...ll-stories-stylings-custom-series-styles-bars-visually-looks-correct-1-snap.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
-270 Bytes
(99%)
...for-all-stories-stylings-partial-custom-theme-visually-looks-correct-1-snap.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
-270 Bytes
(99%)
...stylings-partial-custom-theme-with-base-theme-visually-looks-correct-1-snap.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
+3.43 KB
(100%)
...-all-stories-stylings-texture-multiple-series-visually-looks-correct-1-snap.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
-335 Bytes
(99%)
...-tests-for-all-stories-stylings-theme-styling-visually-looks-correct-1-snap.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.15 KB
(86%)
...l-tests-for-all-stories-stylings-with-texture-visually-looks-correct-1-snap.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
+264 Bytes
(100%)
...om-rotation-0-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.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
+228 Bytes
(100%)
...m-rotation-0-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.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
+179 Bytes
(100%)
...m-rotation-0-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.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
+139 Bytes
(100%)
...-rotation-180-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.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
+152 Bytes
(100%)
...rotation-180-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.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
+165 Bytes
(100%)
...rotation-180-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.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
+304 Bytes
(100%)
...m-rotation-90-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.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
+338 Bytes
(100%)
...-rotation-90-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.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
+188 Bytes
(100%)
...-rotation-90-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.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
-86 Bytes
(100%)
...n-negative-90-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.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
-37 Bytes
(100%)
...-negative-90-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.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
-101 Bytes
(100%)
...-negative-90-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.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
+152 Bytes
(100%)
...ft-rotation-0-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.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
+185 Bytes
(100%)
...t-rotation-0-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.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
+115 Bytes
(100%)
...t-rotation-0-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+156 Bytes
(100%)
...-rotation-180-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+164 Bytes
(100%)
...rotation-180-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+146 Bytes
(100%)
...rotation-180-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+309 Bytes
(100%)
...t-rotation-90-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+478 Bytes
(100%)
...-rotation-90-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+466 Bytes
(100%)
...-rotation-90-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+147 Bytes
(100%)
...n-negative-90-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+100 Bytes
(100%)
...-negative-90-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+67 Bytes
(100%)
...-negative-90-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-55 Bytes
(100%)
...ht-rotation-0-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+40 Bytes
(100%)
...t-rotation-0-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-9 Bytes
(100%)
...t-rotation-0-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+282 Bytes
(100%)
...-rotation-180-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+239 Bytes
(100%)
...rotation-180-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+303 Bytes
(100%)
...rotation-180-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+198 Bytes
(100%)
...t-rotation-90-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+167 Bytes
(100%)
...-rotation-90-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+189 Bytes
(100%)
...-rotation-90-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+353 Bytes
(100%)
...n-negative-90-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+322 Bytes
(100%)
...-negative-90-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+327 Bytes
(100%)
...-negative-90-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+238 Bytes
(100%)
...op-rotation-0-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+192 Bytes
(100%)
...p-rotation-0-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+191 Bytes
(100%)
...p-rotation-0-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+113 Bytes
(100%)
...-rotation-180-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+98 Bytes
(100%)
...rotation-180-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+104 Bytes
(100%)
...rotation-180-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+293 Bytes
(100%)
...p-rotation-90-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+333 Bytes
(100%)
...-rotation-90-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+188 Bytes
(100%)
...-rotation-90-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-80 Bytes
(100%)
...n-negative-90-renders-marker-annotation-within-chart-canvas-metric-0-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-20 Bytes
(100%)
...-negative-90-renders-marker-annotation-within-chart-canvas-metric-15-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-66 Bytes
(100%)
...-negative-90-renders-marker-annotation-within-chart-canvas-metric-30-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-323 Bytes
(99%)
...s-stories-test-ts-axis-stories-should-render-correctly-rotated-ticks-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+108 Bytes
(100%)
...shots__/axis-stories-test-ts-axis-stories-should-render-tick-padding-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
...ies-test-ts-bar-series-stories-custom-bar-width-pixel-and-ratio-size-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+3 Bytes
(100%)
..._/bar-stories-test-ts-bar-series-stories-custom-bar-width-pixel-size-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+5 Bytes
(100%)
..._/bar-stories-test-ts-bar-series-stories-custom-bar-width-ratio-size-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+29 Bytes
(100%)
...ries-test-ts-legend-stories-should-adjust-legend-width-for-scrollbar-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+1.19 KB
(100%)
...s-stories-texture-area-should-allow-any-random-texture-customization-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-3.54 KB
(93%)
...lings-stories-texture-area-should-render-texture-with-lines-as-shape-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+1.49 KB
(100%)
...stories-test-ts-stylings-stories-texture-area-should-use-custom-path-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-2.82 KB
(97%)
...s-stylings-stories-texture-area-should-use-hover-opacity-for-texture-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+495 Bytes
(100%)
...gs-stories-texture-bar-should-allow-any-random-texture-customization-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-2.24 KB
(93%)
...ylings-stories-texture-bar-should-render-texture-with-lines-as-shape-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
+160 Bytes
(100%)
...-stories-test-ts-stylings-stories-texture-bar-should-use-custom-path-1-snap.png
Oops, something went wrong.
Binary file modified
BIN
-1.18 KB
(98%)
...ts-stylings-stories-texture-bar-should-use-hover-opacity-for-texture-1-snap.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
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.