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

Update imageEditor.js #50

Closed
wants to merge 3 commits into from
Closed

Update imageEditor.js #50

wants to merge 3 commits into from

Conversation

OculusMode
Copy link

Added method to set selection style
feat: Added method to change selection styles.

Description

Added method for user to access setSelectionStyles.

Added method to change selection styles.
@seonim-ryu
Copy link
Member

Can one of the admins verify this patch?

@OculusMode
Copy link
Author

Im pretty new to git. please don't commit 2nd update about gitignore

Copy link
Member

@junghwan-park junghwan-park left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OculusMode
Sorry for late review. But there are some issues for your commits.

setSelectionStyle(styles) {
this._graphics.setSelectionStyle(styles);
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an option for setting selectionStyle.

I don't think this method is required.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@junghwan-park indeed there is but only if you include ui. If you don't include UI. then there is no way to change selectionStyles i.e. cornerSize.
Hence one can use this method to do something like:

imageEditor.setSelectionStyle({ cornerSize: 10 });

src/js/imageEditor.js Show resolved Hide resolved
.gitignore Show resolved Hide resolved
@junghwan-park
Copy link
Member

@OculusMode
If you have change your code and committed, please reopen this PR.

@OculusMode
Copy link
Author

@junghwan-park I have made changes in my current master, can you please re open?

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.

None yet

3 participants