- conflateItems<T extends { bar: Bar; x: number }>(
items: readonly T[],
groupSize: number,
): { bar: Bar; x: number }[] Type Parameters
- T extends { bar: Bar; x: number }
Parameters
- items: readonly T[]
- groupSize: number
Returns { bar: Bar; x: number }[]
Conflate already-projected draw items: merge bars and place x at the group centre.