Esempio n. 1
0
        /// <summary>Renders the child nodes of this tag.</summary>
        protected void BuildChildren(RenderContext renderer)
        {
            // Render child nodes as well:
            if (childNodes_ == null)
            {
                return;
            }

            foreach (Node child in childNodes_)
            {
                // Render it too:
                SVGElement svg = (child as SVGElement);

                if (svg == null)
                {
                    continue;
                }

                svg.BuildFilter(renderer);
            }
        }
Esempio n. 2
0
        public override void BuildFilter(RenderContext renderer)
        {
            if (Visibility == VisibilityMode.Hidden)
            {
                return;
            }

            PushTransforms(renderer);

            SetClip(renderer);

            SVGElement element = Target;

            if (element != null)
            {
                Node origParent = element.parentNode;
                element.parentNode_ = this;
                element.BuildFilter(renderer);
                element.parentNode_ = origParent;
            }

            ResetClip(renderer);
            PopTransforms(renderer);
        }