Adde remote debug option to ant and also added titles to map icons

This commit is contained in:
Ziver Koc 2016-07-17 03:00:03 +02:00
parent 19bd06e28b
commit f3482be14d
3 changed files with 51 additions and 9 deletions

26
resource/web/js/svg.title.js Executable file
View file

@ -0,0 +1,26 @@
// Title Plugin
// Source: https://github.com/wout/svg.js/issues/147
//
// // example usage
// var draw = SVG('drawing')
// var group = draw.group()
// group.title('This is a pink square.')
// group.rect(100,100).fill('#f06')
SVG.Title = SVG.invent({
create: 'title',
inherit: SVG.Element,
extend: {
text: function(text) {
while (this.node.firstChild)
this.node.removeChild(this.node.firstChild)
this.node.appendChild(document.createTextNode(text))
return this
}
},
construct: {
title: function(text) {
return this.put(new SVG.Title).text(text)
}
}
})