namespace anychart.graphics.vector Improve this Doc
A namespace for working with vector graphics.
Functions Overview
normalizeFill() | Normalizes stroke params. Look at anychart.graphics.vector.Shape#fill params for details. |
normalizeHatchFill() | Normalize hatch fill. |
normalizeStroke() | Normalizes stroke params. Look at anychart.graphics.vector.Shape#stroke params for details. |
Enums Overview
anychart.graphics.vector.Anchor | The list of positions for an anchor. |
anychart.graphics.vector.Cursor | Defines the type of the cursor. |
anychart.graphics.vector.ImageFillMode | Image fill modes. |
anychart.graphics.vector.PaperSize | Paper sizes. |
anychart.graphics.vector.StrokeLineCap | Line caps. |
anychart.graphics.vector.StrokeLineJoin | Line joins. |
Typedefs Overview
anychart.graphics.vector.AnyColor | A shortcut for fill or stroke or patternFill. |
anychart.graphics.vector.ColoredFill | Any color fill. |
anychart.graphics.vector.Fill | Any fill. |
anychart.graphics.vector.GradientKey | Gradient keys. |
anychart.graphics.vector.ImageFill | Image fill. |
anychart.graphics.vector.LinearGradientFill | Linear gradient. |
anychart.graphics.vector.LinearGradientStroke | Linear gradient stroke. |
anychart.graphics.vector.RadialGradientFill | Radial gradient fill. |
anychart.graphics.vector.RadialGradientStroke | Radial gradient stroke. |
anychart.graphics.vector.SolidFill | Fill. |
anychart.graphics.vector.SolidStroke | Solid color line. |
anychart.graphics.vector.Stroke | Any stroke. |
anychart.graphics.vector.TextSegmentStyle | Text segment. |
anychart.graphics.vector.TextShadow | Text shadow object. |
anychart.graphics.vector.TextStyle | Format of style the text. May be applied to plain and html texts. |
Classes Overview
anychart.graphics.vector.Circle | Circle Class. Inherited from Ellipse. |
anychart.graphics.vector.Clip | Class representing independent clip, that can be applied to any element. |
anychart.graphics.vector.Element | Abstract class for all vector elements, such as groups and primitives. |
anychart.graphics.vector.Ellipse | Ellipse Class. |
anychart.graphics.vector.HatchFill | HatchFill is a special pattern fill with predefined set of a primitives. Sets of a primitives does numbered and |
anychart.graphics.vector.Image | Image primitive. |
anychart.graphics.vector.Layer | Layer class. Used to group elements. |
anychart.graphics.vector.LinearGradient | Linear gradient. |
anychart.graphics.vector.Path | Path class. |
anychart.graphics.vector.PatternFill | Pattern fill class. |
anychart.graphics.vector.RadialGradient | Radial gradient. |
anychart.graphics.vector.Rect | Rectangle class |
anychart.graphics.vector.Shape | Base class for all vector elements. |
anychart.graphics.vector.Stage | This class provide tools for cross-browser display with the single interface for both (SVG and VML). |
anychart.graphics.vector.Text | Text class. |
anychart.graphics.vector.UnmanagedLayer |
Functions Description
normalizeFill
Normalizes stroke params. Look at anychart.graphics.vector.Shape#fill params for details.
Params:
Name | Type | Description |
---|---|---|
fillOrColorOrKeys | anychart.graphics.vector.Fill | !Array.<(anychart.graphics.vector.GradientKey|string)> | null | Fill settings or Color or Gradient keys. |
opacityOrAngleOrCx | number | Opacity or Angle or x-coord of center. |
modeOrCy | number | boolean | anychart.graphics.math.Rect | Object | Mode settings or y-coord of center. |
opacityOrMode | number | anychart.graphics.math.Rect | Object | null | Opacity settings or Mode settings. |
opacity | number | Opacity settings. |
fx | number | Focal x-coord settings. |
fy | number | Focal y-coord settings. |
Returns:
anychart.graphics.vector.Fill - Fill.normalizeHatchFill
Normalize hatch fill.
Params:
Name | Type | Description |
---|---|---|
patternFillOrType | anychart.graphics.vector.HatchFill | anychart.graphics.vector.PatternFill | anychart.graphics.vector.HatchFill.HatchFillType | string | Object | null | Pattern fill or type of the hatch fill. |
color | string | Color. |
thickness | string | number | Line thickness. Defaults to 1. |
size | string | number | Size. |
Returns:
anychart.graphics.vector.PatternFill | anychart.graphics.vector.HatchFill - Pattern fill or hatch fill.normalizeStroke
Normalizes stroke params. Look at anychart.graphics.vector.Shape#stroke params for details.
Params:
Name | Type | Description |
---|---|---|
color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | null | Stroke fill, if used as setter. |
thickness | number | Line thickness. Defaults to 1. |
dashpattern | string | Controls the pattern of dashes and gaps used to stroke paths. Dash array contains a list of comma and/or white space separated lengths and percentages that specify the lengths of alternating dashes and gaps. If an odd number of values is provided, then the list of values is repeated to yield an even number of values. Thus, stroke dashpattern: 5,3,2 is equivalent to dashpattern: 5,3,2,5,3,2. |
lineJoin | string | anychart.graphics.vector.StrokeLineJoin | Line join style. |
lineCap | string | anychart.graphics.vector.StrokeLineCap | Line cap style. |
Returns:
anychart.graphics.vector.Stroke - Stroke.