Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default () => {
wrap(Chart.prototype, 'init', function init(proceed, ...args) {
proceed.apply(this, args);
renderWinLossBands(this);
});
wrap(Chart.prototype, 'redraw', function redraw(proceed, ...args) {
proceed.apply(this, args);
renderWinLossBands(this);
});
};
export default () => {
wrap(Chart.prototype, 'init', function init(proceed, ...args) {
proceed.apply(this, args);
renderAxisIndicator(this);
});
wrap(Chart.prototype, 'redraw', function redraw(proceed, ...args) {
proceed.apply(this, args);
renderAxisIndicator(this);
});
};
export default () => {
wrap(Chart.prototype, 'init', function init(proceed, ...args) {
proceed.apply(this, args);
renderAxisIndicator(this);
});
wrap(Chart.prototype, 'redraw', function redraw(proceed, ...args) {
proceed.apply(this, args);
renderAxisIndicator(this);
});
};
export default () => {
wrap(Chart.prototype, 'init', function init(proceed, ...args) {
proceed.apply(this, args);
renderWinLossBands(this);
});
wrap(Chart.prototype, 'redraw', function redraw(proceed, ...args) {
proceed.apply(this, args);
renderWinLossBands(this);
});
};
const pixelX = chart.xAxis[0].toPixels(lastPoint.x);
const pixelY = chart.yAxis[0].toPixels(lastPoint.y);
chart.tradeMarker = chart.renderer
.circle(pixelX, pixelY, 3).attr({
fill: lastPoint.color,
zIndex: 115,
})
.css({
color: lastPoint.color,
})
.add();
}
wrap(Chart.prototype, 'redraw', function redraw(proceed, ...args) {
proceed.apply(this, args);
renderTradeMarker(this);
});
};
export default () => {
wrap(Chart.prototype, 'showLoading', function showLoading(proceed, ...args) {
if (Object.keys(this).length === 0) return;
proceed.apply(this, args);
this.isLoading = true;
});
wrap(Chart.prototype, 'hideLoading', function hideLoading(proceed, ...args) {
proceed.apply(this, args);
this.isLoading = false;
});
};
export default () => {
wrap(Chart.prototype, 'showLoading', function showLoading(proceed, ...args) {
if (Object.keys(this).length === 0) return;
proceed.apply(this, args);
this.isLoading = true;
});
wrap(Chart.prototype, 'hideLoading', function hideLoading(proceed, ...args) {
proceed.apply(this, args);
this.isLoading = false;
});
};