拖放在PhotoEditorSdk中不起作用

时间:2019-05-27 09:28:42

标签: java reactjs gwt photoeditorsdk

我已将PhotoEditorSdk集成到Gwt中,但拖动不起作用,无法移动贴纸,文字

//@formatter:off
private native JavaScriptObject initEditor(Element container,String appContext, String url) /*-{
var img = new Image();
img.crossOrigin = "anonymous";
img.src = url;
   var editor = new PhotoEditorSDK.UI.ReactUI({
      container: container,
      enableUpload: true,
      crossOrigin: 'anonymous',
      enableDrag : true,
      enableZoom: true,
      editor: {
        image: img,
        responsive: true,
        enableZoom: true,
        enableDrag : true,
        displayResizeMessage : true,
        controlsOrder: ['transform', 'filter', 'adjustments', 'focus', 'transform', 'sticker', 'text'],

    },
        license: '{hidden}',
      assets: {
        // This should be the absolute path to your `assets` directory
        baseUrl: appContext+'photoeditorsdk/assets'
      }
    });
    return editor
}-*/;
//@formatter:on

0 个答案:

没有答案