canRotate method

bool canRotate()

This predicate returns true if #rotatable is true, if the layer's Layer#allowRotate is true, and if the diagram's Diagram#allowRotate is true.

This does not check Diagram#isReadOnly or Model#isReadOnly, but commands and tools should check those properties. @expose @return {boolean} true if the user may rotate this part.

Implementation

_i2.bool canRotate() => _i4.callMethod(
      this,
      'canRotate',
      [],
    );