mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-20 07:22:38 +01:00
13 lines
No EOL
372 B
JavaScript
13 lines
No EOL
372 B
JavaScript
|
|
export function activate(ctx) {
|
|
ctx.streams.wizard.workingRequest.attach(({type}) => {
|
|
if (type) {
|
|
let operation = ctx.services.operation.get(type);
|
|
if (operation.selectionMode) {
|
|
ctx.services.pickControl.setSelectionMode(operation.selectionMode);
|
|
}
|
|
} else {
|
|
ctx.services.pickControl.switchToDefaultSelectionMode();
|
|
}
|
|
});
|
|
} |