dundas.Stroke Class

An object with settings that specify an SVG element's stroke.
 

Inheritance Hierarchy

 
Class
   dundas.Stroke
 

Constructors

 
  Name Description
init Initializes a new instance.
 
 

Properties

 
  Name Description
color Gets or sets the brush used to draw the stroke.
dashArray Gets or sets the dash array of the stroke.
lineCap Gets or sets the linecap of the stroke.
width Gets or sets the width of the stroke.
 
 

Methods

 
  Name Description

Static
applyToElement Applies given stroke to given element. If element null, ignored. If stroke null, stroke will be removed from element.
fromJObject Applies the property values from a plain object created from JSON to the properties of this instance. Inherited from Class.
getPropertyValues Gets a list of the values of all properties.

Static
parse Creates a new instance from a string.
toCss Returns the CSS representation of the instance.
toJSON Implementation for toJSON to return an object that will include this class's prototype property values when stringified. Inherited from Class.
toString Returns the string representation of the instance.