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