Class Foreground

"Foreground" defines whether a field should be plotted in the front of the screen: by default background points will be plotted with much less resolution.

Hierarchy

  • BooleanAesthetic
    • Foreground

Constructors

Properties

_constant: boolean = true
_domain?: [number, number]
_func?: ((d: string | number) => number)

Type declaration

    • (d: string | number): number
    • Parameters

      • d: string | number

      Returns number

_range: [number, number] | Uint8Array
_scale?: ((p: string | number) => boolean)

Type declaration

    • (p: string | number): boolean
    • Parameters

      • p: string | number

      Returns boolean

_texture_buffer: Float32Array | Uint8Array = null
_textures: Record<string, Texture2D> = {}
aesthetic_map: TextureSet
current_encoding: any = null
dataset: Dataset<any>
default_constant: boolean = true
default_range: [number, number] = ...
default_transform: Transform = 'literal'
field: string = null
id: string
partner: Foreground = null
regl: Regl
scatterplot: Plot

Accessors

  • get column(): Vector<any>
  • Returns Vector<any>

  • get constant(): GlValueType
  • Returns GlValueType

  • get default_domain(): [number, number]
  • Returns [number, number]

  • get domain(): [number, number]
  • Returns [number, number]

  • get map_position(): number
  • Returns number

  • get range(): [number, number] | Uint8Array
  • Returns [number, number] | Uint8Array

  • get scale(): ((arg0: any) => JSValueType)
  • Returns ((arg0: any) => JSValueType)

      • (arg0: any): JSValueType
      • Parameters

        • arg0: any

        Returns JSValueType

  • get texture_buffer(): Float32Array | Uint8Array
  • Returns Float32Array | Uint8Array

  • get use_map_on_regl(): 0 | 1
  • Returns 0 | 1

  • get webGLDomain(): number[]
  • Returns number[]

Methods

  • Parameters

    • point: Datum

    Returns boolean

  • Parameters

    • field: string
    • range: number[]
    • raw_func: string | ((d: string | number) => number)

    Returns void

  • Returns Vector<any>

  • Returns Float32Array | Uint8Array | number[]

  • Parameters

    • range: [number, number]

    Returns void

  • Returns boolean

  • Parameters

    • raw_func: string | ((d: string | number) => number)

    Returns ((d: any) => number) | ((d: string | number) => number)

  • post_to_regl_buffer(): void
  • Returns void

  • Returns void

  • Parameters

    • a: boolean

    Returns 0 | 1

  • Parameters

    • point: Datum

    Returns string | number

Generated using TypeDoc