Skip to content

0.6.1: attribute tags are compared as written

Latest

Choose a tag to compare

@gsdali gsdali released this 22 Nov 22:50
c3a029f

Acts on the review of 0.6.0's attribute expansion (#45). One behaviour change, no new API.

Changed (see "Upgrading from 0.6.0" in the README)

  • An attribute tag is compared as written when a reference's attribute stands in for a block's constant ATTDEF, as ezdxf does (Insert.get_attrib, 1.4.5). A reference attribute company no longer hides a constant COMPANY, so ReadOptions(expandAttributes:) gives both. 0.6.0 compared them without regard to case.

Internal

  • An attribute and a TEXT are moved by one rule, Transform.text(at:height:rotationDeg:). The attribute's old fallback, which returned it unmoved when the TEXT transform returned nil, could not be reached and is gone. No result changes.
  • dxfdump builds its JSON options once, as a let.

Checked

  • 400 tests pass, including a new check that a case-only difference in a tag is a different tag.