8dbfc4fa00226d24bd03f6bd568078bd1eb59bd588a3dab3818c04b61900dde0874dd9608a7ac4994ea44df03c2a6e5bf417464a5ac4ed4a16de872a8f4af0 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * Helper for model references.
  3. * There are many manners to refer axis/coordSys.
  4. */
  5. import { HashMap } from 'zrender/lib/core/util.js';
  6. import SeriesModel from './Series.js';
  7. import type { AxisBaseModel } from '../coord/AxisBaseModel.js';
  8. /**
  9. * @class
  10. * For example:
  11. * {
  12. * coordSysName: 'cartesian2d',
  13. * coordSysDims: ['x', 'y', ...],
  14. * axisMap: HashMap({
  15. * x: xAxisModel,
  16. * y: yAxisModel
  17. * }),
  18. * categoryAxisMap: HashMap({
  19. * x: xAxisModel,
  20. * y: undefined
  21. * }),
  22. * // The index of the first category axis in `coordSysDims`.
  23. * // `null/undefined` means no category axis exists.
  24. * firstCategoryDimIndex: 1,
  25. * // To replace user specified encode.
  26. * }
  27. */
  28. declare class CoordSysInfo {
  29. coordSysName: string;
  30. coordSysDims: string[];
  31. axisMap: HashMap<AxisBaseModel<import("../coord/axisCommonTypes").AxisBaseOptionCommon>, string | number>;
  32. categoryAxisMap: HashMap<AxisBaseModel<import("../coord/axisCommonTypes").AxisBaseOptionCommon>, string | number>;
  33. firstCategoryDimIndex: number;
  34. constructor(coordSysName: string);
  35. }
  36. export declare function getCoordSysInfoBySeries(seriesModel: SeriesModel): CoordSysInfo;
  37. export {};