Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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;
        }