Sha256: e77ddd0be59661ec81c14c4a57ac3cd61f363fbce8251445e7529eae4bf68935

Contents?: true

Size: 813 Bytes

Versions: 3

Compression:

Stored size: 813 Bytes

Contents

class Gliffynator::Actor < Hash

  def self.id_usage
    1
  end

  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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gliffynator-0.0.4 lib/gliffynator/actor.rb
gliffynator-0.0.3 lib/gliffynator/actor.rb
gliffynator-0.0.2 lib/gliffynator/actor.rb