数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
689 B

'use strict';
const icon_defaults = require('./defaults.cjs');
const icon_transformations = require('./transformations.cjs');
function mergeIconData(parent, child) {
const result = icon_transformations.mergeIconTransformations(parent, child);
for (const key in icon_defaults.defaultExtendedIconProps) {
if (key in icon_defaults.defaultIconTransformations) {
if (key in parent && !(key in result)) {
result[key] = icon_defaults.defaultIconTransformations[key];
}
} else if (key in child) {
result[key] = child[key];
} else if (key in parent) {
result[key] = parent[key];
}
}
return result;
}
exports.mergeIconData = mergeIconData;