Skip to content
Snippets Groups Projects
Commit 47032757 authored by mathias.chouet's avatar mathias.chouet
Browse files

Fix nghyd#221

parent 30fd2ff1
No related merge requests found
......@@ -106,3 +106,7 @@ export function floatDivAndMod(a: number, b: number, e: number = 1E-7): { q: num
}
return { q, r };
}
export function capitalize(s: string): string {
return s.charAt(0).toUpperCase() + s.slice(1);
}
......@@ -24,6 +24,7 @@ export class MacrorugoCompound extends MacroRugo implements Observer {
this._calcType = CalculatorType.MacroRugoCompound;
this._props.addObserver(this);
this.properties.setPropValue("inclinedApron", false);
this._childrenType = "MacroRugo";
}
/**
......
......@@ -17,6 +17,13 @@ import { ResultElement } from "./util/resultelement";
*/
export abstract class Nub extends ComputeNode implements IObservable {
/** type of children elements, used by GUI for translation */
protected _childrenType: string = "";
public get childrenType(): string {
return this._childrenType;
}
public get result(): Result {
return this._result;
}
......
......@@ -21,6 +21,7 @@ export class ParallelStructure extends Nub {
constructor(prms: ParamsEquation, dbg: boolean = false) {
super(prms, dbg);
this._calcType = CalculatorType.ParallelStructure;
this._childrenType = "Structure";
}
/** children casting */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment