src/app/components/change-color/change-color.component.ts
Angular component representing the color change form.
selector | app-change-color |
styleUrls | change-color.component.css |
templateUrl | change-color.component.html |
container
|
Input property to receive data from a parent component.
Type: |
constructor(grapheS: any)
|
Initializes a new instance of the ChangeColorComponent class.
Parameters :
|
bgColor |
bgColor: |
The background color input field for changing node or edge background colors. |
color |
color: |
The color input field for changing node or edge colors. |
fColor |
fColor: |
The flesh color input field for changing edge colors in case of a directed graph. |
import { Component, Input } from '@angular/core';
import { GrapheService } from 'src/app/Services/graphe.service';
/**
* Angular component representing the color change form.
*/
@Component({
selector: 'app-change-color',
templateUrl: './change-color.component.html',
styleUrls: ['./change-color.component.css']
})
export class ChangeColorComponent {
/**
* Input property to receive data from a parent component.
*/
@Input() container: any;
/**
* The color input field for changing node or edge colors.
*/
color: any;
/**
* The background color input field for changing node or edge background colors.
*/
bgColor: any;
/**
* The flesh color input field for changing edge colors in case of a directed graph.
*/
fColor: any;
/**
* Initializes a new instance of the ChangeColorComponent class.
*
* @param {GrapheService} grapheS - The GrapheService instance.
*/
constructor(protected grapheS: GrapheService) {}
}