diff options
author | Naafiyan Ahmed <naafiyan@gmail.com> | 2022-05-03 16:32:13 -0400 |
---|---|---|
committer | Naafiyan Ahmed <naafiyan@gmail.com> | 2022-05-03 16:32:13 -0400 |
commit | f66eefce84ce6a7c8c1fdf37f682238e65576ff6 (patch) | |
tree | 73f8dfca9f2363c3cc03cb52f6b5ac48be3ee336 | |
parent | 14b23094ea3050b96dc6aed28b5f35612c821140 (diff) |
working on subgrouping
-rw-r--r-- | src/client/views/InkTranscription.tsx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/client/views/InkTranscription.tsx b/src/client/views/InkTranscription.tsx index 7e26b51a0..fa753760a 100644 --- a/src/client/views/InkTranscription.tsx +++ b/src/client/views/InkTranscription.tsx @@ -182,8 +182,6 @@ export class InkTranscription extends React.Component { if (!selected) { return; } - console.log("selected[0].context", DocListCast(selected[0].context)); - console.log("selected[0]", DocListCast(selected[0])); // TODO: nda - probably have to cast this to an actual Doc const ctx = await Cast(selected[0].context, Doc); if (!ctx) { @@ -206,8 +204,6 @@ export class InkTranscription extends React.Component { })) const aggregBounds = aggregateBounds(bounds, 0, 0); - const boundsWidth = Math.abs(aggregBounds.x - aggregBounds.r); - const boundsHeight = Math.abs(aggregBounds.y - aggregBounds.b); if (marqViewRef) { marqViewRef._downX = aggregBounds.x; @@ -227,8 +223,6 @@ export class InkTranscription extends React.Component { delete d._timecodeToShow; // bcz: this should be automatic somehow.. along with any other properties that were logically associated with the original collection delete d._timecodeToHide; // bcz: this should be automatic somehow.. along with any other properties that were logically associated with the original collection // calculate pos based on bounds - // d.x = dx - aggregBounds.x - boundsWidth / 2; - // d.y = dy - aggregBounds.y - boundsHeight / 2; if (marqViewRef?.Bounds) { d.x = dx - marqViewRef.Bounds.left - marqViewRef.Bounds.width / 2; d.y = dy - marqViewRef.Bounds.top - marqViewRef.Bounds.height / 2; |