Skip to content

Commit

Permalink
feat: enable showing track titles in circular layouts (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
sehilyi committed Aug 20, 2021
1 parent 032d79a commit 9a66dbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/gosling-to-higlass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ export function goslingToHiGlass(
mousePositionColor: theme.root.mousePositionColor,
/* Track title */
name: firstResolvedSpec.layout === 'linear' ? firstResolvedSpec.title : ' ',
<<<<<<< HEAD
=======
fontSize: theme.track.titleFontSize,
>>>>>>> 4bbc4f9 (feat: enable showing track titles in circular layouts (#464))
labelPosition: firstResolvedSpec.title
? theme.track.titleAlign === 'left'
? 'topLeft'
Expand Down
4 changes: 4 additions & 0 deletions src/core/mark/title.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ export function drawCircularTitle(
/* Title label */
const styleConfig = getTextStyle({
color: theme.track.titleColor,
<<<<<<< HEAD
size: 12, // `theme.track.titleFontSize` seems to use much larger fonts
=======
size: theme.axis.labelFontSize, // `theme.track.titleFontSize` seems to use much larger fonts
>>>>>>> 4bbc4f9 (feat: enable showing track titles in circular layouts (#464))
fontFamily: theme.axis.labelFontFamily, // TODO: support
fontWeight: theme.axis.labelFontWeight // TODO: support
});
Expand Down

0 comments on commit 9a66dbd

Please sign in to comment.