interactive block diagram

Hello,

We want to add an interactive block diagram capability to our website.
The initial diagram will be generated from two bit map images as in the attached image1.

Using the tool the user will be able to add different elements to the diagram that will be placed around BitMap2 and connected with a line.

We would like to use a software framework that enables us the following:

  1. Adding variable number of elements to the diagram.
  1. Determine where to put each element in relation to BitMap2 - Top Left, Top Right, Bottom Left and so on.
  1. Drawing lines between the elements.
  1. The diagram is arranged with all the elements according to 2 and 3, to fit the canvas board size.

A primary example of the diagram in image2.

Is it possible with wix?