Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)]);
}