ScrollZoom

public struct ScrollZoom : OptionSet, Encodable

Determines whether mouse wheel or two-finger scroll zooms is enable.

Turned on by default for gl3d, geo and mapbox subplots (as these subplot types do not have zoombox via pan), but turned off by default for cartesian subplots. Set scrollZoom to false to disable scrolling for all subplots.

  • Declaration

    Swift

    public let rawValue: Int
  • Undocumented

    Declaration

    Swift

    public static var cartesian: ScrollZoom { get }
  • Undocumented

    Declaration

    Swift

    public static var GL3D: ScrollZoom { get }
  • geo

    Undocumented

    Declaration

    Swift

    public static var geo: ScrollZoom { get }
  • Undocumented

    Declaration

    Swift

    public static var mapbox: ScrollZoom { get }
  • on

    Undocumented

    Declaration

    Swift

    public static var on: ScrollZoom { get }
  • off

    Undocumented

    Declaration

    Swift

    public static var off: ScrollZoom { get }
  • Declaration

    Swift

    public init(rawValue: Int)
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws