import { ChangeDetectionStrategy, Component, viewChild } from '@angular/core'; import { FCanvasComponent, FFlowModule } from '@foblex/flow'; @Component({ selector: 'connection-types', styleUrls: ['./connection-types.scss'], templateUrl: './connection-types.html', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [FFlowModule], }) export class ConnectionTypes { private readonly _canvas = viewChild.required(FCanvasComponent); protected loaded(): void { this._canvas()?.resetScaleAndCenter(false); } }