/home/techb158/workloadmatch.com/workloadmatch.com/bower_components/jvectormap/src
NameSizeModeActions
abstract-canvas-element.js29080644editdlrm
abstract-element.js16520644editdlrm
abstract-shape-element.js18330644editdlrm
color-scale.js10280644editdlrm
data-series.js52550644editdlrm
jvectormap.js42330644editdlrm
legend.js26700644editdlrm
map-object.js19990644editdlrm
map.js405910644editdlrm
marker.js20660644editdlrm
multimap.js44350644editdlrm
numeric-scale.js42580644editdlrm
ordinal-scale.js3520644editdlrm
proj.js65680644editdlrm
region.js12480644editdlrm
simple-scale.js1330644editdlrm
svg-canvas-element.js8770644editdlrm
svg-circle-element.js1800644editdlrm
svg-element.js12260644editdlrm
svg-group-element.js2380644editdlrm
svg-image-element.js11000644editdlrm
svg-path-element.js2210644editdlrm
svg-shape-element.js18770644editdlrm
svg-text-element.js3930644editdlrm
vector-canvas.js5040644editdlrm
vml-canvas-element.js15400644editdlrm
vml-circle-element.js8200644editdlrm
vml-element.js29120644editdlrm
vml-group-element.js3400644editdlrm
vml-image-element.js14490644editdlrm
vml-path-element.js29470644editdlrm
vml-shape-element.js14490644editdlrm
Edit: /home/techb158/workloadmatch.com/workloadmatch.com/bower_components/jvectormap/src/map-object.js (1999B)
jvm.MapObject = function(config){}; jvm.MapObject.prototype.getLabelText = function(key){ var text; if (this.config.label) { if (typeof this.config.label.render === 'function') { text = this.config.label.render(key); } else { text = key; } } else { text = null; } return text; } jvm.MapObject.prototype.getLabelOffsets = function(key){ var offsets; if (this.config.label) { if (typeof this.config.label.offsets === 'function') { offsets = this.config.label.offsets(key); } else if (typeof this.config.label.offsets === 'object') { offsets = this.config.label.offsets[key]; } } return offsets || [0, 0]; } /** * Set hovered state to the element. Hovered state means mouse cursor is over element. Styles will be updates respectively. * @param {Boolean} isHovered true to make element hovered, false otherwise. */ jvm.MapObject.prototype.setHovered = function(isHovered){ if (this.isHovered !== isHovered) { this.isHovered = isHovered; this.shape.isHovered = isHovered; this.shape.updateStyle(); if (this.label) { this.label.isHovered = isHovered; this.label.updateStyle(); } } }; /** * Set selected state to the element. Styles will be updates respectively. * @param {Boolean} isSelected true to make element selected, false otherwise. */ jvm.MapObject.prototype.setSelected = function(isSelected){ if (this.isSelected !== isSelected) { this.isSelected = isSelected; this.shape.isSelected = isSelected; this.shape.updateStyle(); if (this.label) { this.label.isSelected = isSelected; this.label.updateStyle(); } jvm.$(this.shape).trigger('selected', [isSelected]); } }; jvm.MapObject.prototype.setStyle = function(){ this.shape.setStyle.apply(this.shape, arguments); }; jvm.MapObject.prototype.remove = function(){ this.shape.remove(); if (this.label) { this.label.remove(); } };