context.ts 559 B

12345678910111213141516
  1. import {
  2. ColorDimensionConfig,
  3. DimensionSupplier,
  4. ResourceDimensionConfig,
  5. ScalarDimensionConfig,
  6. ScaleDimensionConfig,
  7. TextDimensionConfig,
  8. } from './types';
  9. export interface DimensionContext {
  10. getColor(color: ColorDimensionConfig): DimensionSupplier<string>;
  11. getScale(scale: ScaleDimensionConfig): DimensionSupplier<number>;
  12. getScalar(scalar: ScalarDimensionConfig): DimensionSupplier<number>;
  13. getText(text: TextDimensionConfig): DimensionSupplier<string>;
  14. getResource(resource: ResourceDimensionConfig): DimensionSupplier<string>;
  15. }