@inweb/markup 26.9.8 → 26.9.9
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/markup.module.js
CHANGED
|
@@ -941,6 +941,9 @@ class KonvaImage {
|
|
|
941
941
|
draggable: true,
|
|
942
942
|
});
|
|
943
943
|
this._ref.setAttr("wcsStart", this._worldTransformer.screenToWorld({ x: params.position.x, y: params.position.y }));
|
|
944
|
+
if (params.position2) {
|
|
945
|
+
this._ref.setAttr("wcsEnd", this._worldTransformer.screenToWorld({ x: params.position2.x, y: params.position2.y }));
|
|
946
|
+
}
|
|
944
947
|
this._ref.on("transform", (e) => {
|
|
945
948
|
const attrs = e.target.attrs;
|
|
946
949
|
if (attrs.rotation !== this._ref.rotation())
|