Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | 6x 5x 5x 5x 4x 5x | import { Scenario, CcState } from "../../../../../codeCharta.model" import { ScenarioMetricProperty } from "../../scenarioHelper" export const getInitialScenarioMetricProperties = (state: CcState, camera: Scenario["camera"]): ScenarioMetricProperty[] => { const { dynamicSettings, appSettings, fileSettings } = state const properties: ScenarioMetricProperty[] = [ { metricType: "Camera-Position", metricName: "", savedValues: { ...camera }, isSelected: true, isDisabled: false }, { metricType: "Area-Metric", metricName: dynamicSettings.areaMetric, savedValues: dynamicSettings.margin, isSelected: true, isDisabled: false }, { metricType: "Height-Metric", metricName: dynamicSettings.heightMetric, savedValues: { heightSlider: appSettings.scaling, labelSlider: appSettings.amountOfTopLabels }, isSelected: true, isDisabled: false }, { metricType: "Color-Metric", metricName: dynamicSettings.colorMetric, savedValues: { colorRange: dynamicSettings.colorRange, mapColors: appSettings.mapColors }, isSelected: true, isDisabled: false } ] if (fileSettings.edges.length > 0) { properties.push({ metricType: "Edge-Metric", metricName: dynamicSettings.edgeMetric, savedValues: { edgePreview: appSettings.amountOfEdgePreviews, edgeHeight: appSettings.edgeHeight }, isSelected: true, isDisabled: false }) } return properties } |