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

Method __updateOnOwnRoam

src/chart/graph/GraphView.ts:273–298  ·  view source on GitHub ↗

* @implements RoamHostView['__updateOnOwnRoam']

(
        payload: RoamPayload,
        seriesModel: GraphSeriesModel,
        api: ExtensionAPI
    )

Source from the content-addressed store, hash-verified

271 * @implements RoamHostView['__updateOnOwnRoam']
272 */
273 __updateOnOwnRoam(
274 payload: RoamPayload,
275 seriesModel: GraphSeriesModel,
276 api: ExtensionAPI
277 ): void {
278 const ownCoordSys = getOwnRoamViewCoordSys(seriesModel);
279 if (!this._active || !ownCoordSys) {
280 return;
281 }
282
283 applyViewCoordSysTransToElement(
284 this._mainGroup,
285 VIEW_COORD_SYS_TRANS_OVERALL,
286 ownCoordSys,
287 null,
288 );
289
290 if (isRoamPayloadHasZoom(payload)) {
291 this._updateNodeAndLinkScale();
292 adjustEdge(seriesModel.getGraph(), getNodeGlobalScale(seriesModel));
293 this._lineDraw.updateLayout();
294 // Only update label layout on zoom
295 api.updateLabelLayout();
296 }
297 this._updateThumbnailWindow();
298 }
299
300 private _updateNodeAndLinkScale() {
301 const seriesModel = this._model;

Callers

nothing calls this directly

Calls 10

getOwnRoamViewCoordSysFunction · 0.90
isRoamPayloadHasZoomFunction · 0.90
getNodeGlobalScaleFunction · 0.90
adjustEdgeFunction · 0.85
updateLabelLayoutMethod · 0.80
updateLayoutMethod · 0.65
getGraphMethod · 0.45

Tested by

no test coverage detected