download
raw
723 Bytes
import { ExtrudeGeometry } from "three";
class TextGeometry extends ExtrudeGeometry {
constructor(text, parameters = {}) {
const {
bevelEnabled = false,
bevelSize = 8,
bevelThickness = 10,
font,
height = 50,
size = 100,
lineHeight = 1,
letterSpacing = 0,
...rest
} = parameters;
if (font === void 0) {
super();
} else {
const shapes = font.generateShapes(text, size, { lineHeight, letterSpacing });
super(shapes, { ...rest, bevelEnabled, bevelSize, bevelThickness, depth: height });
}
this.type = "TextGeometry";
}
}
export {
TextGeometry as TextBufferGeometry,
TextGeometry
};
//# sourceMappingURL=TextGeometry.js.map

Xet Storage Details

Size:
723 Bytes
·
Xet hash:
c5f46c9e9b4f9b780890c03cc7be14c69ae6622c19deffc6aa09201ad43e408e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.