LayerStyles icon indicating copy to clipboard operation
LayerStyles copied to clipboard

Gradients bug

Open nicooprat opened this issue 14 years ago • 6 comments

HI,

When playing with gradients (after having deleted a "color point"), I got this error on line 84 of tools.js : "Cannot read property 'length' of undefined element"

Very great tool, btw. Should be added to the real Photoshop ;)

nicooprat avatar May 11 '11 06:05 nicooprat

thanks! yeah, the gradient editor somehow kills the whole gradient array at some point - didn't figure out why yet. I'm planning on rewriting the whole gradient editor since main features are not yet implemented (see gradienteditor.js from line 62). hopefully on that way i'll figure out the problem.

mrflix avatar May 11 '11 07:05 mrflix

gradient editor is kinda buggy, it's a great idea to refactor it. I've been bitten by a bug when double clicking on a color stop to change a color. here is the error in my console:

An invalid or illegal string was specified" code: "12
error source line: [Break On This Error] gradient.addColorStop(pos, color); 

tools.js (line 195)

aziz avatar May 17 '11 12:05 aziz

Indeed. I'm planning a major rewrite.

(see pointer and middlepoint objects inside gradienteditor.js - they are not yet in use)

On 17.05.2011, at 14:10, [email protected] wrote:

gradient editor is kinda buggy, it's a great idea to refactor it. I've been bitten by a bug when double clicking on a color stop to change a color. here is the error in my console:

An invalid or illegal string was specified" code: "12 error source line: [Break On This Error] gradient.addColorStop(pos, color);

tools.js (line 195)

Reply to this email directly or view it on GitHub: https://github.com/mrflix/LayerStyles/issues/4#comment_1190028

mrflix avatar May 17 '11 12:05 mrflix

I just tested this great tool and I noticed I can't edit the Gradient at all (I can only change between the presets)

GittiHab avatar May 03 '14 09:05 GittiHab

@GittiHab you have to double-click onto the color rectangles under the preview (photoshop behaviour): layerstyles_gradient

mrflix avatar May 07 '14 19:05 mrflix

@mrflix That's the part that didn't work. I redownloaded it and it now works. Weird.

GittiHab avatar May 08 '14 06:05 GittiHab