Sha256: b8efb9788aace88ab644b060e2ad3ac3f8103c86837cea09a170cc2e9789e39d

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

$.fn.linkmapAreaSetMask = function(options) {
  this.each(function() {
    var area = $(this);
    var colorMapComponent = options.colorMap.componentByPermaId(area.attr('data-mask-perma-id'));

    if (colorMapComponent) {
      area.data('mask', new pageflow.linkmapPage.Mask({
        colorMapComponentPermaId: colorMapComponent.permaId,
        colorMap: options.colorMap
      }));
    }
    else {
      area.data('mask', null);
    }
  });
};

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pageflow-linkmap-page-2.0.0 app/assets/javascript/pageflow/linkmap_page/widgets/linkmap/area_set_mask.js