|
@@ -384,7 +384,19 @@ export class SGraphyItem extends SObject {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- return false;
|
|
|
+ // 处理hover
|
|
|
+ const scene = this.scene;
|
|
|
+ if (null != scene) {
|
|
|
+ if (scene.hoverItem == null || scene.hoverItem !== this) {
|
|
|
+ if (scene.hoverItem != null) {
|
|
|
+ scene.hoverItem.onMouseLeave(event);
|
|
|
+ }
|
|
|
+ this.onMouseEnter(event);
|
|
|
+ scene.hoverItem = this;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return true;
|
|
|
} // Function onMouseMove()
|
|
|
|
|
|
/**
|
|
@@ -412,6 +424,26 @@ export class SGraphyItem extends SObject {
|
|
|
} // Function onMouseUp()
|
|
|
|
|
|
/**
|
|
|
+ * 鼠标进入事件
|
|
|
+ *
|
|
|
+ * @param event 保存事件参数
|
|
|
+ * @return boolean
|
|
|
+ */
|
|
|
+ onMouseEnter(event: SMouseEvent): boolean {
|
|
|
+ return false;
|
|
|
+ } // Function onMouseEnter()
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 鼠标离开事件
|
|
|
+ *
|
|
|
+ * @param event 保存事件参数
|
|
|
+ * @return boolean
|
|
|
+ */
|
|
|
+ onMouseLeave(event: SMouseEvent): boolean {
|
|
|
+ return false;
|
|
|
+ } // Function onMouseLeave()
|
|
|
+
|
|
|
+ /**
|
|
|
* 上下文菜单事件
|
|
|
*
|
|
|
* @param event 事件参数
|