* @implements RoamHostView['__updateOnOwnRoam']
(
payload: RoamPayload,
seriesModel: GraphSeriesModel,
api: ExtensionAPI
)
| 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; |
nothing calls this directly
no test coverage detected