import { NgxMoveableComponent } from "ngx-moveable"; import { throttle } from "@daybrush/utils"; import { Component } from "@angular/core"; @Component({ selector: "ngx-app", templateUrl: "./App.component.html" }) export default class NgxAppComponent { onBeforeRotate(e) { e.setRotation(throttle(e.rotation, 45)); } onRender(e) { e.target.style.cssText += e.cssText; } onBeforeRotateGroup(e) { e.setRotation(throttle(e.rotation, 45)); } onRenderGroup(e) { e.events.forEach(ev => { ev.target.style.cssText += ev.cssText; }); } }