From 148d65bcede0ee167f8bc1bd162de5de3c397b4e Mon Sep 17 00:00:00 2001 From: Alexander Shalamov Date: Thu, 15 Aug 2019 17:18:42 +0300 Subject: [core][node] Serialize formatted expression's text-color option This enables proper round-tripping for serialized format expression. --- include/mbgl/util/color.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/mbgl') diff --git a/include/mbgl/util/color.hpp b/include/mbgl/util/color.hpp index 01a4c8f292..1ff44ce085 100644 --- a/include/mbgl/util/color.hpp +++ b/include/mbgl/util/color.hpp @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include @@ -39,6 +40,7 @@ public: static optional parse(const std::string&); std::string stringify() const; std::array toArray() const; + mbgl::Value toObject() const; }; inline bool operator==(const Color& colorA, const Color& colorB) { -- cgit v1.2.1