diff options
| author | bobzel <zzzman@gmail.com> | 2023-10-31 14:21:51 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-10-31 14:21:51 -0400 |
| commit | cf95923feebb274249283c7bb82de5849060a9a8 (patch) | |
| tree | b4aafffb6ae32d4386f6a4ddfc6b6b01c6e309ff /src/client/views/InkingStroke.tsx | |
| parent | a091c6142db5c1da94807abf14e78ed69e62f794 (diff) | |
fixed keyframe animation of ink and links. fixed getDocumentview with preferred collection
Diffstat (limited to 'src/client/views/InkingStroke.tsx')
| -rw-r--r-- | src/client/views/InkingStroke.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/InkingStroke.tsx b/src/client/views/InkingStroke.tsx index c3a6b1607..d26c7761e 100644 --- a/src/client/views/InkingStroke.tsx +++ b/src/client/views/InkingStroke.tsx @@ -246,7 +246,7 @@ export class InkingStroke extends ViewBoxBaseComponent<FieldViewProps>() { * factor for converting between ink and screen space. */ inkScaledData = () => { - const inkData = Cast(this.dataDoc[this.fieldKey], InkField)?.inkData ?? []; + const inkData = Cast(this.rootDoc[this.fieldKey], InkField)?.inkData ?? []; const inkStrokeWidth = NumCast(this.rootDoc.stroke_width, 1); const inkTop = Math.min(...inkData.map(p => p.Y)) - inkStrokeWidth / 2; const inkBottom = Math.max(...inkData.map(p => p.Y)) + inkStrokeWidth / 2; |
