-
Notifications
You must be signed in to change notification settings - Fork 0
/
gong_struct_shape.go
35 lines (26 loc) · 967 Bytes
/
gong_struct_shape.go
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
package models
const GongStructShapeDefaultWidth = 240.0
const GongStructShapeDefaultHeight = 48.0
// GongStructShape mirrors joint.shapes.uml.Class
// swagger:model GongStructShape
type GongStructShape struct {
Name string
Position *Position
// Identifier is the identifier of the struct referenced by the shape in the modeled package
//gong:ident
Identifier string
// gongdoc can be integrated in a runtime application
// the application can then set up the number of instances of Struct
ShowNbInstances bool
NbInstances int
// models of the composition of Field
Fields []*Field
// models of the composition of Link
Links []*Link
// with and height of the shape when they are rendered on SVG or with jointjs
// They are optional fields. they can be computed when empty
Width, Height float64
// this is always false in the backend, but it can be set to true by the front end
// this means it is selected by the user
IsSelected bool
}