Moveable
    Preparing search index...

    Interface GroupableProps

    interface GroupableProps {
        defaultGroupOrigin?: string;
        defaultGroupRotate?: number;
        groupableProps?: Record<string, any>;
        hideChildMoveableDefaultLines?: boolean;
        targetGroups?: MoveableTargetGroupsType;
        targets?: (SVGElement | HTMLElement)[];
        updateGroup?: boolean;
        useDefaultGroupRotate?: boolean;
    }

    Hierarchy (View Summary)

    Index
    defaultGroupOrigin?: string

    Sets the initial transform origin of the group.

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

    const moveable = new Moveable(document.body, {
    target: [].slice.call(document.querySelectorAll(".target")),
    defaultGroupOrigin: "50% 50%",
    });

    moveable.defaultGroupOrigin = "20% 40%";
    defaultGroupRotate?: number

    Sets the initial rotation of the group.

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

    const moveable = new Moveable(document.body, {
    target: [].slice.call(document.querySelectorAll(".target")),
    defaultGroupRotate: 0,
    });

    moveable.defaultGroupRotate = 40;
    groupableProps?: Record<string, any>

    Props that work when group

    {
    roundable: true,
    groupableProps: {
    roundable: false,
    },
    }
    hideChildMoveableDefaultLines?: boolean

    Whether to hide the line in child moveable for group corresponding to the rect of the target.

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

    const moveable = new Moveable(document.body, {
    target: [].slice.call(document.querySelectorAll(".target")),
    hideChildMoveableDefaultLines: false,
    });

    moveable.hideChildMoveableDefaultLines = true;

    The nested groups of the targets, made from the nested arrays in target. Moveable sets it itself when it renders a group.

    targets?: (SVGElement | HTMLElement)[]
    updateGroup?: boolean
    useDefaultGroupRotate?: boolean

    Use the defaultGroupRotate even if the children's rotations match.

    false