(parcatsViewModel)
| 768 | afterEach(destroyGraphDiv); |
| 769 | |
| 770 | function getDragPositions(parcatsViewModel) { |
| 771 | var dragDimStartX = parcatsViewModel.dimensions[1].x; |
| 772 | |
| 773 | var mouseStartY = parcatsViewModel.y + parcatsViewModel.dimensions[1].categories[2].y + 10; |
| 774 | var mouseStartX = parcatsViewModel.x + dragDimStartX + dimWidth / 2; |
| 775 | |
| 776 | // Pause mouse half-way between the original location of |
| 777 | // the first and second dimensions. Also move mouse |
| 778 | // upward enough to swap position with middle category |
| 779 | var mouseMidY = parcatsViewModel.y + parcatsViewModel.dimensions[1].categories[1].y; |
| 780 | var mouseMidX = mouseStartX + dimDx / 2; |
| 781 | |
| 782 | // End mouse drag in the middle of the original |
| 783 | // position of the dimension label of the third dimension |
| 784 | // (dimension display index 2), and at the height of the original top category |
| 785 | var mouseEndY = parcatsViewModel.y; |
| 786 | var mouseEndX = parcatsViewModel.x + parcatsViewModel.dimensions[2].x + dimWidth / 2; |
| 787 | return { |
| 788 | dragDimStartX: dragDimStartX, |
| 789 | mouseStartY: mouseStartY, |
| 790 | mouseStartX: mouseStartX, |
| 791 | mouseMidY: mouseMidY, |
| 792 | mouseMidX: mouseMidX, |
| 793 | mouseEndY: mouseEndY, |
| 794 | mouseEndX: mouseEndX |
| 795 | }; |
| 796 | } |
| 797 | |
| 798 | function checkInitialDimensions() { |
| 799 | checkDimensionCalc(gd, 0, |
no outgoing calls
no test coverage detected
searching dependent graphs…