jsketcher/web/app/cad/dom/domPlugin.js
2020-05-16 22:22:02 -07:00

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();
}
});
}