Class: Labels::Shape

Inherits:
Layer show all
Defined in:
lib/labels/shape.rb

Overview

This class represents shape layers.

Instance Attribute Summary collapse

Attributes inherited from Layer

#alpha, #column, #content, #height, #locked, #rotation, #title, #type, #visible, #width, #x, #y, #z

Method Summary

Methods inherited from Element

#initialize, #to_h

Constructor Details

This class inherits a constructor from Labels::Element

Instance Attribute Details

#corner_radiusObject

Corner radius in pixels



18
19
20
# File 'lib/labels/shape.rb', line 18

def corner_radius
  @corner_radius
end

#ellipticalObject

Whether or not the shape is elliptical



15
16
17
# File 'lib/labels/shape.rb', line 15

def elliptical
  @elliptical
end

#fillObject

Whether or not to fill the shape



21
22
23
# File 'lib/labels/shape.rb', line 21

def fill
  @fill
end

#fill_colorObject

Fill color in hex



27
28
29
# File 'lib/labels/shape.rb', line 27

def fill_color
  @fill_color
end

#strokeObject

Whether or not to stroke the shape



24
25
26
# File 'lib/labels/shape.rb', line 24

def stroke
  @stroke
end

#stroke_colorObject

Stroke color in hex



30
31
32
# File 'lib/labels/shape.rb', line 30

def stroke_color
  @stroke_color
end

#stroke_weightObject

Stroke weight in pixels



33
34
35
# File 'lib/labels/shape.rb', line 33

def stroke_weight
  @stroke_weight
end