-
Notifications
You must be signed in to change notification settings - Fork 32
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
programmatically set size and position #12
Labels
Comments
duplicate to #11 |
FYI clipper-basic<clipper-basic
:src="src"
ref="clipper"
@load="imgLoad"
></clipper-basic> // imgLoad
this.$refs.clipper.setTL$.next({left: 0, top: 0})
this.$refs.clipper.setTL$.next({right: 0, bottom: 0})
this.$refs.clipper.setWH$.next({width: 100, height: 0}) |
Thank you, this is a very helpful feature.
…On Mon, Apr 22, 2019 at 12:41 AM timtnlee ***@***.***> wrote:
FYI
You can now set the clipping box upon load
<clipper-basic
:src="src"
ref="clipper"
@load="imgLoad"
></clipper-basic>
// imgLoadthis.$refs.clipper.setTL$.next({left: 0, top: 0})this.$refs.clipper.setWH$.next({width: 100, height: 0})
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABJACZE3VNNKRUDORMYTGV3PRVFXNANCNFSM4HHHXAGA>
.
|
The load attribute is call if src attritube change ? |
It is the image's onLoad event. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Is it possible to programmitcally set the size and position of the clipping box? I would like to be able to set the box to cover the entire image upon load.
The text was updated successfully, but these errors were encountered: