Group

Moveable. Group

Members

defaultGroupOrigin

Source:
Sets the initial origin of the group. (default 0)
Example
import Moveable from "moveable";

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

moveable.defaultGroupOrigin = "20% 40%";

defaultGroupRotate

Source:
Sets the initial rotation of the group. (default 0)
Example
import Moveable from "moveable";

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

moveable.defaultGroupRotate = 40;

Type Definitions

GroupableOptions

Source:
Properties:
Name Type Description
defaultGroupRotate? number Sets the initial rotation of the group. (default 0)
defaultGroupOrigin? string Sets the initial transform origin of the group. (default "50% 50%")
groupable? boolean
Type:
  • TSInterface