in app/thumbnails/ContainerThumbnails.scala [48:84]
def drawImage(
x: Double,
y: Double,
width: Double,
height: Double,
itemClasses: ItemClasses
) = {
lazy val third = (width - 2) / 3
((itemClasses.tablet match {
case cards.MediaList =>
Some(Rectangle(x + 1, y + 1, width * .3, height))
case cards.ThreeQuarters | cards.FullMedia75 =>
Some(Rectangle(x + 1 + third, y + 1, third * 2, height - 2))
case cards.ThreeQuartersRight =>
Some(Rectangle(x + 1, y + 1, third * 2, height - 2))
case cards.ThreeQuartersTall =>
Some(Rectangle(x + 1, y + 1, width - 2, height * .8))
case cards.Standard =>
Some(Rectangle(x + 1, y + 1, width - 2, height * .4))
case cards.Half =>
Some(Rectangle(x + 1, y + 1, width - 2, height * .7))
case cards.Third =>
Some(Rectangle(x + 1, y + 1, width - 2, height * .4))
case cards.FullMedia100 =>
Some(Rectangle(x + 1, y + 1, width - 2, height * .6))
case _ =>
None
}) map { rectDef =>
<rect x={rectDef.x.toString}
y={rectDef.y.toString}
width={rectDef.width.toString}
height={rectDef.height.toString}
style="fill: #BBBBBB; stroke-width: 0"
/>
}).toSeq
}