     }
 
     func propertySetting() {
-        // 设置线宽
-        if selected {
-            shapeLayer?.strokeColor = options.circleLineSelectedColor.cgColor
-        } else {
-            shapeLayer?.strokeColor = options.circleLineNormalColor.cgColor
-        }
+        shapeLayer?.strokeColor = (selected ? options.circleLineSelectedColor : options.circleLineNormalColor).cgColor
     }
 
     func renderRing(with rect: CGRect) {

        let rightPointX = topX + w * 0.5
        trianglePathM.addLine(to: CGPoint(x: rightPointX, y: leftPointY))

        // 将路径添加到上下文中
        mainPath.append(trianglePathM)
        trianglePathM.fill()
        shapeLayer?.path = mainPath.cgPath

    /*
     *  三角形：方向标识
     */
    func directFlag(rect: CGRect) {
        // 新建路径：三角形
        let trianglePathM = UIBezierPath()
        let marginSelectedCirclev: CGFloat = 4
