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

Streamline usage of humaneimage-model.lib.js #2

Open
yveszoundi opened this issue Jul 12, 2024 · 0 comments
Open

Streamline usage of humaneimage-model.lib.js #2

yveszoundi opened this issue Jul 12, 2024 · 0 comments

Comments

@yveszoundi
Copy link
Owner

Background

  • Initially the set of "humaneimage" scripts only supported images (PNG/SVG) export.
  • Now there's also an export function to PowerPoint (pptx format), to allow non technical people to reuse/modify easily diagrams. The code of humaneimage-model.lib.js is used for PowerPoint export, it's based on humaneimage.lib.js.

Problem

humageimage-model.lib.js and humageimage.lib.js need to be kept in sync, which creates maintenance issues.

Proposed solution

Reuse humaneimage-model-lib.js for exporting images, instead of redundant logic.

  • "Crawl" the "model" to populate the SVG string
  • If PNG export was requested, convert the SVG to PNG
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

No branches or pull requests

1 participant