I have set these following attributes to all of my objects on my Fabric JS canvas.
JavaScript
x
7
1
lockMovementX: isDisabled,
2
lockMovementY: isDisabled,
3
lockScalingX: isDisabled,
4
lockScalingY: isDisabled,
5
lockUniScaling: isDisabled,
6
lockRotation: isDisabled,
7
However, when I select multiple objects by holding the shift key, these objects get movable again, but as a group, any idea how I disable this possibility as well?
Advertisement
Answer
JavaScript
1
2
1
canvas.selection = false
2
In this way, you can disable the group selection but the objects will still be selectable.