   @coords [['x', 'y']]
 
   @define {
-      # x:            [ p.NumberSpec,                     ]
       x_units:      [ p.SpatialUnits, 'data'            ]
-      # y:            [ p.NumberSpec,                     ]
       y_units:      [ p.SpatialUnits, 'data'            ]
       text:         [ p.StringSpec,   { field: "text" } ]
       angle:        [ p.AngleSpec,    0                 ]

                   .css(div_style)
                   .show()

class LabelSet extends Annotation.Model
  default_view: LabelSetView

  type: 'Label'

_ = require "underscore"
$ = require "jquery"

TextAnnotation = require "./text_annotation"
ColumnDataSource = require "../sources/column_data_source"
p = require "../../core/properties"

class LabelSetView extends TextAnnotation.View
  initialize: (options) ->
    super(options)

    @xmapper = @plot_view.frame.get('x_mappers')[@mget("x_range_name")]
    @ymapper = @plot_view.frame.get('y_mappers')[@mget("y_range_name")]

    @set_data(@mget('source'))
    @set_visuals(@mget('source'))

    if @mget('render_mode') == 'css'
      for i in [0...@_text.length]
        @title_div = $("<div>").addClass('bk-annotation-child').hide()
        @title_div.appendTo(@$el)

  bind_bokeh_events: () ->
    if @mget('render_mode') == 'css'
