Skip to content
This repository was archived by the owner on Jul 28, 2021. It is now read-only.
This repository was archived by the owner on Jul 28, 2021. It is now read-only.

How to align text using Toast UI Vue Image Editor Text Alignment? #25

@naveenkumarmark

Description

@naveenkumarmark

Version

"@toast-ui/vue-image-editor": "^1.0.2"

Development Environment

Windows 10, Chrome Version 76.0

Current Behavior

Toast Ui Image Editor text alignment not working correctly.
The Text Alignment helpers moves the controller not the text.

import ImageEditor from '@toast-ui/vue-image-editor/src/ImageEditor.vue'
export default {
  name: 'ToastUI',
  components: {
    'image-editor': ImageEditor
  },
  data () {
    return {
      useDefaultUI: true,
      options: {
        includeUI: {
          loadImage: {
            path: '',
            name: ''
          },
          theme: whiteTheme,
          initMenu: ['icon'],
          menuBarPosition: 'bottom',
          menu: ['crop', 'flip', 'rotate', 'draw', 'shape', 'icon', 'text', 'mask', 'filter'] //, 'filter',
        },
        cssMaxWidth: document.documentElement.clientWidth,
        cssMaxHeight: document.documentElement.clientHeight,
        selectionStyle: {
          cornerSize: 20,
          rotatingPointOffset: 70
        },
        usageStatistics: false
      }
 }
}

Expected Behavior

Able to align text with text alignment options
alignment_issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions