Skip to content

Commit

Permalink
TextGeometry: Remove deprecated code. (#30315)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Jan 13, 2025
1 parent 3af500e commit 86c3bd3
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions examples/jsm/geometries/TextGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,9 @@ class TextGeometry extends ExtrudeGeometry {

const shapes = font.generateShapes( text, parameters.size );

// translate parameters to ExtrudeGeometry API

if ( parameters.depth === undefined && parameters.height !== undefined ) {

console.warn( 'THREE.TextGeometry: .height is now depreciated. Please use .depth instead' ); // @deprecated, r163

}

parameters.depth = parameters.depth !== undefined ?
parameters.depth : parameters.height !== undefined ?
parameters.height : 50;

// defaults

if ( parameters.depth === undefined ) parameters.depth = 50;
if ( parameters.bevelThickness === undefined ) parameters.bevelThickness = 10;
if ( parameters.bevelSize === undefined ) parameters.bevelSize = 8;
if ( parameters.bevelEnabled === undefined ) parameters.bevelEnabled = false;
Expand Down

0 comments on commit 86c3bd3

Please sign in to comment.