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

Add Element class #95

Open
mattrasto opened this issue Jan 13, 2019 · 0 comments
Open

Add Element class #95

mattrasto opened this issue Jan 13, 2019 · 0 comments
Assignees
Labels
feature Additional feature or functionality
Milestone

Comments

@mattrasto
Copy link
Owner

Element data is disconnected from its rendered element, and operating on single elements is difficult. Adding an Element class would provide several benefits:

  1. Element data and elements would be held in a single location
  2. Publicly-accessible element-specific methods would allow users more control over elemental operations (eg. move(), force(), fix(), neighbors(), etc.)
  3. Significant cleanup of code in other objects regarding elemental operations
  4. Increased flexibility for user-implemented subelements (eg. additional labels, dialogs, etc.)
  5. More precise control over elemental style retainment. Elements can maintain their own state, which could include a stylemap stack, with layers representing styles applied/unapplied over time.
@mattrasto mattrasto added the feature Additional feature or functionality label Jan 13, 2019
@mattrasto mattrasto added this to the 1.1.0 milestone Jan 13, 2019
@mattrasto mattrasto self-assigned this Jan 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Additional feature or functionality
Projects
None yet
Development

No branches or pull requests

1 participant