define([], function () {
  'use strict';

  var ComponentGraphic = function (options) {
    this.color = options.color || "#dc322f";
  };

  ComponentGraphic.prototype.paint = function paint(gc) {
    gc.fillStyle = this.color;
    gc.fillRect(0, 0, 15, 15);
  };

  return ComponentGraphic;
});

define([], function () {
  'use strict';

  var ComponentGraphic = function (options) {
    options = options || {};
    this.color = options.color || "#dc322f";
  };

  ComponentGraphic.prototype.paint = function paint(gc) {
    gc.fillStyle = this.color;
    gc.fillRect(0, 0, 15, 15);
  };

  return ComponentGraphic;
});

Set default options for graphic component
Set default options for graphic component

