aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/InkStrokeProperties.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-08-24 14:07:41 -0400
committerbobzel <zzzman@gmail.com>2022-08-24 14:07:41 -0400
commit94dbcc40067cb6637f7a535ff305d9452a3f40d1 (patch)
tree06372f49ea4e4d8c91fea29a6833238a0be6b1d3 /src/client/views/InkStrokeProperties.ts
parent542a057edbdd4661cfb5ef5d07058aa93b47a113 (diff)
made text boxes support animation frames. fixed dragging on unselected pres element ttitles. cleaned up setting ink to have animation frames.
Diffstat (limited to 'src/client/views/InkStrokeProperties.ts')
-rw-r--r--src/client/views/InkStrokeProperties.ts10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/client/views/InkStrokeProperties.ts b/src/client/views/InkStrokeProperties.ts
index 1f5f16592..d19a916f9 100644
--- a/src/client/views/InkStrokeProperties.ts
+++ b/src/client/views/InkStrokeProperties.ts
@@ -4,7 +4,6 @@ import { Doc, NumListCast, Opt } from '../../fields/Doc';
import { InkData, InkField, InkTool, PointData } from '../../fields/InkField';
import { List } from '../../fields/List';
import { listSpec } from '../../fields/Schema';
-import { ComputedField } from '../../fields/ScriptField';
import { Cast, NumCast } from '../../fields/Types';
import { Point } from '../../pen-gestures/ndollar';
import { DocumentType } from '../documents/DocumentTypes';
@@ -12,7 +11,6 @@ import { FitOneCurve } from '../util/bezierFit';
import { DocumentManager } from '../util/DocumentManager';
import { undoBatch } from '../util/UndoManager';
import { InkingStroke } from './InkingStroke';
-import { CollectionFreeFormDocumentView } from './nodes/CollectionFreeFormDocumentView';
import { DocumentView } from './nodes/DocumentView';
export class InkStrokeProperties {
@@ -67,13 +65,7 @@ export class InkStrokeProperties {
doc._height = (newYrange.max - newYrange.min) * ptsYscale + NumCast(doc.strokeWidth);
doc.x = oldXrange.coord + (newXrange.min - oldXrange.min) * ptsXscale;
doc.y = oldYrange.coord + (newYrange.min - oldYrange.min) * ptsYscale;
- if (doc.activeFrame !== undefined) {
- const findexed = Cast(doc[`data-indexed`], listSpec(InkField), []).slice();
- findexed[NumCast(doc.activeFrame)] = new InkField(newPoints);
- doc[`data-indexed`] = new List<InkField>(findexed);
- } else {
- Doc.GetProto(doc).data = new InkField(newPoints);
- }
+ Doc.GetProto(doc).data = new InkField(newPoints);
appliedFunc = true;
}
}