chromium/third_party/polymer/v3_0/components-chromium/iron-range-behavior/iron-range-behavior.d.ts

/**
 * DO NOT EDIT
 *
 * This file was automatically generated by
 *   https://github.com/Polymer/tools/tree/master/packages/gen-typescript-declarations
 *
 * To modify these typings, edit the source file(s):
 *   iron-range-behavior.js
 */

export {IronRangeBehavior};

/**
 * `iron-range-behavior` provides the behavior for something with a minimum to
 * maximum range.
 */
interface IronRangeBehavior {

  /**
   * The number that represents the current value.
   */
  value: number|null|undefined;

  /**
   * The number that indicates the minimum value of the range.
   */
  min: number|null|undefined;

  /**
   * The number that indicates the maximum value of the range.
   */
  max: number|null|undefined;

  /**
   * Specifies the value granularity of the range's value.
   */
  step: number|null|undefined;

  /**
   * Returns the ratio of the value.
   */
  readonly ratio: number|null|undefined;
  _calcRatio(value: any): any;
  _clampValue(value: any): any;
  _calcStep(value: any): any;
  _validateValue(): any;
  _update(): void;
}

declare const IronRangeBehavior: object;