(dx, dy)
| 1015 | } |
| 1016 | |
| 1017 | function zoomMoveForPolygons(dx, dy) { |
| 1018 | var x1 = x0 + dx; |
| 1019 | var y1 = y0 + dy; |
| 1020 | var a0 = xy2a(x0, y0); |
| 1021 | var a1 = xy2a(x1, y1); |
| 1022 | var vangles0 = findEnclosingVertexAngles(a0, vangles); |
| 1023 | var vangles1 = findEnclosingVertexAngles(a1, vangles); |
| 1024 | var rr0 = findPolygonRadius(x0, y0, vangles0[0], vangles0[1]); |
| 1025 | var rr1 = Math.min(findPolygonRadius(x1, y1, vangles1[0], vangles1[1]), radius); |
| 1026 | var path1; |
| 1027 | var cpath; |
| 1028 | |
| 1029 | if(clampAndSetR0R1(rr0, rr1)) { |
| 1030 | path1 = path0 + _this.pathSector(r1); |
| 1031 | if(r0) path1 += _this.pathSector(r0); |
| 1032 | // keep 'starting' angle here too |
| 1033 | cpath = [ |
| 1034 | pathCornerForPolygons(r0, vangles0[0], vangles0[1]), |
| 1035 | pathCornerForPolygons(r1, vangles0[0], vangles0[1]) |
| 1036 | ].join(' '); |
| 1037 | } |
| 1038 | applyZoomMove(path1, cpath); |
| 1039 | } |
| 1040 | |
| 1041 | function zoomDone() { |
| 1042 | dragBox.removeZoombox(gd); |
nothing calls this directly
no test coverage detected
searching dependent graphs…