Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. data() {
  2. return {
  3. useDefaultUI: true,
  4. options: {
  5. imageSize: {oldWidth: 300, oldHeight: 300, newWidth: 400, newHeight: 400},
  6. selectionStyle: {
  7. cornerSize: 20,
  8. rotatingPointOffset: 70
  9. },
  10. cssMaxWidth: 600,
  11. cssMaxHeight: 400,
  12. includeUI: {
  13. theme: blackTheme, // or whiteTheme
  14. uiSize: {
  15. width: '1000px',
  16. height: '100px'
  17. },
  18. imageSize: {oldWidth: 200, oldHeight: 200, newWidth: 200, newHeight: 200}
  19. }
  20. }
  21. };
  22. },
  23. methods: {
  24. addDefaultImage() {
  25. let url = "someImageurl";
  26. this.$refs.tuiImageEditor.invoke('loadImageFromURL', url, 'My
  27. sample image').then((res) => {
  28. console.log(res);
  29. });
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement