<commit_before>KDView = require './../../core/view'
KDScrollThumb = require './scrollthumb.coffee'

module.exports = class KDScrollTrack extends KDView

  constructor:(options = {}, data)->

    options.type   or= 'vertical'
    options.cssClass = KD.utils.curry "kdscrolltrack #{options.type}", options.cssClass

    super options, data

    {@type} = @getOptions()

    @thumb = new KDScrollThumb
      cssClass : 'kdscrollthumb'
      type     : @type
      track    : this


  viewAppended: ->
    super()
    @addSubView @thumb


  show:->

    @getDelegate().emit 'ScrollTrackShown', @type
    @unsetClass 'invisible'


  hide:->

    @getDelegate().emit 'ScrollTrackHidden', @type
    @setClass 'invisible'<commit_msg>CustomScroll: starts scrollviews w/o scrolltracks<commit_after>KDView = require './../../core/view'
KDScrollThumb = require './scrollthumb.coffee'

module.exports = class KDScrollTrack extends KDView

  constructor:(options = {}, data)->

    options.type   or= 'vertical'
    options.cssClass = KD.utils.curry "kdscrolltrack #{options.type} out", options.cssClass

    super options, data

    {@type} = @getOptions()

    @thumb = new KDScrollThumb
      cssClass : 'kdscrollthumb'
      type     : @type
      track    : this


  viewAppended: ->
    super()
    @addSubView @thumb


  show:->

    @getDelegate().emit 'ScrollTrackShown', @type
    @unsetClass 'invisible'


  hide:->

    @getDelegate().emit 'ScrollTrackHidden', @type
    @setClass 'invisible'
{'fraction_non_alphanumeric': 0.1342281879194631, 'fraction_numerical': 0.0, 'mean_word_length': 3.0626702997275204, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7579782', 'n_tokens_mistral': 494, 'n_tokens_neox': 452, 'n_words': 106}