-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: volumes object is always persists in dynamic objects #44
fix: volumes object is always persists in dynamic objects #44
Conversation
public volumesColorByChartTypeMap: Partial<Record<BarType, VolumeColorResolver>> = {}; | ||
volumesModel: VolumesModel; | ||
volumesDrawer: VolumesDrawer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private
@@ -23,8 +23,10 @@ export type VolumeColorResolver = (priceMovement: PriceMovement, colors: FullCha | |||
|
|||
export class VolumesComponent extends ChartBaseElement { | |||
separateVolumes: SeparateVolumesComponent; | |||
dynamicObjectsComponent: DynamicObjectsComponent; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can declare it via constructor in arguments using private
keyword for example, and it will be the same but much less code
private addVolumesToDynamicObjects() { | ||
this.dynamicObjectsComponent.model.addObject({ | ||
id: this.volumesModel.id, | ||
paneId: this.config.components.volumes.showSeparately ? this.volumesModel.id : CHART_UUID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure paneId
for separate volumes is this.volumesModel.id
?
a232736
to
5ca273d
Compare
No description provided.