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

Some enhancements or hints needed #36

Open
knulo opened this issue May 6, 2021 · 0 comments
Open

Some enhancements or hints needed #36

knulo opened this issue May 6, 2021 · 0 comments

Comments

@knulo
Copy link

knulo commented May 6, 2021

Hello Nicolas,
I really like your lib and want to use it in an own software product. Because of that I need some additional functioality:

  1. load the image programatically,
  2. provide (programatically set) a list of titles (dropdown in title setting dialog) and
  3. set the filename(s) to save the (HTML) result programatically without dispaying the save-file-dialog.

Have I to modyfy the ts-sources and build the js file or is there a way to do that easier (callback, configuration?
I tried (with no success - no error messages but also no image in the canvas) for the first point, using your demo:

var canvas = document.getElementById('defaultCanvas0');
canvas.removeAttribute("title");
var ctx = canvas.getContext('2d');
var img1 = new Image();
img1.onload = function () {
  ctx.drawImage(img1, 0, 0);
};
img1.src = '../media/25777/xlayout(999).jpg';

I want to provide the possibility that users can define areas of a floor plan (in the backend) to provide jumps to detail informations in the frontend.
Would You be so kind to give me some hints?

Kind regards and thanks in advance
Knut

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