aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DropActionTypes.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-05-03 10:55:33 -0400
committerbobzel <zzzman@gmail.com>2024-05-03 10:55:33 -0400
commitf927a585c75a20629379bcb34d1483c0ca9d8db9 (patch)
treef070e9e64ecaf251e6708b8ce4d722f121a6d039 /src/client/util/DropActionTypes.ts
parent723c8b33ade753764d1d02b130c189fb65e20425 (diff)
parent9b424c94d7a89950e9cf3f72e684bd15a61e87ae (diff)
merged with new version of master
Diffstat (limited to 'src/client/util/DropActionTypes.ts')
-rw-r--r--src/client/util/DropActionTypes.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/util/DropActionTypes.ts b/src/client/util/DropActionTypes.ts
new file mode 100644
index 000000000..45b294d97
--- /dev/null
+++ b/src/client/util/DropActionTypes.ts
@@ -0,0 +1,9 @@
+export enum dropActionType {
+ embed = 'embed', // create a new embedding of the dragged document for the new location
+ copy = 'copy', // copy the dragged document
+ move = 'move', // move the dragged document to the drop location after removing it from where it was
+ add = 'add', // add the dragged document to the drop location without removing it from where it was
+ same = 'same', // only allow drop within same collection (or same hierarchical tree collection)
+ inPlace = 'inSame', // keep document in place (unless overridden by a drag modifier)
+ proto = 'proto',
+} // undefined = move, same = move but doesn't call dropPropertiesToRemove