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/svg.js/src/ drwxrwxr-x | |
| Viewing file: Select action/file-type: SVG.TextPath = SVG.invent({
// Initialize node
create: 'textPath'
// Inherit from
, inherit: SVG.Parent
// Define parent class
, parent: SVG.Text
// Add parent method
, construct: {
morphArray: SVG.PathArray
// Create path for text to run on
, path: function(d) {
// create textPath element
var path = new SVG.TextPath
, track = this.doc().defs().path(d)
// move lines to textpath
while (this.node.hasChildNodes())
path.node.appendChild(this.node.firstChild)
// add textPath element as child node
this.node.appendChild(path.node)
// link textPath to path and add content
path.attr('href', '#' + track, SVG.xlink)
return this
}
// return the array of the path track element
, array: function() {
var track = this.track()
return track ? track.array() : null
}
// Plot path if any
, plot: function(d) {
var track = this.track()
, pathArray = null
if (track) {
pathArray = track.plot(d)
}
return (d == null) ? pathArray : this
}
// Get the path track element
, track: function() {
var path = this.textPath()
if (path)
return path.reference('href')
}
// Get the textPath child
, textPath: function() {
if (this.node.firstChild && this.node.firstChild.nodeName == 'textPath')
return SVG.adopt(this.node.firstChild)
}
}
})
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0053 ]-- |