import * as React from "react";
import Moveable from "@/react-moveable";
import { throttle } from "@daybrush/utils";
export default function App() {
return (
Target1
Target2
Target3
Single Target
{
e.setRotation(throttle(e.rotation, 45));
}}
onRender={e => {
e.target.style.cssText += e.cssText;
}}
/>
{
e.setRotation(throttle(e.rotation, 45));
}}
onRenderGroup={e => {
e.events.forEach(ev => {
ev.target.style.cssText += ev.cssText;
});
}}
/>
);
}