1 class Pettanr.Speech extends Peta.Element
\r
18 speech_balloon: () ->
\r
19 new Pettanr.SpeechBalloon({id: @get('speech_balloon_id')})
\r
21 @text_align_texts: () ->
\r
22 ['left', 'left', 'right', 'center']
\r
24 symbol_option: (cb) ->
\r
25 sb = @speech_balloon()
\r
27 sbt = sb.speech_balloon_template()
\r
29 sp = sbt.system_picture()
\r
31 cb(sp.tmb_opt_img_tag())
\r
35 top: @get('y'), left: @get('x'),
\r
36 width: @get('width'), height: @get('height')
\r
41 'font-size': Pettanr.to_s(@get('font_size')) + 'em',
\r
42 'text-align': @text_align_text(),
\r
43 color: '#' + ('000000' + Pettanr.to_s(@get('fore_color'))).slice(-6)
\r
46 text_align_text: () ->
\r
47 Pettanr.Speech.text_align_texts()[@get('text_align')]
\r
53 class Pettanr.Speech.Collection extends Backbone.Collection
\r
54 model: Pettanr.Speech
\r