Skip to content

Enh/print template as an object#1092

Merged
werrolf merged 10 commits into
release/3.0.7from
enh/print-template-as-an-object
Feb 14, 2019
Merged

Enh/print template as an object#1092
werrolf merged 10 commits into
release/3.0.7from
enh/print-template-as-an-object

Conversation

@werrolf

@werrolf werrolf commented Feb 14, 2019

Copy link
Copy Markdown
Contributor

Result of parsing the print template in OdgParser becomes an object with semantically informative methods.
ArrayAccess / Traversable behaviour is shimmed to emulate all previously available "array" keys on this return value transparently.

Introducing this object hierarchy allowed for some cleanups and a more unified handling of both 'regions' and 'textFields' and a reusable 'applyFontStyle' method.

Collateral effects:

  • 'dynamic_text' restored to full glory.
  • 'dynamic_text' and the coordinate textfields ('extent_ul_x' et al) can now be (individually) colored and sized from the odg template.

@werrolf werrolf requested a review from DavidPatzke February 14, 2019 11:27
@werrolf werrolf merged commit 6bc3fd0 into release/3.0.7 Feb 14, 2019
@werrolf werrolf deleted the enh/print-template-as-an-object branch February 14, 2019 14:20
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

Successfully merging this pull request may close these issues.

1 participant