-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from boostcampwm2023/AOS-feature/mindmap-line
��Line 곡선 그리기 및 Node의 크기 변화에 따른 라인 그리기
- Loading branch information
Showing
4 changed files
with
83 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
AOS/app/src/main/java/boostcamp/and07/mindsync/ui/view/MindmapContainer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package boostcamp.and07.mindsync.ui.view | ||
|
||
import boostcamp.and07.mindsync.data.SampleNode | ||
import boostcamp.and07.mindsync.data.model.Node | ||
|
||
class MindmapContainer { | ||
var head: Node = SampleNode.head | ||
|
||
var nodeView: NodeView? = null | ||
var lineView: LineView? = null | ||
|
||
fun updateHead(newHead: Node) { | ||
head = newHead | ||
lineView?.updateWithNewHead(newHead) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters