void InitDefaults() { isStrokeWidth = false; this._visibility = SVGVisibility.Visible; this._display = SVGDisplay.Inline; this._overflow = SVGOverflow.visible; this._clipPathUnits = SVGClipPathUnits.UserSpaceOnUse; this._clipRule = SVGClipRule.nonzero; this._opacity = 1f; this._fillOpacity = 1f; this._strokeOpacity = 1f; this._fillColor = new SVGColor(); this._strokeColor = new SVGColor(); this._strokeWidth = new SVGLength(1); this._strokeLineJoin = SVGStrokeLineJoinMethod.Miter; this._strokeLineCap = SVGStrokeLineCapMethod.Butt; this._fillRule = SVGFillRule.NonZero; this._miterLimit = new SVGLength(4); this._dashArray = null; this._dashOfset = new SVGLength(0); this._cssStyle = new Dictionary <string, Dictionary <string, string> >(); this._clipPathList = new List <List <Vector2> >(); this._linearGradList = new Dictionary <string, SVGLinearGradientElement>(); this._radialGradList = new Dictionary <string, SVGRadialGradientElement>(); this._conicalGradList = new Dictionary <string, SVGConicalGradientElement>(); }
private void SetOverflow(string overflowType) { switch (overflowType) { case "visible": _overflow = SVGOverflow.visible; break; case "auto": _overflow = SVGOverflow.auto; break; case "hidden": _overflow = SVGOverflow.hidden; break; case "scroll": _overflow = SVGOverflow.scroll; break; } }
private void SetOverflow(string overflowType) { switch(overflowType) { case "visible": _overflow = SVGOverflow.visible; break; case "auto": _overflow = SVGOverflow.auto; break; case "hidden": _overflow = SVGOverflow.hidden; break; case "scroll": _overflow = SVGOverflow.scroll; break; } }
void InitDefaults() { isStrokeWidth = false; this._visibility = SVGVisibility.Visible; this._display = SVGDisplay.Inline; this._overflow = SVGOverflow.visible; this._clipPathUnits = SVGClipPathUnits.UserSpaceOnUse; this._clipRule = SVGClipRule.nonzero; this._opacity = 1f; this._fillOpacity = 1f; this._strokeOpacity = 1f; this._fillColor = new SVGColor(); this._strokeColor = new SVGColor(); this._strokeWidth = new SVGLength(1); this._strokeLineJoin = SVGStrokeLineJoinMethod.Miter; this._strokeLineCap = SVGStrokeLineCapMethod.Butt; this._fillRule = SVGFillRule.NonZero; this._miterLimit = new SVGLength(4); this._dashArray = null; this._dashOfset = new SVGLength(0); this._cssStyle = new Dictionary<string, Dictionary<string, string>>(); this._clipPathList = new List<List<Vector2>>(); this._linearGradList = new Dictionary<string, SVGLinearGradientElement>(); this._radialGradList = new Dictionary<string, SVGRadialGradientElement>(); this._conicalGradList = new Dictionary<string, SVGConicalGradientElement>(); }