internal SvgClipPathElement(INode parent, XmlElement element) : base(parent, element) { this._stylableHelper = new SvgStylableHelper(this, element); this._transformableHelper = new SvgTransformableHelper(element); this.ClipPathUnits = SvgUnitTypeHelper.Parse(element.GetAttribute("clipPathUnits"), SvgUnitType.UserSpaceOnUse); }
protected internal SvgGradientElement(INode parent, XmlElement element) : base(parent, element) { this._stylableHelper = new SvgStylableHelper(this, element); this._transformableHelper = new SvgTransformableHelper(element); this.GradientUnits = SvgUnitTypeHelper.Parse(element.GetAttribute("gradientUnits"), SvgUnitType.ObjectBoundingBox); this.GradientTransform = SvgTransformParser.Parse(element.GetAttribute("gradientTransform")); var spreadMethod = SvgSpreadMethodTypeHelper.Parse(element.GetAttribute("spreadMethod")); if (spreadMethod == SvgSpreadMethodType.Unknown) { spreadMethod = SvgSpreadMethodType.Pad; } this.SpreadMethod = spreadMethod; }