anchor.diff:        double scale = graph.getView().getScale();
         geometry.setOffset(new Point2d(0, 0));
         pt = graph.getView().getPoint(edgeState, geometry);
  -      geometry.setOffset(new Point2d(math.round((x - pt.getX()) / scale), math.round((y - pt.getY()) / scale)));
  +      geometry.setOffset(new Point2d(((x - pt.getX()) / scale).round(), ((y - pt.getY()) / scale).round()));
   
         model.setGeometry(edgeState.getCell(), geometry);
       }
     }
   
  -  Cursor _getCursor(MouseEvent e, int index) {
  -    Cursor cursor = null;
  +  util.Cursor _getCursor(event.MouseEvent e, int index) {
  +    util.Cursor cursor = null;
   
       if (isLabel(index)) {
  -      cursor = new Cursor(Cursor.MOVE_CURSOR);
  +      cursor = util.Cursor.MOVE;
       } else {
  -      cursor = new Cursor(Cursor.HAND_CURSOR);
  +      cursor = util.Cursor.MOVE;//HAND_CURSOR;
       }
   
       return cursor;
     }
   
  -  Color getSelectionColor() {
  +  awt.Color getSelectionColor() {
       return SwingConstants.EDGE_SELECTION_COLOR;
     }
   
  
positive.code:             target = tmp;
            }
          } else {
            Point2d point = _convertPoint(new Point2d(e.getX().toDouble(), e.getY().toDouble()), _gridEnabledEvent);
  
            if (points == null) {
              points = [point];
  
negative.code:     return SwingConstants.EDGE_SELECTION_STROKE;
    }
  
    void paint(CanvasRenderingContext2D g) {
      CanvasRenderingContext2D g2 = g;
  
      Stroke stroke = g2.getStroke();
      g2.setStroke(getSelectionStroke());
  