mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
add option for media query apache/incubator-echarts#9612 (#33865)
This commit is contained in:
22
types/echarts/index.d.ts
vendored
22
types/echarts/index.d.ts
vendored
@@ -188,7 +188,7 @@ declare namespace echarts {
|
||||
* immediately
|
||||
*/
|
||||
setOption(
|
||||
option: EChartOption,
|
||||
option: EChartOption | EChartsResponsiveOption,
|
||||
notMerge?: boolean,
|
||||
lazyUpdate?: boolean
|
||||
) : void
|
||||
@@ -918,6 +918,26 @@ declare namespace echarts {
|
||||
useUTC?: boolean,
|
||||
}
|
||||
|
||||
type EChartsMediaOption = {
|
||||
query: {
|
||||
width?: number,
|
||||
height?: number,
|
||||
aspectRatio?: number,
|
||||
minWidth?: number,
|
||||
minHeight?: number,
|
||||
minAspectRatio?: number,
|
||||
maxWidth?: number,
|
||||
maxHeight?: number,
|
||||
maxAspectRatio?: number
|
||||
},
|
||||
option: EChartOption
|
||||
}
|
||||
|
||||
interface EChartsResponsiveOption {
|
||||
baseOption?: EChartOption,
|
||||
media?: EChartsMediaOption[]
|
||||
}
|
||||
|
||||
interface EChartsOptionConfig {
|
||||
notMerge?: boolean,
|
||||
lazyUpdate?: boolean,
|
||||
|
||||
Reference in New Issue
Block a user