SvgDocoument.Transforms is null
See original GitHub issuehttps://github.com/vvvv/SVG/blob/master/Source/SvgElement.cs#L383
get { return GetAttribute<SvgTransformCollection>("transform", false); }
Which forwards to https://github.com/vvvv/SVG/blob/master/Source/SvgElement.cs#L299
SvgAttributeCollection.GetAttribute
and SvgAttributeCollection.GetInheritedAttribute
return null
, which - in the end - violates best practice (a collection should never be null
, but rather empty).
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:22 (14 by maintainers)
Top Results From Across the Web
d3 - SVG's documentElement turns null after appending to ...
documentElement is null. I've tried appending a documentElement.cloneNode() instead, and while that fixes the null issue, the SVG graphics aren' ...
Read more >transform - SVG: Scalable Vector Graphics - MDN Web Docs
The transform attribute defines a list of transform definitions that are applied to an element and the element's children.
Read more >Transforms on SVG Elements
For starters, CSS transforms on SVG elements don't work in IE. ... and the x parameters makes the value invalid and no transform...
Read more >Document Structure — SVG 2
An SVG document fragment can range from an empty fragment (i.e., no content inside of the 'svg' ... Purpose: To allow transforms on...
Read more >I'm trying to remove transforms if my image is an svg? Any ...
I'm trying to remove transforms if my image is an svg? Any tips or advice would be great · Ask Question. Asked 1...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We have benchmarks for that now.
I am working of Parse optimizations in #786 and I have noticed sometimes type converters return default objects for null values and sometimes not. Definitely memory usage will increase if we create transforms collection for each objects (and all svg visual elements have transforms). I can do benchmarks to showcase how much it will increase.
to validate my point, please see https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/guidelines-for-collections#collection-properties-and-return-values