Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var dropShadowFilter = this.d3Graph.append('svg:filter')
- .attr('id', 'drop-shadow')
- .attr('filterUnits', "userSpaceOnUse")
- .attr('width', '250%')
- .attr('height', '250%');
- dropShadowFilter.append('svg:feGaussianBlur')
- .attr('in', 'SourceGraphic')
- .attr('stdDeviation', 2)
- .attr('result', 'blur-out');
- dropShadowFilter.append('svg:feColorMatrix')
- .attr('in', 'blur-out')
- .attr('type', 'hueRotate')
- .attr('values', 180)
- .attr('result', 'color-out');
- dropShadowFilter.append('svg:feOffset')
- .attr('in', 'color-out')
- .attr('dx', 3)
- .attr('dy', 3)
- .attr('result', 'the-shadow');
- dropShadowFilter.append('svg:feBlend')
- .attr('in', 'SourceGraphic')
- .attr('in2', 'the-shadow')
- .attr('mode', 'normal');
- this.node = this.d3Graph.selectAll(null)
- .data(Nodes)
- .enter()
- .append("g")
- .attr("class", "nodes");
- this.node.append("circle")
- .attr("r", 30)
- .attr("fill", "red")
- .style("filter", "url(#drop-shadow)")
Add Comment
Please, Sign In to add comment