Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data() {
- return {
- useDefaultUI: true,
- options: {
- imageSize: {oldWidth: 300, oldHeight: 300, newWidth: 400, newHeight: 400},
- selectionStyle: {
- cornerSize: 20,
- rotatingPointOffset: 70
- },
- cssMaxWidth: 600,
- cssMaxHeight: 400,
- includeUI: {
- theme: blackTheme, // or whiteTheme
- uiSize: {
- width: '1000px',
- height: '100px'
- },
- imageSize: {oldWidth: 200, oldHeight: 200, newWidth: 200, newHeight: 200}
- }
- }
- };
- },
- methods: {
- addDefaultImage() {
- let url = "someImageurl";
- this.$refs.tuiImageEditor.invoke('loadImageFromURL', url, 'My
- sample image').then((res) => {
- console.log(res);
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement