< Summary

Class:GridContainerComponentModel
Assembly:UIComponents
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/UIComponents/Scripts/Components/GridContainer/GridContainerComponentModel.cs
Covered lines:2
Uncovered lines:0
Coverable lines:2
Total lines:27
Line coverage:100% (2 of 2)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
GridContainerComponentModel()0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/UIComponents/Scripts/Components/GridContainer/GridContainerComponentModel.cs

#LineLine coverage
 1using System;
 2using UnityEngine;
 3using UnityEngine.Serialization;
 4using static UnityEngine.UI.GridLayoutGroup;
 5
 6[Serializable]
 7public class GridContainerComponentModel : BaseComponentModel
 8{
 8789    public Constraint constraint = Constraint.FixedColumnCount;
 87810    public int constraintCount = 3;
 11    [FormerlySerializedAs("adaptItemSizeToContainer")] public bool adaptHorizontallyItemSizeToContainer = false;
 12    public bool adaptVerticallyItemSizeToContainer = false;
 13    public Vector2 itemSize;
 14    public Vector2 spaceBetweenItems;
 15
 16    [Header("Flexible configuration")]
 17    //The min width and height for the item
 18    public float minWidthForFlexibleItems;
 19    public float minHeightForFlexibleItems;
 20
 21    //It will take the recommended values if it can
 22    public float recommendedWidthForFlexibleItems;
 23    public float recommendedHeightForFlexibleItems;
 24
 25    //If this property is set to true, if the the recommended height or width can be achieved, it will maintain the same
 26    public bool sameHeightAndWidhtFlexibleItem = false;
 27}

Methods/Properties

GridContainerComponentModel()