Skip to content

Commit

Permalink
Merge branch 'master' into gh_actions
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmJSD committed Sep 13, 2019
2 parents 3e7c02e + c6306c2 commit 8bcafbb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/spf-explainer/utils/line_generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

// Defines the main gap size.
const mainGapSize = 8

// The line multiplier.
const lineMultiplier = 0.05

Expand Down Expand Up @@ -125,7 +128,7 @@ export default class LineGenerator {
const svg = this._createInnerSvg(container)

// Gets the left side of B.
const bLeft = bRect.left - 2
const bLeft = bRect.left - mainGapSize

try {
// If bLeft is less than 0, return.
Expand All @@ -152,7 +155,7 @@ export default class LineGenerator {
this.drawLine(svg, lineColor, this.downX!, aBestX, aBestY, aBestY)

// Draws the claw.
drawClaw(bLeft, bRect.top - 3, bRect.bottom + 3, this, svg)
drawClaw(bLeft, bRect.top - mainGapSize, bRect.bottom + mainGapSize, this, svg)

// bLeft being greater than bTop means there isn't enough room. Return and destroy.
if (this.downX! > bLeft) return this.destroy()
Expand Down

1 comment on commit 8bcafbb

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been deployed to DigitalOcean Spaces for easy reviewing.

dns-tool spf-explainer

Please sign in to comment.