1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
| /*! JointJS v0.9.7 - JavaScript diagramming library 2016-04-20
|
|
| This Source Code Form is subject to the terms of the Mozilla Public
| License, v. 2.0. If a copy of the MPL was not distributed with this
| file, You can obtain one at http://mozilla.org/MPL/2.0/.
| */
| // JointJS library.
| // (c) 2011-2013 client IO
|
| joint.shapes.org = {};
|
| joint.shapes.org.Member = joint.dia.Element.extend({
|
| markup: '<g class="rotatable"><g class="scalable"><rect class="card"/><image/></g><text class="rank"/><text class="name"/></g>',
|
| defaults: joint.util.deepSupplement({
|
| type: 'org.Member',
| size: { width: 180, height: 70 },
| attrs: {
|
| rect: { width: 170, height: 60 },
|
| '.card': {
| fill: '#FFFFFF', stroke: '#000000', 'stroke-width': 2,
| 'pointer-events': 'visiblePainted', rx: 10, ry: 10
| },
|
| image: {
| width: 48, height: 48,
| ref: '.card', 'ref-x': 10, 'ref-y': 5
| },
|
| '.rank': {
| 'text-decoration': 'underline',
| ref: '.card', 'ref-x': 0.9, 'ref-y': 0.2,
| 'font-family': 'Courier New', 'font-size': 14,
| 'text-anchor': 'end'
| },
|
| '.name': {
| 'font-weight': '800',
| ref: '.card', 'ref-x': 0.9, 'ref-y': 0.6,
| 'font-family': 'Courier New', 'font-size': 14,
| 'text-anchor': 'end'
| }
| }
| }, joint.dia.Element.prototype.defaults)
| });
|
| joint.shapes.org.Arrow = joint.dia.Link.extend({
|
| defaults: {
| type: 'org.Arrow',
| source: { selector: '.card' }, target: { selector: '.card' },
| attrs: { '.connection': { stroke: '#585858', 'stroke-width': 3 }},
| z: -1
| }
| });
|
|