Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use x/y offset for the DropShadowFilter instead of rotation/distance #377

Merged
merged 1 commit into from
Jan 29, 2023

Conversation

bigtimebuddy
Copy link
Member

Closes #256

Changed

  • Deprecated rotation and distance from DropShadowFilter in favor of offset.x and offset.y
import { DropShadowFilter } from '@pixi/filters-drop-shadow';

// Set with constructor options
const filter = new DropShadowFilter({
  offset: { x: 2, y: 2 }, // can also be Point
});

// Set with the offset member
filter.offset.set(4, 4);

@vikpe vikpe merged commit 51d7953 into main Jan 29, 2023
@vikpe vikpe deleted the feature/drop-shadow-offset branch January 29, 2023 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DropShadow filter change options to include xDistance and yDistance
2 participants