sthewissen / Xamarin.Forms.DebugRainbows

The package you didn't even know you needed!
MIT License
415 stars 33 forks source link

[Feature] Make debug grid start from center #21

Closed sthewissen closed 4 years ago

sthewissen commented 4 years ago

Add a property for the overlay grid to start from the horizontal and vertical center with a Major grid line (if used) and space itself out to the top, bottom, left and right. Probably best off making a property named GridOrigin with an enum containing TopLeft and Center for now. Can always add more if needed.

adenearnshaw commented 4 years ago

Perhaps there's two different ways to center the grid: by a single Major line thats centered; or by the square that two major grid lines make. E.g.

Major line Centered MainLine_Centered

Major Grid Centered MainLinePair_Centered

sthewissen commented 4 years ago

Starting from the center with a line and moving it left and right outwards is the simple version. Got that implemented for the iOS version already :) Not quite sure about the calculations for the other one and how to approach that. I'll focus on the Center version first.

image

sthewissen commented 4 years ago

Will be in 1.1.4.