vagran / dxf-viewer

DXF 2D viewer written in JavaScript
Mozilla Public License 2.0
295 stars 87 forks source link

ATTDEF rendering #46

Closed dotoritos-kim closed 1 year ago

dotoritos-kim commented 1 year ago

I made it to load the style item into the table to render the ATTDEF. Get the appropriate hAlign,vAligh,widthFactor,fontSize and render it using textRenderer.

vagran commented 1 year ago

Cool! Do you have any sample files to test this feature?

dotoritos-kim commented 1 year ago

I used this example. I just let it print out. Additional processing is required.

We need to create a function or class by referring to that document.

vagran commented 1 year ago

As I understood meaning of this feature, ATTDEF entity is complementary to ATTRIB entity, both have strong relation to BLOCK and INSERT. Does this current state of the PR actually renders something useful on this example? I cannot find it visually, comparing with what is rendered by current master.

dotoritos-kim commented 1 year ago

It currently does not render any meaningful data. It just renders meaningless values ​​in the right places. It needs to be further supplemented to render meaningful data.