text-to-map 1.1.26 → 1.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,15 +86,15 @@ const d3DelaunayVoronoi = (points) => {
86
86
  const voronoi = delaunay.voronoi(bbox);
87
87
  return {
88
88
  type: "FeatureCollection",
89
- features: Array.from(voronoi.cellPolygons()).map((polygon, i) => ({
89
+ features: Array.from(voronoi.cellPolygons()).map((polygon) => ({
90
90
  type: "Feature",
91
91
  geometry: {
92
92
  type: "Polygon",
93
93
  coordinates: [polygon.map((p) => toWgs84(p))],
94
94
  },
95
95
  properties: {
96
- schools: points.features[i].properties.schools,
97
- index: i,
96
+ schools: points.features[polygon.index].properties.schools,
97
+ index: polygon.index,
98
98
  neighbors: new Set(voronoi.neighbors(polygon.index)),
99
99
  },
100
100
  })),
package/package.json CHANGED
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "name": "text-to-map",
71
71
  "description": "Text To Map usiluje o lepší, strojově zpracovatelné využití částí vyhlášek s výčtem ulic a dalších lokací. Jde o rozšiřitelnou sadu konceptů a nástrojů, které zajistí hladký převod výčtu ulic a jejich rozsahů v lidsky srozumitelném jazyce do strojově zpracovatelného, uchopitelného formátu.",
72
- "version": "1.1.26",
72
+ "version": "1.1.27",
73
73
  "main": "dist/index.js",
74
74
  "types": "dist/index.d.ts",
75
75
  "files": [