public override void OnComputeBox(Renderman renderer, Css.LayoutBox box, ref bool widthUndefined, ref bool heightUndefined) { RectangleProvider rect = Rectangle; // Check to see if w/h was updated via CSS: Css.Value newWidth = Width; Css.Value newHeight = Height; if (rect.Width != newWidth || rect.Height != newHeight) { rect.Width = newWidth; rect.Height = newHeight; RebuildPath(); } }
public SVGRectangleElement() { Shape = new RectangleProvider(); }