mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-14 20:33:30 +01:00
19 lines
434 B
JavaScript
19 lines
434 B
JavaScript
import {isInstanceOf} from "./matchUtils";
|
|
import {Generator} from "../id-generator";
|
|
|
|
export default [
|
|
|
|
|
|
{
|
|
shortName: 'Mirror',
|
|
description: 'Mirror Objects',
|
|
selectionMatcher: selection => isInstanceOf(selection[0]) && selection.length > 1,
|
|
|
|
invoke: ctx => {
|
|
const {viewer} = ctx;
|
|
viewer.parametricManager.addGenerator(new Generator(GeneratorDefinitions.Mirror, [...viewer.selected]));
|
|
}
|
|
},
|
|
|
|
];
|
|
|