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

Updating Element Values of Method-Created Objects within a Drawing #498

Open
Zephurah opened this issue Jan 29, 2024 · 0 comments
Open

Updating Element Values of Method-Created Objects within a Drawing #498

Zephurah opened this issue Jan 29, 2024 · 0 comments

Comments

@Zephurah
Copy link

Is your feature request related to a problem? Please describe.
To create a background image and have text overlaid correctly with easy positioning, it is convenient to have all text elements within one drawing element. For example if creating three text elements within a Drawing, you would use backgroundImage.text(...) three times. However, if you then want to change the values of the text within the Drawing, they need to be redrawn and redeclared every time, which results in large amounts of object IDs being created, depending on the period at which they are redrawn. Currently I am deleting the un-used elements from behind the current elements by logging the element ID, then deleting the ID from the previous update via backgroundImage.delete(elementID - n). This works but is less than ideal.

Describe the solution you'd like
It would be fantastic to be able to directly edit the values of the elements within a Drawing, similar to how text properties can be edited as text.value = ...

Ideally each element would be assigned a unique ID that does not change, and the values of that element could be changed similar to:
backgroundImage.text[1].textValue = ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant