How to use the sprotty.SetBoundsAction function in sprotty

To help you get started, we’ve selected a few sprotty examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github eclipsesource / graphical-lsp / client / packages / sprotty-client / src / features / layout / layout-commands.ts View on Github external
dispatchResizeActions(elements: SelectableBoundsAware[], change: (element: SelectableBoundsAware, bounds: WriteableElementAndBounds) => void) {
        const elementAndBounds: ElementAndBounds[] = []; // client- and server-side resize
        elements.forEach(element => elementAndBounds.push(this.createElementAndBounds(element, change)));
        this.dispatchActions([new SetBoundsAction(elementAndBounds), new ChangeBoundsOperationAction(elementAndBounds)]);
    }