You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@heron.apache.org by nw...@apache.org on 2019/01/09 21:39:59 UTC
[incubator-heron] branch master updated: [UI] Move reset view
button to left and change plan graph listener from click to dblclick
(#3147)
This is an automated email from the ASF dual-hosted git repository.
nwang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-heron.git
The following commit(s) were added to refs/heads/master by this push:
new 16e254c [UI] Move reset view button to left and change plan graph listener from click to dblclick (#3147)
16e254c is described below
commit 16e254c56acfb05f2787a22809458f2877ed66aa
Author: Ning Wang <nw...@twitter.com>
AuthorDate: Wed Jan 9 13:39:53 2019 -0800
[UI] Move reset view button to left and change plan graph listener from click to dblclick (#3147)
---
heron/tools/ui/resources/static/css/visstyle.css | 2 +-
heron/tools/ui/resources/static/js/logical-plan.js | 2 ++
heron/tools/ui/resources/static/js/plan-controller.js | 4 ++--
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/heron/tools/ui/resources/static/css/visstyle.css b/heron/tools/ui/resources/static/css/visstyle.css
index 9109935..6ad85ad 100644
--- a/heron/tools/ui/resources/static/css/visstyle.css
+++ b/heron/tools/ui/resources/static/css/visstyle.css
@@ -29,7 +29,7 @@
.reset {
position: absolute;
top: 1em;
- right: 1em;
+ left: 1em;
z-index: 100;
}
diff --git a/heron/tools/ui/resources/static/js/logical-plan.js b/heron/tools/ui/resources/static/js/logical-plan.js
index 99b680d..e5cb531 100644
--- a/heron/tools/ui/resources/static/js/logical-plan.js
+++ b/heron/tools/ui/resources/static/js/logical-plan.js
@@ -393,6 +393,7 @@
return d.color;
})
.on("click", planController.logicalComponentClicked)
+ .on("dblclick", planController.logicalComponentClicked)
.on("mouseover", planController.logicalComponentHoverOver)
.on("mouseout", planController.logicalComponentHoverOut);
@@ -402,6 +403,7 @@
.attr("y", function (d) { return d.cy - d.r - 10; })
.attr("class", "fade")
.style("text-anchor", "middle")
+ .style("user-select", "all")
.text(function (d) {
if (d.isReal) {
return d.name;
diff --git a/heron/tools/ui/resources/static/js/plan-controller.js b/heron/tools/ui/resources/static/js/plan-controller.js
index 0567a2f..5482e43 100644
--- a/heron/tools/ui/resources/static/js/plan-controller.js
+++ b/heron/tools/ui/resources/static/js/plan-controller.js
@@ -184,8 +184,8 @@ function PlanController(baseUrl, cluster, environ, toponame, physicalPlan, logic
highlightFocusedElements();
};
- // treat any click that bubbles up unhandled as intent to clear the focus
- $(document).on('click', ".plans .graphics", function () {
+ // treat double click as intent to clear the focus
+ $(document).on('dblclick', ".plans .graphics", function () {
window.location.hash = "/";
});
$(document).on('click', ".reset", function () {