yunap / traceit

jQuery plugin based on raphael.js that lets you dynamically trace page elements. Now also available as AngularJs directive:
https://github.com/yunap/angular-traceit
72 stars 5 forks source link

Inconsistent option naming style #2

Closed ghost closed 10 years ago

ghost commented 10 years ago

Mixed camelCase and snake_case:

options: {
    trace_canvas_padding: 10,
    redrawspeed: 3500,
    trace_div_pref: "_wrap",
    trace_cursor: 'pointer',
    trace_opt: { 'stroke': 'yellow', 'stroke-width': 5, 
        'stroke-opacity': 1, 'fill': 'none',
        'fill-opacity': 0, 'zindex': 9999},
    isVisible: true,
    useRelativePositioning : false, // will position relative to the document by default
    hideCallback: function() { console.log("From hide Callback") },
    endTraceCallback: function() { console.log("From end Trace Callback") },
    onClick: function(me){ me.options.shape.animate({opacity: 0}, 1000, function(){ me.HideTrace(); }); }       
}
yunap commented 10 years ago

changed to camelCase Thank you!