Back to home page

EIC code displayed by LXR

 
 

    


Warning, /firebird/firebird-ng/src/app/components/auto-rotate/auto-rotate.component.ts is written in an unsupported language. File is not indexed.

0001 import { Component } from '@angular/core';
0002 import {EventDisplayService} from "phoenix-ui-components";
0003 import {MenuToggleComponent} from "../menu-toggle/menu-toggle.component";
0004 
0005 @Component({
0006   selector: 'app-custom-auto-rotate',
0007   templateUrl: './auto-rotate.component.html',
0008   styleUrls: ['./auto-rotate.component.scss'],
0009   imports: [
0010     MenuToggleComponent
0011   ],
0012   standalone: true
0013 })
0014 export class AutoRotateComponent {
0015   autoRotate = false;
0016 
0017   constructor(private eventDisplay: EventDisplayService) {}
0018 
0019   toggleAutoRotate() {
0020     this.autoRotate = !this.autoRotate;
0021     this.eventDisplay.getUIManager().setAutoRotate(this.autoRotate);
0022   }
0023 }