{"version":3,"file":"build-cell-map.cjs","names":[],"sources":["../../../src/MatrixChart/build-cell-map/build-cell-map.ts"],"sourcesContent":["import type { MatrixChartCell } from '../MatrixChart';\n\nexport function getCellKey(x: string, y: string): string {\n  return `${x.length}:${x}\\0${y}`;\n}\n\nexport function buildCellMap(data: MatrixChartCell[]): Map<string, MatrixChartCell> {\n  const map = new Map<string, MatrixChartCell>();\n  data.forEach((cell) => {\n    map.set(getCellKey(cell.x, cell.y), cell);\n  });\n  return map;\n}\n"],"mappings":";;AAEA,SAAgB,WAAW,GAAW,GAAmB;CACvD,OAAO,GAAG,EAAE,OAAO,GAAG,EAAE,IAAI;AAC9B;AAEA,SAAgB,aAAa,MAAuD;CAClF,MAAM,sBAAM,IAAI,IAA6B;CAC7C,KAAK,SAAS,SAAS;EACrB,IAAI,IAAI,WAAW,KAAK,GAAG,KAAK,CAAC,GAAG,IAAI;CAC1C,CAAC;CACD,OAAO;AACT"}