equal
deleted
inserted
replaced
463 if (!this.options.show_node_circles) { |
463 if (!this.options.show_node_circles) { |
464 this.h_ratio = height / (2 * baseRadius); |
464 this.h_ratio = height / (2 * baseRadius); |
465 } |
465 } |
466 } |
466 } |
467 var _raster = new paper.Raster(_image); |
467 var _raster = new paper.Raster(_image); |
|
468 _raster.locked = true; // Disable mouse events on icon |
468 if (hasClipPath) { |
469 if (hasClipPath) { |
469 _raster = new paper.Group(_clip, _raster); |
470 _raster = new paper.Group(_clip, _raster); |
470 _raster.opacity = .99; |
471 _raster.opacity = .99; |
471 /* This is a workaround to allow clipping at group level |
472 /* This is a workaround to allow clipping at group level |
472 * If opacity was set to 1, paper.js would merge all clipping groups in one (known bug). |
473 * If opacity was set to 1, paper.js would merge all clipping groups in one (known bug). |
2111 } |
2112 } |
2112 }; |
2113 }; |
2113 function showImage() { |
2114 function showImage() { |
2114 var _raster = new paper.Raster(_img); |
2115 var _raster = new paper.Raster(_img); |
2115 _raster.position = _imgdelta.add(_grp.position).subtract(_delta); |
2116 _raster.position = _imgdelta.add(_grp.position).subtract(_delta); |
|
2117 _raster.locked = true; // Disable mouse events on icon |
2116 _grp.addChild(_raster); |
2118 _grp.addChild(_raster); |
2117 } |
2119 } |
2118 if (_img.width) { |
2120 if (_img.width) { |
2119 showImage(); |
2121 showImage(); |
2120 } else { |
2122 } else { |