Skip to content

Commit d3f7026

Browse files
committed
chore: Make the linter ignore svg attribute names.
1 parent 5b36f24 commit d3f7026

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/move_indicator.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ export class MoveIndicatorBubble
2828
*
2929
* @param sourceBlock The block this bubble should be associated with.
3030
*/
31+
/* eslint-disable @typescript-eslint/naming-convention */
3132
constructor(private sourceBlock: Blockly.BlockSvg) {
3233
this.svgRoot = Blockly.utils.dom.createSvgElement(
3334
Blockly.utils.Svg.G,
3435
{},
3536
this.sourceBlock.workspace.getBubbleCanvas(),
3637
);
38+
const rtl = this.sourceBlock.workspace.RTL;
3739
Blockly.utils.dom.createSvgElement(
3840
Blockly.utils.Svg.CIRCLE,
3941
{
@@ -42,7 +44,7 @@ export class MoveIndicatorBubble
4244
'stroke': 'grey',
4345
'stroke-width': '1',
4446
'r': 20,
45-
'cx': 20,
47+
'cx': 20 * (rtl ? -1 : 1),
4648
'cy': 20,
4749
},
4850
this.svgRoot,
@@ -56,7 +58,7 @@ export class MoveIndicatorBubble
5658
'stroke-linejoin': 'round',
5759
'stroke-width': '2',
5860
'd': 'm18 9l3 3l-3 3m-3-3h6M6 9l-3 3l3 3m-3-3h6m0 6l3 3l3-3m-3-3v6m3-15l-3-3l-3 3m3-3v6',
59-
'transform': 'translate(8 8)',
61+
'transform': `translate(${(rtl ? -4 : 1) * 8} 8)`,
6062
},
6163
this.svgRoot,
6264
);

0 commit comments

Comments
 (0)