Agamnentzar / ag-psd

Javascript library for reading and writing PSD files
Other
496 stars 66 forks source link

The value of effects.dropShadow.angle is always 90 #186

Closed jerryzhangjq closed 3 months ago

jerryzhangjq commented 3 months ago
image image

useGlobalLight true angle always 90

Agamnentzar commented 3 months ago

By default it has "Use Global Light" enabled (the checkbox next to the angle)

image

When that's enabled it uses value from psd.globalAngle instead of the one from the effect

Agamnentzar commented 3 months ago

Btw also just released version 20.2.1 with fix for negative globalAngle values, so you might want to update if you're going to use globalAngle field

jerryzhangjq commented 3 months ago

Btw also just released version 20.2.1 with fix for negative globalAngle values, so you might want to update if you're going to use globalAngle field

The problem is solved thank you very much