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
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 ) ;
You can’t perform that action at this time.
0 commit comments