-
Notifications
You must be signed in to change notification settings - Fork 97
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
Oriol.sprite fun #320
base: develop
Are you sure you want to change the base?
Oriol.sprite fun #320
Conversation
Both functions require use of xml2 package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work 💯 :) It would be also great to have some simple script such that one you sent me on slack, in examples folder, to demonstrate functionality of these functions
* Change function and variable names to fit with coding style: - addsvg_sprite for add_svg_sprite - rmsvg_sprite for remove_svg_sprite - idExists for id_exists * Simplify code in id_exists return statement, easier to read and mantain * Update tests and documentation according to changes in functions
Thank you for your comments. Finally I have adressed all changes. Only instead of putting one app in examples I have put more examples in the function directly. I did it this way because these new functions are helper functions and are not directly components of a Shiny App. Building an example app does not show its functionality, while showing more examples in documentation it does. |
Great work, tested it and the sprite map gets generated and works fine! The only thing I miss is some UI function to add
I didn't test this function, but briefly this is how I would imagine that |
Hi @jchojna I agree with you that to close this issue we could add a function to insert sprite maps easily on the UI. Consequently we should also write an example app using it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I set the conversations as resolved, as the updates have been added. LGTM
This includes two new functions
addsvg_sprite
andrmsvg_sprite
that add the functionality to easily edit sprite maps, add or remove svgs to the sprite map. It is motivated by this issue:#226
To read, parse and edit the svg files it is necessary the
xml2
package, so I have edited theDESCRIPTION
and added assuggested
packages. Documentation and tests have also been added.DoD
Major project work has a corresponding task. If there’s no task for what you are doing, create it. Each task needs to be well defined and described.
Change has been tested (manually or with automated tests), everything runs correctly and works as expected. No existing functionality is broken.
No new error or warning messages are introduced.
All interaction with a semantic functions, examples and docs are written from the perspective of the person using or receiving it. They are understandable and helpful to this person.
If the change affects code or repo sctructure, README, documentation and code comments should be updated.
All code has been peer-reviewed before merging into any main branch.
All changes have been merged into the main branch we use for development (develop).
Continuous integration checks (linter, unit tests) are configured and passed.
Unit tests added for all new or changed logic.
All task requirements satisfied. The reviewer is responsible to verify each aspect of the task.
Any added or touched code follows our style-guide.