File tree Expand file tree Collapse file tree
packages/charts/src/utils/themes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99import { palettes } from './colors' ;
1010import { Theme } from './theme' ;
1111import {
12- DEFAULT_CHART_MARGINS ,
13- DEFAULT_CHART_PADDING ,
1412 DEFAULT_GEOMETRY_STYLES ,
1513 DEFAULT_MISSING_COLOR ,
14+ LEGACY_CHART_MARGINS ,
15+ LEGACY_CHART_PADDING ,
1616} from './theme_common' ;
1717import { DARK_THEME_BULLET_STYLE } from '../../chart_types/bullet_graph/theme' ;
1818import { Colors } from '../../common/colors' ;
@@ -26,8 +26,8 @@ import { ColorVariant } from '../common';
2626 * @deprecated Use new `DARK_THEME`
2727 */
2828export const LEGACY_DARK_THEME : Theme = {
29- chartPaddings : DEFAULT_CHART_PADDING ,
30- chartMargins : DEFAULT_CHART_MARGINS ,
29+ chartPaddings : LEGACY_CHART_PADDING ,
30+ chartMargins : LEGACY_CHART_MARGINS ,
3131 lineSeriesStyle : {
3232 line : {
3333 visible : true ,
Original file line number Diff line number Diff line change 99import { palettes } from './colors' ;
1010import { Theme } from './theme' ;
1111import {
12- DEFAULT_CHART_MARGINS ,
13- DEFAULT_CHART_PADDING ,
1412 DEFAULT_GEOMETRY_STYLES ,
1513 DEFAULT_MISSING_COLOR ,
14+ LEGACY_CHART_MARGINS ,
15+ LEGACY_CHART_PADDING ,
1616} from './theme_common' ;
1717import { LIGHT_THEME_BULLET_STYLE } from '../../chart_types/bullet_graph/theme' ;
1818import { Colors } from '../../common/colors' ;
@@ -26,8 +26,8 @@ import { ColorVariant } from '../common';
2626 * @deprecated use new `LIGHT_THEME`
2727 */
2828export const LEGACY_LIGHT_THEME : Theme = {
29- chartPaddings : DEFAULT_CHART_PADDING ,
30- chartMargins : DEFAULT_CHART_MARGINS ,
29+ chartPaddings : LEGACY_CHART_PADDING ,
30+ chartMargins : LEGACY_CHART_MARGINS ,
3131 lineSeriesStyle : {
3232 line : {
3333 visible : true ,
Original file line number Diff line number Diff line change @@ -28,6 +28,17 @@ export const DEFAULT_CHART_MARGINS: Margins = {
2828 bottom : 0 ,
2929} ;
3030
31+ /**
32+ * Remove in next step to limit diffs
33+ * @internal
34+ */
35+ export const LEGACY_CHART_PADDING : Margins = {
36+ left : 0 ,
37+ right : 0 ,
38+ top : 0 ,
39+ bottom : 0 ,
40+ } ;
41+
3142/**
3243 * Remove in next step to limit diffs
3344 * @internal
You can’t perform that action at this time.
0 commit comments