(name: string, opts: ISchemeOption[])
| 50 | const options: FluentUITypes.IDropdownOption[] = []; |
| 51 | |
| 52 | function menu(name: string, opts: ISchemeOption[]) { |
| 53 | options.push({ |
| 54 | key: name, |
| 55 | text: name, |
| 56 | itemType: base.fluentUI.DropdownMenuItemType.Header, |
| 57 | }); |
| 58 | options.push.apply(options, opts); |
| 59 | } |
| 60 | |
| 61 | isQualitative && menu(strings.schemeCategorical, categorical(selected)); |
| 62 | isQuantitative && menu(strings.schemeSequentialSingleHue, sequentialSingleHue(selected)); |