Changing how the use record works in svg-reader and refactoring

This commit is contained in:
Kirill Poljakov
2023-05-10 20:48:50 +03:00
parent bc7eab7f1d
commit 7e16297d33
29 changed files with 369 additions and 384 deletions

View File

@ -838,6 +838,9 @@ namespace NSCSS
}
case TransformTranslate:
{
if (0. == oMatrix.tx() && 0. == oMatrix.ty())
return std::wstring();
wsValue = L"translate(";
wsValue += std::to_wstring(oMatrix.tx()) + L',';
wsValue += std::to_wstring(oMatrix.ty()) + L')';
@ -845,6 +848,9 @@ namespace NSCSS
}
case TransformScale:
{
if (1. == oMatrix.sx() && 1. == oMatrix.sy())
return std::wstring();
wsValue = L"scale(";
wsValue += std::to_wstring(oMatrix.sx()) + L',';
wsValue += std::to_wstring(oMatrix.sy()) + L')';