dxfjs / writer

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

Property 'addImageDef' does not exist on type 'DxfWriter' #171

Open AnweshGangula opened 8 months ago

AnweshGangula commented 8 months ago

I'm using this package in a typescript project and i'm not able to use .addImageDef

I'm getting the error

Property 'addImageDef' does not exist on type 'DxfWriter'

Below is the screenshot - in the screenshot this.exporter is the DxfWriter

image

tarikjabiri commented 8 months ago

Hi,

If you are using the alpha version, the image entity still not implemented.

Its only supported in the v2

Regards

AnweshGangula commented 8 months ago

I'm using version ^2.8.9

tarikjabiri commented 8 months ago

Ok cool

You should call that method on the objects object like this:

this.exporter.document.objects.addImageDef("...")

The docs are messy sorry.

Regards