Script: 3D Text With Grid

3D Text With Grid picture
Type
Typescript logo indicatortypescript
Author
matas
Date Created
Jan 22, 2024, 10:05:11 PM
Last Edit Date
Feb 27, 2024, 4:09:30 PM

Project Information

This project contains demo scripts for TypeScript Monaco editor that are used as examples in the "Getting Started" section of the documentation.

View Full Project

Script 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();