From 8165a4ceb57ba84ce43f00e91c3c7b9ab89d7254 Mon Sep 17 00:00:00 2001 From: noname Date: Wed, 6 Nov 2024 12:27:17 +0900 Subject: [PATCH] TransformControls: Add scaleSnap (#1336) --- types/three/examples/jsm/controls/TransformControls.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/three/examples/jsm/controls/TransformControls.d.ts b/types/three/examples/jsm/controls/TransformControls.d.ts index 3fff2cbc4..a4881990f 100644 --- a/types/three/examples/jsm/controls/TransformControls.d.ts +++ b/types/three/examples/jsm/controls/TransformControls.d.ts @@ -91,6 +91,12 @@ declare class TransformControls extends Controls { */ rotationSnap: number | null; + /** + * By default, 3D objects are continuously scaled. If you set this property to a numeric value, you can define in + * which steps the 3D object should be scaled. Default is `null`. + */ + scaleSnap: number | null; + /** * Defines in which coordinate space transformations should be performed. Possible values are "world" and "local". * Default is `world`.