diff options
| author | bobzel <zzzman@gmail.com> | 2023-05-22 11:25:32 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-05-22 11:25:32 -0400 |
| commit | bed3309e1fda6597b2a8fea10ad82cd3a0402051 (patch) | |
| tree | fe599bbdc5fca2c221e1e0f7a60995b7cd39f870 /src/client/views/animationtimeline/Timeline.tsx | |
| parent | 887a4f7e0fc25fde87b20a5de2e7b0aee561cc78 (diff) | |
| parent | 3d26d5b2654841a9b92f3d66b28d1dc8e36cca6a (diff) | |
merged physics with master
Diffstat (limited to 'src/client/views/animationtimeline/Timeline.tsx')
| -rw-r--r-- | src/client/views/animationtimeline/Timeline.tsx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/client/views/animationtimeline/Timeline.tsx b/src/client/views/animationtimeline/Timeline.tsx index 7a393a4f7..adc97bbb4 100644 --- a/src/client/views/animationtimeline/Timeline.tsx +++ b/src/client/views/animationtimeline/Timeline.tsx @@ -76,7 +76,7 @@ export class Timeline extends React.Component<FieldViewProps> { private get children(): Doc[] { const annotatedDoc = [DocumentType.IMG, DocumentType.VID, DocumentType.PDF, DocumentType.MAP].includes(StrCast(this.props.Document.type) as any); if (annotatedDoc) { - return DocListCast(this.props.Document[Doc.LayoutFieldKey(this.props.Document) + '-annotations']); + return DocListCast(this.props.Document[Doc.LayoutFieldKey(this.props.Document) + '_annotations']); } return DocListCast(this.props.Document[this.props.fieldKey]); } @@ -290,15 +290,15 @@ export class Timeline extends React.Component<FieldViewProps> { }; resetView(doc: Doc) { - doc._panX = doc._customOriginX ?? 0; - doc._panY = doc._customOriginY ?? 0; - doc._viewScale = doc._customOriginScale ?? 1; + doc._freeform_panX = doc._customOriginX ?? 0; + doc._freeform_panY = doc._customOriginY ?? 0; + doc._freeform_scale = doc._customOriginScale ?? 1; } setView(doc: Doc) { - doc._customOriginX = doc._panX; - doc._customOriginY = doc._panY; - doc._customOriginScale = doc._viewScale; + doc._customOriginX = doc._freeform_panX; + doc._customOriginY = doc._freeform_panY; + doc._customOriginScale = doc._freeform_scale; } /** * zooming mechanism (increment and spacing changes) |
