78d1232e69474688a5e576b58fd90ec246746bab9ea613c8c4d0d7e611a3d05f365af6a002e6a2baea44e22198403b61c93de8ceb2de94a55873859348acdf 1.2 KB

1234567891011121314151617181920212223
  1. import GraphSeriesModel from './GraphSeries.js';
  2. import { GraphNode } from '../../data/Graph.js';
  3. /**
  4. * `basedOn` can be:
  5. * 'value':
  6. * This layout is not accurate and have same bad case. For example,
  7. * if the min value is very smaller than the max value, the nodes
  8. * with the min value probably overlap even though there is enough
  9. * space to layout them. So we only use this approach in the as the
  10. * init layout of the force layout.
  11. * FIXME
  12. * Probably we do not need this method any more but use
  13. * `basedOn: 'symbolSize'` in force layout if
  14. * delay its init operations to GraphView.
  15. * 'symbolSize':
  16. * This approach work only if all of the symbol size calculated.
  17. * That is, the progressive rendering is not applied to graph.
  18. * FIXME
  19. * If progressive rendering is applied to graph some day,
  20. * probably we have to use `basedOn: 'value'`.
  21. */
  22. export declare function circularLayout(seriesModel: GraphSeriesModel, basedOn: 'value' | 'symbolSize', draggingNode?: GraphNode, pointer?: [number, number]): void;
  23. export declare function rotateNodeLabel(node: GraphNode, circularRotateLabel: boolean, cx: number, cy: number): void;