Граф коммитов

25 Коммитов

Автор SHA1 Сообщение Дата
Paul Selormey 02518c43c1
Added support for .NET 8 (#1137)
* Added support for .NET 8

- Updated test and sample projects to supports .NET 8
- Fixed compile warnings and errors including CS8352, CA1416
- Initial update to the tests workflow (runtests.yml)
- Removed previously deleted items from the solution file.

* Fixing workflow errors and warnings

- Added .NET 3.1
- Removed include-prerelease: false
- Upgraded actions/cache to v4 (from v1)

* Update runtests.yml

- Run tests in release mode (as the benchmark)
- Upgraded the actions/checkout (v2 to v4)

* Add test solutions to reduce unnecessary nuget package restore

- nuget restore is currently the longest running work on the workflow.
- initial attempt to improve it

* Removed CS0618 in debug mode, updated release notes.
2024-02-03 18:19:59 +09:00
Wiesław Šoltés a7e1e12266
Split drawing code into separate files (#934)
* Split all classes classes with drawing code 
* Put  NO_SDC if/def around drawing interfaces 
  (ISvgClipable, IGraphicsProvider, ISvgRenderer, IFontDefn)
* Put  NO_SDC if/def around drawing only classes 
  (GdiFontDefn, SvgFontDefn)
* Move implicit operator float to NO_SDC if/def
* Move GetRectangle method into NO_SDC if/def
2022-01-10 20:02:27 +01:00
Wiesław Šoltés 4ba2433b83
Enable building code without System.Drawing.Common dependency (#931)
* Remove System.Drawing.Common dependency
2022-01-05 21:59:02 +01:00
H1Gdev e42d4ff0f0
Decrease memory usage on opening SVG document (#911)
* Use Concat and Join with ToArray instead of string aggregation
* Fixes #909 'Very high memory usage (and allocations)' issue
2021-10-14 11:00:51 +02:00
Wiesław Šoltés 94b1f3356c
Refactor SvgTransformConverter to have Parse method and use StringParser (#809) 2021-01-14 20:05:58 +01:00
Wiesław Šoltés 58424ccebe
Migrate to supported .NET Core versions (#787)
* Migrate to supported .NET Core versions:
        - from .NET Core 2.2 (Out of support version) to .NET Core 2.1
        - from .NET Core 3.0 (Out of support version) to .NET Core 3.1
* Add support for .NET 5.0 as the currently recommended .NET SDK

* Added ToSvgString extension method for float
* Added ToStringBenchmarks
* Add netcoreapp3.1 target for test runner
* Add smaller image to reproduce #789
2021-01-12 18:36:33 +01:00
Wiesław Šoltés e570088730
Use Source Generators for SvgElementFactory (#772)
- replace runtime reflection by source generators to improve performance
- done for SvgElementFactory, property descriptors _svgPropertyAttributes and _svgEventAttributes
- no Source Generators support for net452 , added additional target framework net461 
  as the minimum version for source generators
- use stackalloc and out vars to reduce memory usage
- remove Linq usage to improve path parser performance
- use Span for SvgTransformConverter to improve performance
- add several benchmarks
- fixes #771, fixes #776, fixes part 2 of #767
2021-01-07 20:11:08 +01:00
H1Gdev 8cf361077e Make sure Matrix instances are disposed (#544)
* Fix: Dispose Matrix instances.
* Update DebugRenderer.
* Remove _zeroMatrix member.
2019-08-10 15:06:05 +02:00
H1Gdev ec17c8a0e9 Small refactoring for Transforms (3). 2019-08-07 21:29:22 +02:00
mrbean-bremen 88d2b7f7ac
Autoformat source code
- mainly to replace all tabs by spaces to avoid ugly diffs
  due to mixed tabs and spaces
2019-05-20 21:46:35 +02:00
Eric Domke ec0cf19d5e Serialization Bug Fixes
Added parameter to the SvgAttribute indicating whether the storage is
the _attribute dictionary.  If true, the output will only be serialized
only if the key is in the dictionary.  This structure is an alternate to
the SvgDefinitionDefaults class.
2014-10-08 19:02:47 -04:00
Eric Domke 4200d30212 Bug Fixes
- Improving rendering of SVG images
- Allow markers on lines, polygons, and polylines
- Implement different line joins and line caps
- Improve CSS handling
2014-08-25 07:43:50 -04:00
Eric Domke 46e375e413 Bug Fixes
- Fixing path parsing algorithm to deal with nuanced arc cases and
hopefully improve performance
- Attempts at better memory management
- Working toward getting symbols to render correctly
2014-08-17 22:28:20 -04:00
Eric Domke 7c70bd1135 Text on a Path & SVG Fonts
- Extraction interface for SvgRenderer
- Initial support for Text on a Path
- Initial support for Svg Fonts
- Support for symbol element
- Minor bug fixes with image pattern rendering
- Additional support for Text whitespace modes
2014-08-17 16:56:32 -04:00
Eric Domke d5c659a547 Refactoring while working through W3C tests
- Adding W3C test cases and a test fixture
- Fixed support for CSS stylesheets (particularly when class names are
referenced)
- Refactoring unit calculations so that percentages and fractions
calculate more accurately
- SvgImage:
- Support PreserveAspectRatio attribute
- Support for referencing svg images
- Refactored text rendering to use the AttributeCollection inheritance
scheme
- Initial attempt at 'ex' unit support
- Added support for system color names
- Changed parsing of entities to support XML entities
- Supporting loading of a svg document directly from a XmlDocument with
requiring serializing the document as a string first.
- ...
2014-08-03 21:33:49 -04:00
tebjan 1758a5b56c now doing element wise matrix comparison 2014-03-28 14:53:42 +00:00
tebjan f20108c812 svg transforms can now be compared and return correct results 2014-03-28 14:31:02 +00:00
tebjan 4d631e7f1a made svg transform collection a proper ICloneable 2014-03-28 12:59:17 +00:00
Birgir Kristmannsson 80e1ae9967 Forked and commited as per the request in
https://github.com/vvvv/SVG/issues/23#issuecomment-25747963
2013-11-17 13:45:42 +00:00
joye-ramone dcafe78658 Fixed issue with translate(x,y) transformation parsing in SvgTransformConverter
According to https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform
translate transformation can be specified without second parameter
2013-09-24 20:30:42 +03:00
Tebjan Halm ca782d2f9e work on update events 2013-07-31 05:45:31 +02:00
G Money 094c0b1aba - Made Deepcopy change to all elements to allow for duplicating part of the Svg document tree
- Changes to get texts displaying bold / normal weight
- Changes to get textspans work correctly
- Made (semi-hardcoded) document metadata section - allow reading and regurgitating metdata tag from an original source document
- Included image
- Modified paths to allow for scientific notation
- Included ability to have markers for path ends (arrow ends etc)
2012-03-19 14:34:53 +13:00
Tebjan Halm fafb144492 * Path and Bounds are now available for SvgFragment
* SvgDocument can calculate its size in percentage
* SvgTransform collection can return all matrices multiplied
2011-12-02 01:13:40 +01:00
Tebjan Halm 6998823a4f * implemented fill modes
* fill can be null -> none in XML
* added type converters for enums
* added type converter for unitcollection
* fixes several viewbox bugs
* document can now draw into a given bitmap
* content of SVG tag is written (used by the text tag)
* changed font handling in text element, still need proper alignment
* changed intersparse character of SvgTransformConverter.cs to space, because inkscape couldn't parse comma
* added class diagram for basic shapes
2011-11-11 22:09:56 +01:00
davescriven cf59fef87f - Source control folders restructured 2010-03-04 10:19:58 +00:00