Skip to content

Commit

Permalink
optional, no default value
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Oct 30, 2022
1 parent 77dccf6 commit 214bc52
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/mixins/object_interactivity.mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,16 @@ export class InteractiveFabricObject extends FabricObject {

/**
* Indicates the angle that an object will lock to while rotating.
* @type TDegree
* @default
* @type [TDegree]
*/
snapAngle: TDegree = 0;
snapAngle?: TDegree;

/**
* Indicates the distance from the snapAngle the rotation will lock to the snapAngle.
* When `null`, the snapThreshold will default to the snapAngle.
* @type TDegree | null
* @default
* When undefined, the snapThreshold will default to the snapAngle.
* @type [TDegree]
*/
snapThreshold: TDegree | null = null;
snapThreshold?: TDegree;

/**
* Constructor
Expand Down

0 comments on commit 214bc52

Please sign in to comment.