aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-08-26 13:53:26 -0400
committerbobzel <zzzman@gmail.com>2024-08-26 13:53:26 -0400
commit2e345c1ebd498e3f7e088e6fc3e1ca17082b23c1 (patch)
tree7b564401f0edc89e9ee683bb9f1c9e32f957ae43 /src/client/documents/Documents.ts
parentcc3e1bc2c317cf34aba04e4935ae842b16ad4cae (diff)
converted unique faces to be a Doc type similar to a collection.
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index c0e4e961c..c2211fb80 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -795,6 +795,10 @@ export namespace Docs {
return InstanceFromProto(Prototypes.get(DocumentType.FACECOLLECTION), undefined, options);
}
+ export function UniqeFaceDocument(options: DocumentOptions = {}) {
+ return InstanceFromProto(Prototypes.get(DocumentType.UFACE), undefined, options);
+ }
+
export function LoadingDocument(file: File | string, options: DocumentOptions) {
return InstanceFromProto(Prototypes.get(DocumentType.LOADING), undefined, { _height: 150, _width: 200, title: typeof file === 'string' ? file : file.name, ...options }, undefined, '');
}