Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

EN

@shumoku/core · 0.4.2 · function

applyGraphEdits

ソース

APIの説明は英語のcanonical sourceを表示しています。

Writes the edits made to a drawn graph back into the model it was drawn from. `drawn` is the graph as it was before the edits and `edited` as it is after; only what differs between them is written. The configuration keeps what the graph cannot say, such as a node's software or the host a VM runs on, and a field the graph draws from another (a product's name, a link's speed) is kept as written until that field is edited. The layers of an edited element are replaced, as the graph says all of them. Without an edit, the model itself is returned.

applyGraphEdits(model: NetworkModel, drawn: NetworkGraph, edited: NetworkGraph): NetworkModel

パラメーター

名前 型 説明 既定値
model NetworkModel 追加説明はありません。 —
drawn NetworkGraph 追加説明はありません。 —
edited NetworkGraph 追加説明はありません。 —

戻り値

NetworkModel

libs/@shumoku/core/src/libs/@shumoku/core/src/models/network-model-edit.ts:24