Skip to content

Some enhancements or hints needed #36

@knulo

Description

@knulo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions