Skip to content

Conversation

@poojahpatil90
Copy link
Contributor

4394

@bzabos A question for you - I notice that if we click on a connection and then try hovering over another, we don't have the desired behavior of highlighting the hovered line. I am wondering if we need to make a fix for this as well? Or we can let the user uncheck the selection by clicking outside and then hover over the wires they want to see?

@poojahpatil90 poojahpatil90 requested a review from bzabos August 10, 2021 16:36
this.line = new LeaderLine(start, end, this.options)
// Add event listeners
const self = this
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I remove the reference to self as it did not make any difference in the functionality. Let me know if there is concern around this change.

@github-actions
Copy link

Found 1 violations:

Reporter: ESLint
Rule: eslint.rules.no-underscore-dangle
Severity: ERROR
File: src/components/interaction-designer/Connection.vue L144

Unexpected dangling '_' in '_id'. (no-underscore-dangle)

const self = this
// the only way to identify current line so far: https://github.com/anseki/leader-line/issues/185
const connectionElement = document.querySelector('body>.leader-line:last-of-type')
this.connectionDomHandle = document.getElementById(`leader-line-${this.line._id}-line-path`).closest('svg.leader-line')

Choose a reason for hiding this comment

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

Reporter: ESLint
Rule: eslint.rules.no-underscore-dangle
Severity: ERROR
File: src/components/interaction-designer/Connection.vue L144

Unexpected dangling '_' in '_id'. (no-underscore-dangle)

Copy link
Member

@bzabos bzabos left a comment

Choose a reason for hiding this comment

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

@poojahpatil90 this looks good! I left a couple minor comments that I'll leave up to your discretion. Feel welcome to merge if you're happy with what's there!

@bzabos
Copy link
Member

bzabos commented Sep 15, 2021

@bzabos A question for you - I notice that if we click on a connection and then try hovering over another, we don't have the desired behavior of highlighting the hovered line. I am wondering if we need to make a fix for this as well? Or we can let the user uncheck the selection by clicking outside and then hover over the wires they want to see?

@poojahpatil90 Can you create a JIRA for this and touch base with @safydy on the details? I don't have a clear answer off the top of my head right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants