Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InterpolatedScaleHandler

Scale handler supporting interpolation between domains. A scale interpolator is required to convert between the domains. This is implemented as an object with 2 conversion functions, forward and reverse. It also needs to implement 2 more functions, forwardInterpolatedDomain and reverseInterpolatedDomain. These should return the corresponding domain based on the opposite domain, i.e. MD <==> TVD.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private _alternateBase

_alternateBase: Domain

Protected _baseDomain

_baseDomain: Domain

Private _mode

_mode: number

interpolator

interpolator: ScaleInterpolator

scale

scale: Scale

Accessors

dataScale

mode

  • get mode(): number

Methods

baseDomain

createInterpolatedScale

  • createInterpolatedScale(): Scale
  • Creates a function, which implements the d3.scale members required by the tracks in the wellog component. The scale function, and its reverse, will handle interpolation/conversion between the domains, using the provided scale interpolator.

    Returns Scale

range

rescale

  • rescale(transform: ZoomTransform, axis?: string): ScaleHandler

rescaleToMode

setMode

  • Set mode of the scale handler. Mode is used to switch between domains, so that the internal scale will always be according to the domain of the current mode, while the data scale will always conform to the master mode. mode = 0: master mode mode = 1: alternate mode

    Parameters

    • m: number

    Returns InterpolatedScaleHandler

ticks

Generated using TypeDoc