Class: LayoutItem::LightTableItem

Inherits:
LayoutItem
  • Object
show all
Includes:
Shared::Render::DepictionItem, Shared::Render::ImageItem
Defined in:
app/models/layout_item/light_table_item.rb

Overview

An Image or Depiction placed on a Layout::LightTable.

x, y, width, height: pixels, see CompositionItem's Coordinate system z: stacking order, higher is in front zoom: scale factor, 1.0 is 100% rotation_z: degrees, clockwise (as CSS rotate())

Instance Method Summary collapse

Instance Method Details

#composition_is_light_table ⇒ Object (protected)



17
18
19
20
21
# File 'app/models/layout_item/light_table_item.rb', line 17

def composition_is_light_table
  if composition && !composition.is_a?(Layout::LightTable)
    errors.add(:composition, 'must be a light table')
  end
end