@guardian/interactive-component-library 0.3.0 → 0.3.1

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.
@@ -6504,7 +6504,12 @@ class Polygon extends Geometry {
6504
6504
  class Point extends Geometry {
6505
6505
  constructor({ type = "Point", coordinates }) {
6506
6506
  super({ type, extent: null, coordinates });
6507
- this.extent = [...coordinates, ...coordinates];
6507
+ this.extent = new Extent(
6508
+ coordinates[0],
6509
+ coordinates[1],
6510
+ coordinates[0],
6511
+ coordinates[1]
6512
+ );
6508
6513
  }
6509
6514
  _getProjected(projection) {
6510
6515
  return {