Skip to content

Commit

Permalink
Correction of data strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
gracien-app committed Mar 23, 2022
1 parent 549bf40 commit 4541bae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/Core/Data/RendererObservableData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public class RendererObservableData: ObservableObject {

public init() {}

@Published public var pointsCount: UInt = 100
@Published public var multiplier: Float = 2
@Published public var pointsCount: UInt = 200
@Published public var multiplier: Float = 1.5
@Published public var frametime: Double = 0

public var circleRadius: Float = 0.85
Expand Down Expand Up @@ -87,9 +87,9 @@ public extension RendererObservableData {

func getDataString(type: DataStringType) -> String {
switch type {
case .M:
return String(format: "%u", self.pointsCount)
case .N:
return String(format: "%u", self.pointsCount)
case .M:
return String(format: "%.2f", self.multiplier)
case .OFFSET:
return String(format: "%.3f", self.animationStep)
Expand Down

0 comments on commit 4541bae

Please sign in to comment.