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

154 Коммитов

Автор SHA1 Сообщение Дата
Thomas Stocker 1343b5616e
Remove Fizzler V3 (#1092)
* initial ExCss Implementation ported from RemoveFizzlerV2 Branch
* remove Fizzler from Readme
* updated Fizzler for regression tests to 1.3.0 and implemented :not Pseudofunction
* implemented nth type and nth-last-type
* Implement :root
2023-10-09 08:59:25 +02:00
Antony Corbett 4fd6cd81a4
Minor optimisations (#1084)
* minor optimisations
* avoid materialisation of enumerable.
2023-10-08 14:08:25 +02:00
mzh3511 b92943078f
Fix the color string format if no `System.Drawing.Common` is available (#1055)
* in case no `System.Drawing.Common` is present, the `SvgColourConverter.ConvertTo` method returned 
  invalid SVG that cannot be correctly displayed in current browsers
* fix by handling the case independent of `System.Drawing.Common`
2023-05-21 13:13:55 +02:00
H1Gdev 64a207db79
Fix Build Warnings (#1043)
- fix CS8073 (The result of the expression is always 'false'),
  IDE0051 (Unused private member function),
  CS8032 (Could noit create analyzer)
- apply EditorConfig
- update packages in Svg.Benchmark
2023-02-22 08:07:08 +01:00
H1Gdev cf38ccaf3c
Refactor framework symbols. (#1042)
- remove .NET Framework 4.5.2
- remove unneeded symbols defined by default
2023-02-21 15:24:16 +01:00
Kersten Behrens 71ffa1148a
Fix OutOfMemory exception on SVGs with gradients (#1038)
- Source: the8thavatar, https://github.com/svg-net/SVG/issues/1008#issue-1370121240

* Addendum to eecaefc48130085d794bad3de52da77b94afbd29: Rename MyPointFEqualityComparer to PointFEqualityComparer, fix error "Unanticipated number of intersection points" by returning the GradientPoints of specifiedStart & specifiedEnd

Co-authored-by: Kersten Behrens <kersten.behrens@label-software.de>
2023-02-12 21:08:35 +01:00
H1Gdev 42a1714b06
Fix 'Parameter is not valid' exception when drawing to bitmap (#1006)
- get document size from GetDimensions method.
* fixes #1004
2022-09-05 22:08:28 +02:00
H1Gdev 8c9b1f2b6d
Refeence latest ExCSS instead of copying it (#990)
* reference latest ExCSS (version 4.1.4)
* remove copied ExCSS sources
* fix style tests
2022-07-16 10:16:25 +02:00
H1Gdev aee2e93fa5
Fixes out of memory in Svg 3.4.2 (#991)
* fix LoadStops in SvgGradientServer
* add test
* fixes #989
2022-07-13 20:24:12 +02:00
H1Gdev 8f54863f20
Make sure InheritGradient values are inherited (#970)
* Small refactoring in GradientServer
* Fix: InheritGradient values are not inherited
* Fix: Error occurs with <radialGradient> that have no <stop>
* Fix: cannot get <stop>
* Add tests
* Update ReleaseNotes.md
2022-04-07 20:31:56 +02: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 eb1a73545d
Fix color blend position (#903)
* Fixes #902 'Problem using SVG with LinearGradient when exporting to PNG'
* Fix test
* Update ReleaseNotes.md
2021-10-06 20:12:45 +02:00
H1Gdev 0e56438d63
Minor corrections (#800)
* Remove unnecessary import.
* Organize Svg project file.
* Add readonly.
2021-01-19 19:12:28 +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
H1Gdev 90fc032697
Fix size zero pattern issue (#794)
* Fix size zero pattern issue

- If either width or height is zero.
2021-01-11 14:27:31 +01:00
H1Gdev 12f2f15dda
Fix size zero pattern issue (#793)
- Corrects PR #564
- W3C test file  pservers-pattern-03-f.svg now correctly rendered
2021-01-11 13:50:53 +01:00
H1Gdev 61b933bcd8
Fix fallback color (#792)
- Make up for PR #564.
- Fixes part of #779.
2021-01-11 08:54:37 +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
Thomas Stocker cbe2352506
Remove Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; (#765)
- improves performance
2021-01-01 20:40:11 +01:00
João Baptista de Paula e Silva 9850ed3b5c
Add new line joins defined by the SVG standard (#621)
* Add new line joins defined by the SVG standard
* Add support for the fr attribute from SVG 2.0
2020-12-27 15:09:48 +01:00
H1Gdev 0b4f8b79b6
Fixed argument of Path method. (#690)
* Fixed argument of Path method.
* Add test.
2020-03-26 20:35:11 +01:00
H1Gdev 0a4ef76a37 Do not set Overflow attribute inside. 2020-02-25 20:08:04 +01:00
H1Gdev d577f447bc Revert "Enable checking if PatternUnits or PatternContentUnits was actually set"
This reverts commit df64dd3a73.
2020-02-18 19:32:46 +01:00
Wiesław Šoltés df64dd3a73 Enable checking if PatternUnits or PatternContentUnits was actually set 2020-02-16 19:20:04 +01:00
H1Gdev 3efa867fb6
Remove DefaultValue in EnumConverters. (#668)
* Remove Inherit in SvgCoordinateUnits.
2020-02-10 21:07:57 +01:00
H1Gdev d098c0ed59
Refactor in EnumConverters (#666)
* Move EnumConverters.cs from "Painting" to "DataTypes".

* Support kebab-case.

* Small refactor in EnumConverters.

* Small refactor in EnumBaseConverter.

* Use kebab-case.

* Change from Smallcaps to SmallCaps in SvgFontVariant.
2020-02-08 22:19:56 +01:00
H1Gdev 7f6f9b9d2a
Add tests for EnumConverters. (#663)
* Add tests for EnumConverters.
* Fixed error found in tests.
* Update ReleaseNotes.md.
2020-02-07 20:32:39 +01:00
H1Gdev d1692c21bb
Fixed SvgFontStyle values. (#661)
* Added Inherit to SvgFontStyle values
* Update ReleaseNotes.md.
2020-02-05 20:40:23 +01:00
H1Gdev f639f9a901
Fix: #252 'Won't display gradients if they're wider than 698 px' issue (#658)
* Fix: #252 'Won't display gradients if they're wider than 698 px' issue.
* Add test.
* Update ReleaseNotes.md.
2020-02-04 20:35:12 +01:00
H1Gdev 64c0e39799
Fix: 'inherit' does not work at visibility and display (#656)
* Fix: 'inherit' does not work at visibility and display.
* Add tests.
* Update ReleaseNotes.md.
2020-02-01 21:08:45 +01:00
Wiesław Šoltés 5ba2ab89d6
Add properties to SvgMask and SvgElement (#654)
* Added MaskUnits, MaskContentUnits, X, Y, Width and Height properties to SvgMask
* Added FontStretch property to SvgElement
2020-01-30 21:16:10 +01:00
Wiesław Šoltés 3b489404bb Fix some issues for netstandard2.0 target (#630)
* Bring ColorConverter for netstandard2.0
* Update System.Drawing.Common package to latest version
* Update ReleaseNotes.md
2020-01-01 15:04:52 +01:00
H1Gdev b00f73bf45 Update DeepCopy method of each element. (#599)
* Implement IClonable
* Update DeepCopy method of each element
* Add tests
2019-10-23 19:54:20 +02:00
H1Gdev 829f283baf Redesign of 'inherit' and 'Inherited' (#587)
* Redesign of 'inherit' and 'Inherited'
* Add tests
2019-10-14 10:52:50 +02:00
H1Gdev ed2c7af454 Use FixOpacityValue method. 2019-09-27 20:20:03 +02:00
H1Gdev b77562e7b4 Fix: SvgColourServer ToString method. 2019-09-20 19:56:12 +02:00
H1Gdev 221a2cdbe5 Fix: Behavior of inherit value in Gradient (#575)
* Fix: Behavior of inherit value in Gradient.
- stop-color
- stop-opacity
* Add test
2019-09-12 20:04:52 +02:00
H1Gdev 8307612b0d Redesign of SvgPaintServer decision in SvgPaintServerFactory. (#564)
* Move Inherit and NotSet from SvgColourServer to SvgPaintServer
* Small refactor in SvgDeferredPaintServer
* Fix: xlink:href value format
* Add test for #114
2019-09-11 19:13:11 +02:00
H1Gdev 05f54cb5dc Fix just Build Warning. 2019-09-02 19:58:03 +02:00
Wiesław Šoltés 643cd37810 Added netstandard2.0 support (#509)
* Added netstandard2.0 support, Drawing2D is not fully supported
2019-08-31 20:09:08 +02:00
H1Gdev dc35216f41 Do not copy None, Inherit and NotSet at DeepCopy (#565)
* Do not copy None, Inherit and NotSet at DeepCopy.
* Add test.
2019-08-31 16:30:02 +02:00
H1Gdev ed460d5be0 Fix: Do not reference source SvgDocument. (#560)
* Do not reference source SvgDocument.
* Add Obsolete attribute.
2019-08-24 23:03:30 +02:00
H1Gdev b15356d8b3 Remove white space in filename. 2019-08-20 20:07:28 +02:00
H1Gdev e9571d2d5d Set attribute default values. 2019-08-12 21:39:10 +02:00
H1Gdev d1cd781a66 Supports "Grey" color (#551)
* Small refactoring in SvgColourConverter.
* Supports "Grey" color.
* Add test.
2019-08-11 21:10:59 +02: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 2646ca33c0 Small refactoring for Transforms (2). 2019-08-06 21:28:53 +02:00
H1Gdev 734bd4fd7c Fixed pattern drawing (#523)
* small refactoring in SvgPatternServer
* fixes #280 "Some visio images open black"
* added tests
2019-07-24 19:33:33 +02:00
H1Gdev d8bf177ec9 Deprecate unused interface (#516)
* Addded Obsolete attribute.
2019-07-17 05:32:45 +02:00