このコミットが含まれているのは:
2026-10-28 19:28:11 +09:00
コミット 8ea3d211dc
49個のファイルの変更、967行の追加、356行の削除
+7 -3
ファイルの表示
@@ -35,9 +35,13 @@ const CountsAxes = ({ params, update }: {
}
const commit = (next: Record<string, string[]>) => {
for (const group of ['rows', 'cols'] as const)
update (group, encodeCountState (group, next[group].map (field => axes.find (
axis => axis.field === field) ?? { field,
...(countsFilterFields (definition)[field] === 'datetime' ? { grain: 'month' } : { }) })))
{
if (next[group].join (' ') === groups[group].join (' ')) continue
const selected = next[group].map (field => axes.find (axis => axis.field === field)
?? { field, ...(countsFilterFields (definition)[field] === 'datetime'
? { grain: 'month' } : { }) })
update (group, encodeCountState (group, selected))
}
}
const place = (id: string, target?: 'rows' | 'cols') => {
const next = Object.fromEntries (Object.entries (groups).map (([key, ids]) => [