Skip to content
Snippets Groups Projects
Commit 51ed6619 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

switch to reactive forms

parent 33539289
No related branches found
No related tags found
1 merge request!442Signals and Reactive Forms: hanging wall effects
import {gmmUtils} from '@ghsc/nshmp-lib-ng/gmm';
import {NshmpPlot} from '@ghsc/nshmp-lib-ng/plot';
import {gmmUtils} from '@ghsc/nshmp-lib-no-ngrx/gmm';
import {FormGroupControls} from '@ghsc/nshmp-lib-no-ngrx/nshmp';
import {NshmpPlot} from '@ghsc/nshmp-lib-no-ngrx/plot';
import {XySequence} from '@ghsc/nshmp-utils-ts/libs/nshmp-lib/data';
import {Imt, imtToString} from '@ghsc/nshmp-utils-ts/libs/nshmp-lib/gmm';
import {PlotlyPlot} from '@ghsc/nshmp-utils-ts/libs/plotly';
......@@ -17,11 +18,14 @@ import {
*
* @param state The application state
*/
export function createPlots(state: AppState): Map<string, NshmpPlot> {
export function createPlots(
state: AppState,
form: FormGroupControls<ControlPanelForm>
): Map<string, NshmpPlot> {
const plots = new Map<string, NshmpPlot>();
const groundMotionPlot = state.plots.get(Plots.GROUND_MOTION);
const faultPlot = state.plots.get(Plots.FAULT);
const formValues = state.controlPanelForm.value;
const formValues = form.getRawValue();
if (state.serviceResponses !== null && state.serviceResponses?.length !== 0) {
const hoverTemplate = '%{x} km, %{y} AFE';
......
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