@guardian/interactive-component-library 0.8.8 → 0.8.9

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.
@@ -48,7 +48,22 @@ export class View {
48
48
  };
49
49
  }, debug?: boolean);
50
50
  debug: boolean;
51
- projection: any;
51
+ projection: {
52
+ (p: any): number[];
53
+ invert(p: any): number[];
54
+ stream(stream: any): any;
55
+ postclip(_: any, ...args: any[]): any;
56
+ clipExtent(_: any, ...args: any[]): any[][] | any;
57
+ scale(_: any, ...args: any[]): number | any;
58
+ translate(_: any, ...args: any[]): number[] | any;
59
+ angle(_: any, ...args: any[]): number | any;
60
+ reflectX(_: any, ...args: any[]): boolean | any;
61
+ reflectY(_: any, ...args: any[]): boolean | any;
62
+ fitExtent(extent: any, object: any): any;
63
+ fitSize(size: any, object: any): any;
64
+ fitWidth(width: any, object: any): any;
65
+ fitHeight(height: any, object: any): any;
66
+ };
52
67
  bounds: GeoBounds;
53
68
  extent: Extent;
54
69
  minZoom: number;
@@ -108,8 +123,8 @@ export class View {
108
123
  * @returns {Extent} - The extent relative to the current viewport
109
124
  */
110
125
  projectExtent(extent: Extent): Extent;
111
- invert(point: any): any;
112
- invertBounds(bounds: any): any[];
126
+ invert(point: any): number[];
127
+ invertBounds(bounds: any): number[][];
113
128
  getResolution(): number;
114
129
  getZoomLevel(): number;
115
130
  /**
@@ -130,7 +145,22 @@ export class View {
130
145
  getVisibleBounds(transform: ZoomTransform, projection: any): import('./util').GeoBounds;
131
146
  getState(): {
132
147
  transform: ZoomTransform;
133
- projection: any;
148
+ projection: {
149
+ (p: any): number[];
150
+ invert(p: any): number[];
151
+ stream(stream: any): any;
152
+ postclip(_: any, ...args: any[]): any;
153
+ clipExtent(_: any, ...args: any[]): any[][] | any;
154
+ scale(_: any, ...args: any[]): number | any;
155
+ translate(_: any, ...args: any[]): number[] | any;
156
+ angle(_: any, ...args: any[]): number | any;
157
+ reflectX(_: any, ...args: any[]): boolean | any;
158
+ reflectY(_: any, ...args: any[]): boolean | any;
159
+ fitExtent(extent: any, object: any): any;
160
+ fitSize(size: any, object: any): any;
161
+ fitWidth(width: any, object: any): any;
162
+ fitHeight(height: any, object: any): any;
163
+ };
134
164
  zoomLevel: any;
135
165
  pixelRatio: number;
136
166
  padding: {
@@ -22,7 +22,7 @@ class View {
22
22
  }, debug = false) {
23
23
  this.debug = debug;
24
24
  projection.revision = 0;
25
- this.projection = projection.copy ? projection.copy() : { ...projection };
25
+ this.projection = projection;
26
26
  this.bounds = bounds && GeoBounds.convert(bounds);
27
27
  this.extent = Extent.convert(extent) || GeoBounds.convert(bounds).toExtent();
28
28
  this.minZoom = minZoom;
@@ -1,11 +1,11 @@
1
- const container = "_container_1nqng_1";
2
- const copyColumn = "_copyColumn_1nqng_6";
3
- const img = "_img_1nqng_10";
4
- const title = "_title_1nqng_20";
5
- const subtitle = "_subtitle_1nqng_36";
6
- const small = "_small_1nqng_46";
7
- const blurb = "_blurb_1nqng_56";
8
- const footnote = "_footnote_1nqng_64";
1
+ const container = "_container_1jf3s_1";
2
+ const copyColumn = "_copyColumn_1jf3s_6";
3
+ const img = "_img_1jf3s_11";
4
+ const title = "_title_1jf3s_22";
5
+ const subtitle = "_subtitle_1jf3s_38";
6
+ const small = "_small_1jf3s_48";
7
+ const blurb = "_blurb_1jf3s_58";
8
+ const footnote = "_footnote_1jf3s_66";
9
9
  const defaultStyles = {
10
10
  container,
11
11
  copyColumn,
package/dist/style.css CHANGED
@@ -2284,16 +2284,17 @@ body.android {
2284
2284
 
2285
2285
  ._bar_1ci1k_10 {
2286
2286
  }
2287
- ._container_1nqng_1 {
2287
+ ._container_1jf3s_1 {
2288
2288
  font-weight: 700;
2289
2289
  display: flex;
2290
2290
  }
2291
2291
 
2292
- ._copyColumn_1nqng_6 {
2292
+ ._copyColumn_1jf3s_6 {
2293
2293
  display: block;
2294
+ flex-shrink: 0;
2294
2295
  }
2295
2296
 
2296
- ._img_1nqng_10 {
2297
+ ._img_1jf3s_11 {
2297
2298
  height: 130px;
2298
2299
  width: 130px;
2299
2300
  border-radius: 50%;
@@ -2301,9 +2302,10 @@ body.android {
2301
2302
  margin-top: var(--space-1);
2302
2303
  margin-left: var(--space-2);
2303
2304
  margin-right: var(--space-1);
2305
+ flex-shrink: 0;
2304
2306
  }
2305
2307
 
2306
- ._title_1nqng_20 {
2308
+ ._title_1jf3s_22 {
2307
2309
  font-family: var(--text-headline);
2308
2310
  font-size: var(--headline-xsmall);
2309
2311
  color: var(--primary-text-color);
@@ -2319,7 +2321,7 @@ body.android {
2319
2321
  }
2320
2322
  }
2321
2323
 
2322
- ._subtitle_1nqng_36 {
2324
+ ._subtitle_1jf3s_38 {
2323
2325
  font-family: var(--text-headline);
2324
2326
  font-size: var(--headline-xsmall);
2325
2327
  color: var(--primary-text-color);
@@ -2329,7 +2331,7 @@ body.android {
2329
2331
  margin-bottom: 6px;
2330
2332
  }
2331
2333
 
2332
- ._small_1nqng_46 {
2334
+ ._small_1jf3s_48 {
2333
2335
  font-family: var(--text-serif);
2334
2336
  font-size: var(--body-small);
2335
2337
  line-height: var(--body-line-height);
@@ -2339,7 +2341,7 @@ body.android {
2339
2341
  margin-top: var(--space-1);
2340
2342
  }
2341
2343
 
2342
- ._blurb_1nqng_56 {
2344
+ ._blurb_1jf3s_58 {
2343
2345
  font-family: var(--text-serif);
2344
2346
  font-size: var(--body-small);
2345
2347
  line-height: var(--body-line-height);
@@ -2347,7 +2349,7 @@ body.android {
2347
2349
  font-weight: 300;
2348
2350
  }
2349
2351
 
2350
- ._footnote_1nqng_64 {
2352
+ ._footnote_1jf3s_66 {
2351
2353
  font-family: var(--text-serif);
2352
2354
  font-size: var(--body-small);
2353
2355
  line-height: var(--body-line-height);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@guardian/interactive-component-library",
3
3
  "private": false,
4
- "version": "0.8.8",
4
+ "version": "0.8.9",
5
5
  "packageManager": "pnpm@8.4.0",
6
6
  "repository": {
7
7
  "type": "git",