/* * << * Davinci * == * Copyright (C) 2016 - 2017 EDP * == * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * >> */ import React from 'react' import { Select } from 'antd' import { ReferenceValueTypeLabels, ReferenceLabelPositionLabels } from '../constants' import { PIVOT_CHART_FONT_FAMILIES, PIVOT_CHART_FONT_SIZES, PIVOT_CHART_LINE_STYLES, CHART_LABEL_POSITIONS } from 'app/globalConstants' const Option = Select.Option export const referenceValueTypeSelectOptions = Object.entries( ReferenceValueTypeLabels ).map(([value, label]) => ( )) export const lineLabelPositionOptions = Object.entries( ReferenceLabelPositionLabels ).map(([value, label]) => ( )) export const bandLabelPositionOptions = CHART_LABEL_POSITIONS.map( ({ name, value }) => ( ) ) export const fontFamilyOptions = PIVOT_CHART_FONT_FAMILIES.map( ({ name, value }) => ( ) ) export const fontSizeOptions = PIVOT_CHART_FONT_SIZES.map((size) => ( )) export const lineStyleOptions = PIVOT_CHART_LINE_STYLES.map( ({ name, value }) => ( ) )