Components Interactions Examples Tutorials API FAQ
Options
Menu

Interface Brush

Type parameters

  • T

Hierarchy

  • Brush

Callable

Index

Methods

clamp

  • clamp(): boolean | [boolean, boolean]
  • clamp(clamp: boolean | [boolean, boolean]): Brush<T>

clear

  • clear(): void

empty

  • empty(): boolean

event

extent

  • extent(): [number, number] | [[number, number], [number, number]]
  • extent(extent: [number, number] | [[number, number], [number, number]]): Brush<T>

on

  • on(type: "brushstart"): function
  • on(type: "brush"): function
  • on(type: "brushend"): function
  • on(type: string): function
  • on(type: "brushstart", listener: function): Brush<T>
  • on(type: "brush", listener: function): Brush<T>
  • on(type: "brushend", listener: function): Brush<T>
  • on(type: string, listener: function): Brush<T>
  • Parameters

    • type: "brushstart"

    Returns function

      • (datum: T, index: number): void
      • Parameters

        • datum: T
        • index: number

        Returns void

  • Parameters

    • type: "brush"

    Returns function

      • (datum: T, index: number): void
      • Parameters

        • datum: T
        • index: number

        Returns void

  • Parameters

    • type: "brushend"

    Returns function

      • (datum: T, index: number): void
      • Parameters

        • datum: T
        • index: number

        Returns void

  • Parameters

    • type: string

    Returns function

      • (datum: T, index: number): void
      • Parameters

        • datum: T
        • index: number

        Returns void

  • Parameters

    • type: "brushstart"
    • listener: function
        • (datum: T, index: number): void
        • Parameters

          • datum: T
          • index: number

          Returns void

    Returns Brush<T>

  • Parameters

    • type: "brush"
    • listener: function
        • (datum: T, index: number): void
        • Parameters

          • datum: T
          • index: number

          Returns void

    Returns Brush<T>

  • Parameters

    • type: "brushend"
    • listener: function
        • (datum: T, index: number): void
        • Parameters

          • datum: T
          • index: number

          Returns void

    Returns Brush<T>

  • Parameters

    • type: string
    • listener: function
        • (datum: T, index: number): void
        • Parameters

          • datum: T
          • index: number

          Returns void

    Returns Brush<T>

x

y

Generated using TypeDoc