Skip to content

Commit

Permalink
Move settings enums to appropriate files
Browse files Browse the repository at this point in the history
  • Loading branch information
philackm committed Jul 6, 2017
1 parent 1ace1e6 commit fa61963
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 40 deletions.
6 changes: 6 additions & 0 deletions Classes/Plots/DotPlot.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ open class DotPlot : Plot {
dataPointLayer?.owner = self
}
}

@objc public enum ScrollableGraphViewDataPointType : Int {
case circle
case square
case custom
}
15 changes: 15 additions & 0 deletions Classes/Plots/LinePlot.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,18 @@ open class LinePlot : Plot {
gradientLayer?.owner = self
}
}

@objc public enum ScrollableGraphViewLineStyle : Int {
case straight
case smooth
}

@objc public enum ScrollableGraphViewFillType : Int {
case solid
case gradient
}

@objc public enum ScrollableGraphViewGradientType : Int {
case linear
case radial
}
6 changes: 5 additions & 1 deletion Classes/Plots/Plot.swift
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,11 @@ open class Plot {
}
}


@objc public enum ScrollableGraphViewAnimationType : Int {
case easeOut
case elastic
case custom
}



Expand Down
13 changes: 12 additions & 1 deletion Classes/Reference/ReferenceLines.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,18 @@ open class ReferenceLines {
@IBInspectable open var dataPointLabelsSparsity: Int = 1
}

public enum ReferenceLinePositioningType {

@objc public enum ScrollableGraphViewReferenceLinePosition : Int {
case left
case right
case both
}

@objc public enum ReferenceLinePositioningType : Int {
case relative
case absolute
}

@objc public enum ScrollableGraphViewReferenceLineType : Int {
case cover
}
38 changes: 0 additions & 38 deletions Classes/ScrollableGraphView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -925,44 +925,6 @@ import UIKit
// MARK: - ScrollableGraphView Settings Enums
// ##########################################

@objc public enum ScrollableGraphViewLineStyle : Int {
case straight
case smooth
}

@objc public enum ScrollableGraphViewFillType : Int {
case solid
case gradient
}

@objc public enum ScrollableGraphViewGradientType : Int {
case linear
case radial
}

@objc public enum ScrollableGraphViewDataPointType : Int {
case circle
case square
case custom
}

@objc public enum ScrollableGraphViewReferenceLinePosition : Int {
case left
case right
case both
}

@objc public enum ScrollableGraphViewReferenceLineType : Int {
case cover
//case Edge // FUTURE: Implement
}

@objc public enum ScrollableGraphViewAnimationType : Int {
case easeOut
case elastic
case custom
}

@objc public enum ScrollableGraphViewDirection : Int {
case leftToRight
case rightToLeft
Expand Down

0 comments on commit fa61963

Please sign in to comment.