loom-browser 0.0.16 → 0.0.17

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/dist/loom.esm.js CHANGED
@@ -29891,6 +29891,14 @@ class HeadlessGenomeBrowser {
29891
29891
  }
29892
29892
  return matches.length;
29893
29893
  }
29894
+ /** Merge partial render config into all tracks matching a selector. Returns the number of tracks updated. */
29895
+ updateTrackConfig(selector, config) {
29896
+ const matches = selectTracks(this.managedTracks, selector);
29897
+ for (const mt of matches) {
29898
+ mt.track.setConfig(config);
29899
+ }
29900
+ return matches.length;
29901
+ }
29894
29902
  // ─── Navigation ──────────────────────────────────────────────────────────
29895
29903
  /** Update the locus and re-render all tracks. Clamped to chromosome bounds. Operates on primary frame. */
29896
29904
  setLocus(locus) {
@@ -31007,6 +31015,11 @@ class CommandDispatcher {
31007
31015
  results.push({ action: 'update_metadata', success: count > 0, count });
31008
31016
  break;
31009
31017
  }
31018
+ case 'update_config': {
31019
+ const count = this.browser.updateTrackConfig(toTrackSelector(action.selector), action.config);
31020
+ results.push({ action: 'update_config', success: count > 0, count });
31021
+ break;
31022
+ }
31010
31023
  default:
31011
31024
  results.push({
31012
31025
  action: action.action,