dxfjs / writer

A JavaScript dxf generator written in TypeScript.

Home Page:https://dxf.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The `Text` entity not fully customizable.

tarikjabiri opened this issue · comments

Add support for all properties:

  • rotation
  • obliqueAngle
  • generationFlags
  • horizontalAlignment
  • verticalAlignment
  • secondAlignmentPoint
  • relativeXScaleFactor

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

Hi @DeepankarGupta13

  • Update to the v2.5.0.

Code:

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

Result:

text-rotation

Thank you sir.