Sha256: ba17a36263480f8a72851af3f391a2a9758ef90e0a4c9c53061fbc4aaf429f9b

Contents?: true

Size: 379 Bytes

Versions: 9

Compression:

Stored size: 379 Bytes

Contents

class Plasticine
  constructor: () ->
    @visuals = []

    if @d3IsLoaded()
      $('div.plasticine').each (i, visual) =>
        switch $(visual).data('visual')
          when 'column' then @visuals.push new PlasticineColumn $(visual)
          when 'line' then @visuals.push new PlasticineLine $(visual)

  d3IsLoaded: () -> if d3? then true else false


$ -> new Plasticine

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
plasticine-1.2.8 app/assets/javascripts/plasticine/base.coffee
plasticine-1.2.7 app/assets/javascripts/plasticine/base.coffee
plasticine-1.2.6 app/assets/javascripts/plasticine/base.coffee
plasticine-1.2.5 app/assets/javascripts/plasticine/base.coffee
plasticine-1.2.4 app/assets/javascripts/plasticine/base.coffee
plasticine-1.2.3 app/assets/javascripts/plasticine/base.coffee
plasticine-1.2.2 app/assets/javascripts/plasticine/base.coffee
plasticine-1.2.1 app/assets/javascripts/plasticine/base.coffee
plasticine-1.2.0 app/assets/javascripts/plasticine/base.coffee