dxfjs / writer

A JavaScript dxf generator written in TypeScript.
https://dxf.vercel.app
MIT License
90 stars 17 forks source link

The `Text` entity not fully customizable. #27

Closed tarikjabiri closed 2 years ago

tarikjabiri commented 2 years ago

Add support for all properties:

DeepankarGupta13 commented 2 years ago

i have also done some work for rotation but not sure how to text it i am not so familiar with ts. image

tarikjabiri commented 2 years ago

Hi @DeepankarGupta13

Code:

const dxf = new DxfWriter();
dxf.addText(point3d(0, 0), 20, 'Hello World!', {
    rotation: 45,
});

Result:

text-rotation

DeepankarGupta13 commented 2 years ago

Thank you sir.