gosling.js icon indicating copy to clipboard operation
gosling.js copied to clipboard

Circular layout for dummy track

Open etowahadams opened this issue 1 year ago • 0 comments

Currently, dummy tracks can only be used in a linear layout. Based on disucssion in https://github.com/gosling-lang/gosling.js/pull/946 ideally we'd also support circular layouts as well. Here's a first attempt at supporting circular dummy tracks.

image

Challenges:

  1. Tracks in a circular layout get compiled into a HiGlass spec differently than in a linear layout: Unlike when a view layout is linear, each of these Gosling tracks will not have a corresponding HiGlass view. Instead they will become HiGlass tracks within the same view.
  2. Using a serial arrangement, tracks can be next to each other. We would want the same behavior with dummy tracks. See below for an example.
image

Implementation approach: In general, the circular dummy track should be drawn with d3arc, which is also used in the brush track (brush-track.ts).

etowahadams avatar Jul 26 '23 10:07 etowahadams