Skip to content

Commit

Permalink
change method visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
illetid committed Sep 4, 2024
1 parent 6dd559e commit b6dad6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/series-markers/primitive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class SeriesMarkersPrimitive<HorzScaleItem> implements ISeriesPrimitive<H

public autoscaleInfo(startTimePoint: Logical, endTimePoint: Logical): AutoscaleInfo | null {
if (this._paneView) {
const margins = this.autoScaleMargins();
const margins = this._getAutoScaleMargins();
if (margins) {
return {
priceRange: null,
Expand All @@ -98,7 +98,7 @@ export class SeriesMarkersPrimitive<HorzScaleItem> implements ISeriesPrimitive<H
return null;
}

public autoScaleMargins(): AutoScaleMargins | null {
private _getAutoScaleMargins(): AutoScaleMargins | null {
const chart = ensureNotNull(this._chart);
const barSpacing = chart.timeScale().options().barSpacing;
if (this._autoScaleMarginsInvalidated || barSpacing !== this._cachedBarSpacing) {
Expand Down

0 comments on commit b6dad6e

Please sign in to comment.