162 lines
15 KiB
Plaintext
162 lines
15 KiB
Plaintext
<mxfile host="Electron" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/29.6.6 Chrome/144.0.7559.236 Electron/40.8.4 Safari/537.36" version="29.6.6" pages="6">
|
||
<diagram name="显示指定层级菜单项流程" id="etDREPkzm4HehLh3Wzss">
|
||
<mxGraphModel dx="752" dy="817" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
||
<root>
|
||
<mxCell id="0" />
|
||
<mxCell id="1" parent="0" />
|
||
<mxCell id="Dq_V7AeBsTtqcCJDGkD4-1" parent="1" style="swimlane;childLayout=stackLayout;horizontal=1;fillColor=none;horizontalStack=1;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=0;strokeColor=none;stackBorder=10;stackSpacing=-12;resizable=1;align=center;points=[];whiteSpace=wrap;html=1;" value="显示指定层级菜单项" vertex="1">
|
||
<mxGeometry height="100" width="610" x="100" y="560" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="Dq_V7AeBsTtqcCJDGkD4-2" parent="Dq_V7AeBsTtqcCJDGkD4-1" style="shape=step;perimeter=stepPerimeter;fixedSize=1;points=[];whiteSpace=wrap;html=1;" value="绘制该层级边框" vertex="1">
|
||
<mxGeometry height="57" width="160" x="10" y="33" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="Dq_V7AeBsTtqcCJDGkD4-3" parent="Dq_V7AeBsTtqcCJDGkD4-1" style="shape=step;perimeter=stepPerimeter;fixedSize=1;points=[];whiteSpace=wrap;html=1;" value="获取该层级选中菜单项" vertex="1">
|
||
<mxGeometry height="57" width="182" x="158" y="33" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="Dq_V7AeBsTtqcCJDGkD4-4" parent="Dq_V7AeBsTtqcCJDGkD4-1" style="shape=step;perimeter=stepPerimeter;fixedSize=1;points=[];whiteSpace=wrap;html=1;" value="绘制该层级下菜单项" vertex="1">
|
||
<mxGeometry height="57" width="162" x="328" y="33" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="Dq_V7AeBsTtqcCJDGkD4-5" parent="Dq_V7AeBsTtqcCJDGkD4-1" style="shape=step;perimeter=stepPerimeter;fixedSize=1;points=[];whiteSpace=wrap;html=1;" value="反显选中项" vertex="1">
|
||
<mxGeometry height="57" width="122" x="478" y="33" as="geometry" />
|
||
</mxCell>
|
||
</root>
|
||
</mxGraphModel>
|
||
</diagram>
|
||
<diagram id="39Z0d1SsfJPrEY7NQ2dw" name="MVP 事件处理流程">
|
||
<mxGraphModel dx="1090" dy="1185" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
||
<root>
|
||
<mxCell id="0" />
|
||
<mxCell id="1" parent="0" />
|
||
<mxCell id="CHJpIxpMOG3BUcIp9TBN-1" edge="1" parent="1" source="CHJpIxpMOG3BUcIp9TBN-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" target="CHJpIxpMOG3BUcIp9TBN-3" value="">
|
||
<mxGeometry relative="1" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="CHJpIxpMOG3BUcIp9TBN-2" parent="1" style="rounded=0;whiteSpace=wrap;html=1;" value="<span style="text-wrap-mode: nowrap;">外部事件</span>" vertex="1">
|
||
<mxGeometry height="60" width="120" x="354" y="490" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="CHJpIxpMOG3BUcIp9TBN-3" parent="1" style="whiteSpace=wrap;html=1;rounded=0;" value="Presenter 协同层" vertex="1">
|
||
<mxGeometry height="60" width="120" x="354" y="570" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="CHJpIxpMOG3BUcIp9TBN-4" parent="1" style="whiteSpace=wrap;html=1;rounded=0;" value="View 视图层" vertex="1">
|
||
<mxGeometry height="60" width="120" x="284" y="680" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="CHJpIxpMOG3BUcIp9TBN-5" parent="1" style="whiteSpace=wrap;html=1;rounded=0;" value="Model 模型层&nbsp;" vertex="1">
|
||
<mxGeometry height="60" width="120" x="424" y="680" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="CHJpIxpMOG3BUcIp9TBN-6" edge="1" parent="1" source="CHJpIxpMOG3BUcIp9TBN-5" style="endArrow=classic;html=1;rounded=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;edgeStyle=orthogonalEdgeStyle;jumpStyle=arc;startArrow=classic;startFill=1;" target="CHJpIxpMOG3BUcIp9TBN-3" value="">
|
||
<mxGeometry height="50" relative="1" width="50" as="geometry">
|
||
<mxPoint x="594" y="630" as="sourcePoint" />
|
||
<mxPoint x="644" y="580" as="targetPoint" />
|
||
</mxGeometry>
|
||
</mxCell>
|
||
<mxCell id="CHJpIxpMOG3BUcIp9TBN-7" edge="1" parent="1" source="CHJpIxpMOG3BUcIp9TBN-3" style="endArrow=classic;html=1;rounded=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;edgeStyle=orthogonalEdgeStyle;" target="CHJpIxpMOG3BUcIp9TBN-4" value="">
|
||
<mxGeometry height="50" relative="1" width="50" as="geometry">
|
||
<mxPoint x="374" y="670" as="sourcePoint" />
|
||
<mxPoint x="484" y="660" as="targetPoint" />
|
||
</mxGeometry>
|
||
</mxCell>
|
||
</root>
|
||
</mxGraphModel>
|
||
</diagram>
|
||
<diagram id="X0IBgYVqs8-xy_G4TQXO" name="MVP 架构示意图">
|
||
<mxGraphModel dx="1090" dy="1185" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
||
<root>
|
||
<mxCell id="0" />
|
||
<mxCell id="1" parent="0" />
|
||
<mxCell id="wkRVSMCZ4WoaQlwrK3vp-14" connectable="0" parent="1" style="group" value="" vertex="1">
|
||
<mxGeometry height="300" width="600" x="100" y="300" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="wkRVSMCZ4WoaQlwrK3vp-1" parent="wkRVSMCZ4WoaQlwrK3vp-14" style="rounded=1;whiteSpace=wrap;html=1;" value="<font style="font-size: 21px;"><b>MVP 架构示意图</b></font>" vertex="1">
|
||
<mxGeometry height="50" width="600" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="wkRVSMCZ4WoaQlwrK3vp-2" parent="wkRVSMCZ4WoaQlwrK3vp-14" style="rounded=1;whiteSpace=wrap;html=1;" value="" vertex="1">
|
||
<mxGeometry height="240" width="180" y="60" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="wkRVSMCZ4WoaQlwrK3vp-3" parent="wkRVSMCZ4WoaQlwrK3vp-14" style="rounded=1;whiteSpace=wrap;html=1;" value="" vertex="1">
|
||
<mxGeometry height="240" width="185" x="207.5" y="60" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="wkRVSMCZ4WoaQlwrK3vp-4" parent="wkRVSMCZ4WoaQlwrK3vp-14" style="rounded=1;whiteSpace=wrap;html=1;" value="" vertex="1">
|
||
<mxGeometry height="240" width="185" x="415" y="60" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="wkRVSMCZ4WoaQlwrK3vp-5" parent="wkRVSMCZ4WoaQlwrK3vp-14" style="rounded=1;whiteSpace=wrap;html=1;" value="<font style="font-size: 16px;"><b>View (视图层)</b></font>" vertex="1">
|
||
<mxGeometry height="40" width="160" x="10" y="70" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="wkRVSMCZ4WoaQlwrK3vp-6" parent="wkRVSMCZ4WoaQlwrK3vp-14" style="rounded=1;whiteSpace=wrap;html=1;" value="<b style="font-size: 16px;">Presenter (协调层)</b>" vertex="1">
|
||
<mxGeometry height="40" width="160" x="220" y="70" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="wkRVSMCZ4WoaQlwrK3vp-7" parent="wkRVSMCZ4WoaQlwrK3vp-14" style="rounded=1;whiteSpace=wrap;html=1;" value="<b style="font-size: 16px;">Model (数据层)</b>" vertex="1">
|
||
<mxGeometry height="40" width="160" x="430" y="70" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="wkRVSMCZ4WoaQlwrK3vp-8" parent="wkRVSMCZ4WoaQlwrK3vp-14" style="rounded=1;whiteSpace=wrap;html=1;" value="<span style="font-size: 16px;"><b>负责显示内容</b></span>" vertex="1">
|
||
<mxGeometry height="40" width="160" x="10" y="250" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="wkRVSMCZ4WoaQlwrK3vp-9" parent="wkRVSMCZ4WoaQlwrK3vp-14" style="rounded=1;whiteSpace=wrap;html=1;" value="<font style="font-size: 16px;"><b>负责流程协调</b></font>" vertex="1">
|
||
<mxGeometry height="40" width="160" x="220" y="250" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="wkRVSMCZ4WoaQlwrK3vp-10" parent="wkRVSMCZ4WoaQlwrK3vp-14" style="rounded=1;whiteSpace=wrap;html=1;" value="<font style="font-size: 16px;"><b>负责数据和规则</b></font>" vertex="1">
|
||
<mxGeometry height="40" width="160" x="430" y="250" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="wkRVSMCZ4WoaQlwrK3vp-11" parent="wkRVSMCZ4WoaQlwrK3vp-14" style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;rounded=0;" value="<b><font style="font-size: 14px;">LCD 显示</font></b><div><b><font style="font-size: 14px;">LED 指示</font></b></div><div><b><font style="font-size: 14px;">按键输入</font></b></div>" vertex="1">
|
||
<mxGeometry height="60" width="80" x="20" y="150" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="wkRVSMCZ4WoaQlwrK3vp-12" parent="wkRVSMCZ4WoaQlwrK3vp-14" style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;rounded=0;" value="<b><font style="font-size: 14px;">接收外部事件</font></b><div><b><font style="font-size: 14px;">调用 Model 处理</font></b></div><div><span style="font-size: 14px;"><b>更新 View 状态</b></span></div>" vertex="1">
|
||
<mxGeometry height="60" width="120" x="230" y="150" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="wkRVSMCZ4WoaQlwrK3vp-13" parent="wkRVSMCZ4WoaQlwrK3vp-14" style="text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;rounded=0;" value="<span style="font-size: 14px;"><b>菜单逻辑计算</b></span><br><div><b><font style="font-size: 14px;">参数边界检查</font></b></div><div><span style="font-size: 14px;"><b>传感器数据获取</b></span></div><div><span style="font-size: 14px;"><b>数据存储读写</b></span></div>" vertex="1">
|
||
<mxGeometry height="60" width="120" x="440" y="150" as="geometry" />
|
||
</mxCell>
|
||
</root>
|
||
</mxGraphModel>
|
||
</diagram>
|
||
<diagram id="HxDEZlLnL0qG7Ur4KydZ" name="页面管理器架构设计">
|
||
<mxGraphModel dx="1363" dy="1481" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
||
<root>
|
||
<mxCell id="0" />
|
||
<mxCell id="1" parent="0" />
|
||
<mxCell id="LuWILqjna9OgU5SQR-9t-1" parent="1" style="rounded=0;whiteSpace=wrap;html=1;" value="<font style="font-size: 29px;">页面管理器(<span style="background-color: transparent; color: light-dark(rgb(0, 0, 0), rgb(255, 255, 255));">Page Manager</span>)</font><div><span style="font-size: 29px;"><br></span></div><div><span style="font-size: 29px;"><br></span><div><font style="font-size: 29px;"><br></font></div><div><font style="font-size: 29px;"><br></font></div></div>" vertex="1">
|
||
<mxGeometry height="240" width="500" x="130" y="290" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="LuWILqjna9OgU5SQR-9t-2" parent="1" style="rounded=0;whiteSpace=wrap;html=1;" value="<div><div><font style="font-size: 29px;">页面栈 (Page Stack)</font></div></div><div><font style="font-size: 29px;"><br></font></div><div><font style="font-size: 29px;"><br></font></div>" vertex="1">
|
||
<mxGeometry height="130" width="500" x="130" y="400" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="LuWILqjna9OgU5SQR-9t-3" parent="1" style="rounded=0;whiteSpace=wrap;html=1;" value="<span style="font-size: 23px;">栈顶页面</span>" vertex="1">
|
||
<mxGeometry height="60" width="240" x="140" y="460" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="LuWILqjna9OgU5SQR-9t-4" parent="1" style="rounded=0;whiteSpace=wrap;html=1;" value="<span style="font-size: 23px;">后台页面1</span>" vertex="1">
|
||
<mxGeometry height="60" width="240" x="380" y="460" as="geometry" />
|
||
</mxCell>
|
||
</root>
|
||
</mxGraphModel>
|
||
</diagram>
|
||
<diagram id="R1sptnBL6Yvgqzv1JQT0" name="菜单页面架构设计">
|
||
<mxGraphModel dx="1090" dy="1185" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
||
<root>
|
||
<mxCell id="0" />
|
||
<mxCell id="1" parent="0" />
|
||
<mxCell id="_v9aWsQiSdQDmT4Fcf7S-1" parent="1" style="rounded=0;whiteSpace=wrap;html=1;" value="<font style="font-size: 29px;">菜单页面</font><div><font style="font-size: 29px;"><br></font></div><div><font style="font-size: 29px;"><br></font></div>" vertex="1">
|
||
<mxGeometry height="130" width="500" x="164" y="480" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="_v9aWsQiSdQDmT4Fcf7S-2" parent="1" style="rounded=0;whiteSpace=wrap;html=1;" value="<font style="font-size: 23px;">page</font>" vertex="1">
|
||
<mxGeometry height="60" width="120" x="174" y="540" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="_v9aWsQiSdQDmT4Fcf7S-3" parent="1" style="rounded=0;whiteSpace=wrap;html=1;" value="<span style="font-size: 23px;">model</span>" vertex="1">
|
||
<mxGeometry height="60" width="120" x="294" y="540" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="_v9aWsQiSdQDmT4Fcf7S-4" parent="1" style="rounded=0;whiteSpace=wrap;html=1;" value="<span style="font-size: 23px;">view</span>" vertex="1">
|
||
<mxGeometry height="60" width="120" x="414" y="540" as="geometry" />
|
||
</mxCell>
|
||
<mxCell id="_v9aWsQiSdQDmT4Fcf7S-5" parent="1" style="rounded=0;whiteSpace=wrap;html=1;" value="<span style="font-size: 23px;">presenter</span>" vertex="1">
|
||
<mxGeometry height="60" width="120" x="534" y="540" as="geometry" />
|
||
</mxCell>
|
||
</root>
|
||
</mxGraphModel>
|
||
</diagram>
|
||
<diagram id="ae4TW034q6_u2rk01mG-" name="第 6 页">
|
||
<mxGraphModel dx="1090" dy="1185" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
||
<root>
|
||
<mxCell id="0" />
|
||
<mxCell id="1" parent="0" />
|
||
</root>
|
||
</mxGraphModel>
|
||
</diagram>
|
||
</mxfile>
|