From 33fed06b407a3c6ac784fbdf026247d3b0489156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B8=CC=86=20=D0=91?= =?UTF-8?q?=D0=B5=D0=BB=D0=BE=D1=83=D1=81=D0=BE=D0=B2?= Date: Sat, 7 Aug 2021 02:25:50 +0300 Subject: [PATCH] Add fixRightEdge and minBarSpacing options to TimeScaleOptions --- .../Options/Basics/TimeScaleOptions.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/LightweightCharts/Classes/LightweightChartsModels/Options/Basics/TimeScaleOptions.swift b/LightweightCharts/Classes/LightweightChartsModels/Options/Basics/TimeScaleOptions.swift index 9c82289..83d1c89 100644 --- a/LightweightCharts/Classes/LightweightChartsModels/Options/Basics/TimeScaleOptions.swift +++ b/LightweightCharts/Classes/LightweightChartsModels/Options/Basics/TimeScaleOptions.swift @@ -4,7 +4,9 @@ public struct TimeScaleOptions { public var rightOffset: Double? public var barSpacing: Double? + public var minBarSpacing: Double? public var fixLeftEdge: Bool? + public var fixRightEdge: Bool? public var lockVisibleTimeRangeOnResize: Bool? public var rightBarStaysOnScroll: Bool? public var borderVisible: Bool? @@ -26,7 +28,9 @@ public struct TimeScaleOptions { public init(rightOffset: Double? = nil, barSpacing: Double? = nil, + minBarSpacing: Double? = nil, fixLeftEdge: Bool? = nil, + fixRightEdge: Bool? = nil, lockVisibleTimeRangeOnResize: Bool? = nil, rightBarStaysOnScroll: Bool? = nil, borderVisible: Bool? = nil, @@ -38,7 +42,9 @@ public struct TimeScaleOptions { tickMarkFormatter: JavaScriptMethod? = nil) { self.rightOffset = rightOffset self.barSpacing = barSpacing + self.minBarSpacing = minBarSpacing self.fixLeftEdge = fixLeftEdge + self.fixRightEdge = fixLeftEdge self.lockVisibleTimeRangeOnResize = lockVisibleTimeRangeOnResize self.rightBarStaysOnScroll = rightBarStaysOnScroll self.borderVisible = borderVisible