addComponent(id, component) { this.components.set(id, { component, isVisible: true }); if (component.animate) { addAnimationCallback(() => component.animate(object)); } }