awv3
Version:
⚡ AWV3 embedded CAD
12 lines (9 loc) • 381 B
JavaScript
import Element from '../element';
export default class Selection extends Element {
constructor(plugin, options = {}) {
if (options.children) {
options.children = options.children.map(item => item instanceof Element ? item.id : item);
}
super(plugin, { type: Element.Type.Selection, types: ['Mesh'], limit: Infinity, ...options });
}
}