/
home
/
techb158
/
workloadmatch.com
/
workloadmatch.com
/
bower_components
/
jvectormap
/
src
/
/home/techb158/workloadmatch.com/workloadmatch.com/bower_components/jvectormap/src
mkdir
upload
Name
Size
Mode
Actions
abstract-canvas-element.js
2908
0644
edit
dl
rm
abstract-element.js
1652
0644
edit
dl
rm
abstract-shape-element.js
1833
0644
edit
dl
rm
color-scale.js
1028
0644
edit
dl
rm
data-series.js
5255
0644
edit
dl
rm
jvectormap.js
4233
0644
edit
dl
rm
legend.js
2670
0644
edit
dl
rm
map-object.js
1999
0644
edit
dl
rm
map.js
40591
0644
edit
dl
rm
marker.js
2066
0644
edit
dl
rm
multimap.js
4435
0644
edit
dl
rm
numeric-scale.js
4258
0644
edit
dl
rm
ordinal-scale.js
352
0644
edit
dl
rm
proj.js
6568
0644
edit
dl
rm
region.js
1248
0644
edit
dl
rm
simple-scale.js
133
0644
edit
dl
rm
svg-canvas-element.js
877
0644
edit
dl
rm
svg-circle-element.js
180
0644
edit
dl
rm
svg-element.js
1226
0644
edit
dl
rm
svg-group-element.js
238
0644
edit
dl
rm
svg-image-element.js
1100
0644
edit
dl
rm
svg-path-element.js
221
0644
edit
dl
rm
svg-shape-element.js
1877
0644
edit
dl
rm
svg-text-element.js
393
0644
edit
dl
rm
vector-canvas.js
504
0644
edit
dl
rm
vml-canvas-element.js
1540
0644
edit
dl
rm
vml-circle-element.js
820
0644
edit
dl
rm
vml-element.js
2912
0644
edit
dl
rm
vml-group-element.js
340
0644
edit
dl
rm
vml-image-element.js
1449
0644
edit
dl
rm
vml-path-element.js
2947
0644
edit
dl
rm
vml-shape-element.js
1449
0644
edit
dl
rm
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 }); } };
Save
cmd:
run