Skip to content

Commit 28d30ee

Browse files
committed
use title and subtitle keys instead of t and st
1 parent 527ff8d commit 28d30ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/titles/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ function draw(gd, titleClass, options) {
171171
if(!elShouldExist) return group;
172172

173173
function titleLayout(titleEl, subtitleEl) {
174-
Lib.syncOrAsync([drawTitle, scootTitle], { t: titleEl, st: subtitleEl });
174+
Lib.syncOrAsync([drawTitle, scootTitle], { title: titleEl, subtitle: subtitleEl });
175175
}
176176

177177
function drawTitle(titleAndSubtitleEls) {
178-
var titleEl = titleAndSubtitleEls.t;
179-
var subtitleEl = titleAndSubtitleEls.st;
178+
var titleEl = titleAndSubtitleEls.title;
179+
var subtitleEl = titleAndSubtitleEls.subtitle;
180180

181181
var transformVal;
182182

@@ -240,7 +240,7 @@ function draw(gd, titleClass, options) {
240240
var titleElMathHeight = titleElMathGroup.node() ? titleElMathGroup.node().getBBox().height : 0;
241241
var subtitleShift = titleElMathHeight ? titleElMathHeight + MATHJAX_PADDING_BOTTOM : titleElHeight;
242242
var subtitleAttributes = Lib.extendFlat({}, attributes, {
243-
y: subtitleShift + attributes.y
243+
y: subtitleShift + attributes.y
244244
});
245245

246246
subtitleEl.attr('transform', transformVal);
@@ -264,7 +264,7 @@ function draw(gd, titleClass, options) {
264264
}
265265

266266
function scootTitle(titleAndSubtitleEls) {
267-
var titleElIn = titleAndSubtitleEls.t;
267+
var titleElIn = titleAndSubtitleEls.title;
268268
var titleGroup = d3.select(titleElIn.node().parentNode);
269269

270270
if(avoid && avoid.selection && avoid.side && txt) {

0 commit comments

Comments
 (0)