You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.0 KiB
31 lines
1.0 KiB
#include "pch.h"
|
|
#include "TextViewManager.h"
|
|
#include "TextViewManager.g.cpp"
|
|
|
|
using namespace winrt;
|
|
using namespace Microsoft::ReactNative;
|
|
|
|
namespace winrt::RNSVG::implementation {
|
|
TextViewManager::TextViewManager() {
|
|
m_class = RNSVG::SVGClass::RNSVGText;
|
|
m_name = L"RNSVGText";
|
|
}
|
|
|
|
Windows::Foundation::Collections::IMapView<hstring, ViewManagerPropertyType> TextViewManager::NativeProps() {
|
|
auto const &parentProps{__super::NativeProps()};
|
|
auto const &nativeProps{winrt::single_threaded_map<hstring, ViewManagerPropertyType>()};
|
|
|
|
for (auto const &prop : parentProps) {
|
|
nativeProps.Insert(prop.Key(), prop.Value());
|
|
}
|
|
|
|
nativeProps.Insert(L"x", ViewManagerPropertyType::Array);
|
|
nativeProps.Insert(L"y", ViewManagerPropertyType::Array);
|
|
nativeProps.Insert(L"dx", ViewManagerPropertyType::Array);
|
|
nativeProps.Insert(L"dy", ViewManagerPropertyType::Array);
|
|
nativeProps.Insert(L"rotate", ViewManagerPropertyType::Array);
|
|
|
|
return nativeProps.GetView();
|
|
}
|
|
} // namespace winrt::RNSVG::implementation
|