File

components/plot-settings-panel/plot-settings-panel.component.ts

Description

Plot settings panel.

Metadata

Index

Properties

Properties

plots
Default value : computed<PlotSettingsPlots[]>(() => { const plot = this.service.mfdPlotState(); const defaultPlot = this.service.defaultPlots.mfd; return [ { defaultPlotSetting: defaultPlot.settingsForm.getRawValue(), plot, }, ]; })
service
Default value : inject(AppService)
import {Component, computed, inject} from '@angular/core';
import {NshmpPlotSettingsExpansionPanelComponent, PlotSettingsPlots} from '@ghsc/nshmp-lib-ng/plot';

import {AppService} from '../../services/app.service';

/**
 * Plot settings panel.
 */
@Component({
  imports: [NshmpPlotSettingsExpansionPanelComponent],
  selector: 'app-plot-settings-panel',
  styleUrl: './plot-settings-panel.component.scss',
  templateUrl: './plot-settings-panel.component.html',
})
export class PlotSettingsPanelComponent {
  service = inject(AppService);

  plots = computed<PlotSettingsPlots[]>(() => {
    const plot = this.service.mfdPlotState();
    const defaultPlot = this.service.defaultPlots.mfd;

    return [
      {
        defaultPlotSetting: defaultPlot.settingsForm.getRawValue(),
        plot,
      },
    ];
  });
}
<nshmp-plot-settings-expansion-panel [plots]="plots()" />
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""