1 class Pettanr.Speech extends Peta.Element
\r
17 @trace_routes: () ->
\r
19 speech_balloon: 'speech_balloon',
\r
20 symbol: ['speech_balloon', 'speech_balloon_template', 'system_picture']
\r
25 speech_balloon_template = @templates.speech_balloon_template
\r
26 writing_format = @templates.writing_format
\r
28 speech_balloon_template_id: speech_balloon_template.get('id'),
\r
29 speech_balloon_template_module_name: speech_balloon_template.get('module_name'),
\r
30 writing_format_id: writing_format.get('id'),
\r
31 writing_format_module_name: writing_format.get('module_name'),
\r
34 @text_align_texts: () ->
\r
35 ['left', 'left', 'right', 'center']
\r
37 text_align_text: () ->
\r
38 Pettanr.Speech.text_align_texts()[@get('text_align')]
\r
42 @render(Pettanr.to_s(@get('content')))
\r
44 plain_scenario: () ->
\r
47 initialize: (attr, options) ->
\r
48 super(attr, options)
\r