/
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/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 <code>true</code> to make element hovered, <code>false</code> 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 <code>true</code> to make element selected, <code>false</code> 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(); } };
Save
cmd:
run