Giter Site home page Giter Site logo

fraphael's People

Contributors

chrismichaelscott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fraphael's Issues

When rotation (via raphael translate) is 180 degrees, filter and element are no longer visible

I have an application in which users manipulate symbols. Symbols are able to be rotated 0, 90, 180 and 270 degrees. I recently switched to using fraphael for the .shadow() feature. It's much nicer than having to deal with .glow() and all the headaches that come along with that. Works great with x,y transforms but it doesn't seem to work when rotating to 180 degrees.

It seems that filters (I've tried a few, same results) just don't want to work on 180. They work at 181 and 179, though.

Video Here: http://tinypic.com/r/2s7c0ll/8 (excuse the tinypic, only service I could get to work)

addEffect throws exception

The method FR.Filter.prototype.addEffect iterates (for example when using emboss()) over the elements of an array by using for (var x in children). If some framework or the application code has extended Array.prototype (as prototype.js does), this piece may fail with an exception from the browser, for example "Argument 1 of Node.appendChild is not an object".

Solutions:
a) Add a property check right at the beginning of the for-loop

for (var x in children) {    
    if (!children.hasOwnProperty(x)) continue;
    ...

b) Use index-based iteration

for (var x=0; x<children.length; x++) {    
    ...

fraphael.js does not pass jslint/jshint validation

When executing jshint against your code, it ends with a "too many errors" message. The cause is the simple. All conditions in the code that check for 'undefined' variables and parameters are using == or != operators. This is a weak coding practice.

I modified the code on my side to fix the situation. The attached screen captures show you the type of the changes I made to address the problem.

Best regards

screen shot 2013-09-05 at 15 00 14
screen shot 2013-09-05 at 15 00 23
screen shot 2013-09-05 at 15 00 46
screen shot 2013-09-05 at 15 00 55

Typo in addDesaturate

There is a typo, saturnation, within in this method:

    addDesaturate: function (saturation, attributes) {
        if (saturation == undefined) {
            saturnation = 0;
        }

Filters not available in IE9

Hello,

First, Many thanks for your plugin ! awesome

I have a bug on IE (9), no filters are displayed... and it crashes my app...is there any known trouble with this ?

thanks for your answer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.