Skip to content

Commit 48df2b5

Browse files
BezrukovMiText-CI
authored andcommitted
Deprecate svg node renderer mapper interface
DEVSIX-4157 Autoported commit. Original commit hash: [9643dcd90]
1 parent 0fd0964 commit 48df2b5

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

itext/itext.svg/itext/svg/renderers/factories/DefaultSvgNodeRendererFactory.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ public class DefaultSvgNodeRendererFactory : ISvgNodeRendererFactory {
6262
private ICollection<String> ignoredTags = new HashSet<String>();
6363

6464
/// <summary>
65-
/// Default constructor which uses the default
66-
/// <see cref="ISvgNodeRendererMapper"/>
67-
/// implementation.
65+
/// Default constructor with default
66+
/// <see cref="iText.Svg.Renderers.ISvgNodeRenderer"/>
67+
/// creation logic.
6868
/// </summary>
6969
public DefaultSvgNodeRendererFactory()
7070
: this(new DefaultSvgNodeRendererMapper()) {
@@ -80,6 +80,9 @@ public DefaultSvgNodeRendererFactory()
8080
/// back to the
8181
/// <see cref="DefaultSvgNodeRendererMapper"/>
8282
/// </param>
83+
/// <see>DefaultSvgNodeRendererFactory} extension) to create extensions of the factory.</see>
84+
[System.ObsoleteAttribute(@"Will be removed in 7.2. The user should use the customISvgNodeRendererFactory implementation (or the custom"
85+
)]
8386
public DefaultSvgNodeRendererFactory(ISvgNodeRendererMapper mapper) {
8487
if (mapper != null) {
8588
rendererMap.AddAll(mapper.GetMapping());

itext/itext.svg/itext/svg/renderers/factories/DefaultSvgNodeRendererMapper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ namespace iText.Svg.Renderers.Factories {
6363
/// of the default implementations, provided by this project for the standard SVG
6464
/// tags as defined in the SVG Specification.
6565
/// </remarks>
66+
[System.ObsoleteAttribute(@"The public access to this class will be removed in 7.2. The class itself can become either package private or the inner private static class for the DefaultSvgNodeRendererFactory . Users should override ISvgNodeRendererFactory (or at least DefaultSvgNodeRendererFactory ) and should not deal with the mapping class as it's more of an implementation detail."
67+
)]
6668
public class DefaultSvgNodeRendererMapper : ISvgNodeRendererMapper {
6769
public virtual IDictionary<String, Type> GetMapping() {
6870
IDictionary<String, Type> result = new Dictionary<String, Type>();

itext/itext.svg/itext/svg/renderers/factories/ISvgNodeRendererMapper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ namespace iText.Svg.Renderers.Factories {
5454
/// <see cref="DefaultSvgNodeRendererFactory"/>
5555
/// to allow customizability in client code, and dependency injection in tests.
5656
/// </remarks>
57+
[System.ObsoleteAttribute(@"The interface will be removed in 7.2, while its implementation (DefaultSvgNodeRendererMapper ) will be used as our internal class. Users should override ISvgNodeRendererFactory (or at least DefaultSvgNodeRendererFactory ) and should not deal with the mapping class as it's more of an implementation detail."
58+
)]
5759
public interface ISvgNodeRendererMapper {
5860
/// <summary>Gets the map from tag names to Renderer classes.</summary>
5961
/// <returns>

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d34dbbb016d778e89e04f0e5e35554b6d193f989
1+
9643dcd905936eeb99cd34ab3be188f7f30a3d24

0 commit comments

Comments
 (0)