File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 11import { ChartArea } from './geometric' ;
22
3- export type LayoutPosition = 'left' | 'top' | 'right' | 'bottom' | 'chartArea' ;
3+ export type LayoutPosition = 'left' | 'top' | 'right' | 'bottom' | 'center' | ' chartArea' | { [ scaleId : string ] : number } ;
44
55export interface LayoutItem {
66 /**
Original file line number Diff line number Diff line change 1+ import { LayoutPosition } from '../../index.esm' ;
2+
3+ export const left : LayoutPosition = 'left' ;
4+ export const right : LayoutPosition = 'right' ;
5+ export const top : LayoutPosition = 'top' ;
6+ export const bottom : LayoutPosition = 'bottom' ;
7+ export const center : LayoutPosition = 'center' ;
8+ export const axis : LayoutPosition = { x : 10 } ;
9+
10+ // @ts -expect-error invalid position
11+ export const invalid : LayoutPosition = 'none' ;
You can’t perform that action at this time.
0 commit comments