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
|
@@ -14013,8 +14013,8 @@ class KritzelText extends KritzelBaseObject {
|
|
|
14013
14013
|
if (this.rotation !== 0) {
|
|
14014
14014
|
const newTotalWidth = this.totalWidth;
|
|
14015
14015
|
const newTotalHeight = this.totalHeight;
|
|
14016
|
-
const deltaWidth = (newTotalWidth - previousTotalWidth) / 2;
|
|
14017
|
-
const deltaHeight = (newTotalHeight - previousTotalHeight) / 2;
|
|
14016
|
+
const deltaWidth = (newTotalWidth - previousTotalWidth) / 2 / this.scale;
|
|
14017
|
+
const deltaHeight = (newTotalHeight - previousTotalHeight) / 2 / this.scale;
|
|
14018
14018
|
if (deltaWidth !== 0 || deltaHeight !== 0) {
|
|
14019
14019
|
const cos = Math.cos(this.rotation);
|
|
14020
14020
|
const sin = Math.sin(this.rotation);
|
|
@@ -14927,6 +14927,10 @@ class KritzelMoveHandler extends KritzelBaseHandler {
|
|
|
14927
14927
|
if (event.pointerType === 'touch') {
|
|
14928
14928
|
const activePointers = Array.from(this._core.store.state.pointers.values());
|
|
14929
14929
|
if (this._core.store.state.pointers.size === 1) {
|
|
14930
|
+
if (this._core.store.state.isScaling) {
|
|
14931
|
+
this.trackedPointerId = null;
|
|
14932
|
+
return;
|
|
14933
|
+
}
|
|
14930
14934
|
if (this._core.store.state.selectionGroup?.isSelected && !this._core.store.state.isResizeHandleSelected && !this._core.store.state.isRotationHandleSelected) {
|
|
14931
14935
|
const x = Math.round(activePointers[0].clientX - this._core.store.offsetX);
|
|
14932
14936
|
const y = Math.round(activePointers[0].clientY - this._core.store.offsetY);
|
|
@@ -14968,7 +14972,8 @@ class KritzelMoveHandler extends KritzelBaseHandler {
|
|
|
14968
14972
|
if (this._core.store.state.pointers.size === 1 &&
|
|
14969
14973
|
this._core.store.state.selectionGroup &&
|
|
14970
14974
|
!this._core.store.state.isResizeHandleSelected &&
|
|
14971
|
-
!this._core.store.state.isRotationHandleSelected
|
|
14975
|
+
!this._core.store.state.isRotationHandleSelected &&
|
|
14976
|
+
!this._core.store.state.isScaling) {
|
|
14972
14977
|
const x = Math.round(activePointers[0].clientX - this._core.store.offsetX);
|
|
14973
14978
|
const y = Math.round(activePointers[0].clientY - this._core.store.offsetY);
|
|
14974
14979
|
this._core.store.state.isDragging = true;
|
|
@@ -16430,6 +16435,6 @@ class KritzelImageTool extends KritzelBaseTool {
|
|
|
16430
16435
|
}
|
|
16431
16436
|
|
|
16432
16437
|
export { AddSelectionGroupCommand as A, BatchCommand as B, DEFAULT_BRUSH_CONFIG as D, KritzelBrushTool as K, ObjectHelper as O, RemoveSelectionGroupCommand as R, UpdateObjectCommand as U, KritzelTextTool as a, KritzelMouseButton as b, KritzelSelectionTool as c, KritzelEraserTool as d, DEFAULT_TEXT_CONFIG as e, KritzelImageTool as f, KritzelWorkspace as g, KritzelKeyboardHelper as h, KritzelBaseHandler as i, KritzelToolRegistry as j, KrtizelSelectionBox as k, KritzelSelectionGroup as l, KritzelBaseCommand as m, KritzelReviver as n, RemoveObjectCommand as o, AddObjectCommand as p, KritzelEventHelper as q, KritzelBaseTool as r, KritzelText as s, KritzelPath as t, KritzelImage as u };
|
|
16433
|
-
//# sourceMappingURL=index-
|
|
16438
|
+
//# sourceMappingURL=index-YVlgItFD.js.map
|
|
16434
16439
|
|
|
16435
|
-
//# sourceMappingURL=index-
|
|
16440
|
+
//# sourceMappingURL=index-YVlgItFD.js.map
|