mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-12 03:13:24 +01:00
16 lines
375 B
JavaScript
16 lines
375 B
JavaScript
import {contributeComponent} from './components/ContributedComponents';
|
|
|
|
export function activate(ctx) {
|
|
|
|
ctx.services.dom = {
|
|
viewerContainer: document.getElementById('viewer-container'),
|
|
contributeComponent
|
|
};
|
|
|
|
ctx.appTabsService.tabs$.attach(({activeTab}) => {
|
|
if (activeTab === 0) {
|
|
services.viewer.sceneSetup.updateViewportSize();
|
|
}
|
|
});
|
|
}
|
|
|