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 { Colors } from '../../common/colors' ;
1818import { GOLDEN_RATIO , TAU } from '../../common/constants' ;
@@ -25,8 +25,8 @@ import { ColorVariant } from '../common';
2525 * @deprecated Use new `DARK_THEME`
2626 */
2727export const LEGACY_DARK_THEME : Theme = {
28- chartPaddings : DEFAULT_CHART_PADDING ,
29- chartMargins : DEFAULT_CHART_MARGINS ,
28+ chartPaddings : LEGACY_CHART_PADDING ,
29+ chartMargins : LEGACY_CHART_MARGINS ,
3030 lineSeriesStyle : {
3131 line : {
3232 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 { Colors } from '../../common/colors' ;
1818import { GOLDEN_RATIO , TAU } from '../../common/constants' ;
@@ -25,8 +25,8 @@ import { ColorVariant } from '../common';
2525 * @deprecated use new `LIGHT_THEME`
2626 */
2727export const LEGACY_LIGHT_THEME : Theme = {
28- chartPaddings : DEFAULT_CHART_PADDING ,
29- chartMargins : DEFAULT_CHART_MARGINS ,
28+ chartPaddings : LEGACY_CHART_PADDING ,
29+ chartMargins : LEGACY_CHART_MARGINS ,
3030 lineSeriesStyle : {
3131 line : {
3232 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