update
This commit is contained in:
@@ -5,6 +5,8 @@ import { TimelineStep, Rectangle, Circle2, Piquet, Plot, Ball, Player } from '..
|
||||
import { C } from '@angular/cdk/keycodes';
|
||||
import { CdkPortal } from '@angular/cdk/portal';
|
||||
|
||||
//import { ProcessService } from '../services/process.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-football-field',
|
||||
standalone: true,
|
||||
@@ -84,8 +86,13 @@ export class FootballFieldComponent {
|
||||
// Position de la ligne verticale
|
||||
public linePosition: number = 0;
|
||||
|
||||
constructor(private renderer: Renderer2, private el: ElementRef) {}
|
||||
constructor(private renderer: Renderer2,
|
||||
private el: ElementRef
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Configuration du composant
|
||||
*/
|
||||
ngOnInit() {
|
||||
this.ctx = this.canvas.nativeElement.getContext('2d')!;
|
||||
this.drawField();
|
||||
@@ -97,7 +104,6 @@ export class FootballFieldComponent {
|
||||
const timeline = document.querySelector('.timeline') as HTMLElement;
|
||||
this.linePosition = timeline.offsetLeft;
|
||||
console.log("linePosition:", this.linePosition);
|
||||
//console.log("[onLineMouseDown] initialMouseX:", this.initialMouseX, "-", timeIndicator.style.left);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user