diff options
| author | bobzel <zzzman@gmail.com> | 2025-04-22 10:54:38 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-04-22 10:54:38 -0400 |
| commit | e8f1d494d36a5e1f1ee33d59faa4be2559cd752e (patch) | |
| tree | 3f01d82c7319cb9d1c69f74651012d8edd77e1cc /src/client/views/InkingStroke.tsx | |
| parent | b81810d8c4b5cc106b5653124d8044d0c5c44717 (diff) | |
adding drop handling code for scrapbookBox
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 f555808ef..0a49ea28e 100644 --- a/src/client/views/InkingStroke.tsx +++ b/src/client/views/InkingStroke.tsx @@ -245,7 +245,7 @@ export class InkingStroke extends ViewBoxAnnotatableComponent<FieldViewProps>() * factor for converting between ink and screen space. */ inkScaledData = () => { - const inkData = Cast(this.dataDoc[this.fieldKey], InkField, Cast(this.layoutDoc[this.fieldKey], InkField, null))?.inkData ?? []; + const inkData = Cast(this.dataDoc[this.fieldKey], InkField, Cast(this.layoutDoc[this.fieldKey], InkField, null) ?? null)?.inkData ?? []; const inkStrokeWidth = NumCast(this.layoutDoc.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; |
