Skip to content

Commit

Permalink
Fix #517 => Add animation property for AATooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
AAChartModel committed Jan 11, 2025
1 parent b7ae0c9 commit 3cd11c7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions AAInfographics/AAOptionsModel/AATooltip.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

/// https://api.highcharts.com/highcharts/tooltip
public class AATooltip: AAObject {
public var animation: Any?
public var backgroundColor: Any?
public var borderColor: String?
public var borderRadius: Float?
Expand Down Expand Up @@ -60,6 +61,18 @@ public class AATooltip: AAObject {
public var split: Bool?
public var outside: Bool?

@discardableResult
public func animation(_ prop: AAAnimation?) -> AATooltip {
animation = prop
return self
}

@discardableResult
public func animation(_ prop: Bool?) -> AATooltip {
animation = prop
return self
}

@discardableResult
public func backgroundColor(_ prop: Any?) -> AATooltip {
backgroundColor = prop
Expand Down

0 comments on commit 3cd11c7

Please sign in to comment.