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

Commits on Feb 25, 2024

  1. ♻️ Restructure API modules

    Split API definitions into separate modules to separate concerns.
    ralfstx committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    a7f09df View commit details
    Browse the repository at this point in the history
  2. Replace the term "attribute" with "property"

    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 committed Feb 25, 2024
    Configuration menu
    Copy the full SHA
    1dac636 View commit details
    Browse the repository at this point in the history