OptionalisOptionalmaxMaximum number of round controls. It moves in proportion by control. [horizontal, vertical]
OptionalminMinimum number of round controls. It moves in proportion by control. [horizontal, vertical]
OptionalonWhen drag or double click the border area or controls, the round event is called.
OptionalonWhen drag end the border area or controls, the roundEnd event is called.
OptionalonWhen drag or double click the border area or controls, the roundGroup event is called.
import Moveable from "@moveable-next/vanilla";
const moveable = new Moveable(document.body, {
targets: [target1, target2, target3],
roundable: true,
});
moveable.on("roundGroupStart", e => {
console.log(e.targets);
}).on("roundGroup", e => {
e.events.forEach(ev => {
ev.target.style.cssText += ev.cssText;
});
}).on("roundGroupEnd", e => {
console.log(e);
});
OptionalonWhen drag end the border area or controls, the roundGroupEnd event is called.
import Moveable from "@moveable-next/vanilla";
const moveable = new Moveable(document.body, {
targets: [target1, target2, target3],
roundable: true,
});
moveable.on("roundGroupStart", e => {
console.log(e.targets);
}).on("roundGroup", e => {
e.events.forEach(ev => {
ev.target.style.cssText += ev.cssText;
});
}).on("roundGroupEnd", e => {
console.log(e);
});
OptionalonWhen drag start the clip area or controls, the roundGroupStart event is called.
import Moveable from "@moveable-next/vanilla";
const moveable = new Moveable(document.body, {
targets: [target1, target2, target3],
roundable: true,
});
moveable.on("roundGroupStart", e => {
console.log(e.targets);
}).on("roundGroup", e => {
e.events.forEach(ev => {
ev.target.style.cssText += ev.cssText;
});
}).on("roundGroupEnd", e => {
console.log(e);
});
OptionalonWhen drag start the clip area or controls, the roundStart event is called.
OptionalroundableWhether to show and drag or double click border-radius.
OptionalroundWhether you can add/delete round controls by double-clicking a line or control.
OptionalroundThe padding value of the position of the round control
Optionalround% Can be used instead of the absolute px
Whether to show a round control that does not actually exist as a shadow