             self.center = center
         }
     }
-
+    
     var rat_centerY: CGFloat {
         get {
             return self.center.y

            self.frame = frame
        }
    }

    /// 视图左上角纵坐标值
    var rat_y: CGFloat {
        get {

        switch direction {
        case .horizontal:
            line.frame = CGRect(x: startPoint.x, y: startPoint.y, width: length, height: width)
            
        case .vertical:
            line.frame = CGRect(x: startPoint.x, y: startPoint.y, width: width, height: length)
        }
