Commit bde8c46c authored by robcast's avatar robcast

vector point uses pin-like svg-path now.

parent 5fa850a3
...@@ -344,10 +344,11 @@ ...@@ -344,10 +344,11 @@
* Point * Point
*/ */
var p1 = trafo.transform(geom.position(coords[0])); var p1 = trafo.transform(geom.position(coords[0]));
var $elem = $(svgElement('circle', { // point uses pin-like path of size 3*pu
var pu = hs / 3;
var $elem = $(svgElement('path', {
'id': id, 'class': cssclass, 'id': id, 'class': cssclass,
'cx': p1.x, 'cy': p1.y, 'd': 'M '+p1.x+','+p1.y+' l '+2*pu+','+pu+' c '+2*pu+','+pu+' '+0+','+3*pu+' '+(-pu)+','+pu+' Z',
'r': hs,
'stroke': stroke, 'stroke-width': strokeWidth, 'stroke': stroke, 'stroke-width': strokeWidth,
'fill': fill, 'style': style})); 'fill': fill, 'style': style}));
shape.$elem = $elem; shape.$elem = $elem;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment