개정판 cc747b58
issue #387: fix note symbol err
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
98 | 98 |
self._color = self.DEFAULT_COLOR |
99 | 99 |
self.setColor(self._color) |
100 | 100 | |
101 |
def contains(self, textArea): |
|
102 |
minX = self.loc[0] |
|
103 |
minY = self.loc[1] |
|
104 |
maxX = minX + self.size[0] |
|
105 |
maxY = minY + self.size[1] |
|
106 | ||
107 |
_minX = textArea.getX() |
|
108 |
_minY = textArea.getY() |
|
109 |
_maxX = _minX + textArea.getW() |
|
110 |
_maxY = _minY + textArea.getH() |
|
111 | ||
112 |
return False if (minX > _maxX or minY > _maxY or maxX < _minX or maxY < _minY) else True |
|
113 | ||
101 | 114 |
def associations(self): |
102 | 115 |
""" |
103 | 116 |
return associated instance |
내보내기 Unified diff