All files / app/codeCharta/state/store/appSettings appSettings.reducer.ts

100% Statements 30/30
100% Branches 0/0
100% Functions 0/0
100% Lines 30/30

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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10142x 42x 42x 42x 42x 42x 42x 42x       42x       42x 42x 42x 42x 42x 42x 42x 42x 42x       42x 42x 42x 42x 42x 42x 42x       42x 42x 42x   42x                                                           42x                                                          
import { colorLabels, defaultColorLabelOptions } from "./colorLabels/colorLabels.reducer"
import { defaultShowMetricLabelNodeName, showMetricLabelNodeName } from "./showMetricLabelNodeName/showMetricLabelNodeName.reducer"
import { defaultShowMetricLabelNameValue, showMetricLabelNameValue } from "./showMetricLabelNameValue/showMetricLabelNameValue.reducer"
import { defaultSortingOrderAscending, sortingOrderAscending } from "./sortingOrderAscending/sortingOrderAscending.reducer"
import { defaultIsLoadingFile, isLoadingFile } from "./isLoadingFile/isLoadingFile.reducer"
import { defaultIsLoadingMap, isLoadingMap } from "./isLoadingMap/isLoadingMap.reducer"
import { defaultMapColors, mapColors } from "./mapColors/mapColors.reducer"
import {
    defaultResetCameraIfNewFileIsLoaded,
    resetCameraIfNewFileIsLoaded
} from "./resetCameraIfNewFileIsLoaded/resetCameraIfNewFileIsLoaded.reducer"
import {
    defaultShowOnlyBuildingsWithEdges,
    showOnlyBuildingsWithEdges
} from "./showOnlyBuildingsWithEdges/showOnlyBuildingsWithEdges.reducer"
import { defaultIsWhiteBackground, isWhiteBackground } from "./isWhiteBackground/isWhiteBackground.reducer"
import { defaultInvertHeight, invertHeight } from "./invertHeight/invertHeight.reducer"
import { defaultHideFlatBuildings, hideFlatBuildings } from "./hideFlatBuildings/hideFlatBuildings.reducer"
import { defaultScaling, scaling } from "./scaling/scaling.reducer"
import { defaultEdgeHeight, edgeHeight } from "./edgeHeight/edgeHeight.reducer"
import { amountOfEdgePreviews, defaultAmountOfEdgesPreviews } from "./amountOfEdgePreviews/amountOfEdgePreviews.reducer"
import { amountOfTopLabels, defaultAmountOfTopLabels } from "./amountOfTopLabels/amountOfTopLabels.reducer"
import { defaultIsPresentationMode, isPresentationMode } from "./isPresentationMode/isPresentationMode.reducer"
import {
    defaultExperimentalFeaturesEnabled,
    experimentalFeaturesEnabled
} from "./enableExperimentalFeatures/experimentalFeaturesEnabled.reducer"
import { defaultLayoutAlgorithm, layoutAlgorithm } from "./layoutAlgorithm/layoutAlgorithm.reducer"
import { defaultMaxTreeMapFiles, maxTreeMapFiles } from "./maxTreeMapFiles/maxTreeMapFiles.reducer"
import { defaultSharpnessMode, sharpnessMode } from "./sharpnessMode/sharpnessMode.reducer"
import { defaultScreenshotToClipboardEnabled, screenshotToClipboardEnabled } from "./enableClipboard/screenshotToClipboardEnabled.reducer"
import { defaultInvertArea, invertArea } from "./invertArea/invertArea.reducer"
import { defaultIsEdgeMetricVisible, isEdgeMetricVisible } from "./isEdgeMetricVisible/isEdgeMetricVisible.reducer"
import {
    defaultIsColorMetricLinkedToHeightMetric,
    isColorMetricLinkedToHeightMetric
} from "./isHeightAndColorMetricLinked/isColorMetricLinkedToHeightMetric.reducer"
import { defaultIsSearchPanelPinned, isSearchPanelPinned } from "./isSearchPanelPinned/isSearchPanelPinned.reducer"
import { defaultEnableFloorLabels, enableFloorLabels } from "./enableFloorLabels/enableFloorLabels.reducer"
import { combineReducers } from "@ngrx/store"
 
export const appSettings = combineReducers({
    colorLabels,
    showMetricLabelNodeName,
    showMetricLabelNameValue,
    sortingOrderAscending,
    isSearchPanelPinned,
    isLoadingFile,
    isLoadingMap,
    mapColors,
    resetCameraIfNewFileIsLoaded,
    showOnlyBuildingsWithEdges,
    isEdgeMetricVisible,
    isWhiteBackground,
    invertHeight,
    invertArea,
    hideFlatBuildings,
    scaling,
    edgeHeight,
    amountOfEdgePreviews,
    amountOfTopLabels,
    isPresentationMode,
    experimentalFeaturesEnabled,
    screenshotToClipboardEnabled,
    layoutAlgorithm,
    maxTreeMapFiles,
    sharpnessMode,
    isColorMetricLinkedToHeightMetric,
    enableFloorLabels
})
 
export const defaultAppSettings = {
    colorLabels: defaultColorLabelOptions,
    showMetricLabelNodeName: defaultShowMetricLabelNodeName,
    showMetricLabelNameValue: defaultShowMetricLabelNameValue,
    sortingOrderAscending: defaultSortingOrderAscending,
    isSearchPanelPinned: defaultIsSearchPanelPinned,
    isLoadingFile: defaultIsLoadingFile,
    isLoadingMap: defaultIsLoadingMap,
    mapColors: defaultMapColors,
    resetCameraIfNewFileIsLoaded: defaultResetCameraIfNewFileIsLoaded,
    showOnlyBuildingsWithEdges: defaultShowOnlyBuildingsWithEdges,
    isEdgeMetricVisible: defaultIsEdgeMetricVisible,
    isWhiteBackground: defaultIsWhiteBackground,
    invertHeight: defaultInvertHeight,
    invertArea: defaultInvertArea,
    hideFlatBuildings: defaultHideFlatBuildings,
    scaling: defaultScaling,
    edgeHeight: defaultEdgeHeight,
    amountOfEdgePreviews: defaultAmountOfEdgesPreviews,
    amountOfTopLabels: defaultAmountOfTopLabels,
    isPresentationMode: defaultIsPresentationMode,
    experimentalFeaturesEnabled: defaultExperimentalFeaturesEnabled,
    screenshotToClipboardEnabled: defaultScreenshotToClipboardEnabled,
    layoutAlgorithm: defaultLayoutAlgorithm,
    maxTreeMapFiles: defaultMaxTreeMapFiles,
    sharpnessMode: defaultSharpnessMode,
    isColorMetricLinkedToHeightMetric: defaultIsColorMetricLinkedToHeightMetric,
    enableFloorLabels: defaultEnableFloorLabels
}