| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-09-03 | 1.6 kB | |
| v9.1.0 source code.tar.gz | 2026-09-03 | 45.4 kB | |
| v9.1.0 source code.zip | 2026-09-03 | 52.1 kB | |
| Totals: 3 Items | 99.1 kB | 0 | |
Adds a flat tile envelope matching geojson-vt v5's getTileRaw, and moves TypeScript declarations into
the package.
API changes
- New
getTileRaw(z, x, y)returns the same tiles asgetTile, but with each feature's coordinates inline —{type: 4, x, y, tags}instead of{type: 1, geometry: [[x, y]], tags}. Every clustered feature is a single point, so this is geojson-vt's raw envelope narrowed to its lone-point variant, and consumers that unwrapgeometry[0]immediately can skip two array allocations per feature.getTileis unchanged. - TypeScript declarations ship with the package. Remove
@types/superclusterif you have it installed.
TypeScript migration
The bundled declarations cover the same surface as @types/supercluster@7.1.3, with three
differences:
- Breaking for
@typesusers: types are named exports rather than members of a mergedSuperclusternamespace. ReplaceSupercluster.Options<P, C>with animport type {Options} from 'supercluster'. UsingSupercluster<P, C>itself in type position still works. This matches how geojson-vt's declarations are shaped. - Tile
tagsare typed| null | undefined. Supercluster passes each input feature'spropertiesthrough verbatim, sotagsisnullwhen the input hadproperties: nullandundefinedwhen it omitted the member — both need a guard before use. The old declarations claimedtagswas always present. load()acceptsMultiPointfeatures as well asPoint, matching the support added in v9.0.0.