This commit is contained in:
tim
2024-10-22 03:42:08 -04:00
parent 82fccc1be3
commit d33eca6931
12 changed files with 101 additions and 40 deletions

View File

@@ -207,7 +207,7 @@ export class Shape {
// return an object with property defaults, e.g. { "linetoolhorzline.linecolor": "#7f11e0" }
// https://www.tradingview.com/charting-library-docs/latest/api/modules/Charting_Library#drawingoverrides
drawingOverrides() {
return this.colorProps()
return mixin(this.colorProps(), this.creationOptions)
}
create() {
@@ -547,8 +547,8 @@ export class DLine extends Line {
// Model
this.model.pointA = null // {time:..., price:...}
this.model.pointB = null
this.model.extendLeft = false
this.model.extendRight = false
this.model.extendLeft = true
this.model.extendRight = true
this.setModel(model) // call setModel at the end
}