| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- /*
- * ********************************************************************************************************************
- *
- * :*$@@%$*: ;: ;; ;;
- * :@@%! :!@@%: %! ;%%@@%$ =@@@@@@@%; @%@@@%%%%@@@@@
- * :@%; :$= %%$$$%$$ ;$$ ;$@= !@$
- * =@! %! @ $=;% !@@@%: !$$$$$$$$$$$$$$=
- * =@* %! @ $= % %@= =%@! %=
- * *$%%! @@= ;=$%%%$*: %! @ $= % =%%%%%%@$ *%: =%
- * %@@!: !@@@%=$@@@@%! :*@@$: %! @ $= % $* ;@ @* :%*
- * ;@@! ;!!!;: ;@%: =======@%========* @ $$ % $%*****$@ :@$=*********=@$
- * $@* ;@@@%=!: *@*
- * =@$ ;;;!=%@@@@=! =@!
- * %@$: =@%: :*@@@* %@= Copyright (c) 2016-2020. 北京上格云技术有限公司
- * ;%@@$=$@@%* *@@@$=%@@%;
- * ::;:: ::;:: All rights reserved.
- *
- * ********************************************************************************************************************
- */
- import { SGraphyItem } from "@saga-web/graphy/lib";
- import { SPainter, SPoint, SRect } from "@saga-web/draw/lib";
- import { Relation } from "../types/Relation";
- import { SMouseEvent } from "@saga-web/base/lib";
- /**
- * 关系item
- *
- * @author 郝建龙
- */
- export class BaseRelationItem extends SGraphyItem {
- /** X坐标最小值 */
- minX = Number.MAX_SAFE_INTEGER;
- /** X坐标最大值 */
- maxX = Number.MIN_SAFE_INTEGER;
- /** Y坐标最小值 */
- minY = Number.MAX_SAFE_INTEGER;
- /** Y坐标最大值 */
- maxY = Number.MIN_SAFE_INTEGER;
- /**
- * Item对象边界区域
- *
- * @return SRect
- */
- boundingRect(): SRect {
- return new SRect(
- this.minX,
- this.minY,
- this.maxX - this.minX,
- this.maxY - this.minY
- );
- } // Function boundingRect()
- } // Class BaseRelationItem
|