Skip to content

Commit

Permalink
fix: update uses of header mark
Browse files Browse the repository at this point in the history
  • Loading branch information
etowahadams committed Jun 10, 2024
1 parent ed58d60 commit b4eac8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compiler/bounding-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export function getNumOfYAxes(tracks: Track[]): number {
const getTextTrack = (size: Size, title?: string, subtitle?: string) => {
return JSON.parse(
JSON.stringify({
mark: 'header',
mark: '_header',
width: size.width,
height: size.height,
title,
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/gosling-to-higlass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export function goslingToHiGlass(
});

hgModel.validateSpec(true);
} else if (firstResolvedSpec.mark === 'header') {
} else if (firstResolvedSpec.mark === '_header') {
// `text` tracks are used to show title and subtitle of the views
hgModel.addDefaultView(`${trackId}-title`).setLayout(layout);
if (typeof firstResolvedSpec.title === 'string') {
Expand Down

0 comments on commit b4eac8a

Please sign in to comment.