import {ChangeDetectionStrategy, Component, signal, viewChild, ViewChild} from '@angular/core'; import { FCanvasComponent, FFlowModule, FZoomDirective } from '@foblex/flow'; import { FCheckboxComponent } from '@foblex/m-render'; import { ExampleToolbar } from '@foblex/portal-ui'; @Component({ selector: 'grid-system', styleUrls: [ './example.scss' ], templateUrl: './example.html', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [ FFlowModule, FCheckboxComponent, FZoomDirective, ExampleToolbar, ] }) export class Example { protected adjustCellSizeWhileDragging = signal(false) protected readonly fCanvas = viewChild(FCanvasComponent); protected onLoaded(): void { this.fCanvas()?.resetScaleAndCenter(false); } protected onAdjustCellSizeWhileDraggingChange(event: boolean): void { this.adjustCellSizeWhileDragging.set(event); } }