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

Mr api #79

Merged
merged 2 commits into from Feb 25, 2024
Merged

Mr api #79

merged 2 commits into from Feb 25, 2024

Conversation

ralfstx
Copy link
Member

@ralfstx ralfstx commented Feb 25, 2024

No description provided.

Split API definitions into separate modules to separate concerns.
The API documentation used the term "attribute" to refer to the
properties of text, blocks, and graphics. However, since these
attributes are actually set as JavaScript object _properties_, the term
"property" is more appropriate. Furthermore, many of the properties in
this library are based on CSS _properties_ such as `line-height` or
`font-weight`. SVG only uses the term "attribute" because it inherited
it from XML.

This commit replaces the term "attribute" with "property" in the API
documentation. The types `TextAttrs`, `BlockAttrs`, `InfoAttrs`, and
`CustomInfoAttrs` are deprecated in favor of new properties `TextProps`,
`BlockProps`, `InfoProps`, and `CustomInfoProps`.
@ralfstx ralfstx merged commit 1dac636 into main Feb 25, 2024
1 check passed
@ralfstx ralfstx deleted the mr-api branch February 25, 2024 17:49
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.

None yet

1 participant