@amcharts/amcharts5
Version:
amCharts 5
53 lines • 1.6 kB
TypeScript
import { Pattern, IPatternSettings, IPatternPrivate } from "./Pattern";
export interface ICirclePatternSettings extends IPatternSettings {
/**
* Gap between circles, in pixels.
*
* @default 5
*/
gap?: number;
/**
* Radius of the circles, in pixels.
*
* @default 3
*/
radius?: number;
/**
* If set to `true`, will place every second circle, creating checkered
* pattern.
*
* @default false
*/
checkered?: boolean;
/**
* Center circles.
*
* @default false
*/
centered?: boolean;
}
export interface ICirclePatternPrivate extends IPatternPrivate {
}
/**
* Circle pattern.
*
* @see {@link https://www.amcharts.com/docs/v5/concepts/colors-gradients-and-patterns/patterns/} for more info
*/
export declare class CirclePattern extends Pattern {
_settings: ICirclePatternSettings;
_privateSettings: ICirclePatternPrivate;
static className: string;
static classNames: Array<string>;
_beforeChanged(): void;
/**
* A circle pattern's tile is only a repeat unit — the grid repeats every
* cell — so an oversized `width`/`height` just wastes memory and draw time
* for an identical result. Normalise it to a single cell (2x2 cells when
* `checkered`). Skipped for a `rotation` (not periodic on an axis-aligned
* tile) and for non-`repeat` repetitions.
* @ignore
*/
protected _optimizeTileSize(): void;
protected _draw(): void;
}
//# sourceMappingURL=CirclePattern.d.ts.map