Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/queuepro/node_modules/jsvectormap/src/js/svg/ drwxrwxr-x | |
| Viewing file: Select action/file-type: import SVGShapeElement from './shapeElement'
/**
* ------------------------------------------------------------------------
* Class Definition
* ------------------------------------------------------------------------
*/
class SVGImageElement extends SVGShapeElement {
constructor(config, style) {
super('image', config, style)
}
applyAttr(attr, value) {
let imageUrl
if (attr === 'image') {
// This get executed when we have url in series.markers[0].scale.someScale.url
if (typeof value === 'object') {
imageUrl = value.url
this.offset = value.offset || [0, 0]
} else {
imageUrl = value
this.offset = [0, 0]
}
this.node.setAttributeNS('http://www.w3.org/1999/xlink', 'href', imageUrl)
// Set width and height then call this `applyAttr` again
this.width = 23
this.height = 23
this.applyAttr('width', this.width)
this.applyAttr('height', this.height)
this.applyAttr('x', this.cx - this.width / 2 + this.offset[0])
this.applyAttr('y', this.cy - this.height / 2 + this.offset[1])
} else if (attr == 'cx') {
this.cx = value
if (this.width) {
this.applyAttr('x', value - this.width / 2 + this.offset[0])
}
} else if (attr == 'cy') {
this.cy = value
if (this.height) {
this.applyAttr('y', value - this.height / 2 + this.offset[1])
}
} else {
// This time Call SVGElement
super.applyAttr.apply(this, arguments)
}
}
}
export default SVGImageElement |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0318 ]-- |