MCPcopy Index your code
hub / github.com/apache/echarts / getNodeGlobalScale

Function getNodeGlobalScale

src/chart/graph/graphHelper.ts:24–32  ·  view source on GitHub ↗
(seriesModel: GraphSeriesModel)

Source from the content-addressed store, hash-verified

22import { GraphNode } from '../../data/Graph';
23
24export function getNodeGlobalScale(seriesModel: GraphSeriesModel) {
25 const coordSys = seriesModel.coordinateSystem;
26 return isViewCoordSys(coordSys)
27 ? calcCompensationScaleToPreserveNodeSize(coordSys, seriesModel)
28 // Geo coord sys do not use `Transformable`.
29 // PENDING: historially `nodeScaleRatio` has not been applied on
30 // geo based graph series.
31 : 1;
32}
33
34export function getSymbolSize(node: GraphNode) {
35 let symbolSize = node.getVisual('symbolSize');

Callers 5

renderMethod · 0.90
__updateOnOwnRoamMethod · 0.90
updateLayoutMethod · 0.90
symbolSizeFunction · 0.90

Calls 2

isViewCoordSysFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…