phaser4-rex-plugins
Version:
32 lines • 932 B
JavaScript
var InjectProperties = function (inputText) {
Object.defineProperty(inputText, 'childOY', {
configurable: true,
get: function () {
return inputText.textOY;
},
set: function (value) {
inputText.textOY = value;
}
});
Object.defineProperty(inputText, 'topChildOY', {
get: function () {
return inputText.topTextOY;
}
});
Object.defineProperty(inputText, 'bottomChildOY', {
get: function () {
return inputText.bottomTextOY;
}
});
Object.defineProperty(inputText, 'childVisibleHeight', {
get: function () {
return inputText.textVisibleHeight;
}
});
Object.defineProperty(inputText, 'childHeight', {
get: function () {
return inputText.contentHeight;
}
});
};
export default InjectProperties;