//
//  YFLDragConfigure.swift

//
//  Created by AI Assistant on 2024/12/19.
//  Copyright © 2024年 Crush. All rights reserved.
//

import UIKit

// 边界比
let boundaryRation: CGFloat = 0.2
let secondCardScale: CGFloat = 1.0//0.95
let thirdCardScale: CGFloat = 1.0//0.95

enum ContainerDragDirection: Int {
    case `default` = 0
    case left = 1
    case right = 2
    case up = 3
    case down = 4
}

class MeetDragConfigure: NSObject {
    var direction: ContainerDragDirection = .default
    
    /// 可见个数 默认为 3
    var visableCount: Int = 3
    
    /// 卡片边距 默认为10.0f
    var containerEdge: CGFloat = 10.0
    
    /// 卡片内边距 默认为5.0f
    var cardEdge: CGFloat = 5.0
    
    /// 卡片圆角  默认为10.0f
    var cardCornerRadius: CGFloat = 10.0
    
    /// 卡片边缘宽度 默认为0.45f
    var cardCornerBorderWidth: CGFloat = 0.45
    
    /// 卡片边缘颜色
    var cardBordColor: UIColor = UIColor(red: 176.0/255.0, green: 176.0/255.0, blue: 176.0/255.0, alpha: 1.0)
    
    /// 卡片竖直方向额外的边距，默认0
    var cardVTopEdage: CGFloat = 0
    var cardVBottomEdage: CGFloat = 0
    
    override init() {
        super.init()
        // 设置默认值
        visableCount = 3
        containerEdge = 0// 16.0
        cardEdge = 0.01
        cardCornerRadius = 8.0
        cardCornerBorderWidth = 0.0
        cardBordColor = UIColor.clear
        cardVTopEdage = 0
        cardVBottomEdage = 0//12
    }
}
