Skip to content
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

Conversation

hokilpet
Copy link
Contributor

No description provided.

@hokilpet hokilpet linked an issue Sep 29, 2023 that may be closed by this pull request
2 tasks
@dxCLA
Copy link

dxCLA commented Sep 29, 2023

CLA assistant check
All committers have signed the CLA.

public volumesColorByChartTypeMap: Partial<Record<BarType, VolumeColorResolver>> = {};
volumesModel: VolumesModel;
volumesDrawer: VolumesDrawer
Copy link
Contributor

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;
Copy link
Contributor

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,
Copy link
Contributor

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?

@disyakidneyshot disyakidneyshot force-pushed the 43-volumes-object-is-always-persists-in-dynamic-objects branch from a232736 to 5ca273d Compare October 4, 2023 07:52
@disyakidneyshot disyakidneyshot merged commit 94b406b into master Oct 4, 2023
@disyakidneyshot disyakidneyshot deleted the 43-volumes-object-is-always-persists-in-dynamic-objects branch October 4, 2023 07:54
@disyakidneyshot disyakidneyshot added the bug Something isn't working label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Volumes object is always persists in dynamic objects
3 participants