|
@@ -1,5 +1,5 @@
|
|
|
import { SGraphItem } from "@saga-web/graph/lib";
|
|
|
-import { SPainter, SPoint } from "@saga-web/draw/lib";
|
|
|
+import { SPainter, SPoint, SRect } from "@saga-web/draw/lib";
|
|
|
import { SMouseEvent } from "@saga-web/base/lib";
|
|
|
import { ItemColor, ItemOrder } from "..";
|
|
|
|
|
@@ -29,6 +29,15 @@ export class SRectSelectItem extends SGraphItem {
|
|
|
} // Constructor
|
|
|
|
|
|
/**
|
|
|
+ * Item对象边界区域
|
|
|
+ *
|
|
|
+ * @return SRect
|
|
|
+ */
|
|
|
+ boundingRect(): SRect {
|
|
|
+ return new SRect(this.startPoint, this.endPoint);
|
|
|
+ } // Function boundingRect()
|
|
|
+
|
|
|
+ /**
|
|
|
* 鼠标移动事件
|
|
|
*
|
|
|
* @param event 事件参数
|