ag-charts-enterprise
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
33 lines (32 loc) • 1.72 kB
TypeScript
import { _ModuleSupport } from 'ag-charts-community';
import { OhlcBaseNode } from '../ohlc/ohlcNode';
export declare class CandlestickNode<D> extends OhlcBaseNode<D> {
private readonly wickPath;
wickStroke: string | undefined;
__wickStroke: string | undefined;
wickStrokeWidth: number | undefined;
__wickStrokeWidth: number | undefined;
wickStrokeOpacity: number | undefined;
__wickStrokeOpacity: number | undefined;
wickLineDash: readonly number[] | undefined;
wickLineDashOffset: number | undefined;
__wickLineDashOffset: number | undefined;
wickStrokeAlignment: number;
__wickStrokeAlignment: number;
/**
* High-performance wick property setter that bypasses the decorator system entirely.
* Writes directly to backing fields (__propertyName) to avoid:
* - Decorator setter chains and equality checks
* - Multiple onChangeDetection calls per property
* - Object.keys() iteration in assignIfNotStrictlyEqual
* - Object allocation overhead
*
* A single markDirty() call at the end ensures the scene graph is properly invalidated.
* WARNING: Only use for hot paths where performance is critical and properties don't need
* individual change detection (e.g., when updating many nodes in a loop).
*/
setWickProperties(wickStroke: string | undefined, wickStrokeWidth: number | undefined, wickStrokeOpacity: number | undefined, wickLineDash: readonly number[] | undefined, wickLineDashOffset: number | undefined): void;
protected computeDefaultGradientFillBBox(): _ModuleSupport.BBox | undefined;
updatePath(): void;
drawPath(ctx: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D): void;
}