diff options
| author | yipstanley <stanley_yip@brown.edu> | 2019-11-10 16:27:56 -0500 |
|---|---|---|
| committer | yipstanley <stanley_yip@brown.edu> | 2019-11-10 16:27:56 -0500 |
| commit | c7c18eeea36b35ee9172a120352af84fe21f267b (patch) | |
| tree | d808181631abe04f05085115a6fb1d79298d6751 /src/client/views/InkSelectDecorations.tsx | |
| parent | 563a8926c0646e9907c8a4eec2e648ab5ae79e02 (diff) | |
inks are now dox
Diffstat (limited to 'src/client/views/InkSelectDecorations.tsx')
| -rw-r--r-- | src/client/views/InkSelectDecorations.tsx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/client/views/InkSelectDecorations.tsx b/src/client/views/InkSelectDecorations.tsx index a8eef3305..95ccc1777 100644 --- a/src/client/views/InkSelectDecorations.tsx +++ b/src/client/views/InkSelectDecorations.tsx @@ -1,6 +1,6 @@ import React = require("react"); import { Touchable } from "./Touchable"; -import { StrokeData } from "../../new_fields/InkField"; +import { PointData } from "../../new_fields/InkField"; import { observer } from "mobx-react"; import { computed, observable, action, runInAction } from "mobx"; import "./InkSelectDecorations.scss" @@ -33,13 +33,13 @@ export default class InkSelectDecorations extends Touchable { let top = Number.MAX_VALUE; let right = -Number.MAX_VALUE; let bottom = -Number.MAX_VALUE; - this._selectedInkNodes.forEach((value: StrokeData, key: string) => { - value.pathData.map(val => { - left = Math.min(val.x, left); - top = Math.min(val.y, top); - right = Math.max(val.x, right); - bottom = Math.max(val.y, bottom); - }); + this._selectedInkNodes.forEach((value: PointData, key: string) => { + // value.pathData.map(val => { + // left = Math.min(val.x, left); + // top = Math.min(val.y, top); + // right = Math.max(val.x, right); + // bottom = Math.max(val.y, bottom); + // }); }); return { x: left, y: top, b: bottom, r: right }; } |
