Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(912)

Issue 10048043: Pan to services on delta.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by matthew.scott
Modified:
10 years, 10 months ago
Reviewers:
mp+167564, teknico, jeff.pihach
Visibility:
Public.

Description

Pan to services on delta. On the first delta, pan to the service(s). On subsequent service creation, zoom to the service(s), including the ghost service (this prevents a ghost service from being created outside of the viewport). This behavior simply pans to the centroid of the convex hull of services and does not move any services itself, meaning that one might still see an empty canvas if services are moved in a wide-diameter ring. However, this should still help maintain focus on the services. https://code.launchpad.net/~makyo/juju-gui/zoom-to-delta/+merge/167564 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3

Patch Set 2 : Pan to services on delta. #

Patch Set 3 : Pan to services on delta. #

Patch Set 4 : Pan to services on delta. #

Patch Set 5 : Pan to services on delta. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -14 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M app/app.js View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M app/views/topology/importexport.js View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M app/views/topology/landscape.js View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M app/views/topology/panzoom.js View 1 2 3 4 chunks +34 lines, -6 lines 0 comments Download
M app/views/topology/relation.js View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M app/views/topology/service.js View 1 2 8 chunks +68 lines, -3 lines 0 comments Download
M app/views/topology/utils.js View 1 2 3 4 1 chunk +30 lines, -1 line 0 comments Download
M app/views/topology/viewport.js View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M test/test_topology_utils.js View 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 9
matthew.scott
Please take a look.
10 years, 11 months ago (2013-06-05 15:10:25 UTC) #1
matthew.scott
Please take a look.
10 years, 11 months ago (2013-06-05 15:24:06 UTC) #2
jeff.pihach
Thanks for this LGTM will QA now. https://codereview.appspot.com/10048043/diff/1/app/config-debug.js File app/config-debug.js (right): https://codereview.appspot.com/10048043/diff/1/app/config-debug.js#newcode45 app/config-debug.js:45: sandbox: false, ...
10 years, 11 months ago (2013-06-05 15:46:50 UTC) #3
matthew.scott
https://codereview.appspot.com/10048043/diff/1/app/views/topology/panzoom.js File app/views/topology/panzoom.js (right): https://codereview.appspot.com/10048043/diff/1/app/views/topology/panzoom.js#newcode245 app/views/topology/panzoom.js:245: var topo = this.get('component'), On 2013/06/05 15:46:50, jeff.pihach wrote: ...
10 years, 11 months ago (2013-06-05 16:58:54 UTC) #4
matthew.scott
Please take a look.
10 years, 11 months ago (2013-06-05 17:01:52 UTC) #5
benjamin.saller
This is pretty cool. I've noticed an issue with zoom level interaction. I spent a ...
10 years, 11 months ago (2013-06-05 18:06:38 UTC) #6
matthew.scott
Please take a look.
10 years, 11 months ago (2013-06-07 19:54:04 UTC) #7
teknico
LGTM, nice improvement.
10 years, 10 months ago (2013-06-11 16:25:12 UTC) #8
matthew.scott
10 years, 10 months ago (2013-06-11 17:27:59 UTC) #9
*** Submitted:

Pan to services on delta.

On the first delta, pan to the service(s).  On subsequent service creation, zoom
to the service(s), including the ghost service (this prevents a ghost service
from being created outside of the viewport).  This behavior simply pans to the
centroid of the convex hull of services and does not move any services itself,
meaning that one might still see an empty canvas if services are moved in a
wide-diameter ring.  However, this should still help maintain focus on the
services.

R=jeff.pihach, benjamin.saller, teknico
CC=
https://codereview.appspot.com/10048043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b