@anu3ev/fabric-image-editor 0.1.80 → 0.1.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +3 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -835,7 +835,7 @@ class de {
|
|
|
835
835
|
* Проверка, можно ли показывать индикатор для данного объекта
|
|
836
836
|
*/
|
|
837
837
|
_shouldShowIndicator(e) {
|
|
838
|
-
return !(!this.options.
|
|
838
|
+
return !(!this.options.showRotationAngle || !e || e.id === this.editor.montageArea.id || e.lockRotation || e.lockMovementX || e.lockMovementY);
|
|
839
839
|
}
|
|
840
840
|
/**
|
|
841
841
|
* Позиционирование индикатора относительно курсора
|
|
@@ -3528,7 +3528,7 @@ class he {
|
|
|
3528
3528
|
initialImage: i,
|
|
3529
3529
|
initialStateJSON: r,
|
|
3530
3530
|
scaleType: d,
|
|
3531
|
-
|
|
3531
|
+
showRotationAngle: h,
|
|
3532
3532
|
_onReadyCallback: l
|
|
3533
3533
|
} = this.options;
|
|
3534
3534
|
if (Je.apply(), this.canvas = new Re(this.containerId, this.options), this.moduleLoader = new Ye(), this.workerManager = new We(), this.errorManager = new q({ editor: this }), this.historyManager = new $({ editor: this }), this.toolbar = new rt({ editor: this }), this.transformManager = new bt({ editor: this }), this.canvasManager = new mt({ editor: this }), this.imageManager = new N({ editor: this }), this.layerManager = new K({ editor: this }), this.shapeManager = new pt({ editor: this }), this.interactionBlocker = new jt({ editor: this }), this.backgroundManager = new R({ editor: this }), this.clipboardManager = new yt({ editor: this }), this.objectLockManager = new J({ editor: this }), this.groupingManager = new It({ editor: this }), this.selectionManager = new vt({ editor: this }), this.deletionManager = new le({ editor: this }), h && (this.angleIndicator = new de({ editor: this })), this._createMontageArea(), this._createClippingArea(), this.listeners = new P({ editor: this, options: this.options }), this.canvasManager.setEditorContainerWidth(e), this.canvasManager.setEditorContainerHeight(t), this.canvasManager.setCanvasWrapperWidth(s), this.canvasManager.setCanvasWrapperHeight(a), this.canvasManager.setCanvasCSSWidth(n), this.canvasManager.setCanvasCSSHeight(o), this.canvasManager.updateCanvas(), this.transformManager.calculateAndApplyDefaultZoom(), i != null && i.source) {
|
|
@@ -3684,7 +3684,7 @@ const Ct = {
|
|
|
3684
3684
|
maxZoom: 2,
|
|
3685
3685
|
zoomRatio: 0.1,
|
|
3686
3686
|
overlayMaskColor: "rgba(136, 136, 136, 0.6)",
|
|
3687
|
-
|
|
3687
|
+
showRotationAngle: !0,
|
|
3688
3688
|
/*
|
|
3689
3689
|
* Настройки слушателей событий
|
|
3690
3690
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anu3ev/fabric-image-editor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.81",
|
|
4
4
|
"description": "JavaScript image editor built on FabricJS, allowing you to create instances with an integrated montage area and providing an API to modify and manage state.",
|
|
5
5
|
"module": "dist/main.js",
|
|
6
6
|
"files": [
|