Class: Gliffynator::Actor

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

Class Method Summary collapse

Class Method Details

.create(id, x, y, width = 38, height = 59) ⇒ Object



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

def self.create(id, x, y, width=38, height=59)
  {
    x: x,
    y: y,
    rotation: 0.0,
    id: id,
    width: width,
    height: height,
    uid: "com.gliffy.shape.uml.uml_v1.default.actor",
    order: id,
    lockAspectRatio: true,
    lockShape: false,
    graphic: {
      type: "Shape",
      Shape: {
        tid: "com.gliffy.stencil.actor.uml_v1",
        strokeWidth: 1,
        strokeColor: "#000000",
        fillColor: "#FFFFFF",
        gradient: false,
        dropShadow: false,
        state: 0,
        opacity: 1,
        shadowX: 0,
        shadowY: 0
      }
    },
    linkMap: [],
    children: [],
    hidden: false,
    layerId: "C3WysuhtocNA"
  }
end

.id_usageObject



3
4
5
# File 'lib/gliffynator/actor.rb', line 3

def self.id_usage
  1
end