NShape 2.3.1
NShape is now based on Framework 4.0 instead of Framework 2.0.
NuGet packages are now available for NShape.
Changes in 2.3.1:
New Features:
- New Property 'Display.EnterClosesTextEditor': Close the shape text editor by pressing the enter key (default value: false)
Bugfixes:
- A NullReferenceException occured when deleting a captioned shape's text with the display's shape caption editor.
- Text in the shape caption editor was invisible when clicking on shape's text and not moving the mouse or pressing a key.
- Line shapes calculate their normal vector (using CalcNormalVector) in the correct direction
- LineShapeBase now overrides Shape.CalculateNormalVector and returns the normal vector calculated by ILinearShape.CalcNormalVector
- Bugfixes in Geometry.TriangleContainsPoint and Geometry.CalcNormalVectorOfRectangle
- Bugfixes and refactorings in 'LabelBase' shape class
- PolylineBase.HitTest now resprects given the range when hit testing line segments
Improvements:
- XML Store no longer overwrites images with the same image file name but ignores them instead ('ImageFileLocation.Directory' only).
- SelectionTool's snap function now snaps to shapes, too (if no 'real' connection points are in range)
- Slower autoscroll when dragging mouse (e.g. selection frame)
- Added generic version of Tool.FindNearestControlPoint in order to enable searching for specific shape types