kritzel-stencil 0.0.143 → 0.0.144
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/cjs/{index-Cg50mv2K.js → index-C9GjuVAx.js} +10 -5
- package/dist/cjs/index-C9GjuVAx.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kritzel-color_22.cjs.entry.js +5 -3
- package/dist/collection/classes/core/viewport.class.js +4 -2
- package/dist/collection/classes/core/viewport.class.js.map +1 -1
- package/dist/collection/classes/handlers/move.handler.js +6 -1
- package/dist/collection/classes/handlers/move.handler.js.map +1 -1
- package/dist/collection/classes/objects/text.class.js +2 -2
- package/dist/collection/classes/objects/text.class.js.map +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/kritzel-controls.js +1 -1
- package/dist/components/kritzel-editor.js +3 -3
- package/dist/components/kritzel-engine.js +1 -1
- package/dist/components/{p-BAw249L9.js → p-1bVCRi-d.js} +3 -3
- package/dist/components/{p-BAw249L9.js.map → p-1bVCRi-d.js.map} +1 -1
- package/dist/components/{p-CoFmi-t6.js → p-UsToUu6G.js} +4 -4
- package/dist/components/p-UsToUu6G.js.map +1 -0
- package/dist/components/{p-EO13AYoE.js → p-kn4eunyR.js} +13 -6
- package/dist/components/p-kn4eunyR.js.map +1 -0
- package/dist/esm/{index-Bj5QIJYQ.js → index-YVlgItFD.js} +10 -5
- package/dist/esm/index-YVlgItFD.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/kritzel-color_22.entry.js +5 -3
- package/dist/stencil/index.esm.js +1 -1
- package/dist/stencil/{p-Bj5QIJYQ.js → p-YVlgItFD.js} +2 -2
- package/dist/stencil/p-YVlgItFD.js.map +1 -0
- package/dist/stencil/p-fe738990.entry.js +2 -0
- package/dist/stencil/p-fe738990.entry.js.map +1 -0
- package/dist/stencil/stencil.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/index-Cg50mv2K.js.map +0 -1
- package/dist/components/p-CoFmi-t6.js.map +0 -1
- package/dist/components/p-EO13AYoE.js.map +0 -1
- package/dist/esm/index-Bj5QIJYQ.js.map +0 -1
- package/dist/stencil/p-Bj5QIJYQ.js.map +0 -1
- package/dist/stencil/p-b4185842.entry.js +0 -2
- package/dist/stencil/p-b4185842.entry.js.map +0 -1
|
@@ -14015,8 +14015,8 @@ class KritzelText extends KritzelBaseObject {
|
|
|
14015
14015
|
if (this.rotation !== 0) {
|
|
14016
14016
|
const newTotalWidth = this.totalWidth;
|
|
14017
14017
|
const newTotalHeight = this.totalHeight;
|
|
14018
|
-
const deltaWidth = (newTotalWidth - previousTotalWidth) / 2;
|
|
14019
|
-
const deltaHeight = (newTotalHeight - previousTotalHeight) / 2;
|
|
14018
|
+
const deltaWidth = (newTotalWidth - previousTotalWidth) / 2 / this.scale;
|
|
14019
|
+
const deltaHeight = (newTotalHeight - previousTotalHeight) / 2 / this.scale;
|
|
14020
14020
|
if (deltaWidth !== 0 || deltaHeight !== 0) {
|
|
14021
14021
|
const cos = Math.cos(this.rotation);
|
|
14022
14022
|
const sin = Math.sin(this.rotation);
|
|
@@ -14929,6 +14929,10 @@ class KritzelMoveHandler extends KritzelBaseHandler {
|
|
|
14929
14929
|
if (event.pointerType === 'touch') {
|
|
14930
14930
|
const activePointers = Array.from(this._core.store.state.pointers.values());
|
|
14931
14931
|
if (this._core.store.state.pointers.size === 1) {
|
|
14932
|
+
if (this._core.store.state.isScaling) {
|
|
14933
|
+
this.trackedPointerId = null;
|
|
14934
|
+
return;
|
|
14935
|
+
}
|
|
14932
14936
|
if (this._core.store.state.selectionGroup?.isSelected && !this._core.store.state.isResizeHandleSelected && !this._core.store.state.isRotationHandleSelected) {
|
|
14933
14937
|
const x = Math.round(activePointers[0].clientX - this._core.store.offsetX);
|
|
14934
14938
|
const y = Math.round(activePointers[0].clientY - this._core.store.offsetY);
|
|
@@ -14970,7 +14974,8 @@ class KritzelMoveHandler extends KritzelBaseHandler {
|
|
|
14970
14974
|
if (this._core.store.state.pointers.size === 1 &&
|
|
14971
14975
|
this._core.store.state.selectionGroup &&
|
|
14972
14976
|
!this._core.store.state.isResizeHandleSelected &&
|
|
14973
|
-
!this._core.store.state.isRotationHandleSelected
|
|
14977
|
+
!this._core.store.state.isRotationHandleSelected &&
|
|
14978
|
+
!this._core.store.state.isScaling) {
|
|
14974
14979
|
const x = Math.round(activePointers[0].clientX - this._core.store.offsetX);
|
|
14975
14980
|
const y = Math.round(activePointers[0].clientY - this._core.store.offsetY);
|
|
14976
14981
|
this._core.store.state.isDragging = true;
|
|
@@ -16458,6 +16463,6 @@ exports.ObjectHelper = ObjectHelper;
|
|
|
16458
16463
|
exports.RemoveObjectCommand = RemoveObjectCommand;
|
|
16459
16464
|
exports.RemoveSelectionGroupCommand = RemoveSelectionGroupCommand;
|
|
16460
16465
|
exports.UpdateObjectCommand = UpdateObjectCommand;
|
|
16461
|
-
//# sourceMappingURL=index-
|
|
16466
|
+
//# sourceMappingURL=index-C9GjuVAx.js.map
|
|
16462
16467
|
|
|
16463
|
-
//# sourceMappingURL=index-
|
|
16468
|
+
//# sourceMappingURL=index-C9GjuVAx.js.map
|