-
Notifications
You must be signed in to change notification settings - Fork 43
/
shape.js
50 lines (45 loc) · 930 Bytes
/
shape.js
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
import { shapes, util } from 'jointjs';
export default shapes.standard.Circle.extend({
markup: [{
tagName: 'circle',
selector: 'body',
},{
tagName: 'circle',
selector: 'body2',
}, {
tagName: 'text',
selector: 'label',
}, {
tagName: 'image',
selector: 'image',
}],
defaults: util.deepSupplement({
type: 'processmaker.components.nodes.boundaryEvent.Shape',
size: { width: 36, height: 36 },
attrs: {
label: {
refY: '130%',
},
body: {
stroke: '#212529',
strokeWidth: 0.85,
fill: '#FFF',
},
body2: {
cx: 18,
cy: 18,
r: 15,
strokeWidth: 0.85,
stroke: '#212529',
fill: '#FFF',
},
image: {
refX: 5,
refY: 5,
ref: 'circle',
width: 26,
height: 26,
},
},
}, shapes.standard.Circle.prototype.defaults),
});