jsketcher/web/app/cad/workbench/workbenchPlugin.ts
2022-06-25 15:19:48 -07:00

20 lines
347 B
TypeScript

import {ApplicationContext} from "context";
import {WorkbenchService} from "cad/workbench/workbenchService";
declare module 'context' {
interface CoreContext {
workbenchService: WorkbenchService;
}
}
export const WorkbenchPlugin = {
activate(ctx: ApplicationContext) {
ctx.workbenchService = new WorkbenchService(ctx);
}
}