diff --git a/apps/image-editor/examples/example01-includeUi.html b/apps/image-editor/examples/example01-includeUi.html index bed534db6..bac5e565e 100644 --- a/apps/image-editor/examples/example01-includeUi.html +++ b/apps/image-editor/examples/example01-includeUi.html @@ -53,6 +53,9 @@ }, cssMaxWidth: 700, cssMaxHeight: 500, + selectionStyle: { + rotatingPointOffset: 70 + }, usageStatistics: false, }); window.onresize = function () { diff --git a/apps/image-editor/src/js/imageEditor.js b/apps/image-editor/src/js/imageEditor.js index 5a76207c8..c42e19b9a 100644 --- a/apps/image-editor/src/js/imageEditor.js +++ b/apps/image-editor/src/js/imageEditor.js @@ -245,6 +245,9 @@ class ImageEditor { this._attachColorPickerInputBoxEvents(); } fabric.enableGLFiltering = false; + if (options.selectionStyle.rotatingPointOffset) + fabric.Object.prototype.controls.mtr.offsetY = + options.selectionStyle.rotatingPointOffset * -1; } _attachColorPickerInputBoxEvents() {