Custome ResizeHandles

with the upcoming version 5.2.0 Draw2D allows to replace or override the default appearance and behavior or the ResizeHandles
blogEntryTopper

    // Override the standard ResizeHandle and add some fancy filter to the SVG element
    // We need the fraphael.js lib to apply the filter 
    //
    var filter = null;
    draw2d.Configuration.factory.createResizeHandle= function(forShape, type){
        var handle= new draw2d.ResizeHandle(forShape, type);
        handle.attr({
            width:10,
            height:10,
            radius:4,
            color:"#ffffff",
            stroke:1
        });

        handle._origShow = handle.show;
        // override the standard "show" method to apply the shadow filter to the raphael element 
        //
        handle.show= function(canvas){
            this._origShow(canvas);
            
            if(filter==null){
                filter = canvas.paper.createFilter();
                filter.createShadow(3,3,5);
                filter.element.setAttribute("x", "-55%");
                filter.element.setAttribute("y", "-55%");
                filter.element.setAttribute("width", "400%");
                filter.element.setAttribute("height", "400%");
                
            }
            this.shape.filter(filter);
            
        }.bind(handle);
        
        return handle;

    };