import { ChangeDetectionStrategy, Component, ViewChild } from '@angular/core'; import { FCanvasComponent, FFlowModule } from '@foblex/flow'; @Component({ selector: 'help-in-positioning-example', styleUrls: [ './help-in-positioning-example.component.scss' ], templateUrl: './help-in-positioning-example.component.html', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [ FFlowModule, ] }) export class HelpInPositioningExampleComponent { @ViewChild(FCanvasComponent, { static: true }) public fCanvas!: FCanvasComponent; public onLoaded(): void { this.fCanvas.resetScaleAndCenter(false); } }