Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega committed Sep 9, 2022
1 parent 875e7ae commit 887df2e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core/rendered_connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class RenderedConnection extends Connection {
private readonly dbOpposite_: ConnectionDB;
private readonly offsetInBlock_: Coordinate;
private trackedState_: TrackedState;
private highlightPath: SVGPathElement | null = null;
private highlightPath: SVGPathElement|null = null;

/** Connection this connection connects to. Null if not connected. */
override targetConnection: RenderedConnection|null = null;
Expand Down Expand Up @@ -304,13 +304,13 @@ export class RenderedConnection extends Connection {
const x = this.x - xy.x;
const y = this.y - xy.y;
this.highlightPath = dom.createSvgElement(
Svg.PATH, {
'class': 'blocklyHighlightedConnectionPath',
'd': steps,
'transform': 'translate(' + x + ',' + y + ')' +
(this.sourceBlock_.RTL ? ' scale(-1 1)' : ''),
},
this.sourceBlock_.getSvgRoot());
Svg.PATH, {
'class': 'blocklyHighlightedConnectionPath',
'd': steps,
'transform': 'translate(' + x + ',' + y + ')' +
(this.sourceBlock_.RTL ? ' scale(-1 1)' : ''),
},
this.sourceBlock_.getSvgRoot());
}

/** Remove the highlighting around this connection. */
Expand Down

0 comments on commit 887df2e

Please sign in to comment.