Add JavaScript bindings for Errata API (#1260)
Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1260 Wire C ABI to embind to expose to JS Reviewed By: yungsters Differential Revision: D45297215 fbshipit-source-id: ef832ad423703496a550b864ebee70525a858b50
This commit is contained in:
committed by
Facebook GitHub Bot
parent
215f0a9d6d
commit
893b3e3957
@@ -36,6 +36,10 @@ void Config::setUseLegacyStretchBehaviour(bool useLegacyStretchBehaviour) {
|
||||
YGConfigSetUseLegacyStretchBehaviour(m_config, useLegacyStretchBehaviour);
|
||||
}
|
||||
|
||||
void Config::setErrata(int errata) {
|
||||
YGConfigSetErrata(m_config, static_cast<YGErrata>(errata));
|
||||
}
|
||||
|
||||
void Config::setUseWebDefaults(bool useWebDefaults) {
|
||||
YGConfigSetUseWebDefaults(m_config, useWebDefaults);
|
||||
}
|
||||
@@ -45,10 +49,14 @@ bool Config::isExperimentalFeatureEnabled(int feature) const {
|
||||
m_config, static_cast<YGExperimentalFeature>(feature));
|
||||
}
|
||||
|
||||
bool Config::useLegacyStretchBehaviour() {
|
||||
bool Config::useLegacyStretchBehaviour() const {
|
||||
return YGConfigGetUseLegacyStretchBehaviour(m_config);
|
||||
}
|
||||
|
||||
bool Config::useWebDefaults() {
|
||||
int Config::getErrata() const {
|
||||
return static_cast<int>(YGConfigGetErrata(m_config));
|
||||
}
|
||||
|
||||
bool Config::useWebDefaults() const {
|
||||
return YGConfigGetUseWebDefaults(m_config);
|
||||
}
|
||||
|
Reference in New Issue
Block a user