import { createCustomCachedSelector } from '../../../../state/create_selector' ; import { geometries } from './geometries' ; internal export type GoalChartData = { maximum : number ; minimum : number ; target ? : number ; value : number ; } ; internal export type GoalChartLabels = { minorLabel : string ; majorLabel : string ; } ; internal export const getGoalChartDataSelector = createCustomCachedSelector ( [ geometries ] , ( geoms ) : GoalChartData => { const goalChartData = { maximum : geoms . bulletViewModel . highestValue , minimum : geoms . bulletViewModel . lowestValue , target : geoms . bulletViewModel . target , value : geoms . bulletViewModel . actual , } ; return goalChartData ; } ) ; internal export const getGoalChartLabelsSelector = createCustomCachedSelector ( [ geometries ] , ( geoms ) => { return { majorLabel : geoms . bulletViewModel . labelMajor , minorLabel : geoms . bulletViewModel . labelMinor } ; } ) ; internal export const getGoalChartSemanticDataSelector = createCustomCachedSelector ( [ geometries ] , ( geoms ) => { return geoms . bulletViewModel . bands ?? [ ] ; } ) ; internal export const getFirstTickValueSelector = createCustomCachedSelector ( [ geometries ] , ( geoms ) => { return geoms . bulletViewModel . lowestValue ; } ) ;