mirror of
https://github.com/vale981/grapher
synced 2025-03-12 05:46:40 -04:00
10 lines
194 B
JavaScript
10 lines
194 B
JavaScript
![]() |
export default class FieldNode {
|
||
|
constructor(name, body) {
|
||
|
this.name = name;
|
||
|
this.body = body;
|
||
|
}
|
||
|
|
||
|
applyFields(fields) {
|
||
|
fields[this.name] = this.body;
|
||
|
}
|
||
|
}
|