|
@@ -9,13 +9,15 @@
|
|
<div class="q-ma-xs"/>
|
|
<div class="q-ma-xs"/>
|
|
<GetParticleParameters/>
|
|
<GetParticleParameters/>
|
|
<div class="q-ma-xs"/>
|
|
<div class="q-ma-xs"/>
|
|
- <GetNumberOfModes/>
|
|
|
|
|
|
+ <GetPlotSettings/>
|
|
<div class="q-ma-xs"/>
|
|
<div class="q-ma-xs"/>
|
|
<RunSimulationSpectrum/>
|
|
<RunSimulationSpectrum/>
|
|
<div class="q-ma-xs"/>
|
|
<div class="q-ma-xs"/>
|
|
- <ReactiveChart :chart="chart"/>
|
|
|
|
|
|
+ <PlotSelector/>
|
|
|
|
+ <div class="q-ma-xs"/>
|
|
|
|
+ <ReactiveChart :chart="$store.state.plotRuntime.spectraPlot"/>
|
|
<div class="col-auto q-pa-md">
|
|
<div class="col-auto q-pa-md">
|
|
- Input result: {{$store.state.plotRuntime.Qsca}}
|
|
|
|
|
|
+ Input result: {{$store.state.plotRuntime.isQscaToggle}}
|
|
</div>
|
|
</div>
|
|
</q-page>
|
|
</q-page>
|
|
</template>
|
|
</template>
|
|
@@ -23,65 +25,28 @@
|
|
<script lang='ts'>
|
|
<script lang='ts'>
|
|
import {
|
|
import {
|
|
defineComponent,
|
|
defineComponent,
|
|
- ref
|
|
|
|
} from 'vue'
|
|
} from 'vue'
|
|
|
|
+
|
|
import GetUnits from 'components/GetUnits.vue'
|
|
import GetUnits from 'components/GetUnits.vue'
|
|
import GetHostIndex from 'components/GetHostIndex.vue'
|
|
import GetHostIndex from 'components/GetHostIndex.vue'
|
|
import GetSourceParameters from 'components/GetSourceParameters.vue'
|
|
import GetSourceParameters from 'components/GetSourceParameters.vue'
|
|
import GetParticleParameters from 'components/GetParticleParameters.vue'
|
|
import GetParticleParameters from 'components/GetParticleParameters.vue'
|
|
-import GetNumberOfModes from 'components/GetNumberOfModes.vue'
|
|
|
|
|
|
+import GetPlotSettings from 'components/GetPlotSettings.vue'
|
|
import RunSimulationSpectrum from 'components/RunSimulationSpectrum.vue'
|
|
import RunSimulationSpectrum from 'components/RunSimulationSpectrum.vue'
|
|
import ReactiveChart from 'components/ReactiveChart.vue'
|
|
import ReactiveChart from 'components/ReactiveChart.vue'
|
|
|
|
+import PlotSelector from 'components/PlotSelector.vue'
|
|
// import { useStore } from 'src/store'
|
|
// import { useStore } from 'src/store'
|
|
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: 'PageIndex',
|
|
name: 'PageIndex',
|
|
components: {
|
|
components: {
|
|
- RunSimulationSpectrum, GetUnits, GetHostIndex, GetSourceParameters,
|
|
|
|
- GetParticleParameters, GetNumberOfModes,
|
|
|
|
- ReactiveChart
|
|
|
|
|
|
+ RunSimulationSpectrum, GetUnits, GetHostIndex,
|
|
|
|
+ GetSourceParameters, GetParticleParameters,
|
|
|
|
+ GetPlotSettings, ReactiveChart, PlotSelector
|
|
},
|
|
},
|
|
- setup() {
|
|
|
|
- const chart = ref({
|
|
|
|
- data: [{
|
|
|
|
- y: [],
|
|
|
|
- line: {
|
|
|
|
- color: '#5e9e7e',
|
|
|
|
- width: 4,
|
|
|
|
- shape: 'line'
|
|
|
|
- }
|
|
|
|
- }],
|
|
|
|
- layout: {
|
|
|
|
- margin: {
|
|
|
|
- l: 0,
|
|
|
|
- r: 40,
|
|
|
|
- b: 50,
|
|
|
|
- t: 0
|
|
|
|
- },
|
|
|
|
- // paper_bgcolor: '#7f7f7f',
|
|
|
|
- // plot_bgcolor: '#c7c7c7',
|
|
|
|
- // title: 'reactive charts',
|
|
|
|
- xaxis: {
|
|
|
|
- // will be set on mount
|
|
|
|
- title: ''
|
|
|
|
- },
|
|
|
|
- yaxis: {
|
|
|
|
- title: 'Normalized cross-sections'
|
|
|
|
- },
|
|
|
|
- showlegend: true,
|
|
|
|
- legend: {
|
|
|
|
- orientation: 'h',
|
|
|
|
- x: -.1,
|
|
|
|
- y: 1.05
|
|
|
|
- },
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- setTimeout(()=>{
|
|
|
|
- chart.value.layout.yaxis.title='some new title'
|
|
|
|
- }, 3000)
|
|
|
|
- // const $store = useStore()
|
|
|
|
- return {chart}
|
|
|
|
- }
|
|
|
|
|
|
+ // setup() {
|
|
|
|
+ //
|
|
|
|
+ // }
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|