aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/animationtimeline/Timeline.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/animationtimeline/Timeline.tsx')
-rw-r--r--src/client/views/animationtimeline/Timeline.tsx14
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)