chrome-devtools-frontend 1.0.1007778 → 1.0.1007846

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.
@@ -3,15 +3,19 @@
3
3
  // found in the LICENSE file.
4
4
 
5
5
  import type * as Protocol from '../../generated/protocol.js';
6
+ import type * as Platform from '../platform/platform.js';
6
7
 
7
8
  export class CSSFontFace {
8
9
  readonly #fontFamily: string;
9
10
  readonly #fontVariationAxes: Protocol.CSS.FontVariationAxis[];
10
11
  readonly #fontVariationAxesByTag: Map<string, Protocol.CSS.FontVariationAxis>;
12
+ readonly #src: Platform.DevToolsPath.UrlString;
13
+
11
14
  constructor(payload: Protocol.CSS.FontFace) {
12
15
  this.#fontFamily = payload.fontFamily;
13
16
  this.#fontVariationAxes = payload.fontVariationAxes || [];
14
17
  this.#fontVariationAxesByTag = new Map();
18
+ this.#src = payload.src as Platform.DevToolsPath.UrlString;
15
19
  for (const axis of this.#fontVariationAxes) {
16
20
  this.#fontVariationAxesByTag.set(axis.tag, axis);
17
21
  }
@@ -21,6 +25,10 @@ export class CSSFontFace {
21
25
  return this.#fontFamily;
22
26
  }
23
27
 
28
+ getSrc(): Platform.DevToolsPath.UrlString {
29
+ return this.#src;
30
+ }
31
+
24
32
  getVariationAxisByTag(tag: string): Protocol.CSS.FontVariationAxis|undefined {
25
33
  return this.#fontVariationAxesByTag.get(tag);
26
34
  }
package/package.json CHANGED
@@ -55,5 +55,5 @@
55
55
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
56
56
  "watch": "vpython third_party/node/node.py --output scripts/watch_build.js"
57
57
  },
58
- "version": "1.0.1007778"
58
+ "version": "1.0.1007846"
59
59
  }