Open yunyezl opened 2 weeks ago
sequenceDiagram
participant User
participant SeatMap
participant _SeatMapState
participant AssetBundle
participant xml.XmlDocument
participant PathPrinter
participant PathPainter
User ->> SeatMap: Load SeatMap
SeatMap ->> _SeatMapState: Create State
_SeatMapState ->> AssetBundle: Load SVG file (assetName)
AssetBundle -->> _SeatMapState: Return SVG data
_SeatMapState ->> xml.XmlDocument: Parse SVG data
xml.XmlDocument -->> _SeatMapState: Return xml path elements
_SeatMapState ->> PathPrinter: Create SeatSection using xml path (transform to flutter path from xml path)
_SeatMapState -->> SeatMap: Set sections state
User ->> _SeatMapState: Tap on screen
_SeatMapState ->> _SeatMapState: Handle tap and find section
_SeatMapState ->> _SeatMapState: Change section color
_SeatMapState ->> PathPainter: Repaint paths with new colors
PathPainter -->> SeatMap: Render updated paths
Description
Requirements
path_parsing
라이브러리를 이용하여 svg path를 flutter path로 변환합니다.