vagran / dxf-viewer

DXF 2D viewer written in JavaScript
Mozilla Public License 2.0
290 stars 86 forks source link

Layers in block definition #107

Closed vagran closed 2 months ago

vagran commented 2 months ago

Currently, if a layer is assigned to entities inside a block definition, it does not affect the resulting layer, the whole block is inserted into a layer specified in INSERT entity. This also affects attributes values which might be defined by layer attributes (like color). According to observer behavior of Autodesk online viewer, a layer, specified in entities inside block definition, should take precedence over a layer specified in the INSERT entity, so that one block instantiation may be split across multiple layers.