aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-10-16 12:47:09 -0400
committerbob <bcz@cs.brown.edu>2019-10-16 12:47:09 -0400
commitfb817995eb94727b11324f298d0a30eebda8dcb7 (patch)
treec7fcb8864d686bc40fc82fd97ee728e839227a50 /src/client/views/collections/collectionFreeForm
parent57ccb3e236a7dad71848a06dad757c5a5a081ce8 (diff)
removed DragEmbed -- subsumed by dragging aliases.
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index 46aaed509..adbad5da5 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -153,21 +153,6 @@ export class CollectionFreeFormView extends CollectionSubView(PanZoomDocument) {
de.data.droppedDocuments.length === 1 && this.updateCluster(de.data.droppedDocuments[0]);
}
}
- else if (de.data instanceof DragManager.EmbedDragData && de.data.embeddedDoc) {
- const d = de.data.embeddedDoc;
- d.x = xp;
- d.y = yp;
- if (!NumCast(d.width)) {
- d.width = 300;
- }
- if (!NumCast(d.height)) {
- let nw = NumCast(d.nativeWidth);
- let nh = NumCast(d.nativeHeight);
- d.height = nw && nh ? nh / nw * NumCast(d.width) : 300;
- }
- this.bringToFront(d);
- this.updateCluster(d);
- }
else if (de.data instanceof DragManager.AnnotationDragData) {
if (de.data.dropDocument) {
let dragDoc = de.data.dropDocument;