Gutter Hover tooltip#5872
Conversation
…n position logic.
…de, and improve positioning logic.
… to improve handling and positioning.
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
…d alignment and consistency.
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
… anchor metrics, and improve code clarity.
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
1 similar comment
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
…tants, replace `const` with `var` for consistency, and adjust destroy logic.
7c57333 to
47a6321
Compare
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5872 +/- ##
==========================================
- Coverage 87.89% 87.88% -0.01%
==========================================
Files 622 622
Lines 46441 46478 +37
Branches 7609 7614 +5
==========================================
+ Hits 40821 40849 +28
- Misses 5620 5629 +9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ace-internal.d.ts
Outdated
| select?: () => void | ||
| $lastScroll?: { t: number, vx: number, vy: number, allowed: number } | ||
| selectEnd?: () => void | ||
| tooltip?: Ace.GutterTooltip |
There was a problem hiding this comment.
why do we need to add this as public property, don't we have it as annotationTooltip already?
| assert.notOk(/ace_security_fold/.test(firstLineGutterElement.className)); | ||
| assert.ok(/ace_warning_fold/.test(firstLineGutterElement.className)); | ||
| }, | ||
| "test: sets position correctly when tooltipFollowsMouse false" : function(done) { |
There was a problem hiding this comment.
This test was specifically to test tooltip mode when tooltipFollowsMouse is false; now we removed this option, so all other tests are checking quite the same.
| editor.on("mousedown", this.hide); | ||
| editor.renderer.getMouseEventTarget().addEventListener("mouseout", this.onMouseOut, true); | ||
| var target = editor.renderer.getMouseEventTarget(); | ||
| if (target && typeof target.removeEventListener === "function") { |
src/tooltip.js
Outdated
| || isMousePressed | ||
| || this.isOutsideOfText(this.lastEvent) | ||
| ) { | ||
| if (!this.range || !this.range.contains(pos.row, pos.column) || isMousePressed || this.isOutsideOfText( |
There was a problem hiding this comment.
please revert unrelated formatting changes like this.
src/tooltip.js
Outdated
| * @param {{point:{pageX:number,pageY:number},rect?:{top:number,right:number,bottom:number,left:number,width:number,height:number}}} anchor | ||
| * @param {Range} [range] | ||
| */ | ||
| $setPosition(editor, anchor, range) { |
There was a problem hiding this comment.
this looks a bit wrong, point information is contained in rect, and shouldPlaceAbove does not need to be overridden in gutterTooltip.
…of markers, and enhance code readability.
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
…ype definitions, and adjust related logic for consistency and clarity.
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
9a0c6d6 to
98c936d
Compare
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
98c936d to
7e54b76
Compare
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
7e54b76 to
670086f
Compare
|
One of the public type files has been updated, plase make sure there are no backwards incompatible changes done in the PR. |
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Pull Request Checklist:
ace.d.ts) and its references: