implement keep_drawings
This commit is contained in:
@ -52,7 +52,7 @@ export class Handler {
|
||||
|
||||
public _seriesList: ISeriesApi<SeriesType>[] = [];
|
||||
|
||||
// TODO make some subcharts in the vite dev window and mess with the CSS to see if you can not need the position param. also see if you can remove resizing each time the window resizes?
|
||||
// TODO find a better solution rather than the 'position' parameter
|
||||
constructor(
|
||||
chartId: string,
|
||||
innerWidth: number,
|
||||
|
||||
@ -128,16 +128,6 @@ export class ToolBox {
|
||||
this.saveDrawings()
|
||||
}
|
||||
|
||||
// renderDrawings() {
|
||||
// if (this.mouseDown) return
|
||||
// this.drawings.forEach((item) => {
|
||||
// if ('price' in item) return
|
||||
// let startDate = Math.round(item.from[0]/this.chart.interval)*this.chart.interval
|
||||
// let endDate = Math.round(item.to[0]/this.chart.interval)*this.chart.interval
|
||||
// item.calculateAndSet(startDate, item.from[1], endDate, item.to[1])
|
||||
// })
|
||||
// }
|
||||
|
||||
addNewDrawing(d: Drawing) {
|
||||
this._drawingTool.addNewDrawing(d);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user