jsketcher/web/app/sketcher/shapes/param.js
2020-03-05 23:42:26 -08:00

21 lines
No EOL
398 B
JavaScript

import {Generator} from "../id-generator";
import {Param as SolverParam} from '../constr/solver';
export class Param {
constructor(value, debugSymbol) {
this.id = Generator.genID();
this.value = value;
this.solverParam = new SolverParam(value, this);
this.debugSymbol = debugSymbol || 'X';
}
set(value) {
this.value = value;
}
get() {
return this.value;
}
}