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

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

AnweshGangula opened this issue · 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

Hi,

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

Its only supported in the v2

Regards

I'm using version ^2.8.9

Ok cool

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

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

The docs are messy sorry.

Regards