SourceTermAnalysisSystem_vue/node_modules/@antv/x6-common/lib/object/mixins.js
2026-05-15 10:22:44 +08:00

17 lines
617 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.applyMixins = void 0;
/**
* @see https://www.typescriptlang.org/docs/handbook/mixins.html
*/
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));
}
});
});
}
exports.applyMixins = applyMixins;
//# sourceMappingURL=mixins.js.map