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

programmatically set size and position #12

Closed
ZeroAuto opened this issue Apr 19, 2019 · 5 comments
Closed

programmatically set size and position #12

ZeroAuto opened this issue Apr 19, 2019 · 5 comments
Labels
duplicate This issue or pull request already exists good first issue Good for newcomers

Comments

@ZeroAuto
Copy link

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.

@timtnleeProject timtnleeProject added the duplicate This issue or pull request already exists label Apr 20, 2019
@timtnleeProject
Copy link
Owner

duplicate to #11

@timtnleeProject
Copy link
Owner

timtnleeProject commented Apr 22, 2019

FYI
You can now set the clipping box upon load

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})

@ZeroAuto
Copy link
Author

ZeroAuto commented Apr 22, 2019 via email

@Afondevi
Copy link

Afondevi commented Apr 22, 2019

The load attribute is call if src attritube change ?

@timtnleeProject
Copy link
Owner

It is the image's onLoad event.

@timtnleeProject timtnleeProject added the good first issue Good for newcomers label Apr 23, 2019
@timtnleeProject timtnleeProject pinned this issue May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants