import { $Values } from 'utility-types' ; import { Ratio , TimeMs } from '../../../../common/geometry' ; public export const PartitionLayout = Object . freeze ( { sunburst : 'sunburst' as const , treemap : 'treemap' as const , icicle : 'icicle' as const , flame : 'flame' as const , mosaic : 'mosaic' as const , waffle : 'waffle' as const , } ) ; public export type PartitionLayout = $Values < typeof PartitionLayout > ; alpha export type EasingFunction = ( x : Ratio ) => Ratio ; alpha export interface AnimKeyframe { time : number ; easingFunction : EasingFunction ; } public export interface AnimationConfig { alpha animation : { duration : TimeMs ; keyframes ? : Array < AnimKeyframe > ; } ; }