File tree Expand file tree Collapse file tree 2 files changed +32
-3
lines changed
Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ public class AAOptionsConstructor {
160160 . inverted ( aaChartModel. inverted)
161161 . backgroundColor ( aaChartModel. backgroundColor)
162162 . pinchType ( aaChartModel. zoomType) //Set gesture zoom direction
163- . panning ( true ) //Set whether gestures can be panned after zooming
163+ // .panning(true) //Set whether gestures can be panned after zooming
164164 . polar ( aaChartModel. polar) //Whether to polarize the chart (turn on polar mode)
165165 . scrollablePlotArea ( aaChartModel. scrollablePlotArea)
166166 aaChart. margin = aaChartModel. margin
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public class AAChart: AAObject {
3838 public var plotBackgroundColor : Any ?
3939 public var plotBackgroundImage : String ?
4040 public var pinchType : String ?
41- public var panning : Bool ?
41+ public var panning : AAPanning ?
4242 public var panKey : String ?
4343 public var polar : Bool ?
4444 public var animation : AAAnimation ?
@@ -97,7 +97,7 @@ public class AAChart: AAObject {
9797 }
9898
9999 @discardableResult
100- public func panning( _ prop: Bool ? ) -> AAChart {
100+ public func panning( _ prop: AAPanning ? ) -> AAChart {
101101 panning = prop
102102 return self
103103 }
@@ -342,6 +342,35 @@ public class AAChartEvents: AAObject {
342342}
343343
344344
345+
346+ /**
347+ panning:{
348+ enabled:false
349+ type:x
350+ }
351+ */
352+ public class AAPanning : AAObject {
353+ public var enabled : Bool ?
354+ public var type : String ?
355+
356+ @discardableResult
357+ public func enabled( _ prop: Bool ? ) -> AAPanning {
358+ enabled = prop
359+ return self
360+ }
361+
362+ @discardableResult
363+ public func type( _ prop: String ? ) -> AAPanning {
364+ type = prop
365+ return self
366+ }
367+
368+ public override init ( ) {
369+
370+ }
371+ }
372+
373+
345374/**
346375 zooming:{
347376 key:undefined
You can’t perform that action at this time.
0 commit comments