Class: Gliffynator::Activation

Inherits:
Hash
  • Object
show all
Defined in:
lib/gliffynator/activation.rb

Class Method Summary collapse

Class Method Details

.create(id, x, y, width = 10, height = 100) ⇒ Object



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
# File 'lib/gliffynator/activation.rb', line 6

def self.create(id, x, y, width=10, height=100)
  {
    x: x,
    y: y,
    rotation: 0,
    id: id,
    uid: "com.gliffy.shape.uml.uml_v1.default.activation",
    width: width,
    height: height,
    lockAspectRatio: false,
    lockShape: false,
    order: id,
    graphic: {
      type: "Shape",
      Shape: {
        tid: "com.gliffy.stencil.rectangle.basic_v1",
        strokeWidth: 1,
        strokeColor: "#000000",
        fillColor: "#FFFFFF",
        gradient: false,
        dropShadow: false,
        state: 0,
        shadowX: 0,
        shadowY: 0,
        opacity: 1
      }
    },
    children: nil,
    linkMap: []
  }
end

.id_usageObject



2
3
4
# File 'lib/gliffynator/activation.rb', line 2

def self.id_usage

end