MCPcopy
hub / github.com/apache/echarts / getViewRect

Function getViewRect

src/chart/graph/createView.ts:31–38  ·  view source on GitHub ↗
(seriesModel: GraphSeriesModel, api: ExtensionAPI, aspect: number)

Source from the content-addressed store, hash-verified

29import { createViewCoordSysSimply } from '../../component/helper/roamHelper';
30
31function getViewRect(seriesModel: GraphSeriesModel, api: ExtensionAPI, aspect: number) {
32 const layoutRef = createBoxLayoutReference(seriesModel, api);
33 const option = extend(seriesModel.getBoxLayoutParams(), {
34 aspect: aspect
35 });
36 const viewRect = getLayoutRect(option, layoutRef.refContainer);
37 return applyPreserveAspect(seriesModel, viewRect, aspect);
38}
39
40export default function createViewCoordSys(ecModel: GlobalModel, api: ExtensionAPI) {
41 const viewList: View[] = [];

Callers 1

createViewCoordSysFunction · 0.70

Calls 5

createBoxLayoutReferenceFunction · 0.90
getLayoutRectFunction · 0.90
applyPreserveAspectFunction · 0.90
extendFunction · 0.85
getBoxLayoutParamsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…