
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
import { Candlestick } from "./Candlestick";
export class OHLC extends Candlestick {
_draw() {
const display = this._display;
display.moveTo(this.get("lowX1", 0), this.get("lowY1", 0));
display.lineTo(this.get("highX1", 0), this.get("highY1", 0));
let w = this.width();
let h = this.height();
if (this.get("orientation") == "vertical") {
let lY = h;
let hY = 0;
display.moveTo(0, lY);
display.lineTo(w / 2, lY);
display.moveTo(w / 2, hY);
display.lineTo(w, hY);
}
else {
let lX = 0;
let hX = w;
display.moveTo(lX, 0);
display.lineTo(lX, h / 2);
display.moveTo(hX, h / 2);
display.lineTo(hX, h);
}
}
}
Object.defineProperty(OHLC, "className", {
enumerable: true,
configurable: true,
writable: true,
value: "OHLC"
});
Object.defineProperty(OHLC, "classNames", {
enumerable: true,
configurable: true,
writable: true,
value: Candlestick.classNames.concat([OHLC.className])
});
//# sourceMappingURL=OHLC.js.map