#pragma once #include "SVGLength.g.h" #include "JSValueXaml.h" namespace winrt::RNSVG::implementation { struct SVGLength : SVGLengthT { public: SVGLength() = default; SVGLength(float value); SVGLength(float value, RNSVG::LengthType type); float Value() { return m_value; } RNSVG::LengthType Unit() { return m_unit; } static RNSVG::SVGLength From(std::string value); static RNSVG::SVGLength From(Microsoft::ReactNative::JSValue const &value); private: float m_value{0.0f}; RNSVG::LengthType m_unit{RNSVG::LengthType::Unknown}; }; } // namespace winrt::RNSVG::implementation namespace winrt::RNSVG::factory_implementation { struct SVGLength : SVGLengthT {}; } // namespace winrt::RNSVG::factory_implementation