Moveable
    Preparing search index...

    Interface RoundableEvents

    Index
    onRound: OnRound

    When drag or double click the border area or controls, the round event is called.

    import Moveable from "@moveable-next/vanilla";

    const moveable = new Moveable(document.body, {
    roundable: true,
    roundRelative: false,
    });
    moveable.on("roundStart", e => {
    console.log(e);
    }).on("round", e => {
    e.target.style.borderRadius = e.borderRadius;
    }).on("roundEnd", e => {
    console.log(e);
    });
    onRoundEnd: OnRoundEnd

    When drag end the border area or controls, the roundEnd event is called.

    import Moveable from "@moveable-next/vanilla";

    const moveable = new Moveable(document.body, {
    roundable: true,
    roundRelative: false,
    });
    moveable.on("roundStart", e => {
    console.log(e);
    }).on("round", e => {
    e.target.style.borderRadius = e.borderRadius;
    }).on("roundEnd", e => {
    console.log(e);
    });
    onRoundGroup: OnRoundGroup

    When 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);
    });
    onRoundGroupEnd: OnRoundGroupEnd

    When 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);
    });
    onRoundGroupStart: OnRoundGroupStart

    When 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);
    });
    onRoundStart: OnRoundStart

    When drag start the clip area or controls, the roundStart event is called.

    import Moveable from "@moveable-next/vanilla";

    const moveable = new Moveable(document.body, {
    roundable: true,
    roundRelative: false,
    });
    moveable.on("roundStart", e => {
    console.log(e);
    }).on("round", e => {
    e.target.style.borderRadius = e.borderRadius;
    }).on("roundEnd", e => {
    console.log(e);
    });