diff --git a/src/app/formulaire/definition/form-def-section.ts b/src/app/formulaire/definition/form-def-section.ts index 4514d241fbc97fdfbb1a927126138b95c6b3580a..558d4f458a5e61879b5a048ab227ac68cd72a796 100644 --- a/src/app/formulaire/definition/form-def-section.ts +++ b/src/app/formulaire/definition/form-def-section.ts @@ -1,5 +1,5 @@ import { - ComputeNodeType, CalculatorType, ParamsSectionTrapez, cSnTrapez, ParamsSectionRectang, cSnRectang, + ComputeNodeType, ParamsSectionTrapez, cSnTrapez, ParamsSectionRectang, cSnRectang, ParamsSectionCirc, cSnCirc, ParamsSectionPuiss, cSnPuiss, acSection, ParamsEquation } from "jalhyd"; diff --git a/src/app/formulaire/definition/form-result-fixedvar.ts b/src/app/formulaire/definition/form-result-fixedvar.ts index 7cd26b3bb3d94cb184d7c1665eac853ab61002ee..5508e98ac359b62ab988f9caea7267ec2898505e 100644 --- a/src/app/formulaire/definition/form-result-fixedvar.ts +++ b/src/app/formulaire/definition/form-result-fixedvar.ts @@ -1,6 +1,7 @@ +import { ResultElement, cLog } from "jalhyd"; + import { FixedVarResults, GraphType } from "../../results/fixed-var-results"; import { ParamRadioConfig, NgParameter, ParamValueMode } from "../ngparam"; -import { Nub, ParamsEquation, CalculatorType, Result, ResultElement, cLog } from "jalhyd"; import { FormResult } from "./form-result"; import { FormulaireDefinition } from "./form-definition"; import { CalculatorResults } from "../../results/calculator-results"; diff --git a/src/app/services/param/param.service.ts b/src/app/services/param/param.service.ts index 57706e786a5f304c8f3deb1c2552ba544aabe656..8d088ef028720437ee0c3f9feae5eaa86b2d1c12 100644 --- a/src/app/services/param/param.service.ts +++ b/src/app/services/param/param.service.ts @@ -4,16 +4,16 @@ import { NgParameter } from "../../formulaire/ngparam"; import { FormulaireDefinition } from "../../formulaire/definition/form-definition"; export class ParamService { - private createAccuracyParameter(calcType: CalculatorType): ParamDefinition { + private createAccuracyParameter(): ParamDefinition { const d = new ParamDomain(ParamDomainValue.INTERVAL, 1e-10, 100); - const p = new ParamDefinition(calcType, 'Pr', d); + const p = new ParamDefinition('Pr', d); p.calculability = ParamCalculability.FREE; return p; } public createParameter(calcType: CalculatorType, nodeType: ComputeNodeType, symbol: string, isTmpl = false): NgParameter { if (symbol === "Pr") - var prmDef: ParamDefinition = this.createAccuracyParameter(calcType); + var prmDef: ParamDefinition = this.createAccuracyParameter(); else prmDef = ComputeNodeParameters.getInstance().getComputeNodeParameter(calcType, nodeType, symbol);