Questions tagged [jointjs]

JointJS is a JavaScript library for creating fully interactive diagrams and graphs.

JointJS is a JavaScript library for creating diagrams and graphs. The diagrams can be fully interactive. The JointJS API is suitable both for implementing a diagramming tool as well as simply for publishing diagrams.

Resources


Related tags

607 questions
0
votes
1 answer

style specific port in jointjs

1) I'm using JointJS diagramming lib. I want to change the css of a particular inPort when using joint.shapes.devs. For linking sourcePort to the target I'm using source: { id: source.id, selector: source.getPortSelector(sourcePort)} It's giving me…
softvar
  • 17,917
  • 12
  • 55
  • 76
0
votes
1 answer

hello world does not work properly in html with jointjs?

I am a beginner in html and the joint.js library. I have this code and once I saved it as html on my laptop, it is suppose to draw 2 connected rectangles but nothing appears in the browser. I downloaded many libraries and put them in the same folder…
Nada
  • 135
  • 1
  • 3
  • 11
0
votes
2 answers

JointJS: Inspector doesn't edit link label?

I'm working on a Flowchart editor and I want the ui.inspector to edit labels on links. I did the following: function createInspector(cellView) { if (!inspector || inspector.options.cellView !== cellView) { if (inspector) { …
IamMowgoud
  • 308
  • 4
  • 13
0
votes
1 answer

JointJS Rappid Toolkit Diamond shape?

I want to add a diamond shape to the Rappid stencil like I added the rectangle and the circle. var r = new joint.shapes.basic.Rect({ position: { x: 10, y: 10 }, size: { width: 50, height: 30 }, attrs: { rect: { fill: '#2ECC71' }, text: {…
IamMowgoud
  • 308
  • 4
  • 13
0
votes
1 answer

change:source event in JointJS

Merry Christmas, everyone! I want to do something when the source element or target element of a joint.dia.Link is changed. Firstly I tried to put the code in the callback function of 'change:source' and 'change:target' events. However, it turns out…
user2960022
  • 47
  • 1
  • 4
0
votes
1 answer

A good JS library for housing electrical schematics

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…
David Karlsson
  • 9,396
  • 9
  • 58
  • 103
0
votes
1 answer

I want joint.js library to read my JSON and display it as a cell: rect and circle

I have a json data structure like this for example : var json1 = { "places": [ { "id":0, "x":0.0, "y":0.0, "width":10.0, "height":10.0 }, { "id":1, "x":50.0, "y":0, "width":10.0, "height":10.0 }, { "id":2, "x":0.0, "y":30.0,…
Nhu Phung
  • 79
  • 12
0
votes
1 answer

Linking one link to another in JointJS

I want to link one link to another link. Basically I want to connect the red arrow head to the red line in this fiddle: http://jsfiddle.net/e2theman/gmh9X/ I tried commenting out the following line in the joint.nojquery.js file as follows: if…
emanski
  • 21
  • 7
0
votes
1 answer

JointJS - Mouse click event triggers cell position change event

I need to define mouse click event for my each cell. I used cell:pointerup event; but this event is triggered when I change positions of cells too. How can I differentiate these 2 events? Thanks in advance.
talha06
  • 6,206
  • 21
  • 92
  • 147
0
votes
1 answer

JountJS - Creating FSM Dynamically through PHP

I'm using JointJS for creating state diagram. I am creating FSM Dynamically through PHP. is there any way to lay the states automatically apart from each other without specifying vertices.Also the link should be made curvy without specificity x n y.…
Rajendra
  • 93
  • 7
0
votes
3 answers

Draw lines with jointjs via web

Im building a small uml modeler with jointjs and raphael for a small project Im doing... I already draw classes by clicking on a button. What I want to know specifically is how to get the onclick event working on jointjs classes diagrams, because…
maumercado
  • 1,453
  • 4
  • 23
  • 47
0
votes
1 answer

Get an object list from an HQL query with joint

I have two tables: Customers and Commands, it's a @OneToMany relation from Client to Commands, one client have many Commands. the table commands contain : idCommand, date, nameCommande, idCustomer. the table customers contain: idCustomer,…
user1709976
  • 57
  • 1
  • 5
0
votes
1 answer

Error Using JointJS when canvas is inner DIV

I had actually noticed this issue over a year ago but wasn't ready to really dig into the library to use it at the time. Now the time has come when I really need to use JointJS (or something like it) and the issue still exists. If I have markup…
Gregg
  • 34,973
  • 19
  • 109
  • 214
-1
votes
1 answer

Implementing svg export feature of jointjs in angular application

Trying to add svg export feature of jointjs+ in angular application. Ive added some images to the paper but the images are not exported properly in the downloaded svg file. This is my code to implement svg download. exportAsSVG() { const…
-1
votes
3 answers

How change path and polyline in SVG?

I have two icons in svg. Updated: one two First of all, is it possible to make this icons using same markup? For example: ? Because i can operate only with classes. That mean that i want to change their…
mr__brainwash
  • 1,334
  • 3
  • 16
  • 40
1 2 3
40
41