@genome-spy/core 0.21.0 → 0.22.0

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.
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  },
8
8
  "contributors": [],
9
9
  "license": "BSD-2-Clause",
10
- "version": "0.21.0",
10
+ "version": "0.22.0",
11
11
  "main": "dist/index.js",
12
12
  "module": "src/index.js",
13
13
  "exports": {
@@ -53,5 +53,5 @@
53
53
  "vega-scale": "^7.1.1",
54
54
  "vega-util": "^1.16.0"
55
55
  },
56
- "gitHead": "293e743d4b887427d8fadc49460a08a572eaff12"
56
+ "gitHead": "0584f32e402341b913b2cc43543c95ccbb7b846b"
57
57
  }
@@ -108,6 +108,24 @@ export default class ContainerView extends View {
108
108
  }
109
109
  }
110
110
 
111
+ /**
112
+ *
113
+ * @param {string} name
114
+ */
115
+ findDescendantByName(name) {
116
+ /** @type {View} */
117
+ let view;
118
+
119
+ this.visit((v) => {
120
+ if (v.name == name) {
121
+ view = v;
122
+ return VISIT_STOP;
123
+ }
124
+ });
125
+
126
+ return view;
127
+ }
128
+
111
129
  /**
112
130
  * @param {import("../spec/channel").Channel | "default"} channel
113
131
  * @param {ResolutionTarget} resolutionType