Sha256: 08ae9ce6bc5501f2eea577df31968d1336208f1161d54b1598811c6d8296d799

Contents?: true

Size: 934 Bytes

Versions: 31

Compression:

Stored size: 934 Bytes

Contents

circosJS.Highlight = ->
  circosJS.Track.call @
  @parseData = circosJS.parseSpanStringData

  @renderDatumContainer = (instance, parentElement, name, data, conf) =>
    group = @renderBlock parentElement, data, instance._layout, conf

  @renderDatum = (parentElement, conf, layout, utils) ->
    parentElement.selectAll 'tile'
      .data (d) -> d.values
      .enter().append 'path'
      .attr 'class', 'tile'
      .attr 'd',
        d3.svg.arc()
          .innerRadius conf.innerRadius
          .outerRadius conf.outerRadius
          .startAngle (d, i) -> utils.theta d.start, layout.blocks[d.block_id]
          .endAngle (d, i) -> utils.theta d.end, layout.blocks[d.block_id]
      .attr 'fill', (d) -> d.value || conf.color
      .attr 'opacity', (d) -> d.opacity || conf.opacity
      .attr 'stroke-width', (d) -> d.strokeWidth || conf.strokeWidth
      .attr 'stroke', (d) -> d.strokeColor || conf.strokeColor

  return @

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sequenceserver-3.1.3 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-3.1.2 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-3.1.1 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-3.1.0 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-3.0.1 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-3.0 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-2.2.0 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-2.1.0 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-2.0.0 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-2.0.0.rc8 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-2.0.0.rc7 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-2.0.0.rc6 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-2.0.0.rc5 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-2.0.0.rc4 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-2.0.0.rc3 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-2.0.0.rc2 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-2.0.0.rc1 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-2.0.0.beta4 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-2.0.0.beta3 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee
sequenceserver-2.0.0.beta1 public/vendor/github/nicgirault/circosJs@1.7.0/src/tracks/Highlight.coffee