Support for icon-text-fit, icon-text-fit-padding (#5334)
* Add support for icon-text-fit * Port unit tests for getIconQuads() from js => cpp * Add support for padding in all 4 directions. * Update all hashes post-merge
This commit is contained in:
@@ -53,6 +53,12 @@ public:
|
||||
PropertyValue<float> getIconSize() const;
|
||||
void setIconSize(PropertyValue<float>);
|
||||
|
||||
PropertyValue<IconTextFitType> getIconTextFit() const;
|
||||
void setIconTextFit(PropertyValue<IconTextFitType>);
|
||||
|
||||
PropertyValue<std::array<float, 4>> getIconTextFitPadding() const;
|
||||
void setIconTextFitPadding(PropertyValue<std::array<float, 4>>);
|
||||
|
||||
PropertyValue<std::string> getIconImage() const;
|
||||
void setIconImage(PropertyValue<std::string>);
|
||||
|
||||
|
||||
@@ -80,5 +80,12 @@ enum class TextTransformType : uint8_t {
|
||||
Lowercase,
|
||||
};
|
||||
|
||||
enum class IconTextFitType : uint8_t {
|
||||
None,
|
||||
Both,
|
||||
Width,
|
||||
Height
|
||||
};
|
||||
|
||||
} // namespace style
|
||||
} // namespace mbgl
|
||||
|
||||
Reference in New Issue
Block a user