[core] Enable text-variable-anchor property
This commit is contained in:
@@ -34,6 +34,11 @@ struct Converter<T, typename std::enable_if_t<std::is_enum<T>::value>> {
|
||||
optional<T> operator()(const Convertible& value, Error& error) const;
|
||||
};
|
||||
|
||||
template <class T>
|
||||
struct Converter<std::vector<T>, typename std::enable_if_t<std::is_enum<T>::value>> {
|
||||
optional<std::vector<T>> operator()(const Convertible& value, Error& error) const;
|
||||
};
|
||||
|
||||
template <>
|
||||
struct Converter<Color> {
|
||||
optional<Color> operator()(const Convertible& value, Error& error) const;
|
||||
|
||||
@@ -134,6 +134,10 @@ public:
|
||||
PropertyValue<TextJustifyType> getTextJustify() const;
|
||||
void setTextJustify(PropertyValue<TextJustifyType>);
|
||||
|
||||
static PropertyValue<std::vector<TextVariableAnchorType>> getDefaultTextVariableAnchor();
|
||||
PropertyValue<std::vector<TextVariableAnchorType>> getTextVariableAnchor() const;
|
||||
void setTextVariableAnchor(PropertyValue<std::vector<TextVariableAnchorType>>);
|
||||
|
||||
static PropertyValue<SymbolAnchorType> getDefaultTextAnchor();
|
||||
PropertyValue<SymbolAnchorType> getTextAnchor() const;
|
||||
void setTextAnchor(PropertyValue<SymbolAnchorType>);
|
||||
|
||||
@@ -98,6 +98,8 @@ enum class SymbolAnchorType : uint8_t {
|
||||
BottomRight
|
||||
};
|
||||
|
||||
using TextVariableAnchorType = SymbolAnchorType;
|
||||
|
||||
enum class TextTransformType : uint8_t {
|
||||
None,
|
||||
Uppercase,
|
||||
|
||||
Reference in New Issue
Block a user