File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,14 @@ export class MoveIndicatorBubble
28
28
*
29
29
* @param sourceBlock The block this bubble should be associated with.
30
30
*/
31
+ /* eslint-disable @typescript-eslint/naming-convention */
31
32
constructor ( private sourceBlock : Blockly . BlockSvg ) {
32
33
this . svgRoot = Blockly . utils . dom . createSvgElement (
33
34
Blockly . utils . Svg . G ,
34
35
{ } ,
35
36
this . sourceBlock . workspace . getBubbleCanvas ( ) ,
36
37
) ;
38
+ const rtl = this . sourceBlock . workspace . RTL ;
37
39
Blockly . utils . dom . createSvgElement (
38
40
Blockly . utils . Svg . CIRCLE ,
39
41
{
@@ -42,7 +44,7 @@ export class MoveIndicatorBubble
42
44
'stroke' : 'grey' ,
43
45
'stroke-width' : '1' ,
44
46
'r' : 20 ,
45
- 'cx' : 20 ,
47
+ 'cx' : 20 * ( rtl ? - 1 : 1 ) ,
46
48
'cy' : 20 ,
47
49
} ,
48
50
this . svgRoot ,
@@ -56,7 +58,7 @@ export class MoveIndicatorBubble
56
58
'stroke-linejoin' : 'round' ,
57
59
'stroke-width' : '2' ,
58
60
'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)` ,
60
62
} ,
61
63
this . svgRoot ,
62
64
) ;
You can’t perform that action at this time.
0 commit comments