From adaa50b43626ea770eff764f399dbe6e1850971d Mon Sep 17 00:00:00 2001 From: Sergey Vasilev Date: Wed, 24 Nov 2021 21:55:54 +0300 Subject: [PATCH] add missed coding keys for options --- .../Options/Basics/TimeScaleOptions.swift | 1 + .../Options/ChartOptions/WatermarkOptions.swift | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Sources/LightweightCharts/LightweightChartsModels/Options/Basics/TimeScaleOptions.swift b/Sources/LightweightCharts/LightweightChartsModels/Options/Basics/TimeScaleOptions.swift index 41b398f..aa42d60 100644 --- a/Sources/LightweightCharts/LightweightChartsModels/Options/Basics/TimeScaleOptions.swift +++ b/Sources/LightweightCharts/LightweightChartsModels/Options/Basics/TimeScaleOptions.swift @@ -64,6 +64,7 @@ extension TimeScaleOptions: Codable { enum CodingKeys: String, CodingKey { case rightOffset case barSpacing + case minBarSpacing case fixLeftEdge case fixRightEdge case lockVisibleTimeRangeOnResize diff --git a/Sources/LightweightCharts/LightweightChartsModels/Options/ChartOptions/WatermarkOptions.swift b/Sources/LightweightCharts/LightweightChartsModels/Options/ChartOptions/WatermarkOptions.swift index 22daad2..ef16ba4 100644 --- a/Sources/LightweightCharts/LightweightChartsModels/Options/ChartOptions/WatermarkOptions.swift +++ b/Sources/LightweightCharts/LightweightChartsModels/Options/ChartOptions/WatermarkOptions.swift @@ -86,6 +86,8 @@ extension WatermarkOptions: Codable { case visible case text case fontSize + case fontFamily + case fontStyle case horizontalAlignment = "horzAlign" case verticalAlignment = "vertAlign" }