質問

Is there any javascript library available like, Raphaeljs or Jointjs but for showing/drawing electrical schematics. For instance want to make a JS/HTML page for showing the function of a transistor in a electronic diagram.

First i want to draw the diagram and then i want to show it to the user in a kind of read only way.

Is there a more suitable library for this or should i start modifying jointjs or raphael with custom figures.

Or should i just use images from omnigraffle and add add some buttons on top of it?

役に立ちましたか?

解決

You can build the schematics in JointJS, then open the graph in a joint.dia.Paper that has set interactive: false flag. This way you disable drag&drop but you can still react on clicks on the elements with: paper.on('cell:pointerup', function(cellView, evt, x, y) { ... });

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top