Skip to content

Commit ca22e89

Browse files
committed
format and regen of docs with curation added
1 parent cd7dc25 commit ca22e89

File tree

187 files changed

+59465
-11027
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+59465
-11027
lines changed

Sources/SwiftViz/Scale.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public extension Scale {
123123
func domainContains(_ value: InputType) -> Bool {
124124
value >= domainLower && value <= domainHigher
125125
}
126-
126+
127127
/// Converts a value comparing it to the input domain, transforming the value, and mapping it into values between `0` and to the upper bound you provide.
128128
///
129129
/// This method is a convenience method that sets the lower value of the range is `0`.
@@ -133,7 +133,7 @@ public extension Scale {
133133
/// - Parameter to: The higher bounding value of the range to transform from.
134134
/// - Returns: a value within the bounds of the range values you provide, or `nil` if the value was dropped.
135135
func scale(_ domainValue: InputType, to upper: OutputType) -> OutputType? {
136-
self.scale(domainValue, from: 0, to: upper)
136+
scale(domainValue, from: 0, to: upper)
137137
}
138138

139139
/// Converts a value comparing it to the upper value of a range, mapping it to the input domain, and inverting scale's transform.
@@ -146,9 +146,8 @@ public extension Scale {
146146
/// - Parameter to: The higher bounding value of the range to transform from.
147147
/// - Returns: a value within the bounds of the range values you provide, or `nil` if the value was dropped.
148148
func invert(_ rangeValue: OutputType, to upper: OutputType) -> InputType? {
149-
self.invert(rangeValue, from: 0, to: upper)
149+
invert(rangeValue, from: 0, to: upper)
150150
}
151-
152151
}
153152

154153
// NOTE(heckj): OTHER SCALES: make a PowScale (& maybe Sqrt, Log, Ln)

Tests/SwiftVizTests/ScaleFactoryTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ScaleFactoryTests: XCTestCase {
6161
XCTAssertEqual(scale1.domainExtent, scale2.domainExtent)
6262
XCTAssertEqual(scale1.domainLower, low.timeIntervalSince1970)
6363
}
64-
64+
6565
func testScaleConvenienceMethod() throws {
6666
let lin = LinearScale.create(0, 100.0)
6767
guard let result = lin.scale(5.0, to: 10.0) else {

0 commit comments

Comments
 (0)