Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AnweshGangula opened this issue Mar 21, 2024 · 3 comments
Open

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

AnweshGangula opened this issue Mar 21, 2024 · 3 comments

Comments

@AnweshGangula
Copy link

AnweshGangula commented Mar 21, 2024

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
Copy link
Member

Hi,

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

Its only supported in the v2

Regards

@AnweshGangula
Copy link
Author

I'm using version ^2.8.9

@tarikjabiri
Copy link
Member

tarikjabiri commented Mar 26, 2024

Ok cool

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

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

The docs are messy sorry.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants