OptionaldisplayOptionaledgeWhether to scale and resize through edge lines. You can use "n", "w", "s", "e" in LineDirection array.
OptionalkeepWhen resize or scale, keeps a ratio of the width, height.
OptionalrenderSet directions to show the control box.
import Moveable from "@moveable-next/vanilla";
const moveable = new Moveable(document.body, {
warpable: true,
renderDirections: ["n", "nw", "ne", "s", "se", "sw", "e", "w"],
});
moveable.renderDirections = ["nw", "ne", "sw", "se"];
OptionalscalableWhether or not target can be scaled.
Optionalthrottlethrottle of scaleX, scaleY when scale.
You can expand the area around the control. Either
rotateAroundControlsordisplayAroundControlscan be used. You can set the area through thecontrolPaddingvalue.