cheetah-grid
Version:
Cheetah Grid is a high performance grid engine that works on canvas
14 lines (12 loc) • 368 B
text/typescript
import type { DrawIndicator } from "./type";
import type { IndicatorObject } from "../../ts-types";
import { drawTriangleIndicator } from "./triangle";
export function getDrawIndicator(
indicatorStyle: IndicatorObject
): DrawIndicator | null {
const { style } = indicatorStyle;
if (style === "triangle") {
return drawTriangleIndicator;
}
return null;
}