phaser4-rex-plugins
Version:
22 lines (18 loc) • 549 B
JavaScript
import {
ElementProperties,
StyleProperties,
} from './InputTextProperties.js';
import CopyProperty from '../../../utils/object/CopyProperty.js';
var CopyElementConfig = function (from) {
if (from === undefined) {
from = {};
}
var to = {};
CopyProperty(from, to, 'inputType');
CopyProperty(from, to, 'type');
CopyProperty(from, to, 'style');
CopyProperty(from, to, StyleProperties);
CopyProperty(from, to, ElementProperties);
return to;
}
export default CopyElementConfig;