/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/region.js (1248B)
jvm.Region = function(config){ var bbox, text, offsets, labelDx, labelDy; this.config = config; this.map = this.config.map; this.shape = config.canvas.addPath({ d: config.path, 'data-code': config.code }, config.style, config.canvas.rootElement); this.shape.addClass('jvectormap-region jvectormap-element'); bbox = this.shape.getBBox(); text = this.getLabelText(config.code); if (this.config.label && text) { offsets = this.getLabelOffsets(config.code); this.labelX = bbox.x + bbox.width / 2 + offsets[0]; this.labelY = bbox.y + bbox.height / 2 + offsets[1]; this.label = config.canvas.addText({ text: text, 'text-anchor': 'middle', 'alignment-baseline': 'central', x: this.labelX, y: this.labelY, 'data-code': config.code }, config.labelStyle, config.labelsGroup); this.label.addClass('jvectormap-region jvectormap-element'); } }; jvm.inherits(jvm.Region, jvm.MapObject); jvm.Region.prototype.updateLabelPosition = function(){ if (this.label) { this.label.set({ x: this.labelX * this.map.scale + this.map.transX * this.map.scale, y: this.labelY * this.map.scale + this.map.transY * this.map.scale }); } };