Skip to content

Commit 96a19b4

Browse files
committed
Change data-align to data-id-align (since data-align is used by mpadded()
1 parent 5b664e6 commit 96a19b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ts/output/svg/Wrapper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ CommonWrapper<
278278
//
279279
// Add the text element (not transformed) and the transformed <g>
280280
//
281-
adaptor.append(this.element, this.svg('text', {'data-align': true} , [this.text('')]));
281+
adaptor.append(this.element, this.svg('text', {'data-id-align': true} , [this.text('')]));
282282
adaptor.append(this.element, g);
283283
return y + h;
284284
}
@@ -291,7 +291,7 @@ CommonWrapper<
291291
public firstChild(): N {
292292
const adaptor = this.adaptor;
293293
let child = adaptor.firstChild(this.element);
294-
if (child && adaptor.kind(child) === 'text' && adaptor.getAttribute(child, 'data-align')) {
294+
if (child && adaptor.kind(child) === 'text' && adaptor.getAttribute(child, 'data-id-align')) {
295295
child = adaptor.firstChild(adaptor.next(child));
296296
}
297297
if (child && adaptor.kind(child) === 'rect' && adaptor.getAttribute(child, 'data-hitbox')) {

0 commit comments

Comments
 (0)