summaryrefslogtreecommitdiff
path: root/src/style/class_properties.cpp
blob: e326f56561a32e76a59805b16edebed4b109cad2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <llmr/style/class_properties.hpp>

namespace llmr {

const PropertyTransition &ClassProperties::getTransition(PropertyKey key, const PropertyTransition &defaultTransition) const {
    auto it = transitions.find(key);
    if (it == transitions.end()) {
        return defaultTransition;
    } else {
        return it->second;
    }
}

}