

import utils from '../../utils';
import Mode from './Mode';

function TextMode(opts) {
  Mode.call(this, opts);
}

utils.deriveClass(TextMode, Mode, {
  id: 'TX',
  name: 'Text mode',
  shortName: 'Text',
  depGroups: ['TextLabelsGeo']
});

TextMode.prototype.getTemplateOptions = function() {
  return this.opts.template;
};

TextMode.prototype.getLabelOpts = function() {

  return _.merge(this.opts, {
    labels: this.settings.now.labels,
    colors: true,
    adjustColor: true,
    transparent: true,
  });
};

export default TextMode;


@@ -1,9 +1,31 @@
-%0A
+import _ from 'lodash';
 %0Aimport 
@@ -391,17 +391,16 @@
 ion() %7B%0A
-%0A
   return

Fix a crash in TextMode