zz-chart
Version:
Alauda Chart components by Alauda Frontend Team
23 lines • 529 B
JavaScript
import { ViewStrategy } from './abstract.js';
/**
* 渲染策略
* internal 渲染图表
*/
export class InternalViewStrategy extends ViewStrategy {
get name() {
return 'internal';
}
get component() {
return ['title', 'legend', 'pie', 'gauge'];
}
init() {
// do nothing.
}
render() {
this.component.forEach(c => {
const comp = this.ctrl.shapeComponents.get(c);
comp?.render();
});
}
}
//# sourceMappingURL=internal-strategy.js.map