/
home
/
techb158
/
workloadmatch.com
/
bower_components
/
jvectormap
/
src
/
/home/techb158/workloadmatch.com/bower_components/jvectormap/src
mkdir
upload
Name
Size
Mode
Actions
abstract-canvas-element.js
2908
0777
edit
dl
rm
abstract-element.js
1652
0777
edit
dl
rm
abstract-shape-element.js
1833
0777
edit
dl
rm
color-scale.js
1028
0777
edit
dl
rm
data-series.js
5255
0777
edit
dl
rm
jvectormap.js
4233
0777
edit
dl
rm
legend.js
2670
0777
edit
dl
rm
map-object.js
1999
0777
edit
dl
rm
map.js
40591
0777
edit
dl
rm
marker.js
2066
0777
edit
dl
rm
multimap.js
4435
0777
edit
dl
rm
numeric-scale.js
4258
0777
edit
dl
rm
ordinal-scale.js
352
0777
edit
dl
rm
proj.js
6568
0777
edit
dl
rm
region.js
1248
0777
edit
dl
rm
simple-scale.js
133
0777
edit
dl
rm
svg-canvas-element.js
877
0777
edit
dl
rm
svg-circle-element.js
180
0777
edit
dl
rm
svg-element.js
1226
0777
edit
dl
rm
svg-group-element.js
238
0777
edit
dl
rm
svg-image-element.js
1100
0777
edit
dl
rm
svg-path-element.js
221
0777
edit
dl
rm
svg-shape-element.js
1877
0777
edit
dl
rm
svg-text-element.js
393
0777
edit
dl
rm
vector-canvas.js
504
0777
edit
dl
rm
vml-canvas-element.js
1540
0777
edit
dl
rm
vml-circle-element.js
820
0777
edit
dl
rm
vml-element.js
2912
0777
edit
dl
rm
vml-group-element.js
340
0777
edit
dl
rm
vml-image-element.js
1449
0777
edit
dl
rm
vml-path-element.js
2947
0777
edit
dl
rm
vml-shape-element.js
1449
0777
edit
dl
rm
Edit:
/home/techb158/workloadmatch.com/bower_components/jvectormap/src/vml-image-element.js
(1449B)
jvm.VMLImageElement = function(config, style){ jvm.VMLImageElement.parentClass.call(this, 'image', config, style); }; jvm.inherits(jvm.VMLImageElement, jvm.VMLShapeElement); jvm.VMLImageElement.prototype.applyAttr = function(attr, value){ var patternEl, imageEl, that = this; if (attr == 'image') { jvm.whenImageLoaded(value).then(function(img){ that.node.setAttribute('src', value); that.width = img[0].width; that.height = img[0].height; that.applyAttr('width', that.width); that.applyAttr('height', that.height); jvm.VMLImageElement.images[value] = jvm.VMLImageElement.imageCounter++; that.applyAttr('x', that.cx - that.width / 2); that.applyAttr('y', that.cy - that.height / 2); jvm.$(that.node).trigger('imageloaded', [img]); }); } else if(attr == 'cx') { this.cx = value; if (this.width) { this.applyAttr('x', value - this.width / 2); } } else if(attr == 'cy') { this.cy = value; if (this.height) { this.applyAttr('y', value - this.height / 2); } } else if(attr == 'width' || attr == 'height') { this.node.style[attr] = value + 'px'; } else if (attr == 'x' || attr == 'y') { this.node.style[attr == 'x' ? 'left' : 'top'] = value + 'px'; } else { jvm.VMLImageElement.parentClass.prototype.applyAttr.apply(this, arguments); } }; jvm.VMLImageElement.imageCounter = 1; jvm.VMLImageElement.images = {}
Save
cmd:
run