Sha256: be0cd9b52ee78b8ae81e0b8f0e5f6d0d71eb9361627873c40d3e2f60e55848bd

Contents?: true

Size: 769 Bytes

Versions: 1

Compression:

Stored size: 769 Bytes

Contents

class Gliffynator::Activation < Hash
  def self.id_usage

  end

  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: 100,
      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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gliffynator-0.0.2 lib/gliffynator/activation.rb