Files
railwaysystem/RuoYi-Vue/ruoyi-ui/node_modules2/@antv/x6-common/es/object/mixins.js
T
2026-09-10 15:40:10 +08:00

13 lines
482 B
JavaScript

/**
* @see https://www.typescriptlang.org/docs/handbook/mixins.html
*/
export function applyMixins(derivedCtor, ...baseCtors) {
baseCtors.forEach((baseCtor) => {
Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => {
if (name !== 'constructor') {
Object.defineProperty(derivedCtor.prototype, name, Object.getOwnPropertyDescriptor(baseCtor.prototype, name));
}
});
});
}
//# sourceMappingURL=mixins.js.map