writer icon indicating copy to clipboard operation
writer copied to clipboard

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

Open AnweshGangula opened this issue 1 year ago • 3 comments

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

AnweshGangula avatar Mar 21 '24 17:03 AnweshGangula

Hi,

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

Its only supported in the v2

Regards

tarikjabiri avatar Mar 21 '24 18:03 tarikjabiri

I'm using version ^2.8.9

AnweshGangula avatar Mar 26 '24 05:03 AnweshGangula

Ok cool

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

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

The docs are messy sorry.

Regards

tarikjabiri avatar Mar 26 '24 05:03 tarikjabiri