v0.10.0
Warning: Major breaking changes in API.
New features
- Added
ChildrenandColumnscollection initializers with behavior of LINQ to XML constructors.AddChildrenandAddColumnsextension methods marked as obsolete. - Added
Element.Valuesobject initializer dummy for setting attached properties. Can be used instead ofElement's indexer if strong typing is preffered. - #15 (Extension methods to color strings like in npm.colors for JS). For example:
"Text".Red().OnDarkBlue(). Requiresusing Alba.CsConsoleFormat.Fluent. - #16 (Extend line characters): Switched to 4-direction line chars. More precise control of drawing lines. Now adjacent tables are drawn correctly.
- Added support for
LineWidth.HeavyinLineCharRenderer.BoxExtended. Requires the console to use a font which supports the relevant Unicode box drawing characters. Not as wide-spread as DOS box drawing characters, so opt-in. - Added
Docuemnt.LineCharRendererproperty (previously line char renderer could only be set throughConsoleBufferwhich isn't normally exposed).
Changes
- Renamed many properties to follow CSS naming instead of older WPF/HTML mix:
HorizontalAlignment AligntoAlign Align,VerticalAlignment VAligntoVerticalAlign VerticalAlign,TextAlignment TextAligntoTextAlign TextAlign,TextWrapping TextWraptoTextWrap TextWrap,GridUnitType UnitTypetoGridUnit Unit. - Constructors of
ThicknessandLineThicknessuse CSS argument order for 2 argument overloads. - Renamed
LineChar.WidetoDouble.
Fixes
- #13 (TextAlign property doesn't work on single-line blocks)