public getTimeAxisSegments(): AxisSegment[] {
if (!this.isActive) {
return [];
}
const geometry = this.getGeometry();
if (!geometry) {
return [];
}
return [
{
from: Math.min(geometry.startPoint.x, geometry.directionPoint.x),
to: Math.max(geometry.startPoint.x, geometry.directionPoint.x),
color: colors.axisMarkerAreaFill,
},
];
}
public getPriceAxisSegments(): AxisSegment[] {
if (!this.isActive) {
return [];
}
const geometry = this.getGeometry();
if (!geometry) {
return [];
}
return [
{
from: Math.min(geometry.startPoint.y, geometry.directionPoint.y),
to: Math.max(geometry.startPoint.y, geometry.directionPoint.y),
color: colors.axisMarkerAreaFill,
},
];
}