Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix coding typos from the previous commit. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | tooltip-experiments |
| Files: | files | file ages | folders |
| SHA3-256: |
b4f1eb9043692a287c491fe7b510c738 |
| User & Date: | florian 2019-05-20 09:45:00.000 |
Context
|
2019-05-21
| ||
| 07:09 | Auto-close the tooltip after a timeout, if the mouse pointer is no longer over the associated element. The auto-close timeout is elapsed (and the tooltip closed instantly) if the mouse pointer is over another element, paused (and reset) as long as the mouse pointer is over the tooltip, and cancelled (and the tooltip kept open) if the mouse pointer is moved back over the same element. ... (check-in: 3d5903ce0c user: florian tags: tooltip-experiments) | |
|
2019-05-20
| ||
| 23:19 | Merge in the most recent enhancements from trunk, and the new experimental feature that puts the select branch first in the timeline. ... (check-in: 274e95f547 user: drh tags: tooltip-experiments) | |
| 09:45 | Fix coding typos from the previous commit. ... (check-in: b4f1eb9043 user: florian tags: tooltip-experiments) | |
| 08:32 | Experimental change to have the tooltip appear automatically after a "dwell timeout", in addition to mouse clicks. See the wiki page linked to this branch for more information. ... (check-in: bba5337010 user: florian tags: tooltip-experiments) | |
Changes
Changes to src/graph.js.
| ︙ | ︙ | |||
120 121 122 123 124 125 126 |
showGraphTooltip(
this.tooltipInfo.ixElement,
this.tooltipInfo.posX,
this.tooltipInfo.posY);
}.bind(window),tooltipInfo.dwellTimeout);
}
else
| | | | 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 |
showGraphTooltip(
this.tooltipInfo.ixElement,
this.tooltipInfo.posX,
this.tooltipInfo.posY);
}.bind(window),tooltipInfo.dwellTimeout);
}
else
tooltipInfo.ixElement = -1;
};
topObj.onmouseleave = function(e) {
/* Hide the tooltip if the mouse is outside the "timelineTableN" element,
** and outside the tooltip. */
if (tooltipObj.style.display != "none" &&
e.relatedTarget &&
e.relatedTarget != tooltipObj) {
tooltipObj.style.display = "none";
/* Clear the dwell timer. */
if (tooltipInfo.idTimer != 0) {
clearTimeout(tooltipInfo.idTimer);
tooltipInfo.idTimer = 0;
}
tooltipInfo.ixElement = -1;
}
};
var canvasDiv;
var railPitch;
var mergeOffset;
var node, arrow, arrowSmall, line, mArrow, mLine, wArrow, wLine;
|
| ︙ | ︙ |