/
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-element.js
(2912B)
/** * Wrapper for VML element. * @constructor * @extends jvm.AbstractElement * @param {String} name Tag name of the element * @param {Object} config Set of parameters to initialize element with */ jvm.VMLElement = function(name, config){ if (!jvm.VMLElement.VMLInitialized) { jvm.VMLElement.initializeVML(); } jvm.VMLElement.parentClass.apply(this, arguments); }; jvm.inherits(jvm.VMLElement, jvm.AbstractElement); /** * Shows if VML was already initialized for the current document or not. * @static * @private * @type {Boolean} */ jvm.VMLElement.VMLInitialized = false; /** * Initializes VML handling before creating the first element * (adds CSS class and creates namespace). Adds one of two forms * of createElement method depending of support by browser. * @static * @private */ // The following method of VML handling is borrowed from the // Raphael library by Dmitry Baranovsky. jvm.VMLElement.initializeVML = function(){ try { if (!document.namespaces.rvml) { document.namespaces.add("rvml","urn:schemas-microsoft-com:vml"); } /** * Creates DOM element. * @param {String} tagName Name of element * @private * @returns DOMElement */ jvm.VMLElement.prototype.createElement = function (tagName) { return document.createElement('<rvml:' + tagName + ' class="rvml">'); }; } catch (e) { /** * @private */ jvm.VMLElement.prototype.createElement = function (tagName) { return document.createElement('<' + tagName + ' xmlns="urn:schemas-microsoft.com:vml" class="rvml">'); }; } document.createStyleSheet().addRule(".rvml", "behavior:url(#default#VML)"); jvm.VMLElement.VMLInitialized = true; }; /** * Returns constructor for element by name prefixed with 'VML'. * @param {String} ctr Name of basic constructor to return * proper implementation for. * @returns Function * @private */ jvm.VMLElement.prototype.getElementCtr = function( ctr ){ return jvm['VML'+ctr]; }; /** * Adds CSS class for underlying DOM element. * @param {String} className Name of CSS class name */ jvm.VMLElement.prototype.addClass = function( className ){ jvm.$(this.node).addClass(className); }; /** * Applies attribute value to the underlying DOM element. * @param {String} name Name of attribute * @param {Number|String} config Value of attribute to apply * @private */ jvm.VMLElement.prototype.applyAttr = function( attr, value ){ this.node[attr] = value; }; /** * Returns boundary box for the element. * @returns {Object} Boundary box with numeric fields: x, y, width, height * @override */ jvm.VMLElement.prototype.getBBox = function(){ var node = jvm.$(this.node); return { x: node.position().left / this.canvas.scale, y: node.position().top / this.canvas.scale, width: node.width() / this.canvas.scale, height: node.height() / this.canvas.scale }; };
Save
cmd:
run