aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-12-10 12:54:41 -0500
committerbobzel <zzzman@gmail.com>2020-12-10 12:54:41 -0500
commit30338491c7b3cbba852931c76774f6bfd44d4060 (patch)
tree97a4c68e0928b0ca1889ef4bf42e1a71b8256bab /src/client/views/collections/CollectionView.tsx
parent81ee0bf99da264b76f26a21d57259d478cac07f3 (diff)
removed annotationsKey prop in favor of reusing fieldKey. Fixed web pages to allow dash annotations again.
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
-rw-r--r--src/client/views/collections/CollectionView.tsx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx
index af03e4ceb..511fc723d 100644
--- a/src/client/views/collections/CollectionView.tsx
+++ b/src/client/views/collections/CollectionView.tsx
@@ -63,8 +63,6 @@ export enum CollectionViewType {
}
export interface CollectionViewProps extends FieldViewProps {
isAnnotationOverlay?: boolean; // is the collection an annotation overlay (eg an overlay on an image/video/etc)
- annotationsKey: string; // which data field on the collection stores the collection of annotation documents
- ignoreFilters?: boolean;
layoutEngine?: () => string;
parentActive: (outsideReaction: boolean) => boolean;
filterAddDocument?: (doc: Doc | Doc[]) => boolean; // allows a document that renders a Collection view to filter or modify any documents added to the collection (see PresBox for an example)
@@ -72,11 +70,11 @@ export interface CollectionViewProps extends FieldViewProps {
setPreviewCursor?: (func: (x: number, y: number, drag: boolean) => void) => void;
// property overrides for child documents
+ children?: never | (() => JSX.Element[]) | React.ReactNode;
childDocuments?: Doc[]; // used to override the documents shown by the sub collection to an explicit list (see LinkBox)
childOpacity?: () => number;
childLayoutTemplate?: () => (Doc | undefined);// specify a layout Doc template to use for children of the collection
childLayoutString?: string;
- children?: never | (() => JSX.Element[]) | React.ReactNode;
childFreezeDimensions?: boolean; // used by TimeView to coerce documents to treat their width height as their native width/height
childIgnoreNativeSize?: boolean;
childClickScript?: ScriptField;
@@ -387,7 +385,6 @@ export class CollectionView extends Touchable<CollectionViewProps> {
childLayoutString: this.childLayoutString,
ScreenToLocalTransform: this.screenToLocalTransform,
CollectionView: this,
- annotationsKey: ""
};
const boxShadow = Doc.UserDoc().renderStyle === "comic" || this.props.Document.treeViewOutlineMode || this.collectionViewType === CollectionViewType.Linear ? undefined :
this.props.styleProvider?.(this.props.Document, this.props, "boxShadow");