Skip to content

Commit

Permalink
chore: change order of initializing default layers
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopedromatias committed Mar 13, 2024
1 parent f621950 commit ab67405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bar/src/props.ts
Expand Up @@ -54,7 +54,7 @@ export const defaultProps = {

export const svgDefaultProps = {
...defaultProps,
layers: ['grid', 'axes', 'bars', 'markers', 'legends', 'annotations', 'totals'] as BarLayerId[],
layers: ['grid', 'axes', 'bars', 'totals', 'markers', 'legends', 'annotations'] as BarLayerId[],
barComponent: BarItem,

defs: [],
Expand All @@ -69,7 +69,7 @@ export const svgDefaultProps = {

export const canvasDefaultProps = {
...defaultProps,
layers: ['grid', 'axes', 'bars', 'legends', 'annotations', 'totals'] as BarCanvasLayerId[],
layers: ['grid', 'axes', 'bars', 'totals', 'legends', 'annotations'] as BarCanvasLayerId[],

pixelRatio: typeof window !== 'undefined' ? window.devicePixelRatio ?? 1 : 1,
}

0 comments on commit ab67405

Please sign in to comment.