From 214bc5202a41bcf4152504b0f2274cce1ae991b3 Mon Sep 17 00:00:00 2001 From: ShaMan123 Date: Sun, 30 Oct 2022 08:19:19 +0200 Subject: [PATCH] optional, no default value --- src/mixins/object_interactivity.mixin.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/mixins/object_interactivity.mixin.ts b/src/mixins/object_interactivity.mixin.ts index 3264986fa22..b3810a72d02 100644 --- a/src/mixins/object_interactivity.mixin.ts +++ b/src/mixins/object_interactivity.mixin.ts @@ -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