Type module
Sources
Items from PatternsTheme can be imported/included and used via following ways.
/** * -------------------------------------------------------- * Import via: PatternsTheme.ts * Access items like: $patternstheme.myVariable * $patternstheme.myFunction() * -------------------------------------------------------- */ import * as $patternstheme from "@amcharts/amcharts5/PatternsTheme";
Variables
|
PATTERN_STROKE_WIDTHS # |
Type Default Stroke widths cycled across line series (which can't carry a fill pattern), so they are told apart by weight as well as tone. |
|---|---|
|
PATTERN_STROKE_DASHARRAYS # |
Type Default [12, Stroke dash arrays cycled across line series (0 = solid), paired with the widths above for extra separation. |
|
PATTERN_GRAYS # |
Type Default Color.fromHex(0x818181), Color.fromHex(0x606060), Color.fromHex(0x939393), Color.fromHex(0x545454), Color.fromHex(0x727272) A ramp of gray fills cycled across series (ordered so neighbours contrast), so series differ by tone as well as by their overlaid white pattern. Kept mid-dark enough that the white texture always reads. |
Functions
|
buildPatterns( ) |
Returns Builds a fresh, varied set of patterns. One set is made per theme rule (i.e. per root), shared by all charts of that class — mirroring how the default theme shares a single ColorSet per root. Angled hatches use each pattern's |
|---|