public SVGPathElement(Node node, SVGTransformList inheritTransformList, SVGPaintable inheritPaintable = null) : base(inheritTransformList) { _attrList = node.attributes; _paintable = new SVGPaintable(inheritPaintable, node); currentTransformList = new SVGTransformList(_attrList.GetValue("transform")); Rect viewport = _paintable.viewport; this.currentTransformList.AppendItem(new SVGTransform(SVGTransformable.GetViewBoxTransform(_attrList, ref viewport, false))); paintable.SetViewport(viewport); Initial(); }
public SVGPolygonElement(Node node, SVGTransformList inheritTransformList, SVGPaintable inheritPaintable = null) : base(inheritTransformList) { this._attrList = node.attributes; this._paintable = new SVGPaintable(inheritPaintable, node); this._listPoints = ExtractPoints(this._attrList.GetValue("points")); this.currentTransformList = new SVGTransformList(attrList.GetValue("transform")); Rect viewport = _paintable.viewport; this.currentTransformList.AppendItem(new SVGTransform(SVGTransformable.GetViewBoxTransform(_attrList, ref viewport, false))); paintable.SetViewport(viewport); }
public SVGCircleElement(Node node, SVGTransformList inheritTransformList, SVGPaintable inheritPaintable = null) : base(inheritTransformList) { this._attrList = node.attributes; this._paintable = new SVGPaintable(inheritPaintable, node); this._cx = new SVGLength(attrList.GetValue("cx")); this._cy = new SVGLength(attrList.GetValue("cy")); this._r = new SVGLength(attrList.GetValue("r")); this.currentTransformList = new SVGTransformList(attrList.GetValue("transform")); Rect viewport = _paintable.viewport; this.currentTransformList.AppendItem(new SVGTransform(SVGTransformable.GetViewBoxTransform(this._attrList, ref viewport, false))); paintable.SetViewport(viewport); }
public SVGLineElement(Node node, SVGTransformList inheritTransformList, SVGPaintable inheritPaintable = null) : base(inheritTransformList) { this._attrList = node.attributes; this._paintable = new SVGPaintable(inheritPaintable, node); this._x1 = new SVGLength(attrList.GetValue("x1")); this._y1 = new SVGLength(attrList.GetValue("y1")); this._x2 = new SVGLength(attrList.GetValue("x2")); this._y2 = new SVGLength(attrList.GetValue("y2")); this.currentTransformList = new SVGTransformList(attrList.GetValue("transform")); Rect viewport = _paintable.viewport; this.currentTransformList.AppendItem(new SVGTransform(SVGTransformable.GetViewBoxTransform(_attrList, ref viewport, false))); paintable.SetViewport(viewport); }
public SVGRectElement(Node node, SVGTransformList inheritTransformList, SVGPaintable inheritPaintable = null) : base(inheritTransformList) { this._attrList = node.attributes; this._paintable = new SVGPaintable(inheritPaintable, node); this._x = new SVGLength(attrList.GetValue("x")); this._y = new SVGLength(attrList.GetValue("y")); this._width = new SVGLength(attrList.GetValue("width")); this._height = new SVGLength(attrList.GetValue("height")); this._rx = new SVGLength(attrList.GetValue("rx")); this._ry = new SVGLength(attrList.GetValue("ry")); this.currentTransformList = new SVGTransformList(attrList.GetValue("transform")); Rect viewport = _paintable.viewport; this.currentTransformList.AppendItem(new SVGTransform(SVGTransformable.GetViewBoxTransform(_attrList, ref viewport, false))); paintable.SetViewport(viewport); }