UNPKG

@aurigma/design-atoms

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

17 lines 552 B
import { RotationType } from "@aurigma/design-atoms-interfaces"; export class WorkspaceRotation { rotate(surface, rotationType) { surface.rotateAngle += this._getRotationTypeAngle(rotationType); } _getRotationTypeAngle(rotationType) { switch (rotationType) { case RotationType.Rotate180: return 180; case RotationType.Rotate270: return 270; default: return 90; } } } //# sourceMappingURL=WorkspaceRotation.js.map