我已将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