aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm/FormatShapePane.tsx
diff options
context:
space:
mode:
authoryunahi <60233430+yunahi@users.noreply.github.com>2020-08-06 00:21:23 +0900
committeryunahi <60233430+yunahi@users.noreply.github.com>2020-08-06 00:21:23 +0900
commit7e18d27de76bd2b58281841910aee3c4829269dd (patch)
treef3e0f0fb6ea8a0a8254749c49edee4a4893d889e /src/client/views/collections/collectionFreeForm/FormatShapePane.tsx
parent78c99446f284f7ac8e5443f77227ae5edbfd2aaf (diff)
fixed bugs after testing
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/FormatShapePane.tsx')
-rw-r--r--src/client/views/collections/collectionFreeForm/FormatShapePane.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/collections/collectionFreeForm/FormatShapePane.tsx b/src/client/views/collections/collectionFreeForm/FormatShapePane.tsx
index 6263be261..d526033a0 100644
--- a/src/client/views/collections/collectionFreeForm/FormatShapePane.tsx
+++ b/src/client/views/collections/collectionFreeForm/FormatShapePane.tsx
@@ -214,6 +214,7 @@ export default class FormatShapePane extends AntimodeMenu {
@undoBatch
@action
control = (xDiff: number, yDiff: number, controlNum: number) => {
+ // console.log(controlNum, ink.length);
this.selectedInk?.forEach(action(inkView => {
if (this.selectedInk?.length === 1) {
const doc = Document(inkView.rootDoc);
@@ -221,6 +222,7 @@ export default class FormatShapePane extends AntimodeMenu {
const ink = Cast(doc.data, InkField)?.inkData;
if (ink) {
+
const newPoints: { X: number, Y: number }[] = [];
const order = controlNum % 4;
for (var i = 0; i < ink.length; i++) {