Script
3D Text With Grid
- Author
- matas
- Created
- Jan 22, 2024, 8:05:11 PM
- Last edit
- Feb 27, 2024, 2:09:30 PM
Project
Getting Started Demos TypeScript
This project contains demo scripts for TypeScript Monaco editor that are used as examples in the "Getting Started" section of the documentation.
View full projectScript code
const start = async () => {
const gridOptions = new Bit.Inputs.Draw.SceneDrawGridMeshDto();
bitbybit.draw.drawGridMesh(gridOptions);
const textOpt = new Bit.Advanced.Text3D.Text3DDto();
textOpt.text = "Hello World!";
textOpt.rotation = -90;
textOpt.originAlignment = Bit.Advanced.Text3D.recAlignmentEnum.centerBottom;
textOpt.direction = [0, 0, -1];
const text3D = await bitbybit.advanced.text3d.create(textOpt);
bitbybit.draw.drawAnyAsync({
entity: text3D
});
}
start();
