using MultiLayout.UiModule;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FLY.Thick.FilmCasting.UI.UiModule
{
    /// <summary>
    /// 扫描图的参数
    /// </summary>
    public class ScanGraphItemParam : UIModuleParam
    {
        public string UiModule { get; set; } = "scangraph";
        /// <summary>
        /// Y轴比例
        /// </summary>
        public double YRangePercent { get; set; } = 3;

        private int mix = 2;
        /// <summary>
        /// 混合数
        /// </summary>
        public int Mix
        {
            get { return mix; }
            set
            {
                if (value < 1)
                    value = 1;
                if (mix != value)
                {
                    mix = value;
                }
            }
        }

        /// <summary>
        /// 当小于等于0，为相对值，大于0为绝对值
        /// </summary>
        public long Number { get; set; } = 0;

        /// <summary>
        /// Y轴%显示
        /// </summary>
        public bool IsPercent { get; set; } = true;

        /// <summary>
        /// Y轴自动目标值
        /// </summary>
        public bool IsAutoTarget { get; set; } = true;
    }
}
