export default (type, {x = 0, y = 0} = {}) => ({
type: 'object',
properties: {
x: {defaultValue: x, type},
y: {defaultValue: y, type},
},
});