5876df3f41293d54303cca8b47cdc72206017e10a2d66ab91801b22129173d31dd7606cc561188b1ac274fe0bc27a6864f03132fcded0370df77d79d740db1 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import ComponentModel from '../../model/Component.js';
  2. import Parallel from './Parallel.js';
  3. import { DimensionName, ComponentOption, BoxLayoutOptionMixin } from '../../util/types.js';
  4. import ParallelAxisModel, { ParallelAxisOption } from './AxisModel.js';
  5. import GlobalModel from '../../model/Global.js';
  6. import SeriesModel from '../../model/Series.js';
  7. export declare type ParallelLayoutDirection = 'horizontal' | 'vertical';
  8. export interface ParallelCoordinateSystemOption extends ComponentOption, BoxLayoutOptionMixin {
  9. mainType?: 'parallel';
  10. layout?: ParallelLayoutDirection;
  11. axisExpandable?: boolean;
  12. axisExpandCenter?: number;
  13. axisExpandCount?: number;
  14. axisExpandWidth?: number;
  15. axisExpandTriggerOn?: 'click' | 'mousemove';
  16. axisExpandRate?: number;
  17. axisExpandDebounce?: number;
  18. axisExpandSlideTriggerArea?: [number, number, number];
  19. axisExpandWindow?: number[];
  20. parallelAxisDefault?: ParallelAxisOption;
  21. }
  22. declare class ParallelModel extends ComponentModel<ParallelCoordinateSystemOption> {
  23. static type: string;
  24. readonly type: string;
  25. static dependencies: string[];
  26. coordinateSystem: Parallel;
  27. /**
  28. * Each item like: 'dim0', 'dim1', 'dim2', ...
  29. */
  30. dimensions: DimensionName[];
  31. /**
  32. * Coresponding to dimensions.
  33. */
  34. parallelAxisIndex: number[];
  35. static layoutMode: "box";
  36. static defaultOption: ParallelCoordinateSystemOption;
  37. init(): void;
  38. mergeOption(newOption: ParallelCoordinateSystemOption): void;
  39. /**
  40. * Whether series or axis is in this coordinate system.
  41. */
  42. contains(model: SeriesModel | ParallelAxisModel, ecModel: GlobalModel): boolean;
  43. setAxisExpand(opt: {
  44. axisExpandable?: boolean;
  45. axisExpandCenter?: number;
  46. axisExpandCount?: number;
  47. axisExpandWidth?: number;
  48. axisExpandWindow?: number[];
  49. }): void;
  50. private _initDimensions;
  51. }
  52. export default ParallelModel;